/* ==========================================================================
   DS AQUA - Mobile-First Design System
   Matches 9-Screen DS Aqua RO Purifier Mobile UI Specification
   ========================================================================== */

:root {
  --primary: #004e89;
  --primary-light: #0077b6;
  --primary-dark: #002d50;
  --secondary: #00b4d8;
  --accent-cyan: #38bdf8;
  --bg-gradient-start: #f0f9ff;
  --bg-gradient-end: #ffffff;
  --card-bg: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  
  --success-bg: #dcfce7;
  --success-text: #166534;
  --warning-bg: #fef3c7;
  --warning-text: #92400e;
  --info-bg: #e0f2fe;
  --info-text: #0369a1;
  --danger-bg: #fee2e2;
  --danger-text: #991b1b;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(0, 78, 137, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 78, 137, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 78, 137, 0.12);
  
  --app-max-width: 460px;
  --bottom-nav-height: 64px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #e6f0fa;
  color: var(--text-dark);
  line-height: 1.5;
  font-size: 14px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

/* App Shell container */
.app-container {
  width: 100%;
  max-width: var(--app-max-width);
  background-color: #ffffff;
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 30px rgba(0, 50, 100, 0.1);
  display: flex;
  flex-direction: column;
}

/* On Desktop screens, show a subtle phone-like bezel preview */
@media (min-width: 768px) {
  body {
    padding: 20px 0;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  }
  .app-container {
    min-height: calc(100vh - 40px);
    border-radius: 28px;
    overflow: hidden;
    border: 8px solid #ffffff;
  }
}

/* Main Content Area */
.app-content {
  flex: 1;
  padding: 16px;
  padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 24px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.app-content.no-bottom-nav {
  padding-bottom: 24px;
}

/* Header bar */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid var(--border-light);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.header-logo {
  height: 38px;
  max-width: 155px;
  width: auto;
  object-fit: contain;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  background: none;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
  text-decoration: none;
}

.icon-btn:hover, .icon-btn:active {
  background-color: var(--bg-gradient-start);
}

.badge-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
}

.badge-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background-color: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 5px;
  border: 1.5px solid #ffffff;
}

/* Sub-header with back button */
.sub-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--border-light);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dark);
  text-decoration: none;
}

.sub-header-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}

/* Home Screen Header & Greeting */
.user-greeting {
  margin-bottom: 14px;
}

.greeting-text {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-dark);
}

.location-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--primary-light);
  font-weight: 600;
  margin-top: 2px;
}

/* Hero Banner Card */
.hero-card {
  background: linear-gradient(135deg, #004e89 0%, #0077b6 60%, #0096c7 100%);
  border-radius: var(--radius-lg);
  padding: 20px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-card::after {
  content: '';
  position: absolute;
  right: -20px;
  bottom: -30px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
}

.hero-content {
  max-width: 65%;
  z-index: 2;
}

.hero-title {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 6px;
}

.hero-desc {
  font-size: 12px;
  color: #e0f2fe;
  line-height: 1.4;
  margin-bottom: 14px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #ffffff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}

.hero-cta:hover {
  transform: translateY(-1px);
}

.hero-image-wrap {
  width: 90px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.hero-image-wrap img, .hero-image-wrap svg {
  max-width: 100%;
  max-height: 100%;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.2));
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.section-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-light);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Services 2x2 Grid (Home Screen) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.service-grid-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  text-decoration: none;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.service-grid-card:hover, .service-grid-card:active {
  transform: translateY(-2px);
  border-color: var(--secondary);
  box-shadow: var(--shadow-md);
}

.service-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  flex-shrink: 0;
}

.service-grid-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

/* Services List (Services Page) */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  gap: 14px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.service-card-info {
  flex: 1;
}

.service-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.service-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
  margin-bottom: 8px;
}

.service-card-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.service-card-btn {
  background-color: var(--primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.service-card-btn:hover {
  background-color: var(--primary-light);
}

/* Active Order Card on Home */
.active-order-card {
  background: #ffffff;
  border: 1.5px solid #bae6fd;
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}

.active-order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.active-order-title {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.order-ref {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-light);
}

.active-order-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.active-order-service {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.active-order-subtext {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Status Pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
}

.badge-success {
  background-color: var(--success-bg);
  color: var(--success-text);
}

.badge-warning {
  background-color: var(--warning-bg);
  color: var(--warning-text);
}

.badge-info {
  background-color: var(--info-bg);
  color: var(--info-text);
}

.badge-primary {
  background-color: #dbeafe;
  color: #1e40af;
}

.badge-danger {
  background-color: var(--danger-bg);
  color: var(--danger-text);
}

.badge-secondary {
  background-color: #f1f5f9;
  color: #475569;
}

/* Stepper Component (Booking Flow) */
.stepper-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 0 4px;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
}

.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  width: 100%;
  height: 2px;
  background-color: var(--border-color);
  z-index: 1;
}

.step-item.completed:not(:last-child)::after {
  background-color: var(--primary);
}

.step-bubble {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  z-index: 2;
  transition: all 0.2s;
}

.step-item.active .step-bubble {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 78, 137, 0.2);
}

.step-item.completed .step-bubble {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
  color: #ffffff;
}

.step-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
}

.step-item.active .step-label {
  color: var(--primary);
  font-weight: 700;
}

/* Form Controls & Cards */
.form-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 16px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-control, .form-select {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--text-dark);
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 78, 137, 0.1);
}

/* Radio Card Options (Select RO Type) */
.radio-cards-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.radio-card {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  transition: all 0.2s;
}

.radio-card input {
  margin-top: 3px;
}

.radio-card.selected, .radio-card:has(input:checked) {
  border-color: var(--primary);
  background-color: #f0f9ff;
}

.radio-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}

.radio-card-desc {
  font-size: 11px;
  color: var(--text-muted);
}

/* Time Slot Pills */
.time-slot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.time-slot-pill {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  background-color: #ffffff;
  transition: all 0.2s;
}

.time-slot-pill.active, .time-slot-pill:has(input:checked) {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Buttons */
.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: opacity 0.2s, transform 0.2s;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-outline {
  width: 100%;
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

/* Review Summary Breakdown */
.price-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.price-row.total {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
  border-top: 1px dashed var(--border-color);
  padding-top: 10px;
  margin-top: 4px;
}

/* UPI Payment Page */
.upi-qr-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.qr-code-wrapper {
  width: 180px;
  height: 180px;
  margin: 0 auto 14px auto;
  padding: 8px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.qr-code-wrapper img, .qr-code-wrapper svg {
  width: 100%;
  height: 100%;
}

.pay-amount-label {
  font-size: 12px;
  color: var(--text-muted);
}

.pay-amount-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.upi-id-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-gradient-start);
  border: 1px solid #bae6fd;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

.copy-btn {
  background: none;
  border: none;
  color: var(--primary-light);
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* UPI Apps Row */
.upi-apps-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 14px 0;
}

.upi-app-badge {
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dark);
}

/* Upload dropzone */
.file-upload-box {
  border: 2px dashed #93c5fd;
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  background-color: #f0f9ff;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s;
}

.file-upload-box:hover {
  border-color: var(--primary);
}

.file-upload-icon {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 6px;
}

.file-preview {
  max-width: 100%;
  max-height: 140px;
  border-radius: var(--radius-sm);
  margin-top: 8px;
}

/* My Orders Screen */
.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filter-tab {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background-color: #f1f5f9;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-tab.active {
  background-color: var(--primary);
  color: #ffffff;
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.order-date {
  font-size: 12px;
  color: var(--text-muted);
}

.order-card-service {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.order-card-snippet {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.order-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
}

.track-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

/* Order Details & Vertical Tracking Timeline */
.timeline-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  margin-bottom: 16px;
}

.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 9px;
  bottom: 20px;
  width: 2px;
  background-color: var(--border-color);
}

.timeline-step {
  position: relative;
  margin-bottom: 22px;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-node {
  position: absolute;
  left: -28px;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.timeline-step.completed .timeline-node {
  background-color: #22c55e;
  border-color: #22c55e;
  color: #ffffff;
}

.timeline-step.active .timeline-node {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 78, 137, 0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 78, 137, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(0, 78, 137, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 78, 137, 0); }
}

.timeline-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}

.timeline-step.completed .timeline-title {
  color: #15803d;
}

.timeline-step.active .timeline-title {
  color: var(--primary);
}

.timeline-time {
  font-size: 11px;
  color: var(--text-subtle);
  margin-top: 1px;
}

.timeline-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Technician Card */
.technician-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #86efac;
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.technician-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.technician-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #166534;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  border: 2px solid #ffffff;
}

.technician-name {
  font-size: 14px;
  font-weight: 700;
  color: #14532d;
}

.technician-role {
  font-size: 11px;
  color: #166534;
}

.technician-actions {
  display: flex;
  gap: 8px;
}

.tech-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #16a34a;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}

.tech-action-btn:hover {
  transform: scale(1.05);
}

.tech-action-btn.whatsapp {
  color: #25d366;
}

/* Profile Screen */
.profile-header-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
}

.profile-avatar-large {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 78, 137, 0.2);
}

.profile-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}

.profile-mobile {
  font-size: 13px;
  color: var(--text-muted);
}

.profile-menu {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.profile-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-light);
  transition: background-color 0.15s;
}

.profile-menu-item:last-child {
  border-bottom: none;
}

.profile-menu-item:hover, .profile-menu-item:active {
  background-color: #f8fafc;
}

.profile-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-gradient-start);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.profile-item-desc {
  font-size: 11px;
  color: var(--text-muted);
}

.profile-menu-item.logout .profile-item-icon {
  background-color: #fee2e2;
  color: #ef4444;
}

.profile-menu-item.logout .profile-item-title {
  color: #ef4444;
}

/* Welcome / Auth Screen */
.auth-header-splash {
  text-align: center;
  padding: 30px 10px 20px 10px;
}

.splash-logo {
  height: 64px;
  max-width: 240px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
}

.splash-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.splash-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 280px;
  margin: 0 auto;
}

.auth-tabs {
  background-color: #f1f5f9;
  border-radius: var(--radius-full);
  display: flex;
  padding: 4px;
  margin: 20px 0;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab.active {
  background-color: #ffffff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.phone-input-wrap {
  display: flex;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: #ffffff;
}

.phone-prefix {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background-color: #f8fafc;
  border-right: 1px solid var(--border-color);
  font-weight: 600;
  font-size: 14px;
}

.phone-input-wrap input {
  border: none;
  padding: 12px 14px;
  flex: 1;
  font-size: 15px;
  outline: none;
}

/* Fixed Sticky Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%;
  max-width: var(--app-max-width);
  height: var(--bottom-nav-height);
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.06);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  flex: 1;
  height: 100%;
  position: relative;
  transition: color 0.15s;
}

.nav-item.active {
  color: var(--primary-light);
}

.nav-item svg {
  margin-bottom: 3px;
}

/* Flash alerts / toasts */
.toast-alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-alert.success {
  background-color: var(--success-bg);
  color: var(--success-text);
  border: 1px solid #86efac;
}

.toast-alert.error, .toast-alert.danger {
  background-color: var(--danger-bg);
  color: var(--danger-text);
  border: 1px solid #fca5a5;
}

.toast-alert.warning {
  background-color: var(--warning-bg);
  color: var(--warning-text);
  border: 1px solid #fcd34d;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 40px 20px;
}

.empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--bg-gradient-start);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.empty-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.empty-desc {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 260px;
  margin: 0 auto 20px auto;
}
