/* =============================================================================
 * Copioba Travel Companion · Production styles
 * Mesmo design system do beta, organizado e otimizado.
 * =============================================================================*/

:root{
  --bege:#F5F0E8;
  --bege-2:#EAE2D2;
  --bege-3:#DDD2BC;
  --preto:#1A1A1A;
  --dourado:#C9A96E;
  --dourado-escuro:#A58755;
  --grafite:#3C3A36;
  --cinza:#7A766F;
  --cinza-claro:#C5C0B7;
  --vermelho:#C0392B;
  --verde:#3D8B5A;
  --azul:#3B6DAE;
  --branco:#FFFFFF;
  --serif:'Lora', Georgia, serif;
  --sans:'Inter', -apple-system, system-ui, sans-serif;
  --shadow-sm:0 1px 3px rgba(26,26,26,0.06);
  --shadow-md:0 4px 16px rgba(26,26,26,0.08);
  --shadow-lg:0 12px 40px rgba(26,26,26,0.12);
}
*,*::before,*::after{ box-sizing:border-box; -webkit-tap-highlight-color:transparent }
html,body{ height:100%; margin:0; padding:0; overscroll-behavior:none }
body{ font-family:var(--sans); font-weight:400; line-height:1.5;
  color:var(--preto); background:var(--bege);
  -webkit-font-smoothing:antialiased; user-select:none; }
img{ max-width:100%; display:block }
button{ font-family:inherit; cursor:pointer; border:none; background:none; color:inherit; padding:0 }
input,textarea,select{ font-family:inherit }

/* App container */
.app{ max-width:430px; margin:0 auto; min-height:100vh; background:var(--bege);
  position:relative; overflow:hidden; box-shadow:0 0 60px rgba(0,0,0,0.08); }
@media (min-width:600px){
  body{ background:#E8E2D5; padding:24px 0; }
  .app{ min-height:calc(100vh - 48px); border-radius:36px; overflow:hidden; }
}

/* Status bar */
.statusbar{ height:44px; display:flex; align-items:center; justify-content:space-between;
  padding:0 24px; font-size:14px; font-weight:600; color:var(--preto); }
.statusbar-icons{ display:flex; gap:6px; align-items:center }
.statusbar-icons svg{ width:16px; height:16px }

/* Topbar */
.topbar{ display:flex; align-items:center; justify-content:space-between; padding:8px 24px 16px; gap:12px; }
.topbar-greeting{ font-family:var(--serif); font-style:italic; color:var(--dourado-escuro); font-size:13px; }
.topbar-title{ font-family:var(--serif); font-weight:500; color:var(--preto); font-size:24px; line-height:1.1; margin-top:2px; }
.topbar-back{ width:40px; height:40px; border-radius:12px; background:var(--bege-2);
  display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.topbar-back svg{ width:20px; height:20px; color:var(--preto) }
.avatar{ width:40px; height:40px; border-radius:50%;
  background:linear-gradient(135deg, #C9A96E, #8B6F3D);
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-weight:600; font-size:14px; box-shadow:var(--shadow-sm);
  text-transform:uppercase; }

/* Screen system */
.screen{ padding:0 0 96px; display:none;
  animation:fadeIn .35s ease; min-height:calc(100vh - 44px); }
.screen.active{ display:block }
.screen.full{ padding-bottom:24px; min-height:100vh; padding-top:0; }
@keyframes fadeIn{ from{ opacity:0; transform:translateY(8px) } to{ opacity:1; transform:translateY(0) } }

/* Section title */
.section-title{ font-family:var(--serif); font-weight:500; font-size:18px;
  margin:32px 24px 12px; color:var(--preto); }
.section-title .more{ float:right; font-family:var(--sans); font-size:12px;
  color:var(--dourado-escuro); font-weight:500; padding-top:6px; }
.doc-section-title{ font-size:11px; letter-spacing:.08em; color:var(--cinza);
  text-transform:uppercase; font-weight:600; margin:24px 24px 12px; }

/* Hero card */
.hero-card{ margin:0 16px; border-radius:28px; overflow:hidden; background:#1A1A1A;
  position:relative; height:280px; box-shadow:var(--shadow-lg);
  width:calc(100% - 32px); display:block; padding:0; }
.hero-img{ position:absolute; inset:0;
  background:linear-gradient(180deg, transparent 0%, rgba(26,26,26,0.85) 100%),
    radial-gradient(circle at 70% 30%, rgba(201,169,110,0.85) 0%, transparent 60%),
    linear-gradient(135deg, #8B6F3D 0%, #4D3D26 60%, #2A2218 100%); }
.hero-content{ position:absolute; bottom:0; left:0; right:0; padding:24px; color:#F5F0E8; text-align:left; }
.hero-eyebrow{ font-family:var(--serif); font-style:italic; font-size:12px;
  color:var(--dourado); letter-spacing:.04em; margin-bottom:8px; }
.hero-title{ font-family:var(--serif); font-weight:500; font-size:30px; line-height:1.05; margin:0 0 8px; }
.hero-subtitle{ font-size:13px; color:#D6CFBE; opacity:.9 }
.hero-countdown{ position:absolute; top:24px; right:24px;
  background:rgba(245,240,232,0.15); backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px); border:1px solid rgba(245,240,232,0.25);
  border-radius:18px; padding:10px 16px; text-align:center; color:#F5F0E8; }
.countdown-num{ font-family:var(--serif); font-size:28px; font-weight:500; line-height:1 }
.countdown-label{ font-size:10px; letter-spacing:.06em; text-transform:uppercase; margin-top:4px; opacity:.85 }

/* Quick actions */
.actions{ display:grid; grid-template-columns:repeat(4, 1fr); gap:12px; padding:0 16px; }
.action{ background:var(--bege-2); border-radius:18px; padding:16px 8px;
  display:flex; flex-direction:column; align-items:center; gap:8px;
  font-size:11px; color:var(--preto); font-weight:500; text-align:center;
  transition:transform .15s, background .15s; }
.action:active{ transform:scale(0.96); background:var(--bege-3) }
.action-icon{ width:36px; height:36px; border-radius:12px; background:#fff;
  display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow-sm); }
.action-icon svg{ width:20px; height:20px; color:var(--dourado-escuro) }

/* Task cards */
.task-card{ margin:0 16px 12px; background:#fff; border-radius:18px; padding:16px;
  display:flex; gap:12px; align-items:center; box-shadow:var(--shadow-sm);
  width:calc(100% - 32px); text-align:left; }
.task-icon{ width:44px; height:44px; border-radius:14px;
  display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.task-icon.warn{ background:#FBEFD9; color:var(--dourado-escuro) }
.task-icon.info{ background:#E5EBF4; color:var(--azul) }
.task-icon.ok{ background:#E5F0E9; color:var(--verde) }
.task-icon svg{ width:20px; height:20px }
.task-text{ flex:1; min-width:0 }
.task-title{ font-weight:600; font-size:14px; color:var(--preto); margin-bottom:2px }
.task-sub{ font-size:12px; color:var(--cinza) }
.task-cta{ font-size:11px; color:var(--dourado-escuro); font-weight:600; flex-shrink:0 }

/* Message card */
.message-card{ margin:0 16px;
  background:linear-gradient(135deg, var(--bege-2), var(--bege-3));
  border-radius:18px; padding:18px; display:flex; gap:12px; align-items:flex-start;
  width:calc(100% - 32px); text-align:left; }
.message-avatar{ width:40px; height:40px; border-radius:50%;
  background:var(--preto); color:var(--bege);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--serif); font-style:italic; font-size:14px; flex-shrink:0; }
.message-content{ flex:1; min-width:0 }
.message-author{ font-size:12px; color:var(--cinza); margin-bottom:4px }
.message-author b{ color:var(--preto); font-weight:600 }
.message-text{ font-family:var(--serif); font-style:italic; font-size:14px; color:var(--preto); line-height:1.5; }
.message-time{ font-size:11px; color:var(--cinza); margin-top:6px }

/* Trip cards (Minhas viagens) */
.trip-list{ padding:0 16px }
.trip-item{ background:#fff; border-radius:20px; overflow:hidden;
  margin-bottom:14px; box-shadow:var(--shadow-sm); width:100%; text-align:left; }
.trip-item-img{ height:120px; position:relative;
  background:linear-gradient(135deg, #8B6F3D 0%, #2A2218 100%); }
.trip-status{ position:absolute; top:12px; right:12px;
  padding:4px 10px; border-radius:12px; background:rgba(245,240,232,0.95);
  font-size:11px; font-weight:600; color:var(--preto); backdrop-filter:blur(8px); }
.trip-status.upcoming{ color:var(--dourado-escuro) }
.trip-status.past{ color:var(--cinza); background:rgba(245,240,232,0.85); }
.trip-item-meta{ padding:14px 16px }
.trip-item-eyebrow{ font-family:var(--serif); font-style:italic; font-size:12px; color:var(--dourado-escuro); margin-bottom:4px }
.trip-item-title{ font-family:var(--serif); font-weight:500; font-size:18px; color:var(--preto); margin-bottom:4px; line-height:1.25 }
.trip-item-info{ font-size:12px; color:var(--cinza) }

/* Documents */
.docs-warning{ margin:0 16px 20px; background:#FCEEDE; border-radius:14px; padding:12px 14px;
  display:flex; gap:10px; align-items:center; border:1px solid #F2D9B7; }
.docs-warning svg{ width:20px; height:20px; color:#A86C26; flex-shrink:0 }
.docs-warning-text{ font-size:12px; color:#7C4F1F; line-height:1.4 }
.docs-warning-text b{ color:#5A3A12 }

.doc-list{ padding:0 16px }
.doc-item{ background:#fff; border-radius:18px; padding:16px; margin-bottom:10px;
  display:flex; gap:14px; align-items:center; box-shadow:var(--shadow-sm);
  width:100%; text-align:left; transition:transform .15s; }
.doc-item:active{ transform:scale(0.98) }
.doc-icon{ width:44px; height:44px; border-radius:12px;
  display:flex; align-items:center; justify-content:center; flex-shrink:0; color:#fff;
  font-family:var(--serif); font-weight:500; font-size:11px; letter-spacing:.04em; }
.doc-icon svg{ width:22px; height:22px }
.doc-info{ flex:1; min-width:0 }
.doc-name{ font-weight:600; font-size:14px; color:var(--preto); margin-bottom:2px }
.doc-meta{ font-size:12px; color:var(--cinza) }
.doc-status{ font-size:11px; padding:4px 8px; border-radius:8px; font-weight:600; flex-shrink:0; }
.doc-status.ok{ background:#E5F0E9; color:var(--verde) }
.doc-status.warn{ background:#FBEFD9; color:#A86C26 }
.doc-status.bad{ background:#F8E0DD; color:var(--vermelho) }

.insurance-card{ margin:0 16px 16px;
  background:linear-gradient(135deg, #1A1A1A, #2A2218);
  color:var(--bege); border-radius:22px; padding:20px;
  position:relative; overflow:hidden; }
.insurance-card::before{ content:""; position:absolute; top:-30px; right:-30px;
  width:120px; height:120px; border-radius:50%;
  background:radial-gradient(circle, var(--dourado) 0%, transparent 70%); opacity:.4; }
.insurance-label{ font-family:var(--serif); font-style:italic; font-size:11px; color:var(--dourado); margin-bottom:6px }
.insurance-name{ font-family:var(--serif); font-size:18px; font-weight:500 }
.insurance-policy{ font-size:11px; color:#D6CFBE; margin-top:2px; font-family:'SF Mono', Menlo, monospace }
.insurance-call{ margin-top:18px; display:flex; gap:8px; align-items:center;
  background:var(--dourado); color:var(--preto); padding:12px 16px; border-radius:12px;
  font-weight:600; font-size:13px; width:100%; justify-content:center; }
.insurance-call svg{ width:16px; height:16px }

/* Language */
.lang-progress{ margin:0 16px 16px; padding:18px;
  background:linear-gradient(135deg, var(--dourado), var(--dourado-escuro));
  color:#fff; border-radius:20px; }
.lang-progress-label{ font-family:var(--serif); font-style:italic; font-size:12px; opacity:.85; margin-bottom:6px; }
.lang-progress-num{ font-family:var(--serif); font-size:32px; font-weight:500; line-height:1; }
.lang-progress-text{ font-size:13px; margin-top:4px; opacity:.95 }
.lang-progress-bar{ margin-top:14px; height:6px; background:rgba(255,255,255,0.25); border-radius:3px; overflow:hidden; }
.lang-progress-fill{ height:100%; background:#fff; border-radius:3px; transition:width .35s; }

.module-list{ padding:0 16px }
.module-item{ background:#fff; border-radius:18px; padding:16px; margin-bottom:10px;
  box-shadow:var(--shadow-sm); display:flex; gap:14px; align-items:center; width:100%; text-align:left; }
.module-num{ width:44px; height:44px; border-radius:12px;
  background:var(--bege-2); color:var(--preto);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
  font-family:var(--serif); font-weight:500; font-size:18px; }
.module-num.done{ background:var(--verde); color:#fff }
.module-num.now{ background:var(--dourado); color:#fff }
.module-info{ flex:1 }
.module-name{ font-family:var(--serif); font-weight:500; font-size:15px; color:var(--preto); margin-bottom:2px }
.module-meta{ font-size:11px; color:var(--cinza); display:flex; gap:8px; align-items:center }
.module-meta-dot{ width:3px; height:3px; border-radius:50%; background:var(--cinza-claro) }
.module-arrow{ color:var(--cinza-claro) }

.module-tabs{ display:flex; padding:0 16px 16px; gap:6px; border-bottom:1px solid #E5DFCE;
  overflow-x:auto; scrollbar-width:none; }
.module-tabs::-webkit-scrollbar{ display:none }
.module-tab{ padding:10px 14px; font-size:13px; font-weight:500; color:var(--cinza);
  border-radius:10px; flex-shrink:0; }
.module-tab.active{ color:var(--preto); background:var(--bege-2) }

.vocab-card{ margin:0 16px 12px; background:#fff; border-radius:18px;
  padding:20px; box-shadow:var(--shadow-sm); }
.vocab-en{ font-family:var(--serif); font-weight:500; font-size:22px;
  color:var(--preto); margin:0 0 4px; line-height:1.2; }
.vocab-pron{ font-family:'SF Mono', Menlo, monospace; font-size:13px; color:var(--azul); margin-bottom:12px; }
.vocab-pt{ font-size:14px; color:var(--cinza); font-style:italic;
  padding-bottom:12px; border-bottom:1px solid #EFE9DC; }
.vocab-example{ font-size:13px; color:var(--grafite); line-height:1.5; padding:12px 0 0; }
.vocab-example b{ color:var(--preto); font-weight:600 }
.vocab-actions{ margin-top:14px; display:flex; gap:8px; flex-wrap:wrap; }
.vocab-btn{ display:flex; gap:6px; align-items:center;
  padding:8px 12px; border-radius:10px; background:var(--bege-2);
  font-size:12px; font-weight:500; color:var(--grafite); }
.vocab-btn svg{ width:14px; height:14px }
.vocab-btn:active{ transform:scale(0.96) }
.vocab-btn.audio{ background:var(--azul); color:#fff }
.vocab-btn.fav.active{ background:#F8E0DD; color:var(--vermelho) }

/* Cheat sheet */
.cs-tabs{ display:flex; gap:8px; padding:8px 16px 16px;
  overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
.cs-tabs::-webkit-scrollbar{ display:none }
.cs-tab{ flex-shrink:0; padding:8px 14px; background:var(--bege-2); border-radius:20px;
  font-size:12px; font-weight:500; color:var(--grafite); white-space:nowrap; }
.cs-tab.active{ background:var(--preto); color:var(--bege) }

.cs-search{ margin:0 16px 16px; background:#fff; border-radius:14px;
  padding:10px 14px; display:flex; gap:10px; align-items:center; box-shadow:var(--shadow-sm); }
.cs-search svg{ width:18px; height:18px; color:var(--cinza) }
.cs-search input{ flex:1; border:none; outline:none; font-size:14px; background:transparent; color:var(--preto); }
.cs-search input::placeholder{ color:var(--cinza-claro) }

.phrase-card{ margin:0 16px 10px; background:#fff; border-radius:18px;
  padding:16px; box-shadow:var(--shadow-sm); }
.phrase-en{ font-family:var(--serif); font-weight:500; font-size:16px;
  color:var(--preto); line-height:1.35; margin-bottom:6px; }
.phrase-pt{ font-size:13px; color:var(--cinza); font-style:italic }
.phrase-meta{ font-size:11px; color:var(--cinza-claro); margin-top:4px;
  text-transform:uppercase; letter-spacing:.04em; }
.phrase-actions{ margin-top:14px; display:flex; gap:8px; padding-top:12px; border-top:1px solid #EFE9DC; }
.phrase-btn{ display:flex; gap:6px; align-items:center;
  padding:6px 10px; border-radius:10px; background:var(--bege-2);
  font-size:12px; font-weight:500; color:var(--grafite); }
.phrase-btn svg{ width:14px; height:14px }
.phrase-btn.fav.active{ background:#F8E0DD; color:var(--vermelho) }
.phrase-btn:active{ transform:scale(0.95) }

/* Itinerário */
.itin-day{ margin:0 16px 24px; }
.itin-day-header{ padding:0 4px; margin-bottom:14px; display:flex; gap:12px; align-items:center; }
.itin-day-num{ font-family:var(--serif); font-style:italic; font-size:14px; color:var(--dourado-escuro); }
.itin-day-date{ font-family:var(--serif); font-weight:500; font-size:18px; color:var(--preto); }
.itin-events{ position:relative }
.itin-events::before{ content:""; position:absolute; left:24px; top:8px; bottom:8px;
  width:2px; background:linear-gradient(180deg, var(--dourado), transparent); }
.itin-event{ background:#fff; border-radius:16px; padding:14px 14px 14px 56px;
  margin-bottom:10px; box-shadow:var(--shadow-sm); position:relative; }
.itin-event::before{ content:""; position:absolute; left:18px; top:18px;
  width:14px; height:14px; border-radius:50%;
  background:var(--dourado); border:3px solid #fff; box-shadow:0 0 0 1px var(--dourado); }
.itin-event.now::before{ background:var(--vermelho); box-shadow:0 0 0 1px var(--vermelho), 0 0 0 6px rgba(192,57,43,0.15) }
.itin-time{ font-size:11px; color:var(--cinza); font-weight:600; letter-spacing:.04em; margin-bottom:4px; }
.itin-event.now .itin-time{ color:var(--vermelho) }
.itin-event.now .itin-time::before{ content:"AGORA · "; font-weight:700; }
.itin-title{ font-family:var(--serif); font-weight:500; font-size:15px; color:var(--preto); margin-bottom:4px; line-height:1.3; }
.itin-place{ font-size:12px; color:var(--cinza) }

/* Checklist */
.cl-progress{ margin:0 16px 16px; padding:18px; background:#fff; border-radius:18px; box-shadow:var(--shadow-sm); }
.cl-progress-row{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:10px }
.cl-progress-num{ font-family:var(--serif); font-size:28px; font-weight:500; color:var(--preto); line-height:1 }
.cl-progress-num span{ color:var(--cinza-claro); font-weight:400; font-size:18px }
.cl-progress-lbl{ font-size:12px; color:var(--cinza); font-style:italic; font-family:var(--serif) }
.cl-bar{ height:6px; background:var(--bege-2); border-radius:3px; overflow:hidden }
.cl-bar-fill{ height:100%; background:var(--dourado); border-radius:3px; transition:width .35s }

.cl-section{ margin:0 16px 16px; background:#fff; border-radius:16px; overflow:hidden; box-shadow:var(--shadow-sm); }
.cl-section-title{ padding:14px 16px 8px; font-size:11px; color:var(--cinza);
  letter-spacing:.08em; text-transform:uppercase; font-weight:600; border-bottom:1px solid #EFE9DC; }
.cl-item{ padding:14px 16px; display:flex; gap:12px; align-items:center;
  border-bottom:1px solid #EFE9DC; width:100%; text-align:left; }
.cl-item:last-child{ border-bottom:none }
.cl-check{ width:22px; height:22px; border-radius:50%; border:2px solid var(--cinza-claro);
  flex-shrink:0; display:flex; align-items:center; justify-content:center; color:#fff; transition:all .2s; }
.cl-check.done{ background:var(--verde); border-color:var(--verde) }
.cl-check svg{ display:none; width:12px; height:12px }
.cl-check.done svg{ display:block }
.cl-text{ flex:1; font-size:14px; color:var(--preto); transition:opacity .2s }
.cl-text.done{ text-decoration:line-through; color:var(--cinza); opacity:.6 }
.cl-due{ font-size:11px; color:var(--cinza); flex-shrink:0 }

/* Notif */
.notif-list{ padding:0 16px }
.notif-section-title{ font-size:11px; letter-spacing:.08em; color:var(--cinza);
  text-transform:uppercase; font-weight:600; margin:24px 8px 10px; }
.notif-item{ background:#fff; border-radius:16px; padding:14px;
  margin-bottom:8px; display:flex; gap:12px; align-items:flex-start;
  box-shadow:var(--shadow-sm); width:100%; text-align:left; }
.notif-item.unread{ background:#FFFCF4; border-left:3px solid var(--dourado) }
.notif-icon{ width:36px; height:36px; border-radius:10px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; }
.notif-icon svg{ width:18px; height:18px }
.notif-icon.gold{ background:#FBEFD9; color:var(--dourado-escuro) }
.notif-icon.blue{ background:#E5EBF4; color:var(--azul) }
.notif-icon.green{ background:#E5F0E9; color:var(--verde) }
.notif-icon.red{ background:#F8E0DD; color:var(--vermelho) }
.notif-text{ flex:1; min-width:0 }
.notif-title{ font-weight:600; font-size:13px; color:var(--preto); margin-bottom:2px }
.notif-msg{ font-size:12px; color:var(--grafite); line-height:1.4 }
.notif-time{ font-size:11px; color:var(--cinza); margin-top:4px }

/* More grid */
.more-grid{ display:grid; grid-template-columns:repeat(2, 1fr); gap:12px; padding:0 16px; }
.more-card{ background:#fff; border-radius:18px; padding:18px;
  box-shadow:var(--shadow-sm); text-align:left;
  display:flex; flex-direction:column; gap:8px; min-height:120px; }
.more-card-icon{ width:40px; height:40px; border-radius:12px;
  background:var(--bege-2); display:flex; align-items:center; justify-content:center; }
.more-card-icon svg{ width:20px; height:20px; color:var(--dourado-escuro) }
.more-card-name{ font-family:var(--serif); font-weight:500; font-size:15px; color:var(--preto); margin-top:auto }
.more-card-desc{ font-size:11px; color:var(--cinza); line-height:1.4 }

/* Bottom nav */
.tabbar{ position:fixed; bottom:0; left:50%; transform:translateX(-50%);
  width:100%; max-width:430px;
  background:rgba(245,240,232,0.92);
  backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  border-top:1px solid rgba(201,169,110,0.2);
  display:flex; padding:8px 0 calc(env(safe-area-inset-bottom, 0) + 8px); z-index:100; }
@media (min-width:600px){ .tabbar{ border-radius:0 0 36px 36px; bottom:24px; } }
.tab{ flex:1; display:flex; flex-direction:column; align-items:center;
  gap:3px; padding:8px 4px; font-size:10px; color:var(--cinza); font-weight:500; }
.tab svg{ width:22px; height:22px }
.tab.active{ color:var(--preto) }
.tab.active svg{ color:var(--dourado-escuro) }

/* SOS FAB */
.sos-fab{ position:fixed; bottom:96px; right:50%; transform:translateX(207px);
  width:56px; height:56px; border-radius:50%;
  background:var(--vermelho); color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 8px 24px rgba(192,57,43,0.35);
  font-weight:700; font-size:13px; letter-spacing:.05em; z-index:99; }
@media (max-width:480px){ .sos-fab{ right:16px; transform:none } }

/* SOS sheet */
.sheet-backdrop{ position:fixed; inset:0; background:rgba(26,26,26,0.5);
  z-index:200; display:none; opacity:0; transition:opacity .25s; }
.sheet-backdrop.open{ display:block; opacity:1 }
.sheet{ position:fixed; bottom:0; left:50%; transform:translate(-50%, 100%);
  width:100%; max-width:430px;
  background:var(--bege); border-radius:28px 28px 0 0;
  z-index:201; transition:transform .35s cubic-bezier(0.4, 0, 0.2, 1);
  padding:16px 16px calc(env(safe-area-inset-bottom, 0) + 24px);
  max-height:85vh; overflow-y:auto; }
.sheet.open{ transform:translate(-50%, 0) }
.sheet-handle{ width:36px; height:4px; border-radius:2px; background:var(--cinza-claro); margin:8px auto 16px }
.sheet-title{ font-family:var(--serif); font-weight:500; font-size:22px; text-align:center; margin:0 0 4px; color:var(--vermelho) }
.sheet-sub{ text-align:center; font-size:13px; color:var(--cinza); margin-bottom:24px }

.sos-action{ background:#fff; border-radius:16px; padding:16px; margin-bottom:10px;
  display:flex; gap:14px; align-items:center; box-shadow:var(--shadow-sm); width:100%; text-align:left; }
.sos-action-icon{ width:44px; height:44px; border-radius:12px;
  display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.sos-action-icon svg{ width:22px; height:22px }
.sos-red .sos-action-icon{ background:#F8E0DD; color:var(--vermelho) }
.sos-blue .sos-action-icon{ background:#E5EBF4; color:var(--azul) }
.sos-gold .sos-action-icon{ background:#FBEFD9; color:var(--dourado-escuro) }
.sos-green .sos-action-icon{ background:#E5F0E9; color:var(--verde) }
.sos-text{ flex:1 }
.sos-name{ font-weight:600; font-size:14px; color:var(--preto) }
.sos-detail{ font-size:12px; color:var(--cinza); margin-top:2px }
.sos-arrow{ color:var(--cinza-claro) }

/* Toast */
.toast{ position:fixed; left:50%; bottom:120px; transform:translate(-50%, 100px);
  background:var(--preto); color:var(--bege);
  padding:12px 20px; border-radius:14px;
  font-size:13px; z-index:300; opacity:0;
  transition:transform .3s, opacity .3s; pointer-events:none;
  text-align:center; max-width:300px; }
.toast.show{ opacity:1; transform:translate(-50%, 0) }

/* Offline indicator */
.offline-bar{ position:fixed; top:0; left:50%; transform:translateX(-50%);
  width:100%; max-width:430px; background:#5A3A12; color:#FFFCF4;
  padding:6px 16px; font-size:11px; font-weight:500; text-align:center;
  z-index:150; transform:translate(-50%, -100%); transition:transform .3s; }
.offline-bar.show{ transform:translate(-50%, 0) }

/* Auth (login) */
.auth{ height:100vh; padding:60px 32px 24px;
  display:flex; flex-direction:column; justify-content:space-between;
  background:var(--bege); }
.auth-logo{ font-family:var(--sans); font-weight:300; letter-spacing:.32em;
  font-size:13px; color:var(--preto); text-align:center; margin-bottom:48px; }
.auth-eyebrow{ font-family:var(--serif); font-style:italic; color:var(--dourado-escuro); font-size:13px; margin-bottom:6px; }
.auth-title{ font-family:var(--serif); font-weight:500; font-size:30px; line-height:1.1; margin:0 0 36px; }
.auth-field{ margin-bottom:20px }
.auth-field label{ display:block; font-size:11px; color:var(--cinza); letter-spacing:.04em;
  text-transform:uppercase; font-weight:600; margin-bottom:6px; }
.auth-field input{ width:100%; padding:14px 16px; border:1px solid var(--bege-3);
  border-radius:12px; font-size:15px; background:#fff; color:var(--preto);
  outline:none; transition:border-color .2s; }
.auth-field input:focus{ border-color:var(--dourado) }
.auth-cta{ width:100%; padding:16px; background:var(--preto); color:var(--bege);
  border-radius:14px; font-weight:600; font-size:15px; }
.auth-cta:disabled{ opacity:.5 }
.auth-divider{ display:flex; align-items:center; gap:12px; margin:24px 0;
  color:var(--cinza); font-size:12px; }
.auth-divider::before, .auth-divider::after{ content:""; flex:1; height:1px; background:var(--bege-3); }
.auth-error{ background:#F8E0DD; color:var(--vermelho); padding:10px 14px;
  border-radius:10px; font-size:13px; margin-bottom:14px; }
.auth-foot{ text-align:center; font-size:13px; color:var(--cinza); margin-top:24px; }
.auth-foot a{ color:var(--dourado-escuro); font-weight:600; text-decoration:none; cursor:pointer }

/* Skeleton */
.skel{ background:linear-gradient(90deg, var(--bege-2) 0%, var(--bege-3) 50%, var(--bege-2) 100%);
  background-size:200% 100%; animation:skel 1.4s infinite ease-in-out; border-radius:8px; }
@keyframes skel{ 0%{ background-position:0% 50%} 100%{ background-position:-200% 50%} }

/* Empty state */
.empty{ text-align:center; padding:48px 32px; color:var(--cinza); }
.empty h3{ font-family:var(--serif); font-weight:500; font-size:18px; color:var(--preto); margin:0 0 8px; }
.empty p{ font-size:13px; line-height:1.5; margin:0 }

/* Profile */
.profile-hero{ text-align:center; padding:32px 24px 24px; }
.profile-avatar{ width:88px; height:88px; border-radius:50%;
  background:linear-gradient(135deg, #C9A96E, #5D4A2D);
  color:#fff; font-size:32px; font-weight:600;
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 14px; box-shadow:var(--shadow-md); text-transform:uppercase; }
.profile-name{ font-family:var(--serif); font-weight:500; font-size:22px; color:var(--preto) }
.profile-mail{ font-size:13px; color:var(--cinza); margin-top:4px }
.profile-stats{ display:grid; grid-template-columns:repeat(3, 1fr); gap:10px;
  padding:0 16px; margin-bottom:16px; }
.profile-stat{ background:#fff; border-radius:14px; padding:14px 8px;
  text-align:center; box-shadow:var(--shadow-sm); }
.profile-stat-num{ font-family:var(--serif); font-size:22px; font-weight:500; color:var(--preto); line-height:1 }
.profile-stat-lbl{ font-size:11px; color:var(--cinza); margin-top:4px }
.profile-list{ padding:0 16px }
.profile-row{ background:#fff; border-radius:14px; padding:14px 16px;
  margin-bottom:6px; display:flex; gap:12px; align-items:center;
  box-shadow:var(--shadow-sm); width:100%; text-align:left; }
.profile-row svg.lead{ width:20px; height:20px; color:var(--dourado-escuro); flex-shrink:0 }
.profile-row-text{ flex:1; font-size:14px; color:var(--preto) }
.profile-row svg.arrow{ width:16px; height:16px; color:var(--cinza-claro) }
