/* ==========================================
   خردتي - Khordty App CSS
   Mobile-First RTL Design
   ========================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #1FAF5A;
  --primary-dark: #148A46;
  --primary-light: #E8F8EE;
  --secondary: #6B7280;
  --bg: #F4F6F9;
  --white: #FFFFFF;
  --text-main: #1F2937;
  --text-sub: #6B7280;
  --text-light: #9CA3AF;
  --border: #E5E7EB;
  --danger: #EF4444;
  --warning: #F59E0B;
  --blue: #3B82F6;
  --copper: #B45309;
  --iron: #374151;
  --alum: #60A5FA;
  --batt: #10B981;
  --elec: #8B5CF6;
  --mix: #6B7280;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
}

body {
  font-family: 'Cairo', sans-serif;
  background: linear-gradient(135deg, #1FAF5A 0%, #0D7A3E 50%, #148A46 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  direction: rtl;
}

/* ==========================================
   APP WRAPPER & PHONE FRAME
   ========================================== */
.app-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 16px;
}

.demo-label {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-label i {
  color: rgba(255,255,255,0.5);
}

@media (max-width: 430px) {
  .demo-label { display: none; }
}

.phone-frame {
  width: 390px;
  max-width: 100%;
  height: 844px;
  max-height: 95vh;
  background: #1a1a1a;
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 0 0 2px #333,
    0 30px 80px rgba(0,0,0,0.5),
    inset 0 0 0 1px rgba(255,255,255,0.05);
  position: relative;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 30px;
  background: #1a1a1a;
  border-radius: 20px;
  z-index: 100;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  background: var(--bg);
  overflow: hidden;
  position: relative;
}

/* Mobile responsive - full screen on small devices */
@media (max-width: 430px) {
  body {
    padding: 0;
    background: var(--bg);
    align-items: flex-start;
  }
  .phone-frame {
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    background: var(--bg);
  }
  .phone-frame::before { display: none; }
  .phone-screen {
    border-radius: 0;
    height: 100vh;
  }
}

/* ==========================================
   SCREENS
   ========================================== */
.screen {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.screen.active {
  display: flex;
}

/* ==========================================
   SPLASH SCREEN
   ========================================== */
.splash-bg {
  flex: 1;
  background: linear-gradient(160deg, #1FAF5A 0%, #0D7A3E 60%, #0A5C2E 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 30px;
  position: relative;
  overflow: hidden;
}

.splash-circles {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
}

.circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.c1 { width: 250px; height: 250px; top: -80px; right: -60px; }
.c2 { width: 180px; height: 180px; bottom: -40px; left: -40px; }
.c3 { width: 120px; height: 120px; top: 50%; right: -30px; }

.splash-content {
  text-align: center;
  color: white;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Old logo-icon kept for backward compat */
.logo-icon {
  display: none;
}

.app-name {
  font-size: 42px;
  font-weight: 900;
  color: white;
  letter-spacing: -1px;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.app-tagline {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  margin-top: 4px;
}

.splash-loader {
  margin-top: 60px;
  width: 200px;
  z-index: 1;
}

.loader-bar {
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  background: white;
  border-radius: 2px;
  animation: loadProgress 2.5s ease-in-out forwards;
}

@keyframes loadProgress {
  0% { width: 0%; }
  100% { width: 100%; }
}

.splash-version {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  margin-top: 20px;
  z-index: 1;
}

/* ==========================================
   ONBOARDING
   ========================================== */
.onboarding-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: white;
  overflow: hidden;
}

.onboarding-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 16px;
  background: linear-gradient(160deg, #1FAF5A 0%, #0D7A3E 100%);
}

.onboarding-logo-img {
  width: 160px;
  max-width: 70%;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.2));
}

.skip-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  background: none;
  border: none;
  color: var(--text-sub);
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  cursor: pointer;
  z-index: 10;
  padding: 8px 12px;
}

.onboarding-slides {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 30px;
  text-align: center;
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.4s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.slide-illustration {
  margin-bottom: 30px;
}

.illus-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  margin: 0 auto;
}

.illus-circle.green { background: var(--primary-light); color: var(--primary); }
.illus-circle.blue { background: #EFF6FF; color: var(--blue); }
.illus-circle.orange { background: #FFF7ED; color: #F97316; }

.slide h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.slide p {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.7;
}

.onboarding-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 20px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--border);
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  background: var(--primary);
  width: 24px;
}

.onboarding-btns {
  padding: 0 24px 40px;
}

/* ==========================================
   AUTH SCREENS
   ========================================== */
.auth-screen {
  flex: 1;
  overflow-y: auto;
  background: white;
  padding-bottom: 40px;
}

.auth-header {
  background: linear-gradient(160deg, #1FAF5A, #0D7A3E);
  padding: 60px 24px 30px;
  text-align: center;
  color: white;
  position: relative;
}

.auth-header .back-btn {
  position: absolute;
  top: 60px;
  right: 20px;
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-sm {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 900;
  color: white;
  margin-bottom: 16px;
}

.logo-sm i {
  background: rgba(255,255,255,0.2);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.auth-header h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
}

.auth-header p {
  font-size: 14px;
  opacity: 0.85;
}

.auth-form {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

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

.form-group label i {
  color: var(--primary);
  margin-left: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  color: var(--text-main);
  background: white;
  transition: border-color 0.2s;
  direction: rtl;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31,175,90,0.1);
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-group.half {
  flex: 1;
}

.input-with-icon {
  position: relative;
}

.input-with-icon input {
  padding-left: 44px;
}

.toggle-pass {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-sub);
  cursor: pointer;
  font-size: 15px;
}

.forgot-link {
  background: none;
  border: none;
  color: var(--primary);
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  cursor: pointer;
  text-align: right;
  margin-bottom: 4px;
}

.terms-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-sub);
}

.terms-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.terms-check .link {
  color: var(--primary);
  cursor: pointer;
  font-weight: 600;
}

.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--text-sub);
  margin-top: 8px;
}

.link-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-right: 4px;
}

.radio-group {
  display: flex;
  gap: 20px;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-main);
  cursor: pointer;
}

.radio-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.condition-btns {
  display: flex;
  gap: 8px;
}

.cond-btn {
  flex: 1;
  padding: 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--text-sub);
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.cond-btn.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 24px;
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(31,175,90,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(31,175,90,0.4);
}

.btn-primary:disabled {
  background: var(--border);
  color: var(--text-light);
  box-shadow: none;
  cursor: not-allowed;
}

.btn-primary.full { width: 100%; }

.btn-outline {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-outline.full { width: 100%; }

.btn-ghost {
  background: rgba(255,255,255,0.1);
  color: var(--text-sub);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-ghost.full { width: 100%; }

.btn-danger {
  background: #FEE2E2;
  color: var(--danger);
  border: 1px solid #FECACA;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-danger.full { width: 100%; }

.btn-white {
  background: white;
  color: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-light);
  font-size: 13px;
  margin: 8px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }

/* ==========================================
   MAIN SCREEN LAYOUT
   ========================================== */
.main-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.scrollable-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.scrollable-content::-webkit-scrollbar { display: none; }

/* ==========================================
   PAGE HEADER
   ========================================== */
.page-header {
  background: white;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
  padding-top: 48px;
}

.page-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
}

.header-meta {
  margin-top: 4px;
}

.update-time {
  font-size: 12px;
  color: var(--text-sub);
}

.update-time i {
  color: var(--primary);
}

/* ==========================================
   SUB HEADER
   ========================================== */
.sub-header {
  background: white;
  padding: 14px 16px;
  padding-top: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.sub-header h3 {
  flex: 1;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
}

.back-btn-nav {
  background: var(--bg);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-main);
  cursor: pointer;
}

.step-indicator {
  font-size: 13px;
  color: var(--primary);
  font-weight: 700;
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: 20px;
}

.add-btn {
  background: var(--primary);
  color: white;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
}

.text-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* ==========================================
   APP HEADER (Home)
   ========================================== */
.app-header {
  padding: 12px 20px 0;
  padding-top: 48px;
}

.app-header.green-bg {
  background: linear-gradient(160deg, #1FAF5A, #0D7A3E);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.greeting-sm {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

.user-name {
  font-size: 16px;
  font-weight: 700;
  color: white;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #EF4444;
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.3);
}

/* Hero Banner */
.hero-banner {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: -1px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.15);
}

.hero-text h2 {
  font-size: 20px;
  font-weight: 900;
  color: white;
  line-height: 1.3;
  margin-bottom: 14px;
}

.hero-icon {
  font-size: 60px;
  color: rgba(255,255,255,0.25);
  flex-shrink: 0;
}

/* ==========================================
   SECTIONS
   ========================================== */
.section {
  padding: 16px;
}

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

.section-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.see-all {
  background: none;
  border: none;
  color: var(--primary);
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* ==========================================
   QUICK ACTIONS
   ========================================== */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.quick-card {
  background: white;
  border: none;
  border-radius: var(--radius);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  font-family: 'Cairo', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-main);
}

.quick-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.qc-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.qc-icon.green { background: var(--primary-light); color: var(--primary); }
.qc-icon.yellow { background: #FFF9C4; color: #D97706; }
.qc-icon.blue { background: #EFF6FF; color: var(--blue); }
.qc-icon.orange { background: #FFF7ED; color: #F97316; }

/* ==========================================
   PRICE CARDS
   ========================================== */
.prices-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.price-card {
  background: white;
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  width: 100%;
  text-align: right;
}

.price-card:hover {
  box-shadow: var(--shadow-md);
}

.price-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.price-icon.iron { background: #F3F4F6; color: var(--iron); }
.price-icon.copper { background: #FFF7ED; color: var(--copper); }
.price-icon.alum { background: #EFF6FF; color: var(--alum); }
.price-icon.batt { background: #ECFDF5; color: var(--batt); }
.price-icon.motor { background: #F5F3FF; color: var(--elec); }
.price-icon.elec { background: #F5F3FF; color: var(--elec); }
.price-icon.mix { background: #F9FAFB; color: var(--mix); }

.price-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mat-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.mat-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

.price-change {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.price-change.up { background: #ECFDF5; color: var(--primary); }
.price-change.down { background: #FEF2F2; color: var(--danger); }
.price-change.stable { background: #F9FAFB; color: var(--secondary); }

/* ==========================================
   CATEGORIES GRID
   ========================================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.cat-item {
  background: white;
  border: none;
  border-radius: var(--radius);
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.2s;
}

.cat-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: var(--primary-light);
  color: var(--primary);
}

.cat-icon.copper { background: #FFF7ED; color: var(--copper); }
.cat-icon.alum { background: #EFF6FF; color: var(--alum); }
.cat-icon.batt { background: #ECFDF5; color: var(--batt); }
.cat-icon.elec { background: #F5F3FF; color: var(--elec); }
.cat-icon.mix { background: #F9FAFB; color: var(--mix); }

/* ==========================================
   ACTIVE ORDER CARD
   ========================================== */
.active-order-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  color: white;
}

.order-status-badge {
  font-size: 12px;
  font-weight: 700;
  background: rgba(255,255,255,0.2);
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
}

.order-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.order-num {
  font-size: 15px;
  font-weight: 700;
}

.order-type {
  font-size: 13px;
  opacity: 0.8;
}

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

.order-meta span {
  font-size: 12px;
  opacity: 0.8;
}

.track-btn {
  background: white;
  color: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Tips */
.tips-card {
  background: white;
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  border-right: 4px solid var(--warning);
}

.tip-icon {
  font-size: 22px;
  color: var(--warning);
  flex-shrink: 0;
}

.tip-text {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.5;
}

/* ==========================================
   BOTTOM NAVIGATION
   ========================================== */
.bottom-nav {
  display: flex;
  background: white;
  border-top: 1px solid var(--border);
  padding: 6px 0 20px;
  position: relative;
  z-index: 10;
}

.nav-item {
  flex: 1;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  font-size: 10px;
  color: var(--text-light);
  transition: all 0.2s;
}

.nav-item i {
  font-size: 20px;
}

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

.nav-item.sell-btn {
  padding-top: 0;
  margin-top: -20px;
}

.sell-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  box-shadow: 0 4px 14px rgba(31,175,90,0.4);
  border: 3px solid white;
}

/* ==========================================
   PRICES PAGE
   ========================================== */
.prices-notice {
  margin: 12px 16px;
  background: #FFF9E6;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12px;
  color: #92400E;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.prices-notice i {
  color: var(--warning);
  margin-top: 2px;
  flex-shrink: 0;
}

.full-prices-list {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.full-price-card {
  background: white;
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  width: 100%;
  text-align: right;
}

.full-price-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.fpc-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.fpc-icon.iron { background: #F3F4F6; color: var(--iron); }
.fpc-icon.copper { background: #FFF7ED; color: var(--copper); }
.fpc-icon.alum { background: #EFF6FF; color: var(--alum); }
.fpc-icon.batt { background: #ECFDF5; color: var(--batt); }
.fpc-icon.motor { background: #F5F3FF; color: var(--elec); }
.fpc-icon.elec { background: #F5F3FF; color: var(--elec); }
.fpc-icon.mix { background: #F9FAFB; color: var(--mix); }

.fpc-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fpc-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.fpc-sub {
  font-size: 11px;
  color: var(--text-sub);
}

.fpc-range {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
}

.fpc-price-col {
  text-align: center;
  flex-shrink: 0;
}

.fpc-price {
  display: block;
  font-size: 18px;
  font-weight: 900;
  color: var(--primary);
}

.fpc-unit {
  display: block;
  font-size: 10px;
  color: var(--text-sub);
}

.fpc-change {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.fpc-change.up { background: #ECFDF5; color: var(--primary); }
.fpc-change.down { background: #FEF2F2; color: var(--danger); }
.fpc-change.stable { background: #F9FAFB; color: var(--secondary); }

/* ==========================================
   PRICE DETAIL
   ========================================== */
.detail-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 24px 20px;
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.detail-icon-big {
  width: 70px;
  height: 70px;
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 6px;
}

.detail-price-big {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.detail-price-big span:first-child {
  font-size: 42px;
  font-weight: 900;
}

.detail-unit {
  font-size: 16px;
  opacity: 0.8;
}

.detail-change {
  font-size: 13px;
  background: rgba(255,255,255,0.2);
  padding: 4px 14px;
  border-radius: 20px;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px;
}

.stat-card {
  background: white;
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 11px;
  color: var(--text-sub);
}

.stat-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.chart-section {
  padding: 0 16px 16px;
}

.chart-section h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.mini-chart {
  background: white;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
  margin-bottom: 8px;
}

.bar {
  flex: 1;
  background: var(--primary-light);
  border-radius: 4px 4px 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  min-height: 20px;
  transition: all 0.3s;
}

.bar.active {
  background: var(--primary);
}

.bar span {
  position: absolute;
  top: -18px;
  font-size: 9px;
  color: var(--text-sub);
  white-space: nowrap;
}

.chart-labels {
  display: flex;
  gap: 6px;
  justify-content: space-between;
}

.chart-labels span {
  flex: 1;
  text-align: center;
  font-size: 9px;
  color: var(--text-sub);
}

.detail-types {
  padding: 0 16px 16px;
}

.detail-types h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.type-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  margin: 3px;
}

.detail-note {
  margin: 0 16px;
  background: #FFF9E6;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12px;
  color: #92400E;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* ==========================================
   SELL SCREENS
   ========================================== */
.sell-step-title {
  padding: 20px 16px 8px;
}

.sell-step-title h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.sell-step-title p {
  font-size: 13px;
  color: var(--text-sub);
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 16px;
}

.type-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Cairo', sans-serif;
}

.type-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.type-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

.type-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: var(--primary-light);
  color: var(--primary);
}

.type-icon.iron { background: #F3F4F6; color: var(--iron); }
.type-icon.copper { background: #FFF7ED; color: var(--copper); }
.type-icon.alum { background: #EFF6FF; color: var(--alum); }
.type-icon.batt { background: #ECFDF5; color: var(--batt); }
.type-icon.elec { background: #F5F3FF; color: var(--elec); }
.type-icon.mix { background: #F9FAFB; color: var(--mix); }

.type-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.type-price {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
}

/* Photo upload */
.photo-tips {
  padding: 8px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tip-item {
  font-size: 12px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tip-item i {
  color: var(--primary);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 16px;
}

.add-photo-btn {
  background: white;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  color: var(--text-sub);
  font-family: 'Cairo', sans-serif;
  font-size: 11px;
  transition: all 0.2s;
}

.add-photo-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.add-photo-btn i {
  font-size: 24px;
}

.photo-thumb {
  border-radius: var(--radius-sm);
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--primary);
}

.photo-count {
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-sub);
}

.upload-options {
  display: flex;
  gap: 10px;
  padding: 0 16px;
}

.upload-options .btn-outline {
  flex: 1;
  font-size: 13px;
}

/* Map placeholder */
.map-placeholder {
  margin: 0 16px 12px;
  position: relative;
}

.map-mock {
  height: 180px;
  background: #E8F0E8;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
}

.map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  font-size: 36px;
  color: var(--danger);
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.map-grid { position: absolute; inset: 0; }

.map-street {
  position: absolute;
  background: rgba(255,255,255,0.5);
}

.map-street.h { height: 2px; left: 0; right: 0; }
.map-street.v { width: 2px; top: 0; bottom: 0; }

.current-loc-btn {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}

/* Review */
.review-card {
  margin: 12px 16px;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.review-section {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.review-section:last-child {
  border-bottom: none;
}

.rv-label {
  font-size: 13px;
  color: var(--text-sub);
  min-width: 130px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rv-label i {
  color: var(--primary);
}

.rv-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  flex: 1;
}

.estimate-box {
  margin: 0 16px 12px;
  background: var(--primary);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  color: white;
}

.est-title {
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 6px;
}

.est-price {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 4px;
}

.est-note {
  font-size: 11px;
  opacity: 0.7;
}

.review-notice {
  margin: 0 16px 16px;
  background: #FFF9E6;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12px;
  color: #92400E;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.review-notice i { color: var(--warning); margin-top: 2px; flex-shrink: 0; }

/* ==========================================
   SUCCESS SCREENS
   ========================================== */
.success-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 24px;
  text-align: center;
  overflow-y: auto;
}

.success-icon {
  font-size: 80px;
  color: var(--primary);
  margin-bottom: 20px;
  animation: successPop 0.5s ease-out;
}

@keyframes successPop {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.success-screen h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
}

.success-screen p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 24px;
}

.order-num-box {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 14px 30px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.on-label {
  font-size: 12px;
  color: var(--text-sub);
}

.on-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

.status-timeline {
  width: 100%;
  margin-bottom: 28px;
  text-align: right;
}

.tl-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  position: relative;
}

.tl-item:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 11px;
  width: 2px;
  height: 16px;
  background: var(--border);
}

.tl-item.active::after {
  background: var(--primary-light);
}

.tl-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tl-item.active .tl-dot {
  background: var(--primary);
  border-color: var(--primary);
}

.tl-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  flex: 1;
}

.tl-time {
  font-size: 12px;
  color: var(--text-sub);
}

.booking-detail-box {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bdb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
}

.bdb-item i {
  color: var(--primary);
  width: 20px;
}

/* ==========================================
   QUOTATION
   ========================================== */
.quot-header {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quot-order {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.quot-status-badge {
  background: #FEF9C3;
  color: #854D0E;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.quot-card {
  margin: 0 16px 12px;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.quot-type {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.quot-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.quot-icon.copper { background: #FFF7ED; color: var(--copper); }

.qt-label {
  display: block;
  font-size: 11px;
  color: var(--text-sub);
}

.qt-val {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.quot-price-display {
  padding: 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.qpd-label {
  display: block;
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 4px;
}

.qpd-price {
  display: block;
  font-size: 32px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 4px;
}

.qpd-range {
  font-size: 12px;
  color: var(--text-sub);
}

.quot-notes {
  padding: 14px 16px;
}

.qn-label {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.qn-text {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.5;
}

.quot-notice {
  margin: 0 16px 12px;
  background: #FFF9E6;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12px;
  color: #92400E;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.quot-notice i { color: var(--warning); flex-shrink: 0; margin-top: 2px; }

.quot-actions {
  padding: 0 16px 16px;
}

/* ==========================================
   SCHEDULE
   ========================================== */
.calendar-section {
  padding: 8px 16px 12px;
}

.calendar-section h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.day-picker {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.day-picker::-webkit-scrollbar { display: none; }

.day-btn {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  min-width: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  transition: all 0.2s;
  flex-shrink: 0;
}

.day-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.day-name { font-size: 11px; }
.day-num { font-size: 16px; font-weight: 800; }

.slots-section {
  padding: 0 16px 12px;
}

.slots-section h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.slot-btn {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.2s;
}

.slot-btn i {
  color: var(--text-sub);
  font-size: 16px;
}

.slot-btn.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.slot-btn.active i {
  color: var(--primary);
}

/* ==========================================
   BOOKING CONFIRM
   ========================================== */
.booking-summary {
  margin: 12px 16px;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.bs-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

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

.bs-icon {
  width: 36px;
  height: 36px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 16px;
  flex-shrink: 0;
}

.bs-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.bs-label {
  font-size: 12px;
  color: var(--text-sub);
}

.bs-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.bs-val.green-text { color: var(--primary); }
.green-text { color: var(--primary); }

.booking-notice {
  margin: 0 16px 16px;
  background: var(--primary-light);
  border: 1px solid rgba(31,175,90,0.2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12px;
  color: var(--primary-dark);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.booking-notice i { flex-shrink: 0; margin-top: 2px; }

/* ==========================================
   TRACKING
   ========================================== */
.track-header {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.track-order-num {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.track-status-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
}

.track-status-badge.scheduled {
  background: #EFF6FF;
  color: var(--blue);
}

.track-driver-card {
  margin: 0 16px 12px;
  background: white;
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.driver-avatar {
  font-size: 44px;
  color: var(--text-light);
  flex-shrink: 0;
}

.driver-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

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

.driver-subtitle {
  font-size: 12px;
  color: var(--text-sub);
}

.driver-car {
  font-size: 11px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 4px;
}

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

.icon-action-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: white;
  color: var(--primary);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-action-btn.whatsapp {
  background: #DCFCE7;
  border-color: #86EFAC;
  color: #16A34A;
}

.timeline-card {
  margin: 0 16px 12px;
  background: white;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.timeline-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tl-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  padding-bottom: 14px;
}

.tl-step:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 11px;
  width: 2px;
  height: 14px;
  background: var(--border);
}

.tl-step.done::after {
  background: var(--primary);
}

.tls-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.tls-dot.done {
  background: var(--primary);
  color: white;
}

.tls-dot.active {
  background: var(--blue);
  color: white;
  box-shadow: 0 0 0 4px rgba(59,130,246,0.2);
}

.tls-dot.pending {
  background: var(--border);
  border: 2px solid var(--border);
}

.tls-content {
  flex: 1;
}

.tls-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.tls-time {
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 2px;
}

.track-info-card {
  margin: 0 16px 12px;
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.tic-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
}

.tic-item i {
  color: var(--primary);
}

/* ==========================================
   ORDERS
   ========================================== */
.orders-tabs {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: white;
}

.otab {
  flex: 1;
  background: none;
  border: none;
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
  padding: 7px 4px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.otab.active {
  background: var(--primary-light);
  color: var(--primary);
}

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

.order-card {
  background: white;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  border-right: 4px solid var(--border);
  transition: all 0.2s;
}

.order-card.active-card {
  border-right-color: var(--primary);
}

.order-card.completed-card {
  border-right-color: var(--secondary);
}

.oc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.oc-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.oc-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

.oc-badge.scheduled { background: #EFF6FF; color: var(--blue); }
.oc-badge.quoted { background: #FEF9C3; color: #854D0E; }
.oc-badge.completed { background: #F0FDF4; color: var(--primary-dark); }
.oc-badge.reviewing { background: #F5F3FF; color: var(--elec); }

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

.oc-type {
  display: flex;
  align-items: center;
  gap: 10px;
}

.oc-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.oc-icon.copper { background: #FFF7ED; color: var(--copper); }
.oc-icon.iron { background: #F3F4F6; color: var(--iron); }
.oc-icon.alum { background: #EFF6FF; color: var(--alum); }

.oc-type-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.oc-date {
  display: block;
  font-size: 11px;
  color: var(--text-sub);
}

.oc-date i { color: var(--primary); }

.oc-price {
  font-size: 15px;
  font-weight: 800;
}

.oc-track-btn {
  width: 100%;
  background: var(--primary-light);
  color: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px;
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.oc-completed-info {
  font-size: 12px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================
   PROFILE
   ========================================== */
.profile-header-bg {
  background: linear-gradient(160deg, #1FAF5A, #0D7A3E);
  padding: 60px 20px 24px;
  text-align: center;
  color: white;
}

.profile-avatar-big {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  color: white;
  margin: 0 auto 12px;
  border: 3px solid rgba(255,255,255,0.3);
}

.profile-name {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}

.profile-phone {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 16px;
}

.profile-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 12px 16px;
}

.ps-item {
  text-align: center;
}

.ps-num {
  display: block;
  font-size: 18px;
  font-weight: 800;
}

.ps-label {
  font-size: 11px;
  opacity: 0.7;
}

.ps-divider {
  width: 1px;
  height: 30px;
  background: rgba(255,255,255,0.2);
}

.profile-menu {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pm-item {
  background: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  width: 100%;
  text-align: right;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.pm-icon {
  width: 36px;
  height: 36px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 16px;
  flex-shrink: 0;
}

.pm-icon.danger {
  background: #FEE2E2;
  color: var(--danger);
}

.pm-label {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.pm-label.danger {
  color: var(--danger);
}

.pm-badge {
  background: var(--danger);
  color: white;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pm-arrow {
  color: var(--text-light);
  font-size: 13px;
}

.app-version-footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
  padding: 16px;
}

/* Edit Profile */
.edit-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  gap: 10px;
}

.edit-avatar {
  width: 80px;
  height: 80px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  color: white;
}

.change-photo-btn {
  background: none;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 20px;
  padding: 6px 16px;
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Addresses */
.addr-card {
  background: white;
  border-radius: var(--radius);
  padding: 14px;
  margin: 8px 16px;
  box-shadow: var(--shadow-sm);
  border-right: 4px solid var(--border);
}

.addr-card.default {
  border-right-color: var(--primary);
}

.addr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.addr-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.default-badge {
  font-size: 11px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
}

.addr-text {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.5;
  margin-bottom: 10px;
}

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

.addr-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-sub);
}

.addr-btn.danger {
  color: var(--danger);
  border-color: #FECACA;
  background: #FEF2F2;
}

/* ==========================================
   NOTIFICATIONS
   ========================================== */
.notif-item {
  background: white;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  position: relative;
}

.notif-item.unread {
  background: #FAFFFE;
}

.notif-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.notif-icon.green { background: var(--primary-light); color: var(--primary); }
.notif-icon.blue { background: #EFF6FF; color: var(--blue); }
.notif-icon.orange { background: #FFF7ED; color: #F97316; }
.notif-icon.gray { background: #F9FAFB; color: var(--secondary); }

.notif-content {
  flex: 1;
}

.notif-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.notif-body {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.4;
  margin-bottom: 4px;
}

.notif-time {
  font-size: 11px;
  color: var(--text-light);
}

.notif-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  margin-top: 4px;
}

/* ==========================================
   SUPPORT
   ========================================== */
.support-header {
  text-align: center;
  padding: 30px 20px 16px;
}

.support-icon {
  font-size: 56px;
  color: var(--primary);
  margin-bottom: 14px;
}

.support-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.support-header p {
  font-size: 14px;
  color: var(--text-sub);
}

.support-options {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.support-btn {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.support-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.sb-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.support-btn.whatsapp .sb-icon { background: #DCFCE7; color: #16A34A; }
.support-btn.phone .sb-icon { background: #EFF6FF; color: var(--blue); }
.support-btn.email .sb-icon { background: #F5F3FF; color: var(--elec); }

.sb-text {
  flex: 1;
  text-align: right;
}

.sb-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.sb-sub {
  display: block;
  font-size: 12px;
  color: var(--text-sub);
}

.support-btn i.fa-arrow-left {
  color: var(--text-light);
}

/* FAQ */
.faq-section {
  padding: 0 16px;
}

.faq-section h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.faq-item {
  background: white;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.faq-q {
  padding: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-q i {
  color: var(--text-sub);
  font-size: 13px;
  transition: transform 0.3s;
}

.faq-a {
  display: none;
  padding: 0 14px 14px;
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.faq-item.open .faq-a {
  display: block;
}

.faq-item.open .faq-q i {
  transform: rotate(180deg);
}

/* ==========================================
   LOGO STYLES
   ========================================== */

/* Splash Logo */
.splash-logo-wrap {
  margin-bottom: 10px;
  animation: logoPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

.splash-logo-img {
  width: 240px;
  max-width: 82%;
  object-fit: contain;
  filter: drop-shadow(0 8px 28px rgba(0,0,0,0.3));
  /* Keep original colors - white background of logo shows well on green */
}

@keyframes logoPop {
  0%   { opacity: 0; transform: scale(0.7) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.splash-location {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.splash-location i { color: rgba(255,255,255,0.6); }

/* Auth Logo */
.auth-logo-wrap {
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 4px;
}

.auth-logo-img {
  width: 180px;
  max-width: 78%;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.2));
}

/* Hero Logo in Home Banner */
.hero-logo-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 8px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
}

.hero-logo-img {
  width: 80px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
}

.hero-location-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  border: 1px solid rgba(255,255,255,0.15);
}

.hero-location-tag i { font-size: 10px; }

/* Aden note in register form */
.aden-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--primary-light);
  border: 1px solid rgba(31,175,90,0.25);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--primary-dark);
  margin-bottom: 14px;
}

.aden-note i { color: var(--primary); flex-shrink: 0; margin-top: 1px; }

/* Map city label */
.map-city-label {
  position: absolute;
  bottom: 8px;
  right: 10px;
  background: rgba(31,175,90,0.85);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  z-index: 2;
  backdrop-filter: blur(4px);
}

/* Aden districts badge on price header */
.aden-coverage-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ECFDF5;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(31,175,90,0.2);
  margin: 8px 16px 0;
}

.aden-coverage-badge i { color: var(--primary); }

/* ==========================================
   TOAST
   ========================================== */
.toast {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(31,31,31,0.92);
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
  z-index: 9999;
  backdrop-filter: blur(10px);
  max-width: 80%;
  text-align: center;
  white-space: normal;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
