@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.animate-slide-up { animation: slideUp 0.5s ease-out forwards; }

.mode-button {
    min-height: 72px;
    border: 1px solid rgba(51, 65, 85, 1);
    background: rgba(15, 23, 42, 0.9);
    border-radius: 8px;
    color: rgb(203, 213, 225);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.mode-button:hover,
.mode-button.selected {
    border-color: rgba(16, 185, 129, 0.85);
    background: rgba(6, 78, 59, 0.35);
    color: white;
}

.download-button {
    width: 100%;
    border: 1px solid rgba(51, 65, 85, 1);
    background: rgba(15, 23, 42, 0.95);
    border-radius: 8px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    font-weight: 700;
    transition: border-color 160ms ease, background 160ms ease;
}

.download-button:hover {
    border-color: rgba(59, 130, 246, 0.85);
    background: rgba(30, 41, 59, 1);
}

/* Ad placeholders are only rendered when a real ad slot is configured. */
.ad-slot {
    background: rgba(15, 23, 42, 0.5);
    border: 1px dashed rgba(100, 116, 139, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    color: rgba(100, 116, 139, 0.4);
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    overflow: hidden;
}

.ad-leaderboard {
    min-height: 82px;
    width: 100%;
}

.ad-rectangle {
    min-height: 72px;
    width: 100%;
}

.ad-in-article {
    min-height: 120px;
    width: 100%;
}

.ad-slot:empty {
    display: none;
}

.ad-slot[hidden] {
    display: none;
}

.ad-label {
    color: rgba(148, 163, 184, 0.55);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.ad-compact {
    padding: 10px;
}

.ad-leaderboard-active {
    padding: 10px;
}

.ad-banner-mount {
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-native {
    min-height: 160px;
    padding: 12px;
}

.ad-native-container {
    width: 100%;
}

.content-section {
    border-top: 1px solid rgba(30, 41, 59, 1);
    padding: 32px 0;
}

.content-section:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.content-section h2 {
    color: rgb(248, 250, 252);
    font-size: 1.6rem;
    line-height: 1.25;
    font-weight: 800;
    margin-bottom: 14px;
}

.content-section h3 {
    color: rgb(226, 232, 240);
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 800;
    margin-bottom: 8px;
}

.content-section p {
    color: rgb(203, 213, 225);
    line-height: 1.75;
    margin-bottom: 14px;
}

.info-grid,
.faq-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.faq-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-grid article,
.faq-list article,
.policy-card {
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(30, 41, 59, 1);
    border-radius: 8px;
    padding: 18px;
}

.info-grid article p,
.faq-list article p,
.policy-card p {
    font-size: 0.94rem;
    margin-bottom: 0;
}

.platform-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.platform-list span {
    border: 1px solid rgba(51, 65, 85, 1);
    background: rgba(15, 23, 42, 0.8);
    color: rgb(226, 232, 240);
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 0.9rem;
    font-weight: 700;
}

.legal-page {
    max-width: 860px;
}

.legal-page h1 {
    font-size: 2.35rem;
    line-height: 1.15;
    font-weight: 900;
    margin-bottom: 14px;
}

.legal-page h2 {
    color: rgb(248, 250, 252);
    font-size: 1.35rem;
    line-height: 1.3;
    font-weight: 800;
    margin: 28px 0 10px;
}

.legal-page p,
.legal-page li {
    color: rgb(203, 213, 225);
    line-height: 1.75;
}

.legal-page ul {
    list-style: disc;
    padding-left: 22px;
    margin: 10px 0 18px;
}

.legal-page a {
    color: rgb(52, 211, 153);
    text-decoration: underline;
}

@media (max-width: 900px) {
    .info-grid,
    .faq-list {
        grid-template-columns: 1fr;
    }
}

/* Countdown during processing */
.countdown-ring {
    animation: countdownShrink linear forwards;
    stroke-dasharray: 113;
    stroke-dashoffset: 0;
}

@keyframes countdownShrink {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: 113; }
}
