/* CSS Reset & Variables */
:root {
    --primary-color: #004b23;      /* Forest Green */
    --primary-light: #006400;      /* Dark Green */
    --accent-color: #38b000;       /* Lime Green */
    --accent-glow: rgba(56, 176, 0, 0.4);
    --warning-color: #ff9f1c;      /* Soft Orange/Yellow */
    --warning-bg: rgba(255, 159, 28, 0.1);
    --text-dark: #1b262c;          /* Deep Charcoal */
    --text-muted: #62757f;         /* Grayish Blue */
    --bg-gradient-start: #edf4ee;
    --bg-gradient-end: #f8fbf9;
    --card-bg: #ffffff;
    --border-radius-lg: 20px;
    --border-radius-md: 12px;
    --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    background-color: #f3f6f4;
    line-height: 1.5;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

/* App Wrapper (Centered Container like a Mobile Device or Compact Web App) */
.app-container {
    width: 100%;
    max-width: 500px;
    background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    box-shadow: 0 0 40px rgba(0, 75, 35, 0.08);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Header Stylings */
.app-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 75, 35, 0.06);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-svg {
    height: 38px;
    width: auto;
}

.badge-header {
    background: rgba(0, 75, 35, 0.06);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-indicator {
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--accent-color);
    animation: blink 1.5s infinite ease-in-out;
}

@keyframes blink {
    0%, 100% { opacity: 0.3; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Main Content Area */
.main-content {
    flex: 1;
    padding: 24px 20px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease-out;
}

.success-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(56, 176, 0, 0.12);
    border: 1px solid rgba(56, 176, 0, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
    gap: 8px;
}

.badge-icon {
    font-size: 16px;
}

.badge-text {
    color: #1b5e20;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.hero-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.25;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.highlight-green {
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    padding: 0 10px;
    line-height: 1.5;
}

/* Offer Cards */
.offer-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out;
}

.offer-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
}

.card-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 9px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 50px;
    letter-spacing: 0.8px;
    background-color: rgba(0, 75, 35, 0.08);
    color: var(--primary-color);
}

.bonus-tag {
    background-color: #fff2e6;
    color: #e65100;
}

.card-icon-wrapper {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(0, 75, 35, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.card-icon {
    font-size: 28px;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.card-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: #e65100;
    margin-bottom: 10px;
}

.card-description {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.card-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-color);
}

.check-icon {
    width: 16px;
    height: 16px;
}

/* Bonus Card with Book Mockup */
.bonus-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.book-mockup-container {
    width: 140px;
    height: 190px;
    position: relative;
    perspective: 1000px;
    margin-bottom: 20px;
    margin-top: 12px;
}

.book-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px 12px 12px 4px;
    box-shadow: 5px 10px 20px rgba(0, 0, 0, 0.15), 
                inset 3px 0px 5px rgba(255, 255, 255, 0.2);
    transform: rotateY(-10deg);
    transition: var(--transition-smooth);
}

.bonus-card:hover .book-cover-img {
    transform: rotateY(-5deg) translateY(-5px);
}

.book-shadow {
    position: absolute;
    bottom: -10px;
    left: 10%;
    width: 80%;
    height: 15px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.2) 0%,rgba(0,0,0,0) 80%);
    z-index: -1;
}

.bonus-details {
    width: 100%;
}

.bonus-icon {
    font-size: 26px;
    display: block;
    margin-bottom: 6px;
}

/* Social Proof */
.social-proof-section {
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out;
}

.proof-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.proof-item {
    background: var(--card-bg);
    border-radius: var(--border-radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 75, 35, 0.04);
}

.proof-icon {
    font-size: 20px;
    background: #f1f8f3;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.proof-text {
    display: flex;
    flex-direction: column;
}

.proof-text strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
}

.proof-text span {
    font-size: 11px;
    color: var(--text-muted);
}

/* Call to Action */
.cta-section {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(56, 176, 0, 0.15);
    margin-bottom: 24px;
    animation: fadeInUp 1.2s ease-out;
}

.cta-header {
    margin-bottom: 20px;
}

.cta-emoji {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}

.cta-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.2px;
    margin-bottom: 6px;
}

.cta-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    padding: 0 10px;
}

.button-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.btn-download {
    background: linear-gradient(135deg, #38b000 0%, #007200 100%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 18px 28px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 6px 20px rgba(56, 176, 0, 0.35);
    transition: var(--transition-smooth);
    animation: pulseBtn 2s infinite;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(56, 176, 0, 0.45);
}

.btn-download:active {
    transform: translateY(1px);
}

.btn-icon {
    width: 18px;
    height: 18px;
}

@keyframes pulseBtn {
    0% {
        box-shadow: 0 0 0 0 rgba(56, 176, 0, 0.6);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(56, 176, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(56, 176, 0, 0);
    }
}

/* Scarcity Warning */
.scarcity-warning {
    background-color: var(--warning-bg);
    border: 1px dashed rgba(255, 159, 28, 0.4);
    border-radius: var(--border-radius-md);
    padding: 12px 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
}

.warning-icon {
    font-size: 16px;
    line-height: 1;
}

.warning-text {
    font-size: 11px;
    color: #b25e00;
    line-height: 1.4;
}

/* Footer Section */
.app-footer {
    padding: 24px 20px;
    background: #00220c;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    font-size: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.disclaimer-text {
    line-height: 1.5;
    margin-bottom: 16px;
    text-align: justify;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-weight: 500;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.2);
}

/* Success Modal overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 34, 12, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

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

.modal-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 32px 24px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.modal-icon-success {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(56, 176, 0, 0.1);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.modal-icon-success svg {
    width: 32px;
    height: 32px;
}

.modal-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.modal-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 24px;
}

.modal-action-btn {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 14px 28px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: var(--transition-smooth);
}

.modal-action-btn:hover {
    background-color: var(--primary-light);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects */
.pulse-hover {
    transition: var(--transition-smooth);
}

.pulse-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
