:root {
    --bg-color: #0a0a0c;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-orange: #ff9900;
    --accent-green: #00d26a;
    --card-bg: rgba(25, 25, 28, 0.6);
    --card-border: rgba(255, 255, 255, 0.05);
    --glow-color: rgba(255, 153, 0, 0.15);
    --font-family: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

.container {
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header */
.top-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.logo {
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.5px;
}

.divider {
    color: #444;
}

.badge {
    border: 1px solid #444;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #ccc;
    background: rgba(255, 255, 255, 0.03);
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 32px;
}

.hero h1 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero .highlight {
    color: var(--accent-orange);
}

.hero .subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto;
}

/* Main Book Card */
.book-card-container {
    width: 100%;
    padding: 2px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 153, 0, 0.3) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0) 100%);
    box-shadow: 0 0 80px var(--glow-color);
    margin-bottom: 32px;
}

.book-card {
    background-color: #121214;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 32px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

/* Book Cover Styling */
.book-cover-wrapper {
    perspective: 1000px;
    margin-bottom: 28px;
    display: flex;
    justify-content: center;
}

.book-image {
    width: 270px;
    max-width: 100%;
    height: auto;
    max-height: 390px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.75), 0 0 25px rgba(255, 153, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transform: perspective(800px) rotateY(-4deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-image:hover {
    transform: perspective(800px) rotateY(0deg) scale(1.03);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 153, 0, 0.35);
}

/* Features List */
.features-list {
    list-style: none;
    width: 100%;
    margin-bottom: 24px;
    background: rgba(255,255,255,0.03);
    padding: 16px;
    border-radius: 12px;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #ddd;
    line-height: 1.4;
}

.features-list li:last-child {
    margin-bottom: 0;
}

.check-icon {
    color: var(--accent-orange);
    font-weight: 900;
    font-size: 16px;
    line-height: 1;
}

/* Card Footer */
.card-footer {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding-top: 20px;
    border-top: 1px solid var(--card-border);
}

.label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #777;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.value {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.green-text {
    color: var(--accent-green);
}

.dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--accent-green);
}

.strike {
    text-decoration: line-through;
    color: #777;
}

.bold {
    font-weight: 800;
    font-size: 16px;
}

/* Downloads Status */
.downloads-status {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.status-text {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 12px;
}

.orange-text {
    color: var(--accent-orange);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: var(--accent-orange);
    border-radius: 4px;
    box-shadow: 0 0 10px var(--accent-orange);
    transition: width 1.5s cubic-bezier(0.1, 0.8, 0.2, 1);
}

/* Instructions */
.instructions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

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

.step-number {
    width: 24px;
    height: 24px;
    background-color: rgba(255, 153, 0, 0.15);
    color: var(--accent-orange);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-text {
    font-size: 14px;
    color: #ccc;
}

.step-text strong {
    color: #fff;
}

/* CTA Button */
.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background-color: var(--accent-orange);
    color: #000;
    text-decoration: none;
    padding: 18px 14px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 15px;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(255, 153, 0, 0.3);
    margin-bottom: 16px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 153, 0, 0.4);
    background-color: #ffaa33;
}

.cta-button:active {
    transform: translateY(0);
}

.download-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* Fine Print */
.fine-print {
    font-size: 11px;
    color: #666;
    text-align: center;
}

/* Responsive Mobile Rules */
@media (max-width: 480px) {
    body {
        padding: 12px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .book-card {
        padding: 24px 16px 20px;
    }

    .cta-button {
        font-size: clamp(12px, 3.6vw, 15px);
        padding: 16px 10px;
        gap: 8px;
        white-space: nowrap;
    }

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

    .status-text {
        font-size: 11px;
        white-space: nowrap;
    }

    .status-text .left,
    .status-text .right {
        white-space: nowrap;
    }

    .card-footer .value {
        font-size: 13px;
        white-space: nowrap;
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-150%);
    background: rgba(40, 45, 40, 0.9);
    border: 1px solid rgba(0, 210, 106, 0.3);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    opacity: 0;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-icon {
    width: 36px;
    height: 36px;
    background-color: var(--accent-green);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    flex-shrink: 0;
}

.toast-content {
    display: flex;
    flex-direction: column;
}

.toast-title {
    font-size: 10px;
    font-weight: 700;
    color: #999;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 13px;
    color: #fff;
}
