:root {
    --bg-light: #FFF0F5;
    --bg-darker: #FFE4E1;
    --paper: #FFFFFF;
    --paper-soft: #FFF8FA;
    --ink: #2C101A;
    --muted: #8E5A70;
    --primary: #FF1493;
    --primary-glow: #FF69B4;
    --secondary: #FFB6C1;
    --line: rgba(255, 20, 147, 0.15);
    
    --shadow-sm: 0 4px 12px rgba(255, 20, 147, 0.08);
    --shadow-md: 0 12px 32px rgba(255, 20, 147, 0.12);
    --shadow-lg: 0 24px 60px rgba(255, 20, 147, 0.2);
    
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 16px;
    
    --container: 1160px;
    --display: "Inter", -apple-system, sans-serif;
    --body: "Inter", -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--body);
    color: var(--ink);
    background-color: var(--bg-light);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 105, 180, 0.15), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 20, 147, 0.1), transparent 40%),
        url('../img/bg-pattern.png');
    background-size: auto, auto, 250px;
    background-attachment: fixed;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
}

/* Header */
.site-header {
    padding: 24px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 16px 24px;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 1);
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-copy { display: flex; flex-direction: column; }
.brand-copy strong { line-height: 1; }
.brand-copy span { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; font-weight: 600; }

.header-nav { display: flex; gap: 32px; }
.header-nav a { font-weight: 600; font-size: 0.95rem; color: var(--muted); transition: color 0.2s; }
.header-nav a:hover { color: var(--primary); }

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

/* Actions & Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 32px;
    height: 52px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    border: none;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.button-primary, .button {
    background: linear-gradient(135deg, var(--primary), var(--primary-glow));
    color: white;
}

.button-primary:hover, .button:hover {
    box-shadow: 0 14px 30px rgba(255, 20, 147, 0.4);
}

.button-outline {
    background: var(--paper);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.button-outline:hover { background: var(--primary); color: white; }

.button-small { height: 40px; padding: 0 20px; font-size: 0.9rem; }

.text-link { font-weight: 700; color: var(--ink); transition: color 0.2s; }
.text-link:hover { color: var(--primary); }

/* Hero Section */
.hero { padding: 60px 0 80px; }

.hero-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 20, 147, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.1;
    margin-bottom: 24px;
}

.eyebrow-step {
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.92rem;
    padding: 9px 16px;
}

.quiz-step > .eyebrow-step,
.analysis-premium-head > .eyebrow-step {
    margin-top: 8px;
    margin-bottom: 12px;
}

.hero-copy h1 {
    font-size: clamp(2.5rem, 4vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--ink);
    letter-spacing: -0.03em;
    margin: 0 0 24px;
}

.compact-head h2 {
    font-size: clamp(2rem, 3vw, 2.85rem);
    font-weight: 800;
    line-height: 1.08;
    color: var(--ink);
    letter-spacing: -0.03em;
    margin: 0 0 18px;
}

.simple-card h1 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--ink);
    letter-spacing: -0.02em;
    margin: 0 0 16px;
}

.simple-card > p {
    margin-bottom: 32px;
}

.hero-text {
    font-size: 1.15rem;
    color: var(--muted);
    margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 16px; }

/* Slider Autoplay Animation */
.hero-visual {
    position: relative;
    border-radius: var(--radius-xl);
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.8);
}

.slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
}

@keyframes auto-clip {
    0%, 15% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); } /* Full BEFORE (Fat) */
    45%, 55% { clip-path: polygon(0 0, 0% 0, 0% 100%, 0 100%); }   /* Full AFTER (Thin) */
    85%, 100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}

@keyframes auto-handle {
    0%, 15% { left: 100%; } 
    45%, 55% { left: 0%; } 
    85%, 100% { left: 100%; }
}

.slider-image-after {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1; /* Creates stacking context, so labels don't leak out */
}

.slider-image-before {
    position: absolute;
    top: 0; left: 0;
    width: 100%; /* Static 100% width prevents image stretching */
    height: 100%;
    z-index: 2; /* Covers after-image and its labels */
    animation: auto-clip 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.slider-handle-line {
    position: absolute;
    top: 0; left: 100%;
    width: 4px; height: 100%;
    background: white;
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    z-index: 4;
    animation: auto-handle 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.slider-handle-button {
    position: absolute;
    top: 50%; left: 100%;
    transform: translate(-50%, -50%);
    width: 56px; height: 56px;
    background: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(255, 20, 147, 0.4);
    color: var(--primary);
    font-size: 1.5rem;
    z-index: 5;
    animation: auto-handle 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.slider-img {
    position: absolute; top: 0;
    width: 200%; /* Now safely 200% of container width */
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.before-img { left: 0; object-position: left center; }
.after-img { left: -100%; object-position: right center; }

.slider-label {
    position: absolute;
    top: 24px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    font-weight: 800;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 1.4rem;
    box-shadow: var(--shadow-sm);
    z-index: 3;
    opacity: 0.95;
}
.slider-image-before .slider-label { left: 24px; }
.slider-image-after .slider-label { right: 24px; background: var(--primary); color: white; }

/* Beautiful Cards Section */
.benefits-section, .flow-section, .offer-section {
    padding: 80px 0;
}

.compact-head {
    max-width: 700px;
    margin: 0 auto 60px;
    text-align: center;
}

.benefit-grid, .flow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.benefit-card, .flow-card {
    background: var(--paper);
    padding: 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 20, 147, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flow-card {
    display: flex;
    flex-direction: column;
}

.benefit-card:hover, .flow-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-glow));
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 20px;
    margin-bottom: 24px;
    box-shadow: 0 10px 20px rgba(255, 20, 147, 0.3);
}

.benefit-card h3, .flow-card h3 { font-size: 1.5rem; font-weight: 800; margin: 0 0 16px; color: var(--ink); }
.benefit-card p, .flow-card p { color: var(--muted); font-size: 1rem; margin: 0; }

.flow-media {
    margin: -8px -8px 22px;
    border-radius: 26px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,246,251,0.98));
    border: 1px solid rgba(255, 20, 147, 0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
    padding: 8px;
}

.flow-media img {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: top center;
    border-radius: 20px;
}

/* Offer Section with Mockup Image */
.offer-shell {
    padding: 56px;
    background: linear-gradient(135deg, var(--primary), #D10068);
    border-radius: var(--radius-xl);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: center;
    color: white;
    box-shadow: 0 30px 60px rgba(255, 20, 147, 0.3);
    overflow: hidden;
    position: relative;
}

.offer-copy {
    max-width: 560px;
}

.offer-copy h2 {
    font-size: clamp(2rem, 3.4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.08;
    margin: 0 0 20px;
    max-width: 11ch;
}

.offer-copy p {
    max-width: 38ch;
    font-size: 1.08rem;
    line-height: 1.65;
    opacity: 0.92;
    margin-bottom: 28px;
}

.offer-list { margin: 0 0 40px; padding: 0; list-style: none; }
.offer-list li {
    font-size: 1.03rem;
    font-weight: 700;
    line-height: 1.55;
    margin-bottom: 14px;
    padding-left: 32px;
    position: relative;
}
.offer-list li::before {
    content: '★'; position: absolute; left: 0; color: #FFE6F0; font-size: 1.2rem;
}

.offer-mockup {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.offer-shot-frame {
    width: min(100%, 520px);
    margin: 0;
    padding: 14px;
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.08));
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 28px 64px rgba(93, 10, 48, 0.24);
    transform: translateY(-10px);
    transition: transform 0.4s ease;
}

.offer-shot-frame:hover {
    transform: translateY(-18px);
}

.offer-shot-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(67, 7, 34, 0.2);
}

/* Simple Pages (Login, Checkout etc) */
.simple-layout {
    display: grid; place-items: center; min-height: 100vh; padding: 60px 24px;
}

/* Reviews Section */
.reviews-section {
    padding: 80px 0;
    background: transparent;
}

.reviews-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
}

.review-card {
    background: var(--paper);
    padding: 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.8);
    width: calc(33.333% - 22px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 4px 12px rgba(255, 20, 147, 0.2);
}

.review-meta {
    display: flex;
    flex-direction: column;
}

.review-meta strong {
    font-size: 1.05rem;
    color: var(--ink);
    font-weight: 800;
}

.review-result {
    display: inline-block;
    font-size: 0.8rem;
    background: rgba(255, 20, 147, 0.1);
    color: var(--primary);
    padding: 4px 8px;
    border-radius: 999px;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 4px;
}

.review-card p {
    font-size: 1rem;
    color: var(--muted);
    font-style: italic;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1; /* Pushes stars down */
}

.review-stars {
    color: #FFC107;
    font-size: 1.2rem;
    letter-spacing: 4px;
}

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

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-card {
    background: var(--paper);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-sm);
    padding: 24px 32px;
    transition: box-shadow 0.3s;
}

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

.faq-card details {
    width: 100%;
}

.faq-card summary {
    font-size: 1.25rem;
    font-weight: 800;
    cursor: pointer;
    color: var(--ink);
    list-style: none; /* standard */
    outline: none;
    position: relative;
    padding-right: 30px;
}

.faq-card summary::-webkit-details-marker,
.faq-card summary::marker {
    display: none;
}

.faq-card summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s;
}

.faq-card details[open] summary::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

.faq-card p {
    margin-top: 20px;
    color: var(--muted);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Footer Legal */
.footer-legal {
    max-width: 800px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.6;
}

.legal-title {
    margin-bottom: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--ink);
}

.footer-legal p {
    margin: 0 0 12px 0;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: var(--paper);
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 50px 100px rgba(255, 20, 147, 0.2);
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    font-size: 2.2rem;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-content-text h3 {
    color: var(--ink);
    font-size: 1.8rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 24px;
}

.modal-content-text p {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Premium Logo Setup */
.brand-premium {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-premium .brand-svg {
    filter: drop-shadow(0 4px 6px rgba(255, 20, 147, 0.2));
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-title {
    color: var(--ink);
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
}

.brand-subtitle {
    font-size: 0.55rem;
    color: var(--primary);
    letter-spacing: 0.4em;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 2px;
}

/* --- QUIZ STYLES --- */
.quiz-header {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}
.quiz-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--line);
    border-radius: 4px;
    overflow: hidden;
}
.quiz-progress-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.4s ease;
}
.quiz-step {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}
.quiz-step.active {
    display: block;
}
.quiz-subtitle {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    margin-top: -12px;
}
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

/* Base text inputs for quiz steps */
.quiz-step > label,
.quiz-step .input-row > label {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-bottom: 24px;
}
.quiz-step label > span {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 8px;
}
.quiz-step input[type="text"],
.quiz-step input[type="email"],
.quiz-step input[type="tel"],
.quiz-step input[type="number"],
.quiz-step input[type="password"] {
    width: 100%;
    height: 60px;
    border-radius: var(--radius-md);
    border: 2px solid var(--line);
    background: #FFF8FA;
    padding: 0 20px;
    font-size: 1rem;
    transition: all 0.2s;
    font-weight: 500;
    color: var(--ink);
    box-sizing: border-box;
}

.password-field {
    position: relative;
}

.password-field input[type="password"],
.password-field input[type="text"] {
    padding-right: 112px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    height: 42px;
    padding: 0 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 20, 147, 0.14);
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary);
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.password-toggle:hover {
    background: rgba(255, 240, 246, 1);
}
.quiz-step textarea {
    width: 100%;
    border-radius: var(--radius-md);
    border: 2px solid var(--line);
    background: #FFF8FA;
    padding: 14px 16px;
    font-size: 1rem;
    transition: all 0.2s;
    font-weight: 500;
    color: var(--ink);
    resize: vertical;
    min-height: 88px;
    font-family: inherit;
    box-sizing: border-box;
}
.quiz-step input[type="text"]:focus,
.quiz-step input[type="email"]:focus,
.quiz-step input[type="tel"]:focus,
.quiz-step input[type="number"]:focus,
.quiz-step input[type="password"]:focus,
.quiz-step textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 20, 147, 0.15);
}

.quiz-options.grid-cols-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.quiz-radio-card, .quiz-checkbox-card {
    position: relative;
    cursor: pointer;
    background: var(--paper-soft);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    transition: all 0.2s;
    user-select: none;
}
.renewal-step .quiz-radio-card,
.renewal-step .quiz-checkbox-card {
    background: #fff;
    border: 1px solid rgba(87, 19, 45, 0.12);
    border-radius: 20px;
    padding: 18px 20px;
    box-shadow: 0 10px 30px rgba(87, 19, 45, 0.05);
}
.renewal-step .quiz-options {
    margin-bottom: 0;
}
.quiz-radio-card input, .quiz-checkbox-card input {
    position: absolute;
    opacity: 0;
}
.quiz-radio-card:hover, .quiz-checkbox-card:hover {
    background: #fdf5f9;
}
.renewal-step .quiz-radio-card:hover,
.renewal-step .quiz-checkbox-card:hover {
    background: #fff8fb;
    border-color: rgba(255, 20, 147, 0.26);
    transform: translateY(-1px);
}
.renewal-step .quiz-radio-card .card-content,
.renewal-step .quiz-checkbox-card .card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--ink);
    font-weight: 700;
    line-height: 1.45;
}
.renewal-step .quiz-radio-card .card-content strong,
.renewal-step .quiz-checkbox-card .card-content strong {
    font-size: 1rem;
    line-height: 1.3;
}
.renewal-step .quiz-radio-card .card-content small,
.renewal-step .quiz-checkbox-card .card-content small {
    color: #8a6f7f;
    font-size: 0.83rem;
    font-weight: 600;
    line-height: 1.4;
}
.quiz-radio-card input:checked ~ .card-content,
.quiz-checkbox-card input:checked ~ .card-content {
    color: var(--primary);
    font-weight: 700;
}
.renewal-step .quiz-radio-card:has(input:checked),
.renewal-step .quiz-checkbox-card:has(input:checked) {
    border-color: rgba(255, 20, 147, 0.72);
    background: linear-gradient(180deg, rgba(255, 248, 251, 1) 0%, rgba(255, 235, 244, 1) 100%);
    box-shadow: 0 16px 34px rgba(255, 20, 147, 0.14);
}
.quiz-radio-card input:checked ~ .card-content strong,
.quiz-checkbox-card input:checked ~ .card-content strong {
    color: var(--primary);
}
.quiz-radio-card:has(input:checked),
.quiz-checkbox-card:has(input:checked) {
    border-color: rgba(255, 20, 147, 0.72);
    background: rgba(255, 242, 248, 0.92);
    box-shadow: 0 8px 18px rgba(255, 20, 147, 0.12);
}
.quiz-radio-card.detailed .card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.quiz-radio-card.detailed small {
    font-weight: 400;
    color: var(--muted);
    font-size: 0.8rem;
}

/* Spinner and Analysis */
.step-analyzing .analyzing-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
}
.radar-spinner {
    width: 80px;
    height: 80px;
    border: 4px solid var(--line);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

.analyzing-list {
    list-style: none;
    padding: 0;
    margin-top: 24px;
    width: 100%;
}
.analyzing-list li {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    opacity: 0;
}
.analyzing-list li.done {
    opacity: 1;
    transition: opacity 0.5s ease;
}
.analyzing-list li .check {
    color: #4CAF50;
    font-weight: bold;
}

.badge-success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 6px 12px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 12px;
}

.quiz-actions {
    margin-top: 16px;
}

.simple-card {
    background: var(--paper); border-radius: var(--radius-xl); padding: 48px; width: 100%;
    max-width: 500px; box-shadow: var(--shadow-lg); border: 2px solid white;
}
.simple-card-wide { max-width: 1000px; }

.legal-page-card {
    max-width: 940px;
}

.legal-contact-card {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 30px 0 24px;
}

.legal-contact-card > div {
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255, 249, 252, 0.96);
    border: 1px solid rgba(255, 20, 147, 0.08);
}

.legal-contact-card > label {
    display: block;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255, 249, 252, 0.96);
    border: 1px solid rgba(255, 20, 147, 0.08);
}

.legal-contact-card strong {
    display: block;
    margin-top: 8px;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--ink);
}

.legal-contact-card label span {
    display: block;
    margin-bottom: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink);
}

.legal-contact-card label input {
    width: 100%;
    height: 54px;
    border-radius: 14px;
    border: 2px solid var(--line);
    background: white;
    padding: 0 16px;
    font-size: 0.98rem;
    color: var(--ink);
}

.legal-contact-card label input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 20, 147, 0.12);
}

.legal-stack {
    display: grid;
    gap: 16px;
}

.legal-section {
    padding: 22px 24px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(255, 20, 147, 0.05), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 249, 252, 0.98));
    border: 1px solid rgba(255, 20, 147, 0.08);
}

.legal-section h2 {
    margin: 0 0 12px;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--ink);
}

.legal-section p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.65;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.legal-list li {
    position: relative;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.6;
}

.legal-list li::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-glow));
}

.legal-note {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255, 244, 249, 0.96);
    border: 1px solid rgba(255, 20, 147, 0.08);
    color: var(--muted);
    line-height: 1.55;
}

.back-link { display: inline-flex; font-weight: 700; color: var(--muted); font-size: 0.9rem; margin-bottom: 32px; }
.back-link:hover { color: var(--primary); }
.cabinet-shell-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 20px;
}

.cabinet-shell-copy {
    min-width: 0;
}

.cabinet-shell-copy .back-link {
    margin-bottom: 14px;
}

.cabinet-page-title {
    font-size: 2.1rem;
    font-weight: 800;
    margin: 0 0 10px;
}

.cabinet-page-copy {
    color: var(--muted);
    margin: 0;
    max-width: 760px;
    line-height: 1.6;
}

.cabinet-logout-btn {
    flex: 0 0 auto;
    margin-top: 4px;
}

.demo-form { display: flex; flex-direction: column; gap: 24px; margin-top: 32px; }
.demo-form label span { display: block; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.demo-form input { width: 100%; height: 60px; border-radius: var(--radius-md); border: 2px solid var(--line); background: #FFF8FA; padding: 0 20px; font-size: 1rem; transition: all 0.2s; font-weight: 500; color: var(--ink); }
.demo-form input:focus { outline: none; border-color: var(--primary); background: white; box-shadow: 0 0 0 4px rgba(255, 20, 147, 0.15); }
.demo-form .button { margin-top: 24px; }

/* Cabinet Dashboard */
.cabinet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 40px; }
.dashboard-section { margin-bottom: 40px; }
.section-title { font-size: 1.5rem; font-weight: 800; color: var(--ink); margin-bottom: 24px; }

.cabinet-panel {
    background: var(--paper); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md); border: 1px solid white; transition: transform 0.3s, box-shadow 0.3s;
}
.cabinet-panel:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.cabinet-panel-primary { background: linear-gradient(135deg, var(--primary), #D10068); color: white; }

.panel-label { display: inline-flex; background: rgba(255,255,255,0.2); padding: 8px 16px; border-radius: 999px; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: white; margin-bottom: 24px; }
.cabinet-panel-primary h2 { font-size: 2.2rem; font-weight: 800; margin: 0 0 16px; line-height: 1.1; }

.plan-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-top: 1px solid rgba(255,255,255,0.2); border-bottom: 1px solid rgba(255,255,255,0.2); padding: 24px 0; margin-bottom: 24px; }
.meta-item span { display: block; font-size: 0.75rem; text-transform: uppercase; font-weight: 700; opacity: 0.9; margin-bottom: 6px; }
.meta-item strong { font-size: 1.1rem; }

.progress-bar { height: 12px; background: rgba(0,0,0,0.15); border-radius: 999px; overflow: hidden; margin-bottom: 12px; }
.progress-fill { height: 100%; background: white; border-radius: 999px; }
.progress-labels { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.9rem; font-weight: 600; }

.history-item { display: flex; justify-content: space-between; align-items: center; padding: 24px; background: var(--paper); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); margin-bottom: 16px; border: 1px solid var(--line); }
.hi-info strong { display: block; font-size: 1.1rem; font-weight: 800; margin-bottom: 4px; }
.hi-info span { font-size: 0.9rem; color: var(--muted); font-weight: 500; }

/* Cabinet v2 */
.cabinet-v2-top {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    margin-top: 12px;
    margin-bottom: 24px;
}

.cabinet-side-stack {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 24px;
}

.overview-dashboard-v3 {
    align-items: start;
}

.overview-side-stack {
    grid-template-rows: auto auto;
}

.overview-hero-panel {
    background:
        radial-gradient(circle at top right, rgba(255, 20, 147, 0.07), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 248, 251, 0.99));
}

.overview-hero-topline {
    align-items: flex-start;
}

.overview-hero-title {
    margin: 10px 0 0;
    font-size: 2rem;
    line-height: 1.08;
    font-weight: 900;
}

.overview-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.overview-metric-card {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 20, 147, 0.1);
    box-shadow: 0 14px 32px rgba(116, 30, 64, 0.05);
}

.overview-metric-progress {
    background: linear-gradient(180deg, rgba(255, 245, 250, 0.98), rgba(255, 255, 255, 0.96));
    border-color: rgba(255, 20, 147, 0.16);
}

.overview-metric-calories {
    background: linear-gradient(180deg, rgba(255, 250, 242, 0.98), rgba(255, 255, 255, 0.96));
    border-color: rgba(225, 145, 48, 0.18);
}

.overview-metric-steps {
    background: linear-gradient(180deg, rgba(244, 255, 246, 0.98), rgba(255, 255, 255, 0.96));
    border-color: rgba(63, 185, 80, 0.18);
}

.overview-metric-water {
    background: linear-gradient(180deg, rgba(244, 250, 255, 0.98), rgba(255, 255, 255, 0.96));
    border-color: rgba(71, 141, 220, 0.18);
}

.overview-metric-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.overview-metric-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.1rem;
    line-height: 1.2;
    font-weight: 900;
}

.overview-metric-card small {
    display: block;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.overview-focus-strip {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.overview-focus-card {
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 20, 147, 0.08);
}

.overview-focus-card-1 {
    border-left: 4px solid rgba(255, 20, 147, 0.55);
}

.overview-focus-card-2 {
    border-left: 4px solid rgba(63, 185, 80, 0.55);
}

.overview-focus-card-3 {
    border-left: 4px solid rgba(71, 141, 220, 0.55);
}

.overview-focus-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1.3;
}

.overview-focus-card span {
    display: block;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.overview-next-panel {
    background:
        radial-gradient(circle at top right, rgba(255, 20, 147, 0.05), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 248, 251, 0.99));
}

.overview-next-card {
    padding: 16px 18px;
    margin-bottom: 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 245, 250, 0.98), rgba(255, 255, 255, 0.96));
    border: 1px solid rgba(255, 20, 147, 0.14);
    box-shadow: 0 14px 34px rgba(116, 30, 64, 0.05);
}

.overview-next-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
    font-weight: 800;
}

.overview-next-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.overview-actions-list {
    margin-top: 10px;
}

.plan-hero-compact {
    min-height: 520px;
}

.plan-hero-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.status-badge-light {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
}

.compact-meta {
    margin-top: 8px;
}

.progress-wrap {
    margin-top: 8px;
    margin-bottom: 18px;
}

.panel-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.panel-topline h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
}

.small-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(255, 20, 147, 0.1);
    white-space: nowrap;
    flex-shrink: 0;
}

.progress-inline-note {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.4;
}

.today-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.today-stat {
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--paper-soft);
    padding: 12px;
}

.today-stat:nth-child(1) {
    background: linear-gradient(180deg, rgba(255, 250, 242, 0.98), rgba(255, 255, 255, 0.96));
    border-color: rgba(225, 145, 48, 0.15);
}

.today-stat:nth-child(2) {
    background: linear-gradient(180deg, rgba(244, 255, 246, 0.98), rgba(255, 255, 255, 0.96));
    border-color: rgba(63, 185, 80, 0.16);
}

.today-stat:nth-child(3) {
    background: linear-gradient(180deg, rgba(244, 250, 255, 0.98), rgba(255, 255, 255, 0.96));
    border-color: rgba(71, 141, 220, 0.16);
}

.today-stat strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.today-stat span {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.today-checklist {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--ink);
}

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

.actions-list {
    display: grid;
    gap: 10px;
}

.action-form {
    margin: 0;
    width: 100%;
}

.action-btn {
    width: 100%;
    height: auto;
    min-height: 52px;
    padding: 14px 22px;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
}

.cabinet-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 6px 0 18px;
}

.cabinet-tab-btn {
    border: 1px solid var(--line);
    background: var(--paper-soft);
    color: var(--muted);
    border-radius: 999px;
    min-height: 42px;
    padding: 0 18px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cabinet-tab-btn:hover {
    color: var(--primary);
    border-color: rgba(255, 20, 147, 0.35);
}

.cabinet-tab-btn.is-active {
    background: linear-gradient(135deg, var(--primary), var(--primary-glow));
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-sm);
}

.cabinet-tab-panel {
    display: none;
}

.cabinet-tab-panel.is-active {
    display: block;
}

.cabinet-v2-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.cabinet-v2-grid-single {
    grid-template-columns: 1fr 1fr;
}

.panel-subcopy {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.progress-dashboard {
    display: grid;
    gap: 24px;
}

.progress-clean-top {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 20px;
}

.progress-summary-panel,
.checkpoint-list-panel,
.tracker-panel-clean {
    background:
        radial-gradient(circle at top right, rgba(255, 20, 147, 0.06), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 251, 0.98));
}

.progress-summary-inline,
.tracker-summary-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 18px;
}

.progress-inline-chip {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    min-height: 74px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 20, 147, 0.1);
    min-width: 148px;
}

.progress-inline-chip strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.2;
}

.progress-inline-chip small {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.progress-inline-chip-wide {
    min-width: 240px;
    flex: 1 1 240px;
}

.progress-wrap-soft {
    padding: 16px 18px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 20, 147, 0.09);
}

.progress-wrap-soft .progress-labels {
    margin-bottom: 12px;
    color: var(--muted);
}

.progress-wrap-soft .progress-bar {
    margin-bottom: 0;
    background: rgba(116, 30, 64, 0.08);
}

.progress-wrap-soft .progress-fill {
    background: linear-gradient(90deg, var(--primary), var(--primary-glow));
}

.checkpoint-list-rows {
    display: grid;
    gap: 14px;
}

.checkpoint-list-row {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 20, 147, 0.08);
    background: rgba(255, 255, 255, 0.94);
}

.checkpoint-list-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.checkpoint-list-copy strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.98rem;
    line-height: 1.3;
    font-weight: 800;
}

.checkpoint-list-copy small,
.checkpoint-list-meta small {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

.checkpoint-list-meta {
    display: grid;
    justify-items: end;
    gap: 6px;
    text-align: right;
    margin-left: auto;
}

.checkpoint-list-row-done {
    border-color: rgba(31, 122, 51, 0.18);
    background: linear-gradient(180deg, rgba(241, 255, 244, 0.96), rgba(255, 255, 255, 0.96));
}

.checkpoint-list-row-current {
    border-color: rgba(255, 20, 147, 0.18);
    background: linear-gradient(180deg, rgba(255, 244, 249, 0.98), rgba(255, 255, 255, 0.98));
}

.tracker-panel {
    grid-column: 1 / -1;
}

.tracker-panel-topline {
    align-items: flex-start;
}

.tracker-list {
    display: grid;
    gap: 12px;
}

.tracker-list-row {
    display: grid;
    grid-template-columns: 180px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 20, 147, 0.08);
    background: rgba(255, 255, 255, 0.94);
}

.tracker-day-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 20, 147, 0.12);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
}

.tracker-list-main {
    display: grid;
    gap: 8px;
}

.tracker-list-main strong {
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 800;
}

.tracker-list-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tracker-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 250, 252, 0.96);
    border: 1px solid rgba(255, 20, 147, 0.08);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.tracker-toggle:hover {
    border-color: rgba(255, 20, 147, 0.22);
}

.tracker-toggle input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--primary);
    flex: 0 0 auto;
}

.tracker-toggle input:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.tracker-toggle span {
    font-size: 0.86rem;
    font-weight: 700;
    white-space: nowrap;
}

.tracker-toggle:has(input:checked) {
    background: rgba(244, 255, 246, 0.96);
    border-color: rgba(31, 122, 51, 0.2);
}

.tracker-toggle:has(input:disabled) {
    cursor: not-allowed;
    background: rgba(248, 247, 249, 0.95);
}

.tracker-list-meta {
    display: grid;
    justify-items: end;
    gap: 6px;
    min-width: 148px;
}

.tracker-score {
    font-size: 0.88rem;
    font-weight: 900;
    color: var(--muted);
}

.tracker-row-result {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
    text-align: right;
}

.tracker-state-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 20, 147, 0.1);
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
}

.tracker-state-pill-past,
.tracker-state-pill-done {
    background: rgba(24, 132, 54, 0.12);
    color: #1f7a33;
}

.tracker-state-pill-today,
.tracker-state-pill-current {
    background: rgba(255, 20, 147, 0.14);
    color: var(--primary);
}

.tracker-state-pill-future,
.tracker-state-pill-upcoming {
    background: rgba(116, 30, 64, 0.08);
    color: var(--muted);
}

.tracker-row-past {
    background: linear-gradient(180deg, rgba(250, 255, 251, 0.96), rgba(255, 255, 255, 0.96));
}

.tracker-row-today {
    background: linear-gradient(180deg, rgba(255, 244, 249, 0.98), rgba(255, 255, 255, 0.98));
    border-color: rgba(255, 20, 147, 0.18);
}

.tracker-row-future {
    background: rgba(251, 250, 251, 0.95);
    opacity: 0.86;
}

.tracker-row-complete {
    border-color: rgba(31, 122, 51, 0.18);
    box-shadow: 0 18px 38px rgba(31, 122, 51, 0.08);
}

.tracker-row-complete .tracker-score,
.tracker-row-complete .tracker-row-result {
    color: #1f7a33;
}

.checklist-note {
    margin: 12px 0 4px;
    font-size: 0.84rem;
    color: var(--muted);
    line-height: 1.55;
}

.checklist-actions {
    display: flex;
    justify-content: flex-start;
}

.settings-panel {
    max-width: 680px;
}

.settings-block {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper-soft);
    padding: 18px;
}

.settings-copy {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.today-panel.today-complete {
    border: 1px solid rgba(63, 185, 80, 0.35);
    box-shadow: 0 10px 20px rgba(63, 185, 80, 0.12);
}

.today-panel.today-complete .today-checklist {
    display: none;
}

.confirm-box {
    max-width: 520px;
}

.confirm-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.guidance-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 10px;
    color: var(--ink);
}

.guidance-list li {
    font-size: 0.95rem;
}

.roadmap-list {
    display: grid;
    gap: 12px;
}

.roadmap-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--line);
    background: var(--paper-soft);
    border-radius: 14px;
    padding: 12px 14px;
}

.roadmap-day {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--primary);
    min-width: 62px;
}

.roadmap-copy strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.roadmap-copy span {
    font-size: 0.83rem;
    color: var(--muted);
}

.roadmap-state {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted);
}

.roadmap-done {
    background: rgba(63, 185, 80, 0.08);
    border-color: rgba(63, 185, 80, 0.22);
}

.roadmap-done .roadmap-state {
    color: #1f7a33;
}

.history-list-v2 {
    display: none;
}

.plan-selector-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    margin-bottom: 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--paper-soft);
}

.plan-selector-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.plan-selector-copy strong {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ink);
}

.plan-selector-copy span:last-child {
    color: var(--muted);
    font-size: 0.9rem;
}

.history-item-v2 {
    padding: 16px;
    margin-bottom: 0;
}

.history-item-v2 .hi-info span {
    display: block;
    margin-top: 2px;
}

.plan-history-grid {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.plan-history-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--paper-soft);
    padding: 18px;
}

.plan-history-card.is-pending {
    border-style: dashed;
    background: rgba(255, 20, 147, 0.04);
}

.plan-history-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.plan-history-head strong {
    display: block;
    margin-top: 8px;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ink);
}

.plan-history-head span:last-child,
.plan-history-meta span {
    color: var(--muted);
    font-size: 0.9rem;
}

.plan-history-meta {
    display: grid;
    gap: 4px;
    margin-top: 12px;
}

.plan-history-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.history-current-note {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.history-foot {
    margin-top: 14px;
}

.alert {
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: opacity 0.28s ease, transform 0.28s ease, max-height 0.28s ease, margin 0.28s ease, padding 0.28s ease;
    opacity: 1;
    transform: translateY(0);
    max-height: 240px;
    overflow: hidden;
}

.alert.is-hiding {
    opacity: 0;
    transform: translateY(-6px);
    max-height: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
}

.alert-error {
    background: rgba(255, 20, 147, 0.08);
    border: 1px solid rgba(255, 20, 147, 0.18);
    color: var(--ink);
}

.alert-success {
    background: rgba(63, 185, 80, 0.08);
    border: 1px solid rgba(63, 185, 80, 0.2);
    color: var(--ink);
}

.alert-list {
    margin: 8px 0 0;
    padding-left: 18px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0 8px;
}

.info-grid-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.info-card strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.info-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.info-card-on-dark {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

.info-card-on-dark strong,
.info-card-on-dark p {
    color: white;
}

.panel-label-soft {
    background: rgba(255, 20, 147, 0.1);
    color: var(--primary);
}

.info-card-on-dark .panel-label-soft {
    background: rgba(255, 255, 255, 0.16);
    color: white;
}

.renewal-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.renewal-summary-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.renewal-kpi {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
}

.renewal-kpi span {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 8px;
    font-weight: 700;
}

.renewal-kpi strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 6px;
}

.renewal-kpi small {
    display: block;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

.renewal-step h1,
.renewal-step h2 {
    margin-bottom: 14px;
}

.renewal-highlight {
    background: rgba(255, 20, 147, 0.08);
    border: 1px solid rgba(255, 20, 147, 0.14);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    color: var(--ink);
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 24px;
}

.renewal-group {
    margin-bottom: 28px;
    padding: 18px 18px 16px;
    border-radius: 22px;
    border: 1px solid rgba(116, 30, 64, 0.12);
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,247,251,0.98) 100%);
    box-shadow: 0 10px 26px rgba(87, 19, 45, 0.05);
}

.renewal-group-title {
    display: block;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 14px;
    line-height: 1.35;
    padding: 0 2px 0 14px;
    position: relative;
}

.renewal-group-title::before {
    content: "Питання";
    position: absolute;
    left: 0;
    top: -18px;
    font-size: 0.72rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    font-weight: 800;
}

.renewal-finish-note {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    color: var(--muted);
    line-height: 1.5;
    margin-top: 12px;
}

.prepare-card {
    max-width: 760px;
}

.prepare-hero {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 24px;
    align-items: center;
    padding: 26px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(255,245,249,0.96) 100%);
    border: 1px solid rgba(255, 20, 147, 0.14);
    box-shadow: 0 20px 50px rgba(159, 72, 114, 0.1);
    margin-bottom: 24px;
}

.prepare-spinner-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 20, 147, 0.1) 0%, rgba(255,255,255,0.6) 70%);
}

.prepare-spinner {
    width: 74px;
    height: 74px;
}

.prepare-status {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 14px;
    line-height: 1.45;
}

.prepare-detail {
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.5;
    margin-bottom: 14px;
    min-height: 44px;
}

.prepare-progress-bar {
    height: 12px;
    background: rgba(116, 30, 64, 0.08);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.prepare-progress-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff4aa2 0%, #ff1493 45%, #ff7abf 100%);
    box-shadow: 0 0 24px rgba(255, 20, 147, 0.34);
    transition: width 0.35s ease;
}

.prepare-progress-bar.is-waiting::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.5) 50%, transparent 100%);
    animation: prepareShimmer 1.3s linear infinite;
}

.prepare-progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.prepare-steps {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.prepare-step {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(116, 30, 64, 0.1);
    background: rgba(255,255,255,0.82);
    transition: all 0.25s ease;
}

.prepare-step strong {
    display: block;
    font-size: 0.96rem;
    margin-bottom: 4px;
    color: var(--ink);
}

.prepare-step span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.prepare-step.is-active {
    border-color: rgba(255, 20, 147, 0.35);
    background: linear-gradient(180deg, rgba(255, 248, 251, 1) 0%, rgba(255, 237, 246, 1) 100%);
    box-shadow: 0 14px 34px rgba(255, 20, 147, 0.1);
}

.prepare-step.is-done {
    border-color: rgba(63, 185, 80, 0.22);
    background: rgba(238, 252, 241, 0.95);
}

.prepare-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.quiz-card-premium {
    overflow: hidden;
}

.quiz-grid-2 {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.quiz-final-head {
    text-align: center;
    margin-bottom: 24px;
}

.quiz-section-card {
    margin: 22px 0 24px;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(255, 20, 147, 0.1);
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,248,251,1) 100%);
    box-shadow: 0 14px 36px rgba(159, 72, 114, 0.06);
}

.quiz-section-card-secondary {
    background: linear-gradient(180deg, rgba(255,250,252,1) 0%, rgba(255,244,248,1) 100%);
}

.quiz-section-head {
    margin-bottom: 16px;
}

.quiz-section-head h3 {
    margin: 10px 0 6px;
    font-size: 1.2rem;
    line-height: 1.2;
}

.quiz-section-head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.quiz-options-spacious {
    gap: 14px;
}

.option-card-rich {
    min-height: 92px;
    display: flex;
    align-items: center;
}

.option-card-rich .card-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.option-card-rich .card-content strong {
    font-size: 1rem;
    line-height: 1.25;
    color: var(--ink);
}

.option-card-rich .card-content small {
    color: #8a6f7f;
    font-size: 0.84rem;
    line-height: 1.35;
    font-weight: 600;
}

.option-card-rich:has(input:checked) .card-content small {
    color: rgba(44, 16, 26, 0.88);
}

.quiz-field-note {
    margin: 14px 2px 0;
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.55;
}

.quiz-field-note strong {
    color: var(--ink);
}

.analysis-premium-card {
    border: 1px solid rgba(255, 20, 147, 0.12);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(255, 20, 147, 0.08), transparent 35%),
        linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,248,251,1) 100%);
    padding: 28px;
    box-shadow: 0 24px 60px rgba(255, 20, 147, 0.08);
}

.analysis-premium-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.analysis-premium-badge {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(46, 125, 50, 0.08);
    color: #2e7d32;
    font-weight: 700;
    font-size: 0.88rem;
}

.analysis-premium-hero {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}

.premium-spinner {
    width: 92px;
    height: 92px;
}

.premium-analyzing-list li {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.86);
    border: 1px solid rgba(116, 30, 64, 0.08);
    box-shadow: 0 10px 28px rgba(159, 72, 114, 0.05);
}

.analysis-premium-foot {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 22px;
}

.analysis-mini-card {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(255, 20, 147, 0.1);
}

.analysis-mini-card strong,
.analysis-mini-card span {
    display: block;
}

.analysis-mini-card strong {
    margin-bottom: 4px;
}

.analysis-mini-card span {
    color: var(--muted);
    font-size: 0.92rem;
}

.analysis-summary-shell {
    max-width: 1080px;
    background:
        radial-gradient(circle at top left, rgba(255, 20, 147, 0.08), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,249,252,1) 100%);
}

.analysis-summary-head {
    max-width: 760px;
    margin-bottom: 30px;
}

.analysis-summary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.8fr);
    gap: 24px;
}

.analysis-hero-card,
.analysis-side-card,
.checkout-ready-card,
.checkout-pay-panel {
    border-radius: 28px;
    border: 1px solid rgba(116, 30, 64, 0.09);
    background: rgba(255,255,255,0.9);
    box-shadow: 0 16px 40px rgba(159, 72, 114, 0.07);
}

.analysis-hero-card {
    padding: 30px;
}

.analysis-hero-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.analysis-hero-top h2 {
    margin: 6px 0 0;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.05;
}

.analysis-bmi-chip {
    min-width: 126px;
    text-align: center;
    padding: 12px 14px;
    border-radius: 18px;
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
    justify-content: center;
}

.analysis-bmi-chip strong {
    font-size: 1rem;
    line-height: 1.1;
}

.analysis-bmi-chip small {
    font-size: 0.78rem;
    line-height: 1.1;
    font-weight: 700;
}

.analysis-bmi-chip-soft {
    background: rgba(115, 115, 115, 0.08);
    color: var(--ink);
}

.analysis-bmi-chip-success {
    background: rgba(76, 175, 80, 0.12);
    color: #2e7d32;
}

.analysis-bmi-chip-warning {
    background: rgba(255, 152, 0, 0.14);
    color: #b26a00;
}

.analysis-bmi-chip-danger {
    background: rgba(244, 67, 54, 0.12);
    color: #b6312a;
}

.analysis-hero-note {
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 20px;
}

.analysis-metric-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.analysis-metric {
    padding: 16px 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 248, 251, 1) 0%, rgba(255, 240, 245, 1) 100%);
    border: 1px solid rgba(255, 20, 147, 0.11);
}

.analysis-metric span,
.analysis-kpis span {
    display: block;
    color: var(--muted);
    font-size: 0.85rem;
}

.analysis-metric strong,
.analysis-kpis strong {
    display: block;
    margin-top: 6px;
    font-size: 1.15rem;
    line-height: 1.25;
}

.analysis-insight-card {
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(255,245,249,1) 100%);
    border: 1px solid rgba(255, 20, 147, 0.12);
}

.analysis-insight-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.analysis-insight-card p {
    margin: 0 0 12px;
}

.analysis-insight-list {
    margin: 0 0 12px 18px;
    padding: 0;
    color: var(--ink);
}

.analysis-insight-list li + li {
    margin-top: 8px;
}

.analysis-insight-card small,
.analysis-side-card small,
.checkout-pay-panel small {
    color: var(--muted);
    font-size: 0.85rem;
}

.analysis-side-panel {
    display: grid;
    gap: 18px;
}

.analysis-side-card {
    padding: 24px;
}

.analysis-side-card-emphasis {
    background:
        radial-gradient(circle at top right, rgba(255, 20, 147, 0.08), transparent 35%),
        rgba(255,255,255,0.96);
}

.analysis-kpis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 16px;
}

.analysis-kpis > div {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 248, 251, 0.92);
    border: 1px solid rgba(255, 20, 147, 0.1);
}

.analysis-kpis-compact {
    grid-template-columns: 1fr;
}

.checkout-card-premium {
    background:
        radial-gradient(circle at top right, rgba(255, 20, 147, 0.08), transparent 32%),
        linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,248,251,1) 100%);
}

.checkout-ready-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: 22px;
    align-items: start;
}

.checkout-ready-card,
.checkout-pay-panel {
    padding: 28px;
}

.checkout-ready-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.checkout-ready-head h2 {
    margin: 6px 0 0;
    font-size: 1.9rem;
    line-height: 1.08;
    max-width: 12ch;
}

.checkout-order-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.checkout-order-grid > div {
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 248, 251, 1) 0%, rgba(255, 243, 248, 1) 100%);
    border: 1px solid rgba(255, 20, 147, 0.1);
}

.checkout-order-grid strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.checkout-order-grid span {
    display: block;
    font-size: 1.02rem;
    line-height: 1.4;
    color: var(--ink);
    font-weight: 700;
}

.checkout-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.checkout-info-grid .info-card {
    min-height: 188px;
}

.checkout-info-grid .info-card:last-child {
    grid-column: 1 / -1;
}

.checkout-info-grid .info-card strong {
    font-size: 1.5rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.checkout-info-grid .info-card p {
    max-width: 34ch;
}

.checkout-pay-panel strong {
    display: block;
    font-size: 1.3rem;
    margin: 10px 0 10px;
}

.checkout-pay-panel p {
    margin-top: 0;
}

.prepare-card-premium {
    background:
        radial-gradient(circle at top right, rgba(255, 20, 147, 0.08), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,248,251,1) 100%);
}

.prepare-static-note {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    padding: 16px 18px;
    margin-bottom: 24px;
    border-radius: 18px;
    background: rgba(255,255,255,0.84);
    border: 1px solid rgba(255, 20, 147, 0.1);
    color: var(--muted);
}

.prepare-static-note strong {
    color: var(--ink);
}

.program-status-card {
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(255, 248, 251, 0.95);
    border: 1px solid rgba(255, 20, 147, 0.12);
}

.program-status-card strong {
    display: block;
    margin-bottom: 6px;
}

.program-status-card p {
    margin: 0;
    color: var(--muted);
}

.program-status-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.program-status-metrics span {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(255, 20, 147, 0.12);
    font-size: 0.9rem;
    font-weight: 700;
}

@keyframes prepareShimmer {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(100%);
    }
}

@media (max-width: 720px) {
    .simple-layout {
        display: block;
        min-height: auto;
        padding: 18px 12px 42px;
    }

    .simple-card,
    .simple-card-wide,
    .quiz-card-premium,
    .prepare-card,
    .analysis-summary-shell,
    .cab-shell {
        width: 100%;
        max-width: none !important;
        padding: 22px 16px 24px;
        border-width: 1px;
        border-color: rgba(116, 30, 64, 0.14);
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 14px 28px rgba(87, 19, 45, 0.08);
    }

    .quiz-header {
        gap: 14px;
        margin-bottom: 20px;
    }

    .quiz-step h1,
    .quiz-step h2,
    .quiz-final-head h2,
    .analysis-summary-head h1,
    .analysis-hero-top h2,
    .prepare-copy h1,
    .cab-title,
    .cab-hero-title {
        font-size: clamp(1.65rem, 7vw, 2.1rem);
        line-height: 1.1;
        margin-bottom: 12px;
    }

    .quiz-subtitle,
    .analysis-summary-head p,
    .prepare-detail,
    .cab-hero-period,
    .cab-hero-milestone {
        margin-top: 0;
        margin-bottom: 18px;
        font-size: 0.95rem;
        line-height: 1.55;
        color: #724558;
    }

    .quiz-step > label,
    .quiz-step .input-row > label {
        margin-bottom: 16px;
    }

    .quiz-step label > span {
        margin-bottom: 7px;
        font-size: 0.82rem;
        color: #532333;
    }

    .quiz-step input[type="text"],
    .quiz-step input[type="email"],
    .quiz-step input[type="tel"],
    .quiz-step input[type="number"],
    .quiz-step input[type="password"],
    .quiz-step textarea,
    .legal-contact-card label input,
    .demo-form input {
        background: #ffffff;
        border-color: rgba(116, 30, 64, 0.16);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }

    .quiz-radio-card,
    .quiz-checkbox-card,
    .renewal-step .quiz-radio-card,
    .renewal-step .quiz-checkbox-card,
    .quiz-section-card,
    .analysis-premium-card,
    .analysis-mini-card,
    .analysis-hero-card,
    .analysis-side-card,
    .checkout-ready-card,
    .checkout-pay-panel,
    .prepare-step,
    .prepare-static-note,
    .cab-metric,
    .cab-checklist,
    .cab-next-step,
    .cab-completion-card,
    .cab-history-item {
        background: #ffffff;
        border-color: rgba(116, 30, 64, 0.14);
        box-shadow: 0 10px 24px rgba(87, 19, 45, 0.06);
    }

    .quiz-section-card,
    .analysis-premium-card,
    .analysis-hero-card,
    .analysis-side-card,
    .checkout-ready-card,
    .checkout-pay-panel,
    .prepare-card {
        border-radius: 22px;
    }

    .renewal-summary-grid,
    .renewal-summary-grid-compact,
    .quiz-options.grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .quiz-grid-2,
    .analysis-premium-foot,
    .analysis-summary-grid,
    .analysis-metric-strip,
    .analysis-kpis,
    .progress-clean-top,
    .checkout-ready-grid,
    .checkout-order-grid,
    .checkout-info-grid {
        grid-template-columns: 1fr;
    }

    .prepare-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .analysis-summary-shell {
        padding: 20px 14px 22px;
    }

    .analysis-summary-head {
        margin-bottom: 18px;
    }

    .analysis-summary-head .eyebrow {
        margin-bottom: 12px;
    }

    .analysis-hero-card,
    .analysis-side-card {
        padding: 18px 14px;
    }

    .analysis-hero-top {
        gap: 10px;
        margin-bottom: 10px;
    }

    .analysis-bmi-chip {
        min-width: 0;
        width: 100%;
        max-width: 172px;
        padding: 10px 12px;
        border-radius: 16px;
    }

    .analysis-hero-note {
        margin-bottom: 14px;
        font-size: 0.9rem;
        line-height: 1.45;
    }

    .analysis-metric,
    .analysis-kpis > div {
        padding: 13px 14px;
        border-radius: 16px;
    }

    .prepare-spinner-wrap {
        margin: 0 auto;
    }

    .panel-topline,
    .tracker-list-row,
    .checkpoint-list-row,
    .checkpoint-list-meta,
    .tracker-list-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .tracker-list-row {
        grid-template-columns: 1fr;
    }

    .tracker-list-checks,
    .progress-summary-inline,
    .tracker-summary-inline {
        flex-direction: column;
    }

    .progress-inline-chip,
    .progress-inline-chip-wide {
        width: 100%;
        min-width: 0;
    }

    .quiz-actions,
    .prepare-actions {
        margin-top: 20px;
    }

    .quiz-actions .button,
    .prepare-actions .button {
        width: 100%;
    }

    .cabinet-shell-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .tracker-row-result {
        text-align: left;
    }
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-paid {
    background: rgba(63, 185, 80, 0.12);
    color: #1f7a33;
}

.status-active {
    background: rgba(63, 185, 80, 0.12);
    color: #1f7a33;
}

.status-pending {
    background: rgba(255, 20, 147, 0.1);
    color: var(--primary);
}

.status-archived {
    background: rgba(44, 16, 26, 0.08);
    color: var(--ink);
}

.site-footer { padding: 60px 0; background: white; text-align: center; border-top: 1px solid var(--line); }

.footer-links {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted);
}

.footer-links a {
    color: var(--ink);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-links span {
    color: rgba(0, 0, 0, 0.15);
}

.checkout-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 16px;
    font-size: 0.82rem;
    font-weight: 700;
}

.checkout-legal-links a {
    color: var(--ink);
    text-decoration: none;
}

.checkout-legal-links a:hover {
    color: var(--primary);
}

/* ═══════════════════════════════════════════════
   CABINET REDESIGN v3 — Clean Single-Screen
   ═══════════════════════════════════════════════ */

.cab-shell {
    max-width: 680px;
    padding: 36px 40px 44px;
    background:
        radial-gradient(circle at top right, rgba(255, 20, 147, 0.06), transparent 40%),
        linear-gradient(180deg, rgba(255,255,255,0.99) 0%, rgba(255,248,251,1) 100%);
}

/* ── Header ── */
.cab-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}

.cab-header-left .back-link {
    margin-bottom: 8px;
}

.cab-title {
    font-size: 1.8rem;
    font-weight: 900;
    margin: 0;
    letter-spacing: -0.03em;
}

.cab-header > .button {
    display: none;
}

.cab-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
}

.cab-toolbar-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.cab-tab-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 20, 147, 0.14);
    background: rgba(255, 255, 255, 0.9);
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.22s ease;
    box-shadow: 0 6px 18px rgba(159, 72, 114, 0.04);
}

.cab-tab-button:hover {
    border-color: rgba(255, 20, 147, 0.24);
    color: var(--ink);
}

.cab-tab-button.is-active {
    background: linear-gradient(135deg, var(--primary), var(--primary-glow));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(255, 20, 147, 0.22);
}

.cab-toolbar-logout {
    flex: 0 0 auto;
    white-space: nowrap;
}

.cab-panel {
    display: none;
}

.cab-panel.is-active {
    display: block;
    animation: cabPanelFade 0.28s ease;
}

.cab-panel[data-tab-panel="plans"].is-active {
    padding: 8px 0 0;
    border-radius: 0;
    background: transparent;
}

@keyframes cabPanelFade {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cab-archived-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 14px;
    background: rgba(255, 152, 0, 0.08);
    border: 1px solid rgba(255, 152, 0, 0.2);
    font-size: 0.9rem;
    color: #b26a00;
    font-weight: 600;
}

.cab-archived-notice a {
    color: var(--primary);
    font-weight: 700;
}

/* ── Hero Dashboard with Ring ── */
.cab-hero {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 28px;
    margin-bottom: 20px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(255,245,250,0.95) 100%);
    border: 1px solid rgba(255, 20, 147, 0.12);
    box-shadow: 0 16px 44px rgba(159, 72, 114, 0.08);
}

.cab-hero-ring-wrap {
    position: relative;
    flex: 0 0 120px;
    width: 120px;
    height: 120px;
}

.cab-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.cab-ring-bg {
    fill: none;
    stroke: rgba(255, 20, 147, 0.1);
    stroke-width: 8;
}

.cab-ring-fill {
    fill: none;
    stroke: url(#ringGradient);
    stroke: var(--primary);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.cab-ring-center {
    position: absolute;
    inset: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,246,251,0.98));
    border-radius: 50%;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.92),
        0 10px 24px rgba(255, 20, 147, 0.08);
    border: 1px solid rgba(255, 20, 147, 0.08);
}

.cab-ring-day {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    color: var(--ink);
}

.cab-ring-total {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--muted);
    margin-top: 2px;
}

.cab-hero-info {
    flex: 1 1 auto;
    min-width: 0;
}

.cab-hero-top-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.cab-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.cab-badge-active {
    background: rgba(63, 185, 80, 0.14);
    color: #1f7a33;
}

.cab-badge-finished {
    background: rgba(116, 30, 64, 0.1);
    color: var(--muted);
}

.cab-badge-upcoming {
    background: rgba(71, 141, 220, 0.12);
    color: #3b7fcf;
}

.cab-badge-stage {
    background: rgba(255, 20, 147, 0.1);
    color: var(--primary);
}

.cab-badge-count {
    background: rgba(255, 20, 147, 0.1);
    color: var(--primary);
    min-height: 28px;
    padding: 0 12px;
    font-size: 0.78rem;
}

.cab-hero-title {
    margin: 0 0 4px;
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1.2;
    color: var(--ink);
}

.cab-hero-period {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.cab-hero-milestone {
    margin: 0;
    font-size: 0.86rem;
    color: var(--muted);
    line-height: 1.4;
}

.cab-hero-milestone strong {
    color: var(--primary);
}

/* ── Metrics Strip ── */
.cab-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.cab-metric {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 20, 147, 0.08);
    box-shadow: 0 8px 24px rgba(159, 72, 114, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cab-metric:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(159, 72, 114, 0.1);
}

.cab-metric-icon {
    font-size: 1.4rem;
    flex: 0 0 auto;
}

.cab-metric strong {
    display: block;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 2px;
}

.cab-metric span:last-child {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 600;
}

.cab-metric-cal {
    border-color: rgba(225, 145, 48, 0.15);
    background: linear-gradient(180deg, rgba(255, 250, 242, 0.98), rgba(255, 255, 255, 0.96));
}

.cab-metric-steps {
    border-color: rgba(63, 185, 80, 0.15);
    background: linear-gradient(180deg, rgba(244, 255, 246, 0.98), rgba(255, 255, 255, 0.96));
}

.cab-metric-water {
    border-color: rgba(71, 141, 220, 0.15);
    background: linear-gradient(180deg, rgba(244, 250, 255, 0.98), rgba(255, 255, 255, 0.96));
}

/* ── Checklist ── */
.cab-checklist {
    padding: 22px 24px;
    margin-bottom: 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 20, 147, 0.1);
    box-shadow: 0 10px 30px rgba(159, 72, 114, 0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cab-checklist.today-complete {
    border-color: rgba(63, 185, 80, 0.35);
    box-shadow: 0 10px 30px rgba(63, 185, 80, 0.1);
}

.cab-checklist-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.cab-checklist-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cab-checklist-head h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
}

.cab-reset-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    background: var(--paper-soft);
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--muted);
    transition: all 0.2s ease;
}

.cab-reset-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(255, 20, 147, 0.05);
}

.cab-checks {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cab-check {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
    user-select: none;
}

.cab-check:hover {
    background: rgba(255, 20, 147, 0.04);
}

.cab-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cab-check-mark {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    border: 2px solid rgba(255, 20, 147, 0.25);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cab-check-mark::after {
    content: '✓';
    font-size: 0.85rem;
    font-weight: 900;
    color: white;
    opacity: 0;
    transform: scale(0.3);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cab-check input:checked + .cab-check-mark {
    background: linear-gradient(135deg, #3fb950, #2ea043);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(63, 185, 80, 0.3);
}

.cab-check input:checked + .cab-check-mark::after {
    opacity: 1;
    transform: scale(1);
}

.cab-check-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    transition: color 0.2s ease;
}

.cab-check input:checked ~ .cab-check-text {
    color: var(--muted);
    text-decoration: line-through;
    text-decoration-color: rgba(63, 185, 80, 0.4);
}

.cab-check input:disabled + .cab-check-mark {
    opacity: 0.6;
    cursor: not-allowed;
}

.cab-checklist-note {
    margin: 12px 0 0;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.5;
}

/* ── Quick Actions ── */
.cab-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.cab-action-form {
    margin: 0;
    display: contents;
}

.cab-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    border-radius: 18px;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: none;
    text-align: center;
    line-height: 1.3;
    text-decoration: none;
}

.cab-action-icon {
    font-size: 1.2rem;
    flex: 0 0 auto;
}

.cab-action-primary {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 20, 147, 0.15);
    color: var(--ink);
    box-shadow: 0 8px 24px rgba(159, 72, 114, 0.06);
}

.cab-action-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(159, 72, 114, 0.14);
    border-color: var(--primary);
}

.cab-action-accent {
    background: linear-gradient(135deg, var(--primary), var(--primary-glow));
    color: white;
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.25);
}

.cab-action-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(255, 20, 147, 0.35);
}

.cab-program-done {
    grid-column: 1 / -1;
    padding: 16px 20px;
    border-radius: 18px;
    background: rgba(63, 185, 80, 0.08);
    border: 1px solid rgba(63, 185, 80, 0.2);
    text-align: center;
}

.cab-program-done strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 4px;
}

.cab-program-done p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

/* ── Collapsible Sections ── */
.cab-collapsible {
    margin-bottom: 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 20, 147, 0.08);
    background: rgba(255, 255, 255, 0.94);
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(159, 72, 114, 0.04);
}

.cab-collapsible-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 800;
    color: var(--ink);
    list-style: none;
    user-select: none;
    transition: background 0.2s ease;
}

.cab-collapsible-trigger::-webkit-details-marker,
.cab-collapsible-trigger::marker {
    display: none;
}

.cab-collapsible-trigger::after {
    content: '▾';
    font-size: 0.9rem;
    color: var(--muted);
    transition: transform 0.3s ease;
    margin-left: auto;
}

.cab-collapsible[open] .cab-collapsible-trigger::after {
    transform: rotate(180deg);
}

.cab-collapsible-trigger:hover {
    background: rgba(255, 20, 147, 0.03);
}

.cab-collapsible-body {
    padding: 0 22px 22px;
    animation: cabSlideDown 0.3s ease;
}

@keyframes cabSlideDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Streak Grid ── */
.cab-streak-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.cab-streak-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 4px 8px;
    border-radius: 14px;
    border: 1px solid rgba(255, 20, 147, 0.06);
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.25s ease;
    cursor: default;
}

.cab-streak-num {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1;
}

.cab-streak-dots {
    display: flex;
    gap: 3px;
}

.cab-streak-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(116, 30, 64, 0.12);
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.cab-streak-dot.is-done {
    background: linear-gradient(135deg, #3fb950, #2ea043);
    box-shadow: 0 2px 6px rgba(63, 185, 80, 0.3);
    transform: scale(1.15);
}

.cab-streak-today {
    border-color: rgba(255, 20, 147, 0.22);
    background: linear-gradient(180deg, rgba(255, 244, 249, 0.98), rgba(255, 255, 255, 0.98));
    box-shadow: 0 6px 18px rgba(255, 20, 147, 0.08);
}

.cab-streak-today .cab-streak-num {
    color: var(--primary);
}

.cab-streak-past {
    background: rgba(250, 255, 251, 0.96);
}

.cab-streak-future {
    opacity: 0.5;
}

.cab-streak-day.streak-complete {
    border-color: rgba(63, 185, 80, 0.25);
    background: linear-gradient(180deg, rgba(240, 255, 243, 0.98), rgba(255, 255, 255, 0.98));
}

.cab-streak-day.streak-partial {
    border-color: rgba(225, 145, 48, 0.2);
    background: linear-gradient(180deg, rgba(255, 250, 240, 0.98), rgba(255, 255, 255, 0.98));
}

.cab-streak-legend {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 14px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted);
}

.cab-streak-legend > span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cab-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.cab-dot-empty {
    background: rgba(116, 30, 64, 0.12);
}

.cab-dot-partial {
    background: rgba(225, 145, 48, 0.6);
}

.cab-dot-full {
    background: linear-gradient(135deg, #3fb950, #2ea043);
}

/* ── History List ── */
.cab-history-list {
    display: grid;
    gap: 10px;
}

.cab-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 20, 147, 0.06);
    background: rgba(255, 255, 255, 0.9);
    transition: border-color 0.2s ease;
}

.cab-history-item:hover {
    border-color: rgba(255, 20, 147, 0.18);
}

.cab-history-item.is-current {
    border-color: rgba(63, 185, 80, 0.25);
    background: linear-gradient(180deg, rgba(240, 255, 243, 0.95), rgba(255, 255, 255, 0.96));
}

.cab-history-item.is-pending {
    border-style: dashed;
    border-color: rgba(255, 20, 147, 0.3);
    background: rgba(255, 20, 147, 0.03);
}

.cab-history-info strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 2px;
}

.cab-history-info span {
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 600;
}

.cab-history-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.cab-history-link {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--primary);
    background: rgba(255, 20, 147, 0.08);
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}

.cab-history-link:hover {
    background: rgba(255, 20, 147, 0.16);
}

.cab-history-link-accent {
    background: linear-gradient(135deg, var(--primary), var(--primary-glow));
    color: white;
}

.cab-history-link-accent:hover {
    box-shadow: 0 6px 16px rgba(255, 20, 147, 0.25);
}

.cab-history-current {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    color: #1f7a33;
    background: rgba(63, 185, 80, 0.1);
}

.cab-empty-card {
    padding: 22px 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 20, 147, 0.08);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 24px rgba(159, 72, 114, 0.04);
}

.cab-empty-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
    color: var(--ink);
}

.cab-empty-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.cab-plans-head {
    margin-bottom: 18px;
    padding: 18px 20px 16px;
    border-radius: 22px;
    border: 1px solid rgba(87, 19, 45, 0.08);
    background:
        radial-gradient(circle at top right, rgba(255, 20, 147, 0.07), transparent 34%),
        linear-gradient(135deg, rgba(255,255,255,0.98), rgba(255,248,251,0.98));
    box-shadow: 0 14px 34px rgba(87, 19, 45, 0.05);
}

.cab-plans-head strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
    font-weight: 900;
    color: var(--ink);
}

.cab-plans-head span {
    display: block;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
}

.cab-plan-grid {
    display: grid;
    gap: 14px;
    margin-bottom: 8px;
}

.cab-plan-card {
    position: relative;
    padding: 22px 22px 20px;
    border-radius: 24px;
    border: 1px solid rgba(87, 19, 45, 0.1);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 40px rgba(87, 19, 45, 0.07);
    overflow: hidden;
}

.cab-plan-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: rgba(87, 19, 45, 0.08);
}

.cab-plan-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.cab-plan-stage-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cab-plan-step,
.cab-plan-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 800;
    white-space: nowrap;
}

.cab-plan-step {
    align-self: flex-start;
    background: rgba(116, 30, 64, 0.06);
    color: #745569;
    border: 1px solid rgba(87, 19, 45, 0.08);
}

.cab-plan-status-paid,
.cab-plan-status-current {
    background: rgba(63, 185, 80, 0.14);
    color: #1f7a33;
    border: 1px solid rgba(63, 185, 80, 0.2);
}

.cab-plan-status-pending,
.cab-plan-status-available {
    background: rgba(255, 20, 147, 0.1);
    color: var(--primary);
    border: 1px solid rgba(255, 20, 147, 0.16);
}

.cab-plan-status-locked {
    background: rgba(212, 54, 54, 0.08);
    color: #b13a3a;
    border: 1px solid rgba(212, 54, 54, 0.14);
}

.cab-plan-card h3 {
    margin: 0 0 8px;
    font-size: 1.36rem;
    font-weight: 900;
    color: var(--ink);
    line-height: 1.16;
}

.cab-plan-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.cab-plan-stage-note {
    margin: -2px 0 8px;
    color: #745569 !important;
    font-size: 0.88rem !important;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.cab-plan-facts {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cab-plan-fact {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    color: #7a5870;
    background: rgba(116, 30, 64, 0.045);
    border: 1px solid rgba(116, 30, 64, 0.08);
}

.cab-plan-card-actions {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.cab-plan-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 900;
    color: var(--ink);
    background: #fff;
    border: 1px solid rgba(87, 19, 45, 0.16);
    box-shadow: 0 8px 18px rgba(87, 19, 45, 0.04);
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}

.cab-plan-action:hover {
    background: rgba(255, 246, 250, 0.96);
    border-color: rgba(255, 20, 147, 0.28);
    transform: translateY(-1px);
}

.cab-plan-action-accent {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-glow));
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(255, 20, 147, 0.22);
}

.cab-plan-action-accent:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-glow));
    border-color: transparent;
    box-shadow: 0 12px 26px rgba(255, 20, 147, 0.28);
}

.cab-plan-muted {
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--muted);
}

.cab-plan-card-current {
    border-color: rgba(63, 185, 80, 0.22);
    background: linear-gradient(145deg, rgba(247, 255, 249, 0.98), rgba(255, 255, 255, 0.98));
    box-shadow: 0 18px 40px rgba(63, 185, 80, 0.08);
}

.cab-plan-card-current::before {
    background: linear-gradient(90deg, rgba(63, 185, 80, 0.9), rgba(115, 205, 126, 0.9));
}

.cab-plan-card-paid {
    border-color: rgba(63, 185, 80, 0.16);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(251,255,251,0.98));
}

.cab-plan-card-paid::before {
    background: linear-gradient(90deg, rgba(77, 157, 88, 0.78), rgba(149, 212, 160, 0.72));
}

.cab-plan-card-pending,
.cab-plan-card-available {
    border-color: rgba(255, 20, 147, 0.18);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,247,251,0.98));
}

.cab-plan-card-pending::before,
.cab-plan-card-available::before {
    background: linear-gradient(90deg, rgba(255, 20, 147, 0.92), rgba(255, 106, 176, 0.88));
}

.cab-plan-card-locked {
    opacity: 0.92;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(250,248,249,0.96));
}

.cab-plan-card-locked::before {
    background: linear-gradient(90deg, rgba(116, 30, 64, 0.18), rgba(116, 30, 64, 0.08));
}


.cab-bottom-zone {
    margin-top: 34px;
    padding: 22px 24px;
    border: none;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(247, 242, 245, 0.94), rgba(243, 237, 241, 0.94));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 20px;
    flex-wrap: wrap;
}

.cab-bottom-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cab-bottom-copy strong {
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--ink);
}

.cab-bottom-copy span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
}

.cab-bottom-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px 16px;
    flex-wrap: wrap;
}

.cab-bottom-logout {
    white-space: nowrap;
}

/* Animations */
.animate-up, .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.is-visible { opacity: 1; transform: translateY(0); }

@media(max-width: 900px) {
    .hero-shell, .offer-shell, .cabinet-grid { grid-template-columns: 1fr; }
    .hero-copy h1 { font-size: 2.8rem; }
    .hero-text {
        margin-bottom: 24px;
        font-size: 1.02rem;
        line-height: 1.55;
    }
    .benefit-grid, .flow-grid { grid-template-columns: 1fr; }
    .header-nav { display: none; }
    .site-header {
        padding: 16px 0 10px;
    }
    .header-shell {
        border-radius: 28px;
        padding: 14px 16px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        align-items: stretch;
    }
    .brand-premium {
        gap: 10px;
    }
    .brand-premium .brand-svg {
        width: 30px;
        height: 30px;
    }
    .brand-title {
        font-size: 1.45rem;
    }
    .brand-subtitle {
        font-size: 0.52rem;
        letter-spacing: 0.28em;
    }
    .header-actions {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
        gap: 10px;
        align-items: stretch;
    }
    .header-actions .text-link,
    .header-actions .button {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .header-actions .text-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 46px;
        padding: 0 14px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.72);
        border: 1px solid rgba(255, 20, 147, 0.12);
    }
    .header-actions .button-small {
        min-height: 46px;
        height: auto;
        padding: 10px 14px;
        line-height: 1.15;
        white-space: normal;
    }
    .hero-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .hero-actions .button,
    .hero-actions .button-outline,
    .hero-actions .button-primary {
        width: 100%;
        min-height: 54px;
        height: auto;
        padding: 12px 18px;
        line-height: 1.2;
        text-align: center;
        white-space: normal;
    }
    .offer-shell { padding: 40px 24px; }
    .offer-copy h2,
    .offer-copy p { max-width: none; }
    .offer-shot-frame { width: min(100%, 500px); }
    .flow-media img { aspect-ratio: 16 / 10; }
    .legal-contact-card {
        grid-template-columns: 1fr;
    }
    .review-card { width: calc(50% - 16px); }
    .info-grid,
    .info-grid-compact { grid-template-columns: 1fr; }
    .plan-meta { grid-template-columns: 1fr; }
    .history-item { flex-direction: column; align-items: flex-start; gap: 14px; }
    .plan-selector-strip,
    .plan-history-head { flex-direction: column; align-items: flex-start; }
    .cabinet-v2-top,
    .cabinet-v2-grid { grid-template-columns: 1fr; }
    .cabinet-side-stack { grid-template-rows: auto; }
    .overview-metrics-grid { grid-template-columns: 1fr; }
    .plan-hero-compact { min-height: auto; }
    .today-stats { grid-template-columns: 1fr; }
    .roadmap-item { grid-template-columns: 1fr; }
    .progress-clean-top,
    .tracker-list-row { grid-template-columns: 1fr; }
    .plan-history-actions { width: 100%; }
    .analysis-hero-top,
    .checkout-ready-head,
    .analysis-premium-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .analysis-premium-hero { grid-template-columns: 1fr; }
    .checkpoint-list-row {
        flex-wrap: wrap;
    }
    .checkpoint-list-meta,
    .tracker-list-meta {
        width: 100%;
        justify-items: start;
        text-align: left;
    }
    .cabinet-shell-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .analysis-premium-card {
        padding: 20px 16px;
    }

    .analysis-premium-head {
        margin-bottom: 10px;
    }

    .analysis-premium-badge {
        min-height: 34px;
        padding: 0 12px;
        font-size: 0.8rem;
    }

    .analysis-premium-hero {
        gap: 12px;
        margin-bottom: 12px;
    }

    .premium-spinner {
        width: 72px;
        height: 72px;
        margin: 0 auto;
    }

    .premium-analyzing-list li {
        padding: 12px 14px;
        border-radius: 14px;
    }

    .analysis-premium-foot {
        display: none;
    }

    .prepare-card {
        padding: 20px 16px 22px;
    }

    .prepare-card > p {
        margin-bottom: 14px;
        font-size: 0.93rem;
        line-height: 1.5;
    }

    .prepare-hero {
        gap: 12px;
        padding: 16px 14px;
        border-radius: 20px;
        margin-bottom: 14px;
    }

    .prepare-spinner-wrap {
        width: 86px;
        height: 86px;
    }

    .prepare-spinner {
        width: 54px;
        height: 54px;
    }

    .prepare-status {
        margin-bottom: 8px;
        font-size: 0.95rem;
        line-height: 1.35;
        text-align: center;
    }

    .prepare-detail {
        min-height: 0;
        margin-bottom: 10px;
        font-size: 0.88rem;
        line-height: 1.45;
        text-align: center;
    }

    .prepare-progress-meta {
        margin-top: 8px;
        font-size: 0.82rem;
    }

    .prepare-step {
        padding: 12px 14px;
        border-radius: 14px;
    }

    .prepare-step strong {
        margin-bottom: 0;
        font-size: 0.88rem;
    }

    .prepare-step span {
        display: none;
    }

    .prepare-static-note {
        padding: 12px 14px;
        font-size: 0.86rem;
        line-height: 1.45;
    }
}

@media(max-width: 520px) {
    .header-shell {
        padding: 12px 14px;
        gap: 10px;
    }

    .brand-title {
        font-size: 1.3rem;
    }

    .brand-subtitle {
        letter-spacing: 0.22em;
    }

    .header-actions {
        grid-template-columns: 1fr 1.15fr;
        gap: 8px;
    }

    .header-actions .text-link,
    .header-actions .button-small {
        font-size: 0.92rem;
    }

    .hero-copy h1 {
        font-size: 2.35rem;
        line-height: 1.08;
    }

    .hero-actions .button,
    .hero-actions .button-outline,
    .hero-actions .button-primary {
        font-size: 0.95rem;
        padding: 12px 16px;
    }
}

@media(max-width: 600px) {
    body {
        background-size: auto, auto, 180px;
    }

    .review-card { width: 100%; }
    .compact-head h2 { font-size: 2rem; }
    
    .flow-media { 
        margin: 20px -4px -4px; 
        order: 10;
    }
    .flow-media img { aspect-ratio: 4 / 3; }
    
    .offer-shot-frame {
        padding: 10px;
        border-radius: 26px;
    }
    .offer-shot-image { border-radius: 18px; }

    .simple-layout {
        padding: 12px 10px 36px;
    }

    .quiz-progress-bar {
        height: 7px;
    }

    .eyebrow,
    .eyebrow-step,
    .badge-success,
    .cab-badge,
    .cab-badge-count {
        font-size: 0.75rem;
        min-height: 30px;
        padding: 0 12px;
    }

    .quiz-step > .eyebrow-step,
    .analysis-premium-head > .eyebrow-step {
        margin-top: 12px;
        margin-bottom: 14px;
    }

    .quiz-step h1,
    .quiz-step h2,
    .quiz-final-head h2,
    .analysis-summary-head h1,
    .analysis-hero-top h2,
    .prepare-copy h1,
    .cab-title,
    .cab-hero-title {
        font-size: 1.8rem;
    }

    .quiz-subtitle,
    .analysis-summary-head p,
    .prepare-detail {
        font-size: 0.93rem;
        line-height: 1.48;
    }

    .quiz-options,
    .quiz-options-spacious,
    .analysis-premium-foot {
        gap: 10px;
    }

    .quiz-step[data-step="5"] .quiz-options.grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px;
    }

    .quiz-grid-2,
    .analysis-metric-strip,
    .analysis-kpis,
    .checkout-ready-grid,
    .checkout-info-grid,
    .checkout-order-grid,
    .cab-metrics {
        grid-template-columns: 1fr !important;
    }

    .option-card-rich {
        min-height: 0;
        padding: 14px 14px;
        align-items: flex-start;
    }

    .quiz-step[data-step="5"] .option-card-rich {
        min-height: 78px;
        padding: 12px 10px;
        border-radius: 16px;
    }

    .option-card-rich .card-content strong {
        font-size: 0.96rem;
    }

    .option-card-rich .card-content small,
    .analysis-mini-card span,
    .prepare-step span,
    .cab-metric span:last-child {
        font-size: 0.86rem;
        line-height: 1.45;
    }

    .analysis-premium-hero,
    .prepare-hero {
        gap: 14px;
    }

    .premium-spinner,
    .prepare-spinner-wrap {
        margin: 0 auto;
    }

    .prepare-steps {
        gap: 10px;
    }

    .prepare-step {
        padding: 14px;
    }

    .quiz-step[data-step="5"] .quiz-section-card {
        margin: 14px 0 16px;
        padding: 16px 14px;
        border-radius: 18px;
    }

    .quiz-step[data-step="5"] .quiz-section-head h3 {
        font-size: 1.05rem;
        margin: 8px 0 4px;
    }

    .quiz-step[data-step="5"] .quiz-section-head p,
    .quiz-step[data-step="5"] .quiz-field-note {
        font-size: 0.84rem;
        line-height: 1.42;
    }

    .quiz-step[data-step="5"] .quiz-field-note {
        margin-top: 10px;
    }

    .renewal-summary-grid {
        margin-bottom: 18px;
    }

    .renewal-kpi {
        padding: 14px 14px;
        border-radius: 18px;
    }

    .renewal-kpi small {
        font-size: 0.8rem;
        line-height: 1.35;
    }

    .renewal-group {
        padding: 16px 14px 14px;
        border-radius: 18px;
        margin-bottom: 18px;
    }

    .renewal-group-title {
        font-size: 0.98rem;
        margin-bottom: 12px;
        padding-left: 0;
    }

    .renewal-group-title::before {
        position: static;
        display: block;
        margin-bottom: 8px;
    }

    .renewal-step .quiz-radio-card,
    .renewal-step .quiz-checkbox-card {
        padding: 15px 14px;
        border-radius: 16px;
    }

    .quiz-step[data-step="5"] > label:last-of-type {
        display: block;
        margin-top: 16px;
        margin-bottom: 0;
        padding: 16px 14px;
        border-radius: 18px;
        background: #ffffff;
        border: 1px solid rgba(116, 30, 64, 0.14);
        box-shadow: 0 10px 24px rgba(87, 19, 45, 0.06);
    }

    .quiz-step[data-step="5"] > label:last-of-type > span {
        margin-bottom: 10px;
        font-size: 0.8rem;
        line-height: 1.35;
        color: #532333;
    }

    .quiz-step[data-step="5"] > label:last-of-type textarea {
        min-height: 128px;
        padding: 14px 14px;
        border-radius: 16px;
        font-size: 0.95rem;
        line-height: 1.45;
    }

    .quiz-step[data-step="5"] > label:last-of-type textarea::placeholder {
        line-height: 1.45;
        color: rgba(83, 35, 51, 0.55);
    }

    /* Cabinet mobile */
    .cab-shell {
        padding: 18px 14px 24px;
    }

    .cab-header {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-bottom: 20px;
    }

    .cab-toolbar {
        align-items: center;
        gap: 10px;
        margin-bottom: 18px;
    }

    .cab-toolbar-tabs {
        flex: 1 1 auto;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: 2px;
    }

    .cab-toolbar-tabs::-webkit-scrollbar {
        display: none;
    }

    .cab-tab-button {
        flex: 0 0 auto;
        min-height: 40px;
        padding: 0 14px;
        font-size: 0.85rem;
    }

    .cab-hero {
        display: grid;
        grid-template-columns: 104px minmax(0, 1fr);
        align-items: center;
        gap: 16px;
        padding: 18px 16px;
        border-radius: 24px;
        background:
            radial-gradient(circle at top right, rgba(255, 20, 147, 0.12), transparent 40%),
            radial-gradient(circle at 14% 18%, rgba(255, 182, 193, 0.2), transparent 24%),
            linear-gradient(180deg, rgba(255,255,255,0.99) 0%, rgba(255,248,251,1) 100%);
        box-shadow:
            inset 0 1px 0 rgba(255,255,255,0.72),
            0 14px 30px rgba(159, 72, 114, 0.08);
    }

    .cab-hero-ring-wrap {
        align-self: center;
        justify-self: start;
    }

    .cab-hero-info {
        display: flex;
        flex-direction: column;
        gap: 4px;
        min-width: 0;
    }

    .cab-hero-top-row {
        justify-content: flex-start;
        gap: 6px;
        margin-bottom: 2px;
    }

    .cab-hero-title {
        margin: 0;
        font-size: 1.58rem;
        line-height: 1.08;
        letter-spacing: -0.03em;
    }

    .cab-hero-period {
        margin: 0;
        font-size: 0.86rem;
        line-height: 1.35;
    }

    .cab-hero-milestone {
        margin: 0;
        font-size: 0.84rem;
        line-height: 1.35;
    }

    .cab-badge {
        min-height: 28px;
        padding: 0 11px;
        font-size: 0.74rem;
    }

    .cab-metrics {
        grid-template-columns: 1fr;
    }

    .cab-actions {
        grid-template-columns: 1fr;
    }

    .cab-streak-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 6px;
    }

    .cab-streak-day {
        padding: 8px 2px 6px;
    }

    .cab-history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .cab-plan-card-top {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .cab-plan-stage-wrap {
        width: 100%;
    }

    .cab-plan-status {
        align-self: flex-start;
    }

    .cab-plan-card {
        padding: 18px 16px 16px;
    }

    .cab-plan-card h3 {
        font-size: 1.14rem;
    }

    .cab-plan-stage-name {
        font-size: 0.98rem;
    }

    .cab-plan-facts {
        gap: 6px;
    }

    .cab-plan-fact {
        min-height: 28px;
        font-size: 0.72rem;
        padding: 0 10px;
    }

    .cab-plan-card-actions,
    .cab-plan-card-actions form,
    .cab-plan-action {
        width: 100%;
    }

    .cab-plan-action {
        min-height: 44px;
    }

    .cab-bottom-zone {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cab-bottom-copy {
        align-items: center;
        text-align: center;
    }

    .cab-bottom-actions {
        width: 100%;
        justify-content: center;
        flex-direction: column;
    }

    .cab-bottom-logout {
        width: 100%;
    }

    .cab-hero-ring-wrap {
        flex-basis: 104px;
        width: 104px;
        height: 104px;
    }

    .cab-ring {
        width: 104px;
        height: 104px;
    }

    .cab-ring-day {
        font-size: 2rem;
        line-height: 0.95;
    }

    .cab-ring-total {
        font-size: 0.74rem;
    }
}

@media(max-width: 420px) {
    .cab-hero {
        grid-template-columns: 88px minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        padding: 16px 14px;
    }

    .cab-hero-ring-wrap {
        justify-self: start;
        flex-basis: 88px;
        width: 88px;
        height: 88px;
    }

    .cab-ring {
        width: 88px;
        height: 88px;
    }

    .cab-ring-center {
        inset: 10px;
    }

    .cab-hero-title {
        font-size: 1.42rem;
    }

    .cab-ring-day {
        font-size: 1.72rem;
    }

    .cab-ring-total {
        font-size: 0.7rem;
    }
}
