/* Reconquista Absoluta — Premium UI layer */
:root{
  --blue:#9F1239;
  --blue-dark:#7F1D1D;
  --blue-light:#FFF1F2;
  --white:#FFFFFF;
  --bg:#F7F4F2;
  --surface:#FFFFFF;
  --surface-2:#FCFAF9;
  --border:#E8E0DC;
  --text:#201A18;
  --text-secondary:#6F625D;
  --text-muted:#9B8D87;
  --red:#BE123C;
  --red-light:#FFF1F2;
  --green:#166534;
  --green-light:#F0FDF4;
  --amber:#A16207;
  --amber-light:#FFFBEB;
  --gold:#B58A52;
  --gold-light:#F8F0E4;
  --ink:#171211;
  --radius:18px;
  --radius-lg:24px;
  --radius-sm:12px;
  --shadow:0 14px 40px rgba(45,31,27,.07);
  --shadow-hover:0 18px 44px rgba(45,31,27,.12);
  --max-w:480px;
}

html{background:#211A18;scroll-behavior:smooth}
body{
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  background:radial-gradient(circle at 50% -10%,#4B312B 0,#241C1A 38%,#171211 100%);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
button,input,a{-webkit-tap-highlight-color:transparent}
button,a{touch-action:manipulation}
.app-container{
  min-height:100dvh;
  background:linear-gradient(180deg,#FBF8F6 0%,#F7F4F2 100%);
  box-shadow:0 0 80px rgba(0,0,0,.28);
  overflow:hidden;
}
.page{min-height:100dvh}
.page-content{padding:22px 20px calc(112px + env(safe-area-inset-bottom))}
.fade-in{animation:premiumFade .42s cubic-bezier(.2,.8,.2,1)}
@keyframes premiumFade{from{opacity:0;transform:translateY(9px) scale(.995)}to{opacity:1;transform:none}}

/* Welcome */
.welcome-screen{
  min-height:100dvh;
  padding:56px 28px calc(44px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 20% 5%,rgba(181,138,82,.18),transparent 27%),
    radial-gradient(circle at 90% 30%,rgba(159,18,57,.13),transparent 34%),
    linear-gradient(180deg,#221918 0%,#171211 100%);
  color:#fff;
}
.welcome-screen::before{
  content:"ÁREA EXCLUSIVA";
  position:absolute;top:26px;left:50%;transform:translateX(-50%);
  color:#D9B98A;font-size:10px;font-weight:800;letter-spacing:2.2px;white-space:nowrap;
}
.welcome-icon{
  width:76px;height:76px;margin-bottom:22px;
  background:linear-gradient(145deg,#B58A52,#8D6538);
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 18px 50px rgba(181,138,82,.25),inset 0 1px rgba(255,255,255,.3);
}
.welcome-icon svg{width:34px;height:34px}
.welcome-title{color:#C9BBB5;font-size:12px;text-transform:uppercase;letter-spacing:1.6px;font-weight:700;margin-bottom:10px}
.welcome-product{font-family:Georgia,"Times New Roman",serif;font-size:31px;line-height:1.08;color:#fff;font-weight:600;letter-spacing:-.5px;margin-bottom:16px}
.welcome-subtitle{font-size:14px;line-height:1.6;color:#CFC3BE;max-width:330px;margin-bottom:26px}
.welcome-quote{max-width:340px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.10);color:#E9DFDB;box-shadow:none;backdrop-filter:blur(8px);font-size:13px;line-height:1.65;padding:18px 20px;margin-bottom:24px}
.name-input{max-width:340px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.13);color:#fff;border-radius:15px;padding:17px 18px;margin-bottom:12px}
.name-input::placeholder{color:#998A84}
.name-input:focus{border-color:#C69A60;box-shadow:0 0 0 3px rgba(198,154,96,.12)}
.btn{border-radius:15px;min-height:54px}
.btn-primary{max-width:340px;background:linear-gradient(135deg,#B58A52,#966B38);color:#fff;box-shadow:0 10px 30px rgba(181,138,82,.22)}
.btn-primary:hover{background:linear-gradient(135deg,#C4995E,#A77942)}

/* Quiz */
.quiz-screen{min-height:100dvh;background:linear-gradient(180deg,#FBF8F6,#F4EFEC);padding:34px 20px 44px}
.quiz-screen>p{font-weight:650!important;color:var(--text-secondary)!important}
.quiz-progress{margin-bottom:30px}.quiz-progress-bar{height:7px;background:#EAE1DD;border-radius:20px}.quiz-progress-fill{background:linear-gradient(90deg,#B58A52,#9F1239);border-radius:20px}.quiz-progress-text{color:var(--blue);font-weight:800;font-size:11px}
.quiz-question{margin-bottom:20px}.quiz-question-number{font-size:10px;letter-spacing:1.3px;color:var(--gold);font-weight:900}.quiz-question-text{font-family:Georgia,"Times New Roman",serif;font-size:25px;line-height:1.25;letter-spacing:-.3px;color:var(--ink);font-weight:600}
.quiz-options{gap:10px}.quiz-option{background:#fff;border:1px solid var(--border);border-radius:16px;padding:17px 18px;color:var(--text);box-shadow:0 5px 20px rgba(48,35,30,.03);font-size:14px;line-height:1.35}.quiz-option.selected{background:#FFF7F6;border-color:#9F1239;color:#7A1230;box-shadow:0 0 0 2px rgba(159,18,57,.08)}
.quiz-btn{border-radius:15px;background:#DDD4D0;color:#9C8E88}.quiz-btn.enabled{background:linear-gradient(135deg,#9F1239,#7F1D1D);box-shadow:0 12px 28px rgba(159,18,57,.18)}

/* App top/dashboard */
.brand-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}
.brand-lockup{display:flex;align-items:center;gap:10px}.brand-mark{width:36px;height:36px;border-radius:12px;background:linear-gradient(145deg,#A7773E,#C79B61);display:flex;align-items:center;justify-content:center;color:#fff;box-shadow:0 8px 18px rgba(181,138,82,.2)}
.brand-name{font-family:Georgia,"Times New Roman",serif;font-size:16px;font-weight:700;color:var(--ink);line-height:1}.brand-name small{display:block;font-family:Inter,-apple-system,sans-serif;font-size:8px;letter-spacing:1.2px;color:var(--gold);font-weight:900;margin-top:4px;text-transform:uppercase}
.brand-chip{font-size:10px;font-weight:800;color:#6A5546;background:#F2E9DE;border:1px solid #E8D8C5;border-radius:999px;padding:7px 9px;letter-spacing:.3px}
.dashboard-greeting{margin:2px 0 20px}.dashboard-kicker{font-size:12px;color:var(--text-secondary);margin-bottom:4px}.dashboard-title{font-family:Georgia,"Times New Roman",serif;font-size:29px;line-height:1.16;color:var(--ink);font-weight:600;letter-spacing:-.4px}.dashboard-sub{font-size:13px;color:var(--text-secondary);margin-top:8px;line-height:1.5}
.progress-panel{background:#241B19;color:#fff;border-radius:24px;padding:19px 18px;margin:0 0 14px;box-shadow:0 18px 38px rgba(35,24,21,.16);position:relative;overflow:hidden}.progress-panel::after{content:"";position:absolute;width:120px;height:120px;border:1px solid rgba(255,255,255,.08);border-radius:50%;right:-35px;top:-52px}.progress-top{display:flex;justify-content:space-between;gap:15px;align-items:flex-end;margin-bottom:13px}.progress-eyebrow{font-size:9px;letter-spacing:1.4px;font-weight:900;color:#D7B98D;text-transform:uppercase}.progress-title{font-size:16px;font-weight:700;margin-top:4px}.progress-value{font-family:Georgia,"Times New Roman",serif;font-size:23px;color:#E8CEAA}.progress-track{height:7px;background:rgba(255,255,255,.1);border-radius:20px;overflow:hidden}.progress-bar-value{height:100%;width:0;background:linear-gradient(90deg,#B58A52,#E2C59D);border-radius:20px;transition:width .35s ease}.progress-caption{font-size:10px;color:#AFA09A;margin-top:8px}

.hero-card{background:linear-gradient(145deg,#7F1D1D 0%,#9F1239 60%,#70142B 100%);border:none;border-radius:24px;padding:22px 20px;box-shadow:0 16px 34px rgba(127,29,29,.18);overflow:hidden;margin-bottom:14px}.hero-card::before{width:150px;height:150px;right:-45px;top:-55px;background:radial-gradient(circle,rgba(255,255,255,.16),transparent 68%)}.hero-badge{display:inline-flex;width:auto;height:auto;padding:6px 9px;border-radius:999px;background:rgba(255,255,255,.1);font-size:10px;letter-spacing:.6px;font-weight:900;margin-bottom:13px}.hero-title{font-family:Georgia,"Times New Roman",serif;font-size:21px;line-height:1.22;color:#fff;font-weight:600;max-width:320px}.hero-desc{color:#F3DDE4;font-size:12.5px;line-height:1.58;margin-top:9px}.hero-cta{background:#fff;color:#7F1D1D;border-radius:12px;padding:11px 15px;font-size:12px;font-weight:850;margin-top:15px;box-shadow:0 8px 20px rgba(0,0,0,.08)}
.card{background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:17px 16px;box-shadow:0 7px 20px rgba(45,31,27,.035);margin-bottom:10px}.card.highlight{border-color:#DDC6AA;background:linear-gradient(135deg,#FFFDFB,#FCF7F0)}.card.danger{border-color:#F0D2D9;background:#FFF9FA}.card-icon{width:43px;height:43px;border-radius:13px;background:#F5EDE5;border:1px solid #EADCCD}.card-icon.danger{background:#FCE7EC;border-color:#F7CDD7}.card-title{font-size:14px;font-weight:800}.card-sub{font-size:11.5px;margin-top:3px}.card-arrow{width:29px;height:29px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#F4EEEA;color:#806F67;font-size:13px}

/* Upsell placeholders/cards currently in dashboard */
#page-dashboard a.fade-in[href*="checkout"]{position:relative;background:linear-gradient(180deg,#FFFFFF,#FCFAF9)!important;border:1px solid var(--border)!important;border-radius:20px!important;padding:18px!important;box-shadow:0 8px 24px rgba(45,31,27,.04);overflow:hidden}
#page-dashboard a.fade-in[href*="checkout"]::before{content:"CONTEÚDO PREMIUM";display:inline-flex;font-size:8px;font-weight:900;letter-spacing:1px;color:#87673F;background:#F7EFE4;border:1px solid #EAD9C2;border-radius:999px;padding:5px 8px;margin-bottom:12px}
#page-dashboard a.fade-in[href*="checkout"]>div:first-of-type{margin-bottom:13px!important}
#page-dashboard a.fade-in[href*="checkout"]>div:last-child{background:#241B19!important;color:#fff!important;border:0!important;border-radius:11px!important;padding:10px 14px!important;font-weight:800!important}

/* Header + navigation */
.page-header{height:67px;padding:calc(12px + env(safe-area-inset-top)) 18px 12px;background:rgba(251,248,246,.92);backdrop-filter:blur(16px);border-bottom:1px solid rgba(222,211,205,.8);position:sticky;top:0;z-index:30}
.back-btn{width:38px;height:38px;background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:0 4px 13px rgba(45,31,27,.04)}.back-btn svg{stroke:#7F1D1D!important}.header-title{font-family:Georgia,"Times New Roman",serif;font-size:15px;font-weight:700;color:var(--ink)}
.bottom-nav{max-width:440px;left:50%;transform:translateX(-50%);bottom:10px;height:69px;padding:8px 9px calc(8px + env(safe-area-inset-bottom));border:1px solid rgba(255,255,255,.1);border-radius:22px;background:rgba(34,25,23,.96);backdrop-filter:blur(18px);box-shadow:0 20px 50px rgba(0,0,0,.28);overflow:hidden}.nav-item{color:#AFA19C;font-size:9px;font-weight:700;gap:3px;border-radius:14px}.nav-item.active{color:#F5D7AD;background:rgba(255,255,255,.055)}.nav-item.active::before{display:none}.nav-icon{height:21px}.nav-icon svg{width:20px;height:20px}

/* Modules/content */
.section-label{font-size:10px;letter-spacing:1.35px;text-transform:uppercase;color:var(--gold);font-weight:900;margin:2px 2px 13px}.module-card{border:1px solid var(--border);border-radius:18px;background:#fff;padding:15px 14px;margin-bottom:9px;box-shadow:0 6px 20px rgba(45,31,27,.03)}.module-card.highlight{background:linear-gradient(135deg,#FFFBF6,#F8EFE4);border-color:#E6CEAF}.module-icon{width:42px;height:42px;border-radius:13px;background:#F6F0EC;border:1px solid #E8DED8}.module-icon.play{background:#F8F0E4;border-color:#EAD7BB}.module-icon.play svg{fill:#9B6B31!important}.module-title{font-size:12.5px;line-height:1.3;font-weight:850;color:#2A2220}.module-sub{font-size:10.5px;color:var(--text-secondary);margin-top:3px}.module-arrow{color:#9A8A82;background:#F6F1EE;width:28px;height:28px;border-radius:999px;display:flex;align-items:center;justify-content:center}
.phase-title{font-family:Georgia,"Times New Roman",serif;font-size:25px;line-height:1.2;color:var(--ink);letter-spacing:-.3px}.phase-objective{background:#F7EFE4;border:1px solid #E9D8C1;border-left:3px solid #B58A52;border-radius:15px;color:#5B4736;font-size:12.5px;line-height:1.6;padding:14px 15px}.day-card{background:#fff;border:1px solid var(--border);border-radius:22px;padding:18px 17px;box-shadow:0 9px 26px rgba(45,31,27,.035)}.day-number{background:#2A201D;color:#F2D5AD;border-radius:12px;min-width:43px;height:43px;font-size:11px;font-weight:900;display:flex;align-items:center;justify-content:center}.day-title{font-size:14px;font-weight:850;line-height:1.25}.day-meta{font-size:10.5px;margin-top:4px;color:var(--text-secondary)}.day-section-title{font-size:11px;letter-spacing:.3px;text-transform:uppercase;color:#8D683C;font-weight:900}.day-section-title::before{background:#B58A52}.day-text{font-size:12.5px;line-height:1.65;color:#554A46}.example-box,.rules-box,.highlight-box,.final-day,.tip-box{border-radius:16px;padding:15px;background:#FBF7F3;border:1px solid #ECE2DB}.example-box{border-left:3px solid #B58A52}.rules-box{background:#FFF8F8;border-color:#F0DBDF}.highlight-box{background:#F7EFE4;border-color:#E8D5BB}.final-day{background:#24201D;color:#F4EDEA;border:0}.final-title{color:#E7C79A}.final-text{color:#D8CDC8}.divider{height:1px;background:#E8E0DC;margin:15px 8px}
.day-complete{width:100%;margin-top:15px;padding:11px 12px;border-radius:12px;border:1px solid #E5D8CC;background:#FBF7F3;color:#73593C;font-size:11px;font-weight:850;cursor:pointer}.day-complete.done{background:#1F3B2C;border-color:#1F3B2C;color:#E7F6EC}.day-complete.done::before{content:"✓ ";font-weight:900}
.schedule-card{border:1px solid var(--border);border-radius:22px;background:#fff;box-shadow:0 9px 26px rgba(45,31,27,.035)}.schedule-title{font-size:15px;font-family:Georgia,"Times New Roman",serif;color:var(--ink)}.schedule-title::before{background:#B58A52}.day-badge{background:#F7EFE4;color:#805B30;border-radius:10px}.day-badge.bonus{background:#2A201D;color:#E8C99F}.phase-name{font-size:11.5px}.phase-action{font-size:10.5px}

/* Diagnostic/profile */
.diagnostico-header{padding-top:12px}.diagnostico-icon{background:#F7EFE4;border:1px solid #EADAC4;border-radius:18px;box-shadow:none}.diagnostico-title{font-family:Georgia,"Times New Roman",serif;font-size:24px;color:var(--ink)}.diagnostico-card{border:1px solid var(--border);border-radius:22px;background:#fff;box-shadow:0 10px 30px rgba(45,31,27,.04)}.diagnostico-card-icon{background:#F7EFE4}.diagnostico-card-title{color:#7F1D1D}.recommendation-list li::before{color:#A7773E}.grid-item{border:1px solid var(--border);border-radius:16px;background:#fff}.grid-icon{border-radius:12px}
.perfil-header{background:linear-gradient(145deg,#2B211F,#1B1514);padding:42px 20px 30px;color:#fff}.perfil-avatar{background:linear-gradient(145deg,#B58A52,#8B6337);border:2px solid rgba(255,255,255,.2);box-shadow:0 12px 30px rgba(0,0,0,.2)}.perfil-name{font-family:Georgia,"Times New Roman",serif;font-size:24px}.perfil-email{color:#B9AAA4}.profile-option{background:#fff;border:1px solid var(--border);border-radius:16px;margin-bottom:9px;padding:14px}.profile-option-icon{background:#F7EFE4;border-radius:10px;width:34px;height:34px;display:flex;align-items:center;justify-content:center}.profile-option-text{font-size:13px;font-weight:700}.profile-option-arrow{color:#9C8E88}

/* Crisis */
.crisis-card{border-radius:20px!important;padding:17px 16px;box-shadow:none;border:1px solid var(--border);color:var(--text)!important;background:#fff!important}.crisis-card:nth-child(1){background:linear-gradient(135deg,#FFF7F7,#FDEEEF)!important;border-color:#F0D7DB}.crisis-card:nth-child(2){background:linear-gradient(135deg,#FBF7F3,#F4E9DF)!important;border-color:#E9DCCF}.crisis-card:nth-child(3){background:linear-gradient(135deg,#F7F5F4,#EFE9E6)!important}.crisis-icon{background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:13px}.crisis-title{color:#3A2F2C;font-size:13.5px}.crisis-sub{color:#776A65;font-size:10.5px}.crisis-arrow{color:#8D7B73}.crisis-content-card{background:#fff;border:1px solid var(--border);border-radius:18px}.crisis-content-card.red{background:#FFF8F8;border-color:#F1D9DE}.crisis-exercise{background:#241B19;border:none;border-radius:20px}.crisis-exercise-title{color:#ECCFA6}.crisis-step{color:#E7DEDA}

/* Modal */
.modal-overlay{background:rgba(22,16,15,.68);backdrop-filter:blur(5px)}.modal{border-radius:24px;background:#FBF8F6;border:1px solid #E7DDD8;box-shadow:0 30px 80px rgba(0,0,0,.25)}.modal-icon{background:#F7EFE4}.modal-title{font-family:Georgia,"Times New Roman",serif;color:var(--ink)}.modal-btn{border-radius:13px}.modal-btn.primary{background:linear-gradient(135deg,#9F1239,#7F1D1D)}

@media (min-width:700px){.app-container{margin:24px 0;min-height:calc(100vh - 48px);border-radius:32px}.page,.welcome-screen,.quiz-screen{min-height:calc(100vh - 48px)}.bottom-nav{bottom:34px}}
@media (max-width:380px){.page-content{padding-left:16px;padding-right:16px}.dashboard-title{font-size:26px}.welcome-product{font-size:28px}}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
