/* ============================================
   DESPARASITA TU INTESTINO - PREMIUM STYLES
   ============================================ */

/* === DESIGN TOKENS === */
:root {
    --green-900: #1B4332;
    --green-800: #2D6A4F;
    --green-700: #40916C;
    --green-600: #52B788;
    --green-500: #74C69D;
    --green-400: #95D5B2;
    --green-300: #B7E4C7;
    --green-200: #D8F3DC;
    --green-100: #EDF7F0;
    --green-50: #F5FBF7;

    --beige-100: #FDF8F0;
    --beige-200: #F5EDDF;
    --beige-300: #E8DCC8;

    --warm-white: #FEFDFB;
    --white: #FFFFFF;

    --text-primary: #1A1A2E;
    --text-secondary: #4A5568;
    --text-muted: #8B95A5;
    --text-light: #A0AEC0;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.12);
    --shadow-green: 0 4px 20px rgba(45, 106, 79, 0.2);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 28px;
    --radius-full: 50%;

    --font-primary: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    --nav-height: 72px;
}

/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--green-50);
    color: var(--text-primary);
    min-height: 100dvh;
    overflow-x: hidden;
    line-height: 1.6;
}

.screen {
    display: none;
    min-height: 100dvh;
}

.screen.active {
    display: flex;
}

/* === SPLASH SCREEN === */
#splash-screen {
    background: linear-gradient(160deg, var(--green-800) 0%, var(--green-900) 40%, #0D2818 100%);
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.splash-content {
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.splash-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

.splash-leaf {
    font-size: 64px;
    position: relative;
    z-index: 2;
    animation: gentleBounce 2s ease-in-out infinite;
}

.splash-pulse {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    background: rgba(116, 198, 157, 0.15);
    animation: pulseRing 2s ease-in-out infinite;
}

.splash-title {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.splash-subtitle {
    font-size: 0.95rem;
    color: var(--green-300);
    font-weight: 300;
    margin-bottom: 40px;
}

.splash-loader {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 0 auto;
    overflow: hidden;
}

.splash-loader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--green-500), var(--green-300));
    border-radius: 4px;
    animation: loadingBar 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* === ONBOARDING SCREENS === */
#onboarding-welcome, #onboarding-name, #onboarding-ready {
    background: var(--warm-white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.onboarding-container {
    max-width: 400px;
    width: 100%;
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

.onboarding-illustration {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

.onboarding-circle {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--green-200), var(--green-100));
    animation: softPulse 3s ease-in-out infinite;
}

.onboarding-circle.small {
    width: 100px;
    height: 100px;
}

.onboarding-emoji {
    position: absolute;
    font-size: 48px;
    animation: gentleBounce 2.5s ease-in-out infinite;
}

.onboarding-title {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--green-900);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.onboarding-heading {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--green-800);
    margin-bottom: 16px;
}

.onboarding-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.onboarding-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.onboarding-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--green-100);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    text-align: left;
}

.feature-icon {
    font-size: 1.3rem;
}

.feature-text {
    font-weight: 500;
    color: var(--green-900);
    font-size: 0.95rem;
}

/* === INPUT FIELD === */
.input-group {
    position: relative;
    margin-bottom: 32px;
}

.input-field {
    width: 100%;
    padding: 18px 20px;
    font-size: 1.05rem;
    font-family: var(--font-body);
    border: 2px solid var(--green-300);
    border-radius: var(--radius-lg);
    background: var(--white);
    color: var(--text-primary);
    outline: none;
    transition: var(--transition-base);
}

.input-field:focus {
    border-color: var(--green-600);
    box-shadow: 0 0 0 4px rgba(82, 183, 136, 0.15);
}

.input-field::placeholder {
    color: var(--text-light);
}

.input-label {
    position: absolute;
    top: -8px;
    left: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--green-700);
    background: var(--warm-white);
    padding: 0 6px;
}

/* === PROTOCOL PREVIEW === */
.protocol-preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
    text-align: left;
}

.preview-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--green-100);
    border-radius: var(--radius-md);
    animation: fadeInUp 0.5s ease-out both;
}

.preview-item:nth-child(1) { animation-delay: 0.1s; }
.preview-item:nth-child(2) { animation-delay: 0.2s; }
.preview-item:nth-child(3) { animation-delay: 0.3s; }
.preview-item:nth-child(4) { animation-delay: 0.4s; }

.preview-num {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--green-700), var(--green-600));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.preview-item span {
    font-weight: 500;
    color: var(--green-900);
    font-size: 0.95rem;
}

/* === BUTTONS === */
.btn-primary {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--green-700), var(--green-600));
    color: var(--white);
    border: none;
    border-radius: var(--radius-xl);
    font-family: var(--font-primary);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-base);
    box-shadow: var(--shadow-green);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.1));
    opacity: 0;
    transition: var(--transition-base);
}

.btn-primary:hover::after,
.btn-primary:active::after {
    opacity: 1;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-arrow {
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-secondary {
    width: 100%;
    padding: 16px 24px;
    background: var(--white);
    color: var(--green-800);
    border: 2px solid var(--green-600);
    border-radius: var(--radius-xl);
    font-family: var(--font-primary);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-secondary:active {
    background: var(--green-100);
    transform: scale(0.98);
}

.btn-whatsapp {
    width: 100%;
    padding: 16px 24px;
    background: #25D366;
    color: var(--white);
    border: none;
    border-radius: var(--radius-xl);
    font-family: var(--font-primary);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition-base);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:active {
    transform: scale(0.98);
}

/* === MAIN APP === */
#main-app {
    flex-direction: column;
    background: var(--green-50);
}

/* === APP HEADER === */
.app-header {
    background: linear-gradient(160deg, var(--green-800) 0%, var(--green-900) 100%);
    padding: 20px 20px 24px;
    border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
    position: relative;
    z-index: 10;
}

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

.header-greeting h1 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.header-status {
    font-size: 0.85rem;
    color: var(--green-300);
    margin-top: 2px;
}

.header-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--green-500), var(--green-400));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--green-900);
    font-size: 1.1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Progress Card */
.progress-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 18px;
}

.progress-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.progress-label {
    font-size: 0.8rem;
    color: var(--green-300);
    display: block;
    margin-bottom: 2px;
}

.progress-percent {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
}

.progress-day {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 14px;
    border-radius: var(--radius-md);
}

.day-label {
    font-size: 0.7rem;
    color: var(--green-300);
    display: block;
}

.day-number {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
}

.progress-bar-container {
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--green-400), var(--green-300));
    border-radius: 4px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-message {
    font-size: 0.8rem;
    color: var(--green-200);
    line-height: 1.4;
}

/* === APP CONTENT === */
.app-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px 16px;
    padding-bottom: calc(var(--nav-height) + 24px);
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.section {
    margin-bottom: 32px;
}

.section-header {
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--green-900);
    margin-bottom: 4px;
}

.section-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* === PHASE CARDS === */
.phases-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.phase-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: var(--transition-base);
}

.phase-card:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-md);
}

.phase-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.phase-number {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--green-200);
    color: var(--green-800);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: var(--transition-base);
}

.phase-number.active {
    background: linear-gradient(135deg, var(--green-700), var(--green-600));
    color: var(--white);
    box-shadow: 0 2px 8px rgba(45, 106, 79, 0.3);
}

.phase-card-info {
    flex: 1;
}

.phase-card-info h3 {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.phase-card-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.phase-status {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--green-300);
}

.status-dot.active {
    background: var(--green-600);
    box-shadow: 0 0 8px rgba(82, 183, 136, 0.5);
    animation: statusPulse 2s ease-in-out infinite;
}

.status-dot.completed {
    background: var(--green-600);
}

.status-text {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.phase-progress-bar {
    height: 4px;
    background: var(--green-100);
    border-radius: 2px;
    overflow: hidden;
}

.phase-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--green-600), var(--green-400));
    border-radius: 2px;
    transition: width 0.8s ease;
}

/* === TIMELINE === */
.timeline-container {
    position: relative;
    padding-left: 28px;
}

.timeline-line {
    position: absolute;
    left: 11px;
    top: 16px;
    bottom: 16px;
    width: 2px;
    background: var(--green-200);
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -22px;
    top: 16px;
    width: 14px;
    height: 14px;
    border-radius: var(--radius-full);
    background: var(--green-200);
    border: 3px solid var(--green-50);
    transition: var(--transition-base);
    z-index: 1;
}

.timeline-dot.active {
    background: var(--green-600);
    box-shadow: 0 0 0 4px rgba(82, 183, 136, 0.2);
}

.timeline-dot.completed {
    background: var(--green-600);
}

.timeline-content {
    background: var(--white);
    padding: 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.timeline-week {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--green-700);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.timeline-content h4 {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.timeline-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 10px;
}

.timeline-progress {
    height: 4px;
    background: var(--green-100);
    border-radius: 2px;
    overflow: hidden;
}

.timeline-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--green-600), var(--green-400));
    border-radius: 2px;
    transition: width 0.8s ease;
}

/* === CHECKLIST === */
.checklist-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    padding: 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: var(--transition-base);
    user-select: none;
    -webkit-user-select: none;
}

.checklist-item:active {
    transform: scale(0.98);
}

.checklist-item.completed {
    background: var(--green-100);
    border-color: var(--green-300);
}

.check-circle {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    border: 2px solid var(--green-400);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-base);
}

.checklist-item.completed .check-circle {
    background: var(--green-600);
    border-color: var(--green-600);
}

.check-icon {
    display: none;
    color: var(--white);
    font-weight: 700;
    font-size: 0.8rem;
}

.checklist-item.completed .check-icon {
    display: block;
}

.checklist-text {
    flex: 1;
}

.checklist-text h4 {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    transition: var(--transition-base);
}

.checklist-item.completed .checklist-text h4 {
    text-decoration: line-through;
    color: var(--text-muted);
}

.checklist-text p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.checklist-time {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--green-700);
    background: var(--green-100);
    padding: 4px 10px;
    border-radius: 20px;
    flex-shrink: 0;
}

/* === REUNION CARD === */
.reunion-card {
    background: linear-gradient(135deg, var(--green-100), var(--beige-100));
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--green-200);
}

.reunion-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--green-700), var(--green-600));
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.reunion-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.reunion-card h3 {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--green-900);
    margin-bottom: 10px;
}

.reunion-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* === TEA CARDS === */
.tea-cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tea-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 18px 14px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: var(--transition-base);
}

.tea-card:active {
    transform: scale(0.96);
    box-shadow: var(--shadow-md);
}

.tea-emoji {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.tea-card h4 {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.tea-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 10px;
}

.tea-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--green-700);
    background: var(--green-100);
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === VIP CARD === */
.vip-card {
    background: linear-gradient(160deg, var(--green-900), #0D2818);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.vip-glow {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    background: rgba(116, 198, 157, 0.15);
    filter: blur(40px);
}

.vip-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.vip-card h3 {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.vip-card p {
    font-size: 0.9rem;
    color: var(--green-300);
    line-height: 1.6;
    margin-bottom: 20px;
}

.vip-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
}

.vip-stat {
    display: flex;
    flex-direction: column;
}

.vip-stat-num {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--green-400);
}

.vip-stat-label {
    font-size: 0.75rem;
    color: var(--green-300);
}

.vip-card .btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--green-500);
}

.vip-card .btn-secondary:active {
    background: rgba(255, 255, 255, 0.1);
}

/* === SUPPORT CARD === */
.support-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.support-icon {
    font-size: 42px;
    margin-bottom: 14px;
}

.support-card h3 {
    font-family: var(--font-primary);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.support-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* === GUARANTEE CARD === */
.guarantee-card {
    background: linear-gradient(135deg, var(--beige-100), var(--white));
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    text-align: center;
    border: 1px solid var(--beige-200);
}

.guarantee-shield {
    font-size: 48px;
    margin-bottom: 14px;
}

.guarantee-card h3 {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--green-900);
    margin-bottom: 10px;
}

.guarantee-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.guarantee-highlight {
    background: var(--green-100);
    border-left: 4px solid var(--green-600);
    padding: 14px 18px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-bottom: 10px;
}

.guarantee-highlight strong {
    color: var(--green-900);
    font-size: 0.95rem;
    line-height: 1.5;
}

.guarantee-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

/* === BOTTOM NAVIGATION === */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--white);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    z-index: 100;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.04);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 12px;
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
}

.nav-icon {
    font-size: 1.3rem;
    transition: var(--transition-fast);
}

.nav-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.nav-item.active .nav-label {
    color: var(--green-700);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    width: 24px;
    height: 3px;
    background: var(--green-600);
    border-radius: 0 0 3px 3px;
}

/* === MODALS === */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--warm-white);
    animation: slideInRight 0.3s ease-out;
}

.modal.active {
    display: flex;
    flex-direction: column;
}

.modal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: var(--white);
}

.modal-back {
    background: none;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--green-700);
    cursor: pointer;
    font-family: var(--font-body);
    padding: 8px 0;
}

.modal-phase-number {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--green-900);
    font-size: 0.95rem;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 20px;
    -webkit-overflow-scrolling: touch;
}

.modal-body h2 {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--green-900);
    margin-bottom: 8px;
}

.modal-body .phase-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--green-100);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--green-600);
}

.modal-body .modal-section-title {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    color: var(--green-800);
    margin-bottom: 12px;
    margin-top: 24px;
}

.modal-body .modal-checklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Tea detail styles */
.tea-detail-header {
    text-align: center;
    margin-bottom: 24px;
}

.tea-detail-emoji {
    font-size: 4rem;
    margin-bottom: 12px;
}

.tea-detail-header h2 {
    text-align: center;
}

.tea-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}

.tea-benefit-tag {
    background: var(--green-100);
    color: var(--green-800);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tea-ingredients, .tea-steps {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.tea-ingredients h3, .tea-steps h3 {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--green-900);
    margin-bottom: 12px;
}

.tea-ingredients ul {
    list-style: none;
}

.tea-ingredients li {
    padding: 8px 0;
    border-bottom: 1px solid var(--green-100);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.tea-ingredients li:last-child {
    border-bottom: none;
}

.tea-ingredients li::before {
    content: '🌿 ';
}

.tea-steps ol {
    list-style: none;
    counter-reset: steps;
}

.tea-steps li {
    counter-increment: steps;
    padding: 10px 0 10px 36px;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    border-bottom: 1px solid var(--green-100);
}

.tea-steps li:last-child {
    border-bottom: none;
}

.tea-steps li::before {
    content: counter(steps);
    position: absolute;
    left: 0;
    top: 10px;
    width: 24px;
    height: 24px;
    background: var(--green-600);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === NOTIFICATION TOAST === */
.notification-toast {
    position: fixed;
    top: -100px;
    left: 16px;
    right: 16px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-xl);
    z-index: 300;
    transition: top 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--green-200);
}

.notification-toast.show {
    top: 16px;
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.toast-message {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}

/* === BOTTOM SPACER === */
.bottom-spacer {
    height: 20px;
}

/* === KEYFRAME ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes gentleBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes softPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes pulseRing {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.4); opacity: 0; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

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

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 4px rgba(82, 183, 136, 0.3); }
    50% { box-shadow: 0 0 12px rgba(82, 183, 136, 0.6); }
}

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

/* === RESPONSIVE ADJUSTMENTS === */
@media (min-width: 480px) {
    .app-content {
        max-width: 480px;
        margin: 0 auto;
    }
    .app-header {
        max-width: 480px;
        margin: 0 auto;
    }
    .bottom-nav {
        max-width: 480px;
        margin: 0 auto;
        left: 50%;
        transform: translateX(-50%);
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }
}

/* Theme for checked items animation */
.checklist-item.just-checked .check-circle {
    animation: checkPop 0.4s ease-out;
}

/* Scrollbar styling */
.app-content::-webkit-scrollbar {
    width: 0;
}

/* Disable text selection on interactive elements */
button, .phase-card, .tea-card, .checklist-item {
    -webkit-user-select: none;
    user-select: none;
}
