/* GovCare Citizen App v2.0 — Premium Civic Visual Direction — Full Redesign */

/* ── Premium Civic Design Tokens ── */
.ca-frame {
  --gc-bg: #F6F1EB; --gc-surface: #FFFFFF; --gc-muted: #EDE7DF;
  --gc-border: #DDD5CB; --gc-border-light: rgba(221,213,203,0.5);
  --gc-text: #1A1A1A; --gc-text-secondary: #4A4F54; --gc-text-tertiary: #8A8F94;
  --gc-navy: #0B2E4A; --gc-navy-light: #0F3A5E; --gc-navy-dark: #071E32;
  --gc-shadow-sm: 0 2px 8px rgba(11,46,74,0.05), 0 1px 2px rgba(0,0,0,0.04);
  --gc-shadow-md: 0 6px 24px rgba(11,46,74,0.08), 0 2px 6px rgba(0,0,0,0.03);
  --gc-shadow-lg: 0 12px 48px rgba(11,46,74,0.12);
  --gc-radius-sm: 14px; --gc-radius-md: 18px; --gc-radius-lg: 24px;
  --ca-mono: 'JetBrains Mono', monospace;
  --ca-gold: #C69A2E; --ca-gold-light: #E2C462; --ca-gold-soft: #FFF8E1;
  --ca-primary: #0B2E4A; --ca-cyan: #00B4D8;
  font-family: var(--gc-font-ar); color-scheme: light;
}

/* ── Phone Frame ── */
body.ca-body {
  margin: 0;
  background: linear-gradient(160deg, #060D14 0%, #0B1E2E 30%, #0B2E4A 100%);
  min-height: 100vh; display: flex; justify-content: center; align-items: flex-start;
  padding: 24px 0; font-family: var(--gc-font-ar);
}
.ca-frame {
  width: 390px; height: min(844px, calc(100vh - 48px));
  background: var(--gc-bg); border-radius: 44px; overflow: hidden;
  box-shadow: 0 0 0 11px #060a10, 0 0 0 12.5px rgba(198,154,46,0.12),
    0 40px 100px rgba(0,0,0,0.5), 0 0 60px rgba(198,154,46,0.03);
  display: flex; flex-direction: column; position: relative;
}
@media (max-width: 430px) {
  body.ca-body { background: var(--gc-bg); padding: 0; }
  .ca-frame { width: 100%; height: 100vh; border-radius: 0; box-shadow: none; }
}

/* ── Status Bar ── */
.ca-statusbar {
  height: 50px; background: var(--gc-navy-dark);
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 28px 6px; flex-shrink: 0;
}
.ca-statusbar-time { font-size: 15px; font-weight: 600; color: #fff; font-family: var(--ca-mono); }
.ca-statusbar-icons { display: flex; align-items: center; gap: 5px; color: #fff; }
.ca-statusbar-icons svg { width: 15px; height: 15px; }

/* ── Splash Screen ── */
.ca-splash {
  position: absolute; inset: 0; z-index: 200;
  background: linear-gradient(170deg, #050E18 0%, #0B2E4A 50%, #123D5E 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.ca-splash.exiting { opacity: 0; transform: scale(1.03); pointer-events: none; }
.ca-splash::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 25%, rgba(198,154,46,0.1) 0%, transparent 55%),
    radial-gradient(ellipse at 25% 80%, rgba(0,180,216,0.05) 0%, transparent 45%);
  pointer-events: none;
}
.ca-splash::after {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 340px; height: 340px; border: 1px solid rgba(198,154,46,0.05); border-radius: 50%;
  pointer-events: none;
}
.ca-splash-ring {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 230px; height: 230px; border: 0.5px solid rgba(198,154,46,0.04); border-radius: 50%;
}
.ca-splash-content { position: relative; z-index: 1; padding: 0 40px; }
.ca-splash-brand { font-size: 40px; font-weight: 700; color: #fff; letter-spacing: -0.5px; margin-top: 20px; }
.ca-splash-name { font-size: 16px; font-weight: 700; color: rgba(198,154,46,0.85); margin-top: 2px; }
.ca-splash-line { width: 36px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #C69A2E, #E2C462); margin: 24px auto; }
.ca-splash-tagline { font-size: 14px; font-weight: 500; color: rgba(168,191,207,0.6); line-height: 1.8; max-width: 250px; margin: 0 auto; }
.ca-splash-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 32px; padding: 14px 40px;
  background: linear-gradient(135deg, #C69A2E 0%, #D4AF37 100%); color: #fff;
  font-size: 17px; font-weight: 700; border-radius: 16px; border: none; cursor: pointer;
  font-family: var(--gc-font-ar); box-shadow: 0 6px 28px rgba(198,154,46,0.35); transition: all 0.2s;
}
.ca-splash-cta:active { transform: scale(0.96); }

/* ── Citizen App Line-Height Refinements (Sprint 06B) ── */
.ca-btn-primary, .ca-btn-secondary, .ca-btn-outline { line-height: 1.3; }
.ca-input, .ca-select { line-height: 1.3; }
.ca-label { line-height: 1.4; }
.ca-splash-cta i { width: 18px; height: 18px; }
.ca-splash-footer {
  position: absolute; bottom: 44px; left: 0; right: 0; text-align: center;
  font-size: 10px; color: rgba(168,191,207,0.2); font-family: var(--ca-mono); font-weight: 500; letter-spacing: 0.05em; z-index: 1;
}

/* ── Hero ── */
.ca-hero {
  background: linear-gradient(180deg, var(--gc-navy-dark) 0%, var(--gc-navy) 40%, var(--gc-navy-light) 100%);
  padding: 0 16px 40px; flex-shrink: 0; position: relative; overflow: visible;
}
.ca-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 10%, rgba(198,154,46,0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 85%, rgba(0,180,216,0.04) 0%, transparent 40%);
  pointer-events: none; z-index: 0;
}
.ca-hero::after {
  content: ''; position: absolute; top: -40px; left: -40px; width: 180px; height: 180px;
  border-radius: 50%; border: 1px solid rgba(198,154,46,0.06); pointer-events: none;
}
.ca-hero > * { position: relative; z-index: 1; }
.ca-hero-wave {
  position: absolute; bottom: -1px; left: 0; right: 0; width: 100%; height: 32px; z-index: 2;
}
.ca-hero-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ca-hero-title { font-size: 21px; font-weight: 700; color: #fff; margin-bottom: 4px; line-height: 1.3; }
.ca-hero-subtitle { font-size: 12px; color: rgba(168,191,207,0.7); line-height: 1.7; font-weight: 500; }

/* ── Page Header ── */
.ca-page-header {
  background: linear-gradient(180deg, var(--gc-navy-dark) 0%, var(--gc-navy) 100%);
  padding: 8px 18px 14px; display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.ca-page-title { font-size: 17px; font-weight: 700; color: #fff; flex: 1; }
.ca-back-btn {
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; color: #fff;
  cursor: pointer; flex-shrink: 0; transition: background 0.15s;
}
.ca-back-btn:active { background: rgba(255,255,255,0.15); }
.ca-back-btn i { width: 16px; height: 16px; }

/* ── Screen / Content ── */
.ca-screen { animation: caIn 0.25s ease; flex: 1; display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
@keyframes caIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
.ca-content { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.ca-pad { padding: 12px 14px 82px; display: flex; flex-direction: column; gap: 10px; }

/* ── Bottom Nav ── */
.ca-nav {
  height: 64px; background: rgba(255,255,255,0.92); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  border-top: 1px solid rgba(221,213,203,0.3);
  display: flex; align-items: stretch; position: absolute; bottom: 0; left: 0; right: 0;
  padding-bottom: env(safe-area-inset-bottom, 4px); z-index: 50;
}
.ca-nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; color: #B0B5BA;
  transition: color 0.2s; border: none; background: none; cursor: pointer;
  font-family: inherit; padding: 6px 0; position: relative;
}
.ca-nav-item.active { color: var(--ca-primary); }
.ca-nav-item.active::after {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--ca-primary);
}
.ca-nav-item i { width: 20px; height: 20px; }
.ca-nav-label { font-size: 10px; font-weight: 600; }
.ca-nav-center {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: flex-start; position: relative; border: none; background: none; cursor: pointer; font-family: inherit;
}
.ca-nav-fab {
  width: 48px; height: 48px; border-radius: 50%; margin-top: -18px;
  background: linear-gradient(145deg, var(--gc-navy) 0%, #145DA0 100%);
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 4px 18px rgba(11,46,74,0.35), 0 0 0 3px #fff; border: none;
}
.ca-nav-fab i { width: 22px; height: 22px; }
.ca-nav-center .ca-nav-label { margin-top: 2px; color: var(--ca-primary); font-weight: 700; }

/* ── Cards ── */
.ca-card {
  background: #fff; border-radius: 16px; padding: 14px 16px;
  box-shadow: var(--gc-shadow-sm); border: 1px solid var(--gc-border-light);
}

/* ── Status Chip ── */
.ca-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
  line-height: 1.25;
}
.ca-chip-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

/* ── Buttons ── */
.ca-btn-primary {
  width: 100%; padding: 12px; border-radius: 13px;
  background: linear-gradient(145deg, var(--gc-navy) 0%, #145DA0 100%);
  color: #fff; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: all 0.15s; border: none; cursor: pointer; font-family: var(--gc-font-ar);
  box-shadow: 0 3px 12px rgba(11,46,74,0.15);
}
.ca-btn-primary:active { transform: scale(0.97); box-shadow: 0 2px 8px rgba(11,46,74,0.15); }
.ca-btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.ca-btn-primary i { width: 17px; height: 17px; }
.ca-btn-secondary {
  width: 100%; padding: 11px; border-radius: 13px;
  background: #fff; color: var(--ca-primary); font-size: 13px; font-weight: 700;
  border: 1.5px solid var(--gc-border); display: flex; align-items: center;
  justify-content: center; gap: 7px; cursor: pointer; font-family: var(--gc-font-ar);
  transition: all 0.15s; box-shadow: var(--gc-shadow-sm);
}
.ca-btn-secondary:active { background: var(--gc-muted); transform: scale(0.97); }
.ca-btn-secondary i { width: 16px; height: 16px; }
.ca-btn-outline {
  padding: 9px 16px; border-radius: 12px;
  color: var(--gc-text-secondary); font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 5px;
  border: 1.5px solid var(--gc-border); background: #fff; cursor: pointer; font-family: var(--gc-font-ar);
  transition: all 0.15s;
}
.ca-btn-outline:active { background: var(--gc-muted); }
.ca-btn-outline i { width: 14px; height: 14px; }

/* ── Search ── */
.ca-search {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: rgba(255,255,255,0.12);
  border-radius: 13px; direction: rtl; border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.ca-search--light {
  background: #fff; border: 2px solid var(--gc-border);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: var(--gc-shadow-sm);
}
.ca-search input {
  flex: 1; border: none; background: none; font-size: 13px;
  color: inherit; direction: rtl; outline: none; font-family: var(--gc-font-ar); font-weight: 500;
}
.ca-search input::placeholder { color: inherit; opacity: 0.4; }
.ca-search i { width: 17px; height: 17px; opacity: 0.4; flex-shrink: 0; }

/* ── Summary Grid ── */
.ca-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ca-summary-card {
  background: #fff; border-radius: 14px; padding: 12px; border: 1px solid var(--gc-border-light);
  display: flex; flex-direction: column; gap: 4px; cursor: pointer;
  transition: all 0.15s; position: relative; overflow: hidden;
  box-shadow: var(--gc-shadow-sm);
}
.ca-summary-card:active { box-shadow: var(--gc-shadow-md); transform: scale(0.97); }
.ca-summary-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 2px;
}
.ca-summary-value { font-size: 26px; font-weight: 800; font-family: var(--ca-mono); line-height: 1; }
.ca-summary-label { font-size: 11px; color: var(--gc-text-secondary); font-weight: 600; }

/* ── Tabs ── */
.ca-tabs {
  display: flex; gap: 0; overflow-x: auto; background: #fff;
  border-bottom: 2px solid var(--gc-border-light); flex-shrink: 0;
  -webkit-overflow-scrolling: touch; padding: 0 4px;
}
.ca-tabs::-webkit-scrollbar { display: none; }
.ca-tab {
  padding: 10px 12px; font-size: 12px; font-weight: 600;
  color: #B0B5BA; white-space: nowrap;
  border-bottom: 3px solid transparent; transition: all 0.15s;
  border-top: none; border-left: none; border-right: none; background: none;
  cursor: pointer; font-family: inherit; margin-bottom: -2px;
}
.ca-tab.active { color: var(--ca-primary); border-bottom-color: var(--ca-primary); font-weight: 700; }

/* ── Ticket Card ── */
.ca-tcard {
  background: #fff; border-radius: 16px;
  border: 1px solid var(--gc-border-light); box-shadow: var(--gc-shadow-sm);
  cursor: pointer; transition: all 0.15s; overflow: hidden;
}
.ca-tcard:active { box-shadow: var(--gc-shadow-md); transform: scale(0.985); }
.ca-tcard-stripe { height: 4px; }
.ca-tcard-inner { padding: 10px 14px 12px; }
.ca-tcard-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8px; }
.ca-tcard-id { font-family: var(--ca-mono); font-size: 12px; font-weight: 600; color: var(--gc-text-tertiary); }
.ca-tcard-title { font-size: 14px; font-weight: 700; color: var(--gc-text); margin-bottom: 5px; line-height: 1.4; }
.ca-tcard-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 10px; color: var(--gc-text-tertiary); font-weight: 500; }
.ca-tcard-meta-i { display: flex; align-items: center; gap: 4px; }
.ca-tcard-meta-i i { width: 13px; height: 13px; opacity: 0.45; }

/* ── Category Grid ── */
.ca-cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ca-cat-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 8px; border-radius: 16px; background: #fff;
  border: 1.5px solid var(--gc-border-light); transition: all 0.15s; cursor: pointer;
  box-shadow: var(--gc-shadow-sm);
}
.ca-cat-card:active, .ca-cat-card.sel {
  border-color: var(--ca-primary); background: rgba(11,46,74,0.03);
  box-shadow: 0 0 0 3px rgba(11,46,74,0.06), var(--gc-shadow-sm);
}
.ca-cat-icon {
  width: 44px; height: 44px; border-radius: 14px; background: var(--gc-muted);
  color: var(--gc-text-secondary); display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.ca-cat-card.sel .ca-cat-icon {
  background: linear-gradient(145deg, var(--gc-navy) 0%, #145DA0 100%); color: #fff;
  box-shadow: 0 4px 12px rgba(11,46,74,0.2);
}
.ca-cat-icon i { width: 20px; height: 20px; }
.ca-cat-label { font-size: 12px; font-weight: 700; text-align: center; color: var(--gc-text); }

/* ── Steps ── */
.ca-steps {
  display: flex; align-items: flex-start; padding: 16px 20px 14px;
  background: #fff; border-bottom: 1px solid var(--gc-border-light); flex-shrink: 0;
}
.ca-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; position: relative; }
.ca-step-dot {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; font-family: var(--ca-mono);
  border: 2.5px solid var(--gc-border); color: #B0B5BA;
  background: #fff; position: relative; z-index: 1;
}
.ca-step.active .ca-step-dot {
  border-color: var(--ca-primary); background: var(--ca-primary); color: #fff;
  box-shadow: 0 2px 10px rgba(11,46,74,0.2);
}
.ca-step.done .ca-step-dot { border-color: #168A45; background: #168A45; color: #fff; }
.ca-step-label { font-size: 9px; font-weight: 600; color: #B0B5BA; text-align: center; max-width: 60px; }
.ca-step.active .ca-step-label { color: var(--ca-primary); font-weight: 700; }
.ca-step.done .ca-step-label { color: #168A45; }
.ca-step-line { position: absolute; top: 15px; right: -50%; width: 100%; height: 2.5px; background: var(--gc-border); z-index: 0; border-radius: 2px; }
.ca-step:first-child .ca-step-line { display: none; }
.ca-step.done .ca-step-line { background: #168A45; }
.ca-step.active .ca-step-line { background: linear-gradient(to left, var(--ca-primary), #168A45); }

/* ── Form ── */
.ca-field { margin-bottom: 14px; }
.ca-label { font-size: 13px; font-weight: 700; color: var(--gc-text); margin-bottom: 6px; display: block; }
.ca-input, .ca-select, .ca-textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--gc-border); border-radius: 12px;
  background: #fff; font-size: 13px; color: var(--gc-text);
  direction: rtl; font-family: var(--gc-font-ar); font-weight: 500;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ca-input:focus, .ca-select:focus, .ca-textarea:focus {
  border-color: var(--ca-primary); outline: none; box-shadow: 0 0 0 4px rgba(11,46,74,0.06);
}
.ca-input::placeholder, .ca-textarea::placeholder { color: #B0B5BA; }
.ca-select { cursor: pointer; -webkit-appearance: none; }
.ca-textarea { min-height: 76px; resize: vertical; line-height: 1.7; }
.ca-input.err, .ca-select.err, .ca-textarea.err { border-color: #EF4444; }
.ca-err { font-size: 11px; color: #EF4444; margin-top: 4px; font-weight: 600; }

/* ── Upload ── */
.ca-upload {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 22px; border: 2px dashed var(--gc-border); border-radius: 16px;
  background: var(--gc-muted); color: var(--gc-text-secondary); font-size: 13px;
  font-weight: 600; cursor: pointer; transition: all 0.15s;
}
.ca-upload:active { border-color: var(--ca-primary); color: var(--ca-primary); }
.ca-upload i { width: 26px; height: 26px; }

/* ── Timeline v2 ── */
.ca-tl { display: flex; flex-direction: column; }
.ca-tl-item { display: flex; gap: 12px; min-height: 44px; }
.ca-tl-track { display: flex; flex-direction: column; align-items: center; width: 28px; flex-shrink: 0; }
.ca-tl-node {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2.5px solid #fff; box-shadow: 0 1px 6px rgba(0,0,0,0.08); z-index: 1; flex-shrink: 0;
}
.ca-tl-node i { width: 12px; height: 12px; color: #fff; }
.ca-tl-connector { width: 2.5px; flex: 1; border-radius: 2px; margin: 2px 0; min-height: 8px; }
.ca-tl-body { flex: 1; padding: 3px 0 12px; }
.ca-tl-label { font-size: 13px; font-weight: 700; color: var(--gc-text); line-height: 1.4; }
.ca-tl-time { font-size: 11px; color: #9CA3AF; font-family: var(--ca-mono); font-weight: 500; margin-top: 3px; }
.ca-tl-item.current .ca-tl-node {
  box-shadow: 0 0 0 6px rgba(0,180,216,0.12), 0 2px 10px rgba(0,0,0,0.1);
}
.ca-tl-item.current .ca-tl-body {
  background: linear-gradient(135deg, rgba(0,180,216,0.07), rgba(0,180,216,0.02));
  border-right: 3px solid var(--ca-cyan); border-radius: 12px;
  padding: 8px 12px; margin: -4px -6px 6px;
}

/* ── Info Rows ── */
.ca-info-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--gc-muted); }
.ca-info-row:last-child { border-bottom: none; }
.ca-info-icon {
  width: 34px; height: 34px; border-radius: 10px; background: var(--gc-muted);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--gc-text-secondary);
}
.ca-info-icon i { width: 15px; height: 15px; }
.ca-info-label { font-size: 11px; color: #9CA3AF; font-weight: 500; }
.ca-info-val { font-size: 13px; font-weight: 700; color: var(--gc-text); }

/* ── Detail Hero ── */
.ca-detail-hero {
  border-radius: 20px; padding: 24px 20px; text-align: center;
  box-shadow: var(--gc-shadow-sm); border: 1px solid var(--gc-border-light);
}
.ca-detail-hero-badge {
  width: 52px; height: 52px; border-radius: 16px;
  background: rgba(255,255,255,0.7); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

/* ── Confirmation ── */
.ca-confirm-check {
  width: 70px; height: 70px; border-radius: 50%;
  background: linear-gradient(145deg, #168A45, #22C55E);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
  box-shadow: 0 6px 24px rgba(22,138,69,0.25); animation: confirmPop 0.45s ease;
}
.ca-confirm-check i { width: 34px; height: 34px; color: #fff; }
@keyframes confirmPop { 0%{transform:scale(0.5);opacity:0} 60%{transform:scale(1.08)} 100%{transform:scale(1);opacity:1} }

/* ── Notice / Trust ── */
.ca-notice {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 14px; border-radius: 13px; font-size: 12px; line-height: 1.6; font-weight: 500;
}
.ca-notice i { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.ca-trust {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 12px; border-radius: 11px; background: var(--gc-muted);
  font-size: 10px; color: var(--gc-text-tertiary); line-height: 1.5; font-weight: 500;
}
.ca-trust i { width: 12px; height: 12px; color: #168A45; flex-shrink: 0; }

/* ── Action Card ── */
.ca-action-card {
  padding: 14px 16px; border-radius: 16px; border: 1.5px solid;
  display: flex; flex-direction: column; gap: 10px; box-shadow: var(--gc-shadow-sm);
}
.ca-action-card-title { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.ca-action-card-title i { width: 17px; height: 17px; }

/* ── Empty State ── */
.ca-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 50px 20px; text-align: center;
}
.ca-empty i { width: 48px; height: 48px; color: #B0B5BA; margin-bottom: 14px; }
.ca-empty-title { font-size: 15px; font-weight: 700; color: var(--gc-text); margin-bottom: 4px; }
.ca-empty-text { font-size: 13px; color: var(--gc-text-tertiary); line-height: 1.7; font-weight: 500; }

/* ── Toast ── */
.ca-toast {
  position: absolute; bottom: 74px; left: 14px; right: 14px; z-index: 999;
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-radius: 14px;
  background: linear-gradient(145deg, var(--gc-navy) 0%, #145DA0 100%);
  color: #fff; font-size: 13px; font-weight: 600;
  box-shadow: 0 6px 28px rgba(11,46,74,0.3); animation: caToast 0.3s ease; font-family: var(--gc-font-ar);
}
@keyframes caToast { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:translateY(0); } }
.ca-toast i { width: 17px; height: 17px; color: var(--ca-gold-light); flex-shrink: 0; }

/* ── Review Row ── */
.ca-review-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 0; border-bottom: 1px solid var(--gc-muted); font-size: 14px;
}
.ca-review-row:last-child { border-bottom: none; }
.ca-review-label { color: #9CA3AF; font-weight: 500; }
.ca-review-val { color: var(--gc-text); font-weight: 700; }

/* ── Notifications ── */
.ca-notif-card {
  background: #fff; border-radius: 14px; padding: 12px 14px;
  border: 1px solid var(--gc-border-light); box-shadow: var(--gc-shadow-sm);
  display: flex; gap: 14px; cursor: pointer; transition: all 0.15s; position: relative;
}
.ca-notif-card.unread {
  background: #FEFAF0; border-color: rgba(198,154,46,0.15);
  border-right: 4px solid var(--ca-gold);
}
.ca-notif-card:active { transform: scale(0.985); box-shadow: var(--gc-shadow-md); }
.ca-notif-unread-dot {
  position: absolute; top: 18px; right: 18px; width: 9px; height: 9px;
  border-radius: 50%; background: #EF4444; box-shadow: 0 0 0 2.5px #fff;
}
.ca-notif-icon {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.ca-notif-icon i { width: 18px; height: 18px; }
.ca-notif-body { flex: 1; min-width: 0; }
.ca-notif-title { font-size: 13px; font-weight: 700; color: var(--gc-text); margin-bottom: 2px; line-height: 1.35; }
.ca-notif-msg { font-size: 12px; color: var(--gc-text-secondary); line-height: 1.5; font-weight: 500; margin-bottom: 4px;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.ca-notif-meta { display: flex; align-items: center; gap: 10px; font-size: 11px; color: #9CA3AF; font-weight: 500; }
.ca-notif-ticket { font-family: var(--ca-mono); font-weight: 600; }
.ca-notif-action {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 6px;
  padding: 5px 12px; border-radius: 10px; background: var(--gc-muted);
  color: var(--ca-primary); font-size: 11px; font-weight: 700;
}
.ca-nav-badge {
  position: absolute; top: -4px; left: -6px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: #EF4444; color: #fff;
  font-size: 9px; font-weight: 700; font-family: var(--ca-mono);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(239,68,68,0.3); border: 2px solid #fff;
}
.ca-notif-banner {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px;
  background: #fff; border: 1.5px solid rgba(198,154,46,0.12);
  box-shadow: var(--gc-shadow-sm); cursor: pointer; transition: all 0.15s;
}
.ca-notif-banner:active { box-shadow: var(--gc-shadow-md); }
.ca-notif-banner-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--ca-gold-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ca-latest-update {
  background: #fff; border-radius: 14px; padding: 12px 14px;
  border: 1px solid var(--gc-border-light); border-right: 4px solid var(--ca-cyan);
  box-shadow: var(--gc-shadow-sm);
}
.ca-tcard-new-dot { width: 8px; height: 8px; border-radius: 50%; background: #EF4444; position: absolute; top: 18px; left: 18px; }

/* ── Bottom Sheet ── */
.ca-sheet-overlay {
  position: absolute; inset: 0; z-index: 100;
  background: rgba(5,14,24,0.55);
  display: flex; align-items: flex-end; justify-content: center; animation: caFadeIn 0.2s ease;
}
@keyframes caFadeIn { from { opacity: 0; } to { opacity: 1; } }
.ca-sheet {
  width: 100%; max-height: 88%; background: #fff; border-radius: 24px 24px 0 0;
  padding: 10px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; gap: 8px;
  animation: caSlideUp 0.3s cubic-bezier(0.32,0.72,0,1);
  box-shadow: 0 -10px 48px rgba(11,46,74,0.2);
}
@keyframes caSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.ca-sheet-handle { width: 44px; height: 4px; border-radius: 2px; background: #D1D5DB; margin: 0 auto 14px; flex-shrink: 0; }
.ca-sheet-icon {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

/* ── Star Rating ── */
.ca-stars { display: flex; justify-content: center; gap: 6px; padding: 8px 0 4px; direction: ltr; }
.ca-star { width: 38px; height: 38px; background: none; border: none; cursor: pointer; padding: 3px; transition: transform 0.15s; }
.ca-star svg { width: 100%; height: 100%; transition: all 0.15s; }
.ca-star:active { transform: scale(1.25); }
.ca-star.filled svg { filter: drop-shadow(0 3px 10px rgba(198,154,46,0.4)); }

/* ── Rating Chips ── */
.ca-rating-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 8px 0; }
.ca-rating-chip {
  padding: 7px 16px; border-radius: 999px; border: 1.5px solid var(--gc-border); background: #fff;
  font-size: 12px; font-weight: 600; color: var(--gc-text-secondary); cursor: pointer; font-family: var(--gc-font-ar); transition: all 0.15s;
}
.ca-rating-chip.sel { background: var(--ca-primary); color: #fff; border-color: var(--ca-primary); }
.ca-rating-chip:active { transform: scale(0.96); }

/* ── Reason Options ── */
.ca-reason-option {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px;
  border: 1.5px solid var(--gc-border); background: #fff; font-size: 13px; font-weight: 600;
  color: var(--gc-text); cursor: pointer; font-family: var(--gc-font-ar); transition: all 0.15s; text-align: right;
}
.ca-reason-option.sel { border-color: #F59E0B; background: #FFFBEB; }
.ca-reason-option:active { transform: scale(0.98); }
.ca-reason-radio { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; border: 2px solid #D1D5DB; transition: all 0.15s; box-sizing: border-box; }
.ca-reason-radio.sel { border-color: #F59E0B; border-width: 6px; }

/* ── Resolved Banner ── */
.ca-resolved-banner {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(135deg, #F0FDF4 0%, #E0F8EA 100%);
  border: 1.5px solid rgba(22,138,69,0.12); box-shadow: var(--gc-shadow-sm);
  cursor: pointer; transition: all 0.15s;
}
.ca-resolved-banner:active { box-shadow: var(--gc-shadow-md); transform: scale(0.985); }
.ca-resolved-banner-icon {
  width: 36px; height: 36px; border-radius: 11px;
  background: rgba(22,138,69,0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ── Ticket Card Action ── */
.ca-tcard-action {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 6px; padding: 4px 10px; border-radius: 10px;
  background: #F0FDF4; color: #168A45; font-size: 12px; font-weight: 700;
}
.ca-tcard-action i { width: 13px; height: 13px; }

/* ── Misc ── */
.ca-cta-row { display: flex; gap: 10px; }
.ca-cta-row > * { flex: 1; }
.ca-gold-line { width: 36px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--ca-gold), var(--ca-gold-light)); margin: 0 auto 14px; }
.ca-footer { text-align: center; padding: 20px 0 4px; font-size: 10px; color: #B0B5BA; font-family: var(--ca-mono); font-weight: 500; letter-spacing: 0.04em; }

/* ═══ NEW v2.0 COMPONENTS ═══ */

/* ── Stat Bar (Home) ── */
.ca-stat-bar {
  display: flex; align-items: center; background: #fff; border-radius: 14px;
  padding: 10px 6px; box-shadow: var(--gc-shadow-sm); border: 1px solid var(--gc-border-light);
}
.ca-stat-item { flex: 1; text-align: center; cursor: pointer; }
.ca-stat-item:active { opacity: 0.7; }
.ca-stat-num { font-size: 22px; font-weight: 800; font-family: var(--ca-mono); line-height: 1.1; }
.ca-stat-lbl { font-size: 9px; font-weight: 600; color: var(--gc-text-tertiary); margin-top: 2px; }
.ca-stat-sep { width: 1px; height: 28px; background: var(--gc-border); flex-shrink: 0; }

/* ── Hero CTA Card ── */
.ca-hero-cta-card {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 14px 16px; border-radius: 16px; border: none; cursor: pointer;
  background: linear-gradient(145deg, var(--gc-navy) 0%, #145DA0 60%, #1976D2 100%);
  box-shadow: 0 6px 28px rgba(11,46,74,0.3); transition: all 0.15s;
  font-family: var(--gc-font-ar); text-align: right; position: relative; overflow: hidden;
}
.ca-hero-cta-card::before {
  content: ''; position: absolute; top: -30px; left: -30px; width: 100px; height: 100px;
  border-radius: 50%; background: rgba(255,255,255,0.04); pointer-events: none;
}
.ca-hero-cta-card:active { transform: scale(0.97); box-shadow: 0 3px 16px rgba(11,46,74,0.25); }
.ca-hero-cta-icon {
  width: 42px; height: 42px; border-radius: 13px; flex-shrink: 0;
  background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; color: #fff;
}

/* ── Service Grid (Home) ── */
.ca-svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ca-svc-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 4px; border-radius: 14px; background: #fff; border: 1px solid var(--gc-border-light);
  box-shadow: var(--gc-shadow-sm); cursor: pointer; transition: all 0.15s;
  font-family: inherit; font-size: 14px;
}
.ca-svc-card:active { transform: scale(0.95); box-shadow: var(--gc-shadow-md); }
.ca-svc-icon {
  width: 38px; height: 38px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.ca-svc-label { font-size: 11px; font-weight: 700; color: var(--gc-text); text-align: center; line-height: 1.3; }

/* ── Section Title ── */
.ca-section-title { font-size: 14px; font-weight: 700; color: var(--gc-text); margin-bottom: 8px; }

/* ── Update Card (Home) ── */
.ca-update-card {
  background: #fff; border-radius: 16px; padding: 12px 14px;
  border: 1px solid var(--gc-border-light); box-shadow: var(--gc-shadow-sm);
  cursor: pointer; transition: all 0.15s; position: relative;
}
.ca-update-card:active { transform: scale(0.985); box-shadow: var(--gc-shadow-md); }
.ca-update-header { display: flex; align-items: center; gap: 8px; }
.ca-update-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.ca-update-footer {
  display: flex; gap: 14px; margin-top: 10px; font-size: 11px; color: var(--gc-text-tertiary); font-weight: 500;
}
.ca-update-footer span { display: flex; align-items: center; gap: 4px; }
.ca-update-action {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 10px;
  padding: 6px 14px; border-radius: 12px; background: var(--gc-muted);
  color: var(--ca-primary); font-size: 12px; font-weight: 700;
}

/* ── Civic Card ── */
.ca-civic-card {
  display: flex; gap: 10px; background: #fff; border-radius: 16px; padding: 14px;
  border: 1px solid var(--gc-border-light); border-right: 3px solid var(--ca-gold);
  box-shadow: var(--gc-shadow-sm);
}
.ca-civic-icon {
  width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0;
  background: var(--ca-gold-soft); display: flex; align-items: center; justify-content: center;
}

/* ── Progress Bar (Create) ── */
.ca-progress-bar {
  position: relative; background: #fff; padding: 14px 16px 10px;
  border-bottom: 1px solid var(--gc-border-light); flex-shrink: 0;
}
.ca-progress-bar::before {
  content: ''; position: absolute; top: 8px; left: 16px; right: 16px;
  height: 4px; border-radius: 2px; background: var(--gc-muted);
}
.ca-progress-fill {
  position: absolute; top: 8px; right: 16px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, #168A45, var(--ca-primary)); transition: width 0.4s ease;
}
.ca-progress-labels { display: flex; justify-content: space-between; margin-top: 8px; position: relative; z-index: 1; }
.ca-progress-label { font-size: 9px; font-weight: 600; color: #B0B5BA; text-align: center; }
.ca-progress-label.active { color: var(--ca-primary); font-weight: 700; }
.ca-progress-label.done { color: #168A45; }

/* ── Step Pill ── */
.ca-step-pill {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px;
  background: var(--ca-primary); color: #fff; font-size: 11px; font-weight: 700;
  font-family: var(--ca-mono);
}

/* ── Map Card (Create location) ── */
.ca-map-card {
  border-radius: 16px; overflow: hidden; background: #fff;
  border: 1px solid var(--gc-border-light); box-shadow: var(--gc-shadow-sm);
}
.ca-map-visual {
  height: 80px; background: linear-gradient(135deg, #E8F0FA 0%, #D4E6F6 50%, #E0EAF3 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.ca-map-visual::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 19px, rgba(11,46,74,0.03) 19px, rgba(11,46,74,0.03) 20px),
    repeating-linear-gradient(90deg, transparent, transparent 19px, rgba(11,46,74,0.03) 19px, rgba(11,46,74,0.03) 20px);
  pointer-events: none;
}

/* ── Selected Location ── */
.ca-selected-loc {
  display: flex; align-items: center; gap: 8px; margin-top: 10px;
  padding: 10px 16px; border-radius: 14px; background: #F0FDF4;
  border: 1px solid rgba(22,138,69,0.1); font-size: 13px; font-weight: 700; color: #168A45;
}

/* ── Evidence Card (Create attachments) ── */
.ca-evidence-card {
  border-radius: 16px; overflow: hidden; border: 2px dashed var(--gc-border);
  background: var(--gc-muted); cursor: pointer; transition: all 0.15s;
}
.ca-evidence-card:active { border-color: var(--ca-primary); }
.ca-evidence-area {
  padding: 26px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center;
}

/* ── Review Card (Create review) ── */
.ca-review-card {
  border-radius: 16px; overflow: hidden; background: #fff;
  border: 1px solid var(--gc-border-light); box-shadow: var(--gc-shadow-sm);
}
.ca-review-card-header {
  display: flex; align-items: center; gap: 8px; padding: 14px 18px;
  background: var(--gc-muted); font-size: 14px; font-weight: 700; color: var(--gc-text);
  border-bottom: 1px solid var(--gc-border-light);
}
.ca-review-card .ca-review-row { padding: 11px 18px; }

/* ── Receipt Card (Confirmation) ── */
.ca-receipt-card {
  border-radius: 16px; overflow: hidden; text-align: right;
  background: linear-gradient(180deg, var(--gc-navy-dark) 0%, var(--gc-navy) 100%);
  box-shadow: var(--gc-shadow-lg); position: relative;
}
.ca-receipt-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(198,154,46,0.1) 0%, transparent 50%);
  pointer-events: none;
}
.ca-receipt-header {
  display: flex; align-items: center; gap: 10px; padding: 16px 18px;
  border-bottom: 1px solid rgba(198,154,46,0.15); position: relative; z-index: 1;
}
.ca-receipt-body { padding: 4px 18px 16px; position: relative; z-index: 1; }
.ca-receipt-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 13px; color: rgba(255,255,255,0.6); font-weight: 500;
}
.ca-receipt-row:last-child { border-bottom: none; }
.ca-receipt-row span:last-child { color: #fff; font-weight: 700; }

/* ── Detail Hero v2 (Complaint detail) ── */
.ca-detail-hero-v2 {
  border-radius: 18px; padding: 20px 16px 16px; text-align: center;
  background: var(--hero-bg); position: relative; overflow: hidden;
  border: 1px solid var(--gc-border-light); box-shadow: var(--gc-shadow-sm);
}
.ca-detail-hero-v2-glow {
  position: absolute; top: -40px; right: -40px; width: 140px; height: 140px;
  border-radius: 50%; background: var(--hero-color); opacity: 0.06; pointer-events: none;
}
.ca-detail-hero-v2-badge {
  width: 46px; height: 46px; border-radius: 14px; margin: 0 auto 10px;
  background: rgba(255,255,255,0.8); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06); position: relative; z-index: 1;
}

/* ── Evidence Placeholder (Detail) ── */
.ca-evidence-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 18px; border-radius: 13px; border: 2px dashed var(--gc-border);
  background: var(--gc-muted);
}

/* ── Count Chip (Complaints header) ── */
.ca-count-chip {
  padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.06);
}

/* ── Notification Count Bar ── */
.ca-notif-count-bar {
  display: flex; align-items: center; gap: 10px; padding: 12px 20px;
  background: var(--gc-navy); color: rgba(255,255,255,0.8);
  font-size: 13px; font-weight: 600; flex-shrink: 0;
}
.ca-notif-count-circle {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: #EF4444; color: #fff; font-size: 13px; font-weight: 800;
  font-family: var(--ca-mono); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(239,68,68,0.3);
}

/* ── Premium Polish ── */
.ca-tcard:active { transform: scale(0.985); }
.ca-summary-card:active { transform: scale(0.97); }
.ca-cat-card:active { transform: scale(0.97); }
.ca-btn-primary:active { transform: scale(0.97); }
.ca-btn-secondary:active { transform: scale(0.97); }
