/* ============================================
   PDF Saver — Premium Dark Theme Stylesheet
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111119;
    --bg-card: rgba(17, 17, 28, 0.7);
    --bg-card-hover: rgba(22, 22, 38, 0.85);
    --bg-input: rgba(15, 15, 25, 0.8);

    --text-primary: #e8e8f0;
    --text-secondary: #8888a8;
    --text-muted: #55556e;

    --accent-1: #6c5ce7;
    --accent-2: #a855f7;
    --accent-3: #c084fc;
    --accent-gradient: linear-gradient(135deg, #6c5ce7 0%, #a855f7 50%, #c084fc 100%);
    --accent-glow: rgba(108, 92, 231, 0.3);

    --green: #10b981;
    --green-glow: rgba(16, 185, 129, 0.25);
    --green-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --orange: #f59e0b;
    --orange-glow: rgba(245, 158, 11, 0.2);
    --red: #ef4444;
    --red-glow: rgba(239, 68, 68, 0.2);
    --cyan: #06b6d4;

    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px var(--accent-glow);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* --- Animated Background Blobs --- */
.bg-blobs {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    animation: blobFloat 20s ease-in-out infinite alternate;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-1);
    top: -10%;
    left: -5%;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-2);
    bottom: -10%;
    right: -5%;
    animation-delay: -7s;
    animation-duration: 25s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: var(--cyan);
    top: 40%;
    left: 50%;
    animation-delay: -14s;
    animation-duration: 30s;
    opacity: 0.15;
}

@keyframes blobFloat {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 50px) scale(0.9); }
    100% { transform: translate(20px, 20px) scale(1.05); }
}

/* --- Particles --- */
.particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-3);
    border-radius: 50%;
    opacity: 0;
    animation: particleDrift linear infinite;
}

@keyframes particleDrift {
    0% { opacity: 0; transform: translateY(0) scale(0.5); }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-100vh) scale(1.5); }
}

/* --- App Container --- */
.app-container {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* --- Header --- */
.header {
    text-align: center;
    margin-bottom: 48px;
    animation: fadeInDown 0.8s ease-out;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 12px;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    color: white;
    box-shadow: var(--shadow-glow);
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { box-shadow: 0 0 20px var(--accent-glow); }
    50% { box-shadow: 0 0 40px var(--accent-glow), 0 0 60px rgba(168, 85, 247, 0.15); }
}

.logo h1 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.logo h1 .accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* --- Cards --- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition);
    animation: fadeInUp 0.6s ease-out both;
}

.card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.card h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 20px;
}

/* --- Input Group --- */
.input-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.input-wrapper {
    flex: 1;
    min-width: 250px;
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition);
}

.input-wrapper input {
    width: 100%;
    padding: 14px 44px 14px 48px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.input-wrapper input:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.btn-clear {
    position: absolute;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
}

.input-wrapper input:not(:placeholder-shown) ~ .btn-clear {
    opacity: 1;
    pointer-events: all;
}

.btn-clear:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-download {
    background: var(--green-gradient);
    color: white;
    box-shadow: 0 4px 20px var(--green-glow);
    position: relative;
    overflow: hidden;
}

.btn-download:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--green-glow);
}

.btn-download:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-download .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.btn-download.loading .dl-icon { display: none; }
.btn-download.loading .spinner { display: block; }

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

/* --- Error Message --- */
.error-msg {
    color: var(--red);
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 12px;
    display: none;
    align-items: center;
    gap: 6px;
    animation: shake 0.4s ease;
}

.error-msg.show {
    display: flex;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* --- Progress --- */
.progress-area {
    margin-top: 20px;
    animation: fadeInUp 0.4s ease-out;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--green-gradient);
    border-radius: 100px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-fill.indeterminate {
    width: 40% !important;
    animation: indeterminate 1.4s ease-in-out infinite;
}

@keyframes indeterminate {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

.progress-status {
    font-size: 0.84rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.progress-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* --- Success Card --- */
.card-success {
    text-align: center;
    border-color: rgba(16, 185, 129, 0.2);
}

.success-icon-wrap {
    margin-bottom: 16px;
}

.success-check {
    color: var(--green);
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.success-title {
    color: var(--green);
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.success-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 20px;
}

/* --- Fallback Card --- */
.card-fallback {
    border-color: rgba(245, 158, 11, 0.15);
}

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

.method-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 10px;
}

.method-badge-advanced {
    color: var(--orange);
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(108, 92, 231, 0.12);
    border: 1px solid rgba(108, 92, 231, 0.25);
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-3);
    flex-shrink: 0;
}

.step-content {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-top: 3px;
}

.step-content strong {
    color: var(--text-primary);
}

.drive-link {
    display: inline-block;
    margin-top: 4px;
    color: var(--accent-3);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--transition);
}

.drive-link:hover {
    color: var(--accent-2);
}

kbd {
    display: inline-block;
    padding: 2px 8px;
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-hover);
    border-radius: 5px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

.fallback-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.method-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.method-note svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--accent-3);
}

.method-note-warn {
    background: rgba(245, 158, 11, 0.04);
    border-color: rgba(245, 158, 11, 0.15);
}

.method-note-warn svg {
    color: var(--orange);
}

/* --- Multi-link textarea --- */
.input-group-multi {
    flex-direction: column;
    align-items: stretch;
}

.input-wrapper textarea {
    width: 100%;
    padding: 14px 44px 14px 48px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.95rem;
    line-height: 1.7;
    outline: none;
    resize: vertical;
    min-height: 92px;
    transition: var(--transition);
}

.input-wrapper textarea::placeholder {
    color: var(--text-muted);
}

.input-wrapper textarea:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.input-group-multi .input-wrapper {
    align-items: flex-start;
}

.input-group-multi .input-icon {
    top: 15px;
}

.input-group-multi .btn-clear {
    top: 11px;
}

.input-wrapper textarea:not(:placeholder-shown) ~ .btn-clear {
    opacity: 1;
    pointer-events: all;
}

.input-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.link-count {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.link-count strong {
    color: var(--accent-3);
    font-weight: 700;
}

/* --- Batch Queue --- */
.queue {
    margin-top: 22px;
    animation: fadeInUp 0.4s ease-out;
}

.queue-header {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.queue-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.queue-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.queue-item.active {
    border-color: rgba(108, 92, 231, 0.35);
    background: rgba(108, 92, 231, 0.06);
}

.queue-item.done {
    border-color: rgba(16, 185, 129, 0.25);
}

.queue-item.failed {
    border-color: rgba(239, 68, 68, 0.25);
    background: rgba(239, 68, 68, 0.04);
}

.q-icon {
    position: relative;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.q-icon > * { display: none; }

.q-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

.q-spin {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(108, 92, 231, 0.25);
    border-top-color: var(--accent-2);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.q-check { color: var(--green); }
.q-x { color: var(--red); }

.queue-item.pending .q-dot { display: block; }
.queue-item.active .q-spin { display: block; }
.queue-item.done .q-check { display: block; }
.queue-item.failed .q-x { display: block; }

.q-info {
    flex: 1;
    min-width: 0;
}

.q-name {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.q-sub {
    font-size: 0.76rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.queue-item.failed .q-sub { color: var(--red); }

/* --- Failed-link list in fallback card --- */
.failed-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.failed-links a {
    color: var(--accent-3);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    word-break: break-all;
    transition: var(--transition);
}

.failed-links a:hover {
    color: var(--accent-2);
}

/* --- Toast --- */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--bg-card);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--green);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

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

/* --- Hidden --- */
.hidden {
    display: none !important;
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding-top: 40px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

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

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

/* --- Responsive --- */
@media (max-width: 600px) {
    .app-container { padding: 24px 14px 40px; }
    .card { padding: 22px 18px; }
    .logo h1 { font-size: 1.8rem; }
    .logo-icon { width: 44px; height: 44px; }
    .input-group { flex-direction: column; }
    .fallback-actions { flex-direction: column; }
    .btn { justify-content: center; }
    .blob-1 { width: 300px; height: 300px; }
    .blob-2 { width: 250px; height: 250px; }
    .blob-3 { width: 200px; height: 200px; }
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

::selection {
    background: rgba(108, 92, 231, 0.3);
    color: white;
}

/* =====================================================================
   orb2bit additions — top bar, SEO content sections & footer
   (kept in the app's purple theme so the whole page is one design)
   ===================================================================== */

/* --- Top bar --- */
.topbar {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 14px 22px;
    background: rgba(10, 10, 15, 0.72);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.topbar .brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--text-primary); text-decoration: none; }
.topbar .brand .b-accent { background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.topbar .brand img { width: 28px; height: 28px; }
.topbar-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.topbar-links a { padding: 8px 14px; border-radius: 100px; color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; text-decoration: none; transition: var(--transition); }
.topbar-links a:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.topbar-links a.tb-cta { background: var(--accent-gradient); color: #fff; font-weight: 700; box-shadow: 0 4px 18px var(--accent-glow); }

/* --- SEO content sections --- */
.section { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; padding: 56px 20px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 34px; }
.eyebrow { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-3); margin-bottom: 12px; }
.section-title { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.section-sub { color: var(--text-secondary); font-size: 1rem; }

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.info-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; transition: var(--transition); }
.info-card:hover { border-color: var(--border-hover); background: var(--bg-card-hover); transform: translateY(-4px); }
.info-icon { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: var(--radius-md); margin-bottom: 14px; color: var(--accent-3); background: rgba(108, 92, 231, 0.12); border: 1px solid rgba(108, 92, 231, 0.25); }
.info-icon svg { width: 22px; height: 22px; }
.info-card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 6px; }
.info-card p { color: var(--text-secondary); font-size: 0.9rem; }
.info-card .step-tag { display: inline-block; font-family: var(--font); font-size: 0.72rem; font-weight: 700; color: var(--accent-3); letter-spacing: 0.08em; margin-bottom: 8px; }

/* --- FAQ accordion --- */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 720px; margin: 0 auto; }
.faq-list details { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; transition: var(--transition); }
.faq-list details[open] { border-color: var(--border-hover); }
.faq-list summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; font-size: 0.98rem; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .fq-plus { flex: none; width: 20px; height: 20px; color: var(--accent-3); transition: transform 0.3s var(--transition); }
.faq-list details[open] summary .fq-plus { transform: rotate(45deg); }
.faq-list .fq-body { padding: 0 20px 20px; color: var(--text-secondary); font-size: 0.94rem; }

/* --- Site footer --- */
.site-footer { position: relative; z-index: 1; max-width: 860px; margin: 64px auto 0; padding: 32px 20px 48px; border-top: 1px solid var(--border); }
.site-footer .foot-links { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-bottom: 16px; }
.site-footer .foot-links a { color: var(--text-secondary); font-size: 0.9rem; text-decoration: none; transition: var(--transition); }
.site-footer .foot-links a:hover { color: var(--accent-3); }
.site-footer .foot-copy { text-align: center; color: var(--text-muted); font-size: 0.82rem; }

@media (max-width: 640px) {
    .info-grid { grid-template-columns: 1fr; }
    .section { padding-top: 40px; }
    .topbar { padding: 12px 16px; }
    .topbar-links a { padding: 7px 10px; font-size: 0.85rem; }
}

/* --- Ads --- */
.ad-wrap { position: relative; z-index: 1; max-width: 860px; margin: 40px auto 0; padding: 0 20px; text-align: center; }
.ad-label { display: block; font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.ad-wrap ins { display: block; }
/* Collapse ad units Google doesn't fill (e.g. before the site is approved) so
   there's no empty gap. The label is hidden alongside its unfilled unit. */
.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.ad-wrap:has(ins[data-ad-status="unfilled"]) .ad-label { display: none; }

/* Occasional after-download interstitial (dismissible, auto-closing) */
.ad-interstitial {
    position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px;
    background: rgba(6, 6, 12, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.ad-interstitial.show { display: flex; animation: adFade 0.25s ease; }
@keyframes adFade { from { opacity: 0; } to { opacity: 1; } }
.ad-int-card {
    width: 100%; max-width: 420px; background: var(--bg-card); border: 1px solid var(--border-hover);
    border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-lg);
}
.ad-int-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ad-int-head .ad-label { margin: 0; }
.ad-int-close {
    width: 30px; height: 30px; flex: none; border: none; border-radius: 50%;
    background: rgba(255, 255, 255, 0.06); color: var(--text-secondary);
    font-size: 1.25rem; line-height: 1; cursor: pointer; transition: var(--transition);
}
.ad-int-close:hover { background: rgba(255, 255, 255, 0.12); color: var(--text-primary); }
.ad-int-slot { min-height: 250px; display: flex; align-items: center; justify-content: center; }
.ad-int-slot ins { display: block; width: 100%; }
.ad-int-note { margin-top: 12px; font-size: 0.82rem; color: var(--green); text-align: center; }
