/* ============================
   CSS Custom Properties
   ============================ */
:root {
    --bg-primary: #06061a;
    --bg-secondary: #0c0c2e;
    --bg-card: rgba(255, 255, 255, 0.035);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(255, 255, 255, 0.15);
    --text-primary: #f0f0f8;
    --text-secondary: #7a7a9e;
    --text-muted: #4a4a6e;
    --accent-cyan: #00d4ff;
    --accent-purple: #7c3aed;
    --accent-green: #34d399;
    --accent-gradient: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    --accent-gradient-green: linear-gradient(135deg, #00d4ff 0%, #34d399 100%);
    --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.12);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================
   Animated Background
   ============================ */
.bg-gradient {
    position: fixed; inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124, 58, 237, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 100%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 10% 60%, rgba(124, 58, 237, 0.06) 0%, transparent 50%);
    z-index: 0; pointer-events: none;
}

.bg-orb { position: fixed; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0; opacity: 0.5; }
.bg-orb-1 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%); top: -150px; right: -100px; animation: orbFloat1 20s ease-in-out infinite; }
.bg-orb-2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%); bottom: -100px; left: -80px; animation: orbFloat2 25s ease-in-out infinite; }
.bg-orb-3 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(52, 211, 153, 0.08) 0%, transparent 70%); top: 50%; left: 50%; animation: orbFloat3 18s ease-in-out infinite; }

@keyframes orbFloat1 { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(-40px, 30px) scale(1.1); } 66% { transform: translate(20px, -20px) scale(0.95); } }
@keyframes orbFloat2 { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(30px, -40px) scale(1.05); } 66% { transform: translate(-20px, 20px) scale(0.9); } }
@keyframes orbFloat3 { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.15); } }

/* ============================
   Layout
   ============================ */
.container {
    position: relative; z-index: 1;
    max-width: 720px; margin: 0 auto; padding: 2rem 1.5rem;
    min-height: 100vh; display: flex; flex-direction: column;
}

/* ============================
   Header
   ============================ */
.header { text-align: center; margin-bottom: 2rem; animation: fadeInDown 0.6s ease-out; }
.logo { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.logo-icon { display: flex; align-items: center; justify-content: center; animation: logoFloat 3s ease-in-out infinite; }
@keyframes logoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.logo h1 { font-size: 1.75rem; font-weight: 800; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; letter-spacing: -0.03em; }
.subtitle { color: var(--text-secondary); font-size: 0.95rem; font-weight: 400; }

/* ============================
   Steps Indicator
   ============================ */
.steps-indicator { display: flex; align-items: center; justify-content: center; margin-bottom: 2rem; animation: fadeInDown 0.6s ease-out 0.1s both; }
.step { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.step-circle { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.05); border: 2px solid var(--border-color); transition: all var(--transition-normal); position: relative; }
.step-num { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); transition: all var(--transition-normal); }
.step-check { display: none; position: absolute; }
.step-label { font-size: 0.7rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; transition: color var(--transition-normal); white-space: nowrap; }
.step-line { width: 48px; height: 2px; background: var(--border-color); margin: 0 0.4rem; margin-bottom: 1.5rem; transition: background var(--transition-normal); border-radius: 1px; }

.step.active .step-circle { border-color: var(--accent-cyan); background: rgba(0, 212, 255, 0.12); box-shadow: 0 0 16px rgba(0, 212, 255, 0.2); }
.step.active .step-num { color: var(--accent-cyan); }
.step.active .step-label { color: var(--accent-cyan); }
.step.completed .step-circle { border-color: var(--accent-green); background: var(--accent-gradient-green); }
.step.completed .step-num { display: none; }
.step.completed .step-check { display: block; }
.step.completed .step-label { color: var(--accent-green); }
.step-line.completed { background: var(--accent-gradient-green); }

/* ============================
   Card
   ============================ */
.card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: 2rem; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: var(--shadow-card); }

/* ============================
   Sections
   ============================ */
.section { display: none; animation: fadeInUp 0.5s ease-out; }
.section.active { display: block; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-15px); } to { opacity: 1; transform: translateY(0); } }

/* ============================
   Upload Zone
   ============================ */
.upload-zone { border: 2px dashed var(--border-color); border-radius: var(--radius-lg); padding: 3rem 2rem; text-align: center; cursor: pointer; transition: all var(--transition-normal); position: relative; overflow: hidden; }
.upload-zone::before { content: ''; position: absolute; inset: 0; background: var(--accent-gradient); opacity: 0; transition: opacity var(--transition-normal); border-radius: inherit; }
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--accent-cyan); background: rgba(0, 212, 255, 0.04); }
.upload-zone:hover::before, .upload-zone.drag-over::before { opacity: 0.03; }
.upload-zone.drag-over { transform: scale(1.01); box-shadow: 0 0 30px rgba(0, 212, 255, 0.15); }
.upload-icon { color: var(--text-muted); margin-bottom: 1rem; transition: all var(--transition-normal); position: relative; }
.upload-zone:hover .upload-icon { color: var(--accent-cyan); transform: translateY(-4px); }
.upload-text { font-size: 1.05rem; font-weight: 500; color: var(--text-primary); margin-bottom: 0.5rem; position: relative; }
.upload-divider { display: block; color: var(--text-muted); font-size: 0.8rem; margin: 0.75rem 0; position: relative; }
.upload-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 1rem; position: relative; }

/* ============================
   Buttons
   ============================ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.65rem 1.5rem; border-radius: var(--radius-md); font-family: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; border: none; transition: all var(--transition-fast); position: relative; overflow: hidden; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--accent-gradient); color: #fff; box-shadow: 0 4px 16px rgba(0, 212, 255, 0.25); }
.btn-primary:hover { box-shadow: 0 6px 24px rgba(0, 212, 255, 0.35); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(0, 212, 255, 0.2); }
.btn-outline { background: transparent; color: var(--text-primary); border: 1.5px solid var(--border-color); }
.btn-outline:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); background: rgba(0, 212, 255, 0.06); }
.btn-ghost { background: transparent; color: var(--text-secondary); border: none; }
.btn-ghost:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.05); }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.82rem; }
.btn-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: transparent; border: none; color: var(--text-muted); cursor: pointer; transition: all var(--transition-fast); }
.btn-icon:hover { background: rgba(255, 255, 255, 0.08); color: var(--text-primary); }
.btn.loading { pointer-events: none; opacity: 0.7; }

/* ============================
   File Info
   ============================ */
.file-info { display: flex; align-items: center; gap: 1rem; padding: 1rem; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-color); margin-bottom: 1.5rem; }
.file-icon { flex-shrink: 0; display: flex; align-items: center; }
.file-details { flex: 1; min-width: 0; }
.file-name { font-weight: 600; font-size: 0.95rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta { display: flex; align-items: center; gap: 0.5rem; color: var(--text-secondary); font-size: 0.8rem; margin-top: 0.2rem; }
.meta-dot { opacity: 0.4; }

/* ============================
   Settings
   ============================ */
.settings-group { margin-bottom: 1.5rem; }
.setting-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.select-wrapper { position: relative; }
.select-wrapper::after { content: ''; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 5px solid var(--text-secondary); pointer-events: none; }
select { width: 100%; padding: 0.75rem 1rem; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-color); color: var(--text-primary); font-family: inherit; font-size: 0.95rem; cursor: pointer; appearance: none; transition: all var(--transition-fast); outline: none; }
select:hover { border-color: var(--border-color-hover); }
select:focus { border-color: var(--accent-cyan); box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12); }
select option { background: #1a1a3e; color: var(--text-primary); }

/* Quality radio cards */
.quality-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.radio-card { cursor: pointer; position: relative; }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-content { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0.85rem 0.5rem; border-radius: var(--radius-md); border: 1.5px solid var(--border-color); background: rgba(255, 255, 255, 0.02); transition: all var(--transition-fast); }
.radio-card:hover .radio-content { border-color: var(--border-color-hover); background: rgba(255, 255, 255, 0.04); }
.radio-card input:checked + .radio-content { border-color: var(--accent-cyan); background: rgba(0, 212, 255, 0.08); box-shadow: 0 0 12px rgba(0, 212, 255, 0.1); }
.radio-title { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.2rem; }
.radio-desc { font-size: 0.7rem; color: var(--text-secondary); line-height: 1.3; }
#startBtn { width: 100%; margin-top: 0.5rem; }

/* Font upload */
.font-upload-row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.font-status { font-size: 0.8rem; color: var(--text-secondary); }
.setting-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.5rem; line-height: 1.5; }
.setting-hint a { color: var(--accent-cyan); text-decoration: none; border-bottom: 1px dashed rgba(0, 212, 255, 0.3); transition: border-color var(--transition-fast); }
.setting-hint a:hover { border-bottom-color: var(--accent-cyan); }

/* ============================
   Processing Section
   ============================ */
.processing-header { text-align: center; margin-bottom: 2rem; }
.processing-spinner { margin-bottom: 1rem; display: inline-block; }
.spinner-arc { animation: spin 1.2s linear infinite; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }
.processing-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.3rem; }
.processing-detail { color: var(--text-secondary); font-size: 0.9rem; }

/* Progress bar */
.progress-container { margin-bottom: 1.5rem; }
.progress-bar { width: 100%; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin-bottom: 0.5rem; }
.progress-fill { height: 100%; width: 0%; background: var(--accent-gradient); border-radius: 4px; transition: width 0.4s ease-out; position: relative; }
.progress-fill::after { content: ''; position: absolute; right: 0; top: 0; width: 40px; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent); animation: shimmer 1.5s infinite; }
@keyframes shimmer { 0% { transform: translateX(-40px); } 100% { transform: translateX(40px); } }
.progress-stats { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-secondary); }
#progressPercent { font-weight: 600; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Page progress */
.page-progress { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1.5rem; justify-content: center; }
.page-dot { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 600; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-color); color: var(--text-muted); transition: all var(--transition-fast); }
.page-dot.processing { border-color: var(--accent-cyan); background: rgba(0, 212, 255, 0.12); color: var(--accent-cyan); animation: pagePulse 1.5s ease-in-out infinite; }
.page-dot.completed { border-color: var(--accent-green); background: rgba(52, 211, 153, 0.15); color: var(--accent-green); }
@keyframes pagePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.3); } 50% { box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.08); } }

/* Preview */
.preview-container { border-radius: var(--radius-md); overflow: hidden; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border-color); display: none; align-items: center; justify-content: center; max-height: 300px; }
#previewCanvas { max-width: 100%; max-height: 300px; object-fit: contain; }

/* ============================
   Result Section
   ============================ */
.result-header { text-align: center; margin-bottom: 2rem; }
.result-icon { margin-bottom: 1rem; display: inline-block; animation: resultPop 0.5s ease-out; }
@keyframes resultPop { 0% { transform: scale(0.5); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
.result-title { font-size: 1.4rem; font-weight: 700; background: var(--accent-gradient-green); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 0.3rem; }
.result-stats { color: var(--text-secondary); font-size: 0.9rem; }
.result-actions { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }
.result-actions .btn { width: 100%; }

/* Text preview */
.text-preview { border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; }
.text-preview-header { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; background: rgba(255, 255, 255, 0.03); border-bottom: 1px solid var(--border-color); }
.text-preview-header h3 { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
.text-content { padding: 1rem; max-height: 400px; overflow-y: auto; font-size: 0.88rem; line-height: 1.8; color: var(--text-primary); white-space: pre-wrap; word-wrap: break-word; }
.text-content .page-separator { display: block; text-align: center; color: var(--text-muted); font-size: 0.75rem; font-weight: 600; padding: 0.75rem 0; border-top: 1px dashed rgba(255, 255, 255, 0.08); margin-top: 1rem; text-transform: uppercase; letter-spacing: 0.1em; }
.text-content.collapsed { max-height: 120px; overflow: hidden; position: relative; }
.text-content.collapsed::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60px; background: linear-gradient(transparent, rgba(6, 6, 26, 0.95)); }
.text-content::-webkit-scrollbar { width: 6px; }
.text-content::-webkit-scrollbar-track { background: transparent; }
.text-content::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 3px; }
.text-content::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

/* ============================
   SEO Content
   ============================ */
.seo-content { margin-top: 3rem; margin-bottom: 2rem; animation: fadeInUp 0.8s ease-out; }
.seo-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: 2.5rem; box-shadow: var(--shadow-card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.seo-card h2 { font-size: 1.5rem; font-weight: 700; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 1rem; line-height: 1.4; }
.seo-card h3 { font-size: 1.15rem; font-weight: 600; color: var(--text-primary); margin-top: 2rem; margin-bottom: 0.75rem; }
.seo-card p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 1rem; }
.seo-card ul, .seo-card ol { padding-left: 1.5rem; margin-bottom: 1.5rem; color: var(--text-secondary); }
.seo-card li { font-size: 0.95rem; line-height: 1.7; margin-bottom: 0.5rem; }
.seo-card strong { color: var(--text-primary); font-weight: 600; }
.seo-card em { color: var(--accent-cyan); font-style: normal; }
.seo-card a { color: var(--accent-cyan); text-decoration: none; border-bottom: 1px dashed rgba(0, 212, 255, 0.4); transition: all var(--transition-fast); }
.seo-card a:hover { border-bottom-style: solid; color: #fff; }

/* ============================
   Footer
   ============================ */
.footer { margin-top: auto; padding-top: 2rem; text-align: center; }
.privacy-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border-radius: 100px; background: rgba(52, 211, 153, 0.06); border: 1px solid rgba(52, 211, 153, 0.12); color: var(--accent-green); font-size: 0.75rem; font-weight: 500; }

/* ============================
   Toast Notification
   ============================ */
.toast { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(100px); background: rgba(30, 30, 60, 0.95); backdrop-filter: blur(20px); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 0.75rem 1.5rem; color: var(--text-primary); font-size: 0.9rem; font-weight: 500; z-index: 1000; opacity: 0; transition: all var(--transition-normal); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5); pointer-events: none; max-width: 90vw; text-align: center; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.success { border-color: rgba(52, 211, 153, 0.3); }
.toast.error { border-color: rgba(239, 68, 68, 0.3); }

/* ============================
   Responsive
   ============================ */
@media (max-width: 640px) {
    .container { padding: 1.5rem 1rem; }
    .logo h1 { font-size: 1.4rem; }
    .card { padding: 1.5rem; border-radius: var(--radius-lg); }
    .upload-zone { padding: 2rem 1.5rem; }
    .quality-options { grid-template-columns: 1fr; }
    .step-label { font-size: 0.6rem; }
    .step-line { width: 28px; }
    .page-dot { width: 24px; height: 24px; font-size: 0.6rem; }
    .font-upload-row { flex-direction: column; align-items: flex-start; }
}

/* ============================
   Accessibility
   ============================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
:focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: 2px; }

/* ============================
   Ad Popup Overlay
   ============================ */
.ad-popup-overlay { position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important; width: 100vw !important; height: 100vh !important; background-color: rgba(0, 0, 0, 0.75) !important; display: flex !important; justify-content: center !important; align-items: center !important; z-index: 999999 !important; visibility: hidden; opacity: 0; transition: opacity 0.3s ease; }
.ad-popup-overlay.active { visibility: visible; opacity: 1; }
.ad-popup { background: #fff; border-radius: 8px; width: 90%; max-width: 450px; padding: 40px 30px; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,0.3); font-family: 'Inter', sans-serif; color: #333; animation: resultPop 0.5s ease-out; position: relative; margin: auto !important; max-height: 90vh; overflow-y: auto; }
.ad-popup-logo { max-width: 220px; height: auto; margin-bottom: 25px; }
.ad-popup-title { font-size: 24px; font-weight: 600; margin-bottom: 15px; color: #1a1a1a; letter-spacing: -0.02em; }
.ad-popup-desc { font-size: 15px; color: #5f6368; margin-bottom: 30px; line-height: 1.6; }
.ad-reward-btn { display: flex; align-items: center; justify-content: space-between; border: 1px solid #dadce0; border-radius: 8px; padding: 16px 20px; margin: 0 auto; cursor: pointer; transition: all 0.2s ease; text-align: left; }
.ad-reward-btn:hover { background-color: #f8f9fa; border-color: #d1d3d6; }
.ad-reward-text strong { display: block; font-size: 15px; font-weight: 600; color: #202124; margin-bottom: 4px; }
.ad-reward-text span { font-size: 13px; color: #5f6368; }
.ad-reward-icon svg { width: 32px; height: 32px; flex-shrink: 0; }

/* Ad Show Step */
#adShowStep { position: relative; }
.ad-timer { font-size: 14px; font-weight: 600; color: #5f6368; margin-bottom: 15px; text-align: right; }
.ad-timer span { color: #d93025; font-size: 16px; margin-left: 5px; }
.ad-close-btn { position: absolute; top: -30px; right: -20px; background: #fff; border: 1px solid #ddd; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #666; z-index: 10; box-shadow: 0 4px 8px rgba(0,0,0,0.15); transition: all 0.2s ease; padding: 0; }
.ad-close-btn:hover { background: #f1f3f4; color: #000; border-color: #bbb; transform: scale(1.05); }
.ad-container { border: 1px dashed #dadce0; border-radius: 8px; min-height: 250px; display: flex; align-items: center; justify-content: center; background: transparent; position: relative; overflow: hidden; }
