/* ============================================================
   ATW AI NEWSROOM & PUBLISHER — ULTRA MODERN UI/UX (v3.0)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
    --atw-primary: #FF5E3A;
    --atw-primary-glow: rgba(255, 94, 58, 0.4);
    --atw-primary-alt: #FF2A65;
    --atw-accent: #6C5CE7;
    --atw-accent-glow: rgba(108, 92, 231, 0.4);
    --atw-cyan: #06B6D4;
    --atw-emerald: #10B981;
    --atw-amber: #F59E0B;
    --atw-rose: #F43F5E;

    --atw-bg: #030712;
    --atw-card-bg: rgba(15, 23, 42, 0.75);
    --atw-card-hover: rgba(30, 41, 59, 0.85);
    --atw-card-border: rgba(255, 255, 255, 0.08);
    --atw-card-glow: rgba(255, 255, 255, 0.04);

    --atw-text: #F8FAFC;
    --atw-text-muted: #94A3B8;
    --atw-text-dim: #64748B;

    --atw-radius-sm: 10px;
    --atw-radius-md: 16px;
    --atw-radius-lg: 24px;
    --atw-radius-xl: 32px;

    --atw-shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --atw-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
    --atw-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
    --atw-shadow-glow: 0 0 30px rgba(255, 94, 58, 0.15);
}

/* ── Reset & Admin Frame Wrap ────────────────────────────────── */
.atw-admin-wrap {
    padding: 32px 40px 60px;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--atw-text);
    min-height: 100vh;
    background: var(--atw-bg);
    background-image:
        radial-gradient(at 0% 0%, rgba(255, 94, 58, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(108, 92, 231, 0.1) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(6, 182, 212, 0.05) 0px, transparent 50%);
    box-sizing: border-box;
    position: relative;
}

.atw-admin-wrap * {
    box-sizing: border-box;
}

/* ── Top System Header & Engine Status Bar ───────────────────── */
.atw-top-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--atw-card-border);
    border-radius: var(--atw-radius-lg);
    padding: 18px 28px;
    margin-bottom: 32px;
    box-shadow: var(--atw-shadow-md);
    flex-wrap: wrap;
    gap: 20px;
}

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

.atw-brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--atw-primary) 0%, var(--atw-primary-alt) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 8px 20px var(--atw-primary-glow);
    flex-shrink: 0;
}

.atw-brand-text h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.15;
    background: linear-gradient(135deg, #FFFFFF 40%, #FF8A65 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.atw-brand-text p {
    margin: 3px 0 0;
    font-size: 0.82rem;
    color: var(--atw-text-muted);
    font-weight: 500;
}

.atw-system-status-pills {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.atw-status-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--atw-card-border);
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--atw-text);
}

.atw-status-chip strong {
    color: #FFFFFF;
}

.atw-pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--atw-emerald);
    box-shadow: 0 0 10px var(--atw-emerald);
    animation: atwPulse 2s infinite;
}

@keyframes atwPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
        box-shadow: 0 0 14px var(--atw-emerald);
    }

    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

/* ── Settings Sub-Tabs Navigation ────────────────────────────── */
.atw-settings-tabs-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--atw-card-border);
    padding-bottom: 14px;
    flex-wrap: wrap;
}

.atw-settings-tab-btn {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--atw-card-border);
    color: var(--atw-text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: var(--atw-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.atw-settings-tab-btn:hover {
    color: #FFFFFF;
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

.atw-settings-tab-btn.active {
    background: linear-gradient(135deg, rgba(255, 94, 58, 0.2) 0%, rgba(108, 92, 231, 0.2) 100%);
    color: #FFFFFF;
    border-color: var(--atw-primary);
    box-shadow: 0 0 15px rgba(255, 94, 58, 0.2);
}

.atw-settings-panel {
    display: none;
    animation: atwFadeIn 0.3s ease;
}

.atw-settings-panel.active {
    display: block;
}

.atw-toggle-setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: rgba(3, 7, 18, 0.5);
    border: 1px solid var(--atw-card-border);
    border-radius: var(--atw-radius-sm);
    margin-bottom: 12px;
}

.atw-toggle-setting-row:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.atw-toggle-setting-info strong {
    display: block;
    color: #FFFFFF;
    font-size: 0.92rem;
    margin-bottom: 3px;
}

.atw-toggle-setting-info p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--atw-text-muted);
}

/* ── Hero Stats Grid ─────────────────────────────────────────── */
.atw-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.atw-hero-stat-card {
    background: var(--atw-card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--atw-card-border);
    border-radius: var(--atw-radius-md);
    padding: 24px 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.atw-hero-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--atw-primary), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.atw-hero-stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 94, 58, 0.3);
    box-shadow: var(--atw-shadow-lg), var(--atw-shadow-glow);
    background: var(--atw-card-hover);
}

.atw-hero-stat-card:hover::before {
    opacity: 1;
}

.atw-stat-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--atw-card-border);
}

.atw-stat-info .atw-stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: #FFFFFF;
    margin-bottom: 5px;
}

.atw-stat-info .atw-stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--atw-text-muted);
}

/* ── Cards & Surfaces ────────────────────────────────────────── */
.atw-card {
    background: var(--atw-card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--atw-card-border);
    border-radius: var(--atw-radius-lg);
    box-shadow: var(--atw-shadow-md);
    padding: 30px 32px;
    margin-bottom: 30px;
    transition: border-color 0.3s;
}

.atw-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--atw-card-border);
    padding-bottom: 18px;
    flex-wrap: wrap;
    gap: 15px;
}

.atw-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ── Interactive Buttons ─────────────────────────────────────── */
.atw-btn {
    background: linear-gradient(135deg, var(--atw-primary) 0%, var(--atw-primary-alt) 100%);
    color: #FFFFFF !important;
    padding: 12px 24px;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none !important;
    box-shadow: 0 6px 18px var(--atw-primary-glow);
    line-height: 1.2;
}

.atw-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255, 94, 58, 0.45);
    filter: brightness(1.08);
}

.atw-btn:active {
    transform: translateY(0);
}

.atw-btn-accent {
    background: linear-gradient(135deg, var(--atw-accent) 0%, #8B5CF6 100%);
    box-shadow: 0 6px 18px var(--atw-accent-glow);
}

.atw-btn-accent:hover {
    box-shadow: 0 10px 24px rgba(108, 92, 231, 0.45);
}

.atw-btn-dark {
    background: rgba(30, 41, 59, 0.8);
    color: #E2E8F0 !important;
    border: 1px solid var(--atw-card-border);
    box-shadow: none;
}

.atw-btn-dark:hover {
    background: rgba(51, 65, 85, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: var(--atw-shadow-sm);
}

.atw-btn-danger {
    background: rgba(244, 63, 94, 0.15);
    color: #FDA4AF !important;
    border: 1px solid rgba(244, 63, 94, 0.3);
    box-shadow: none;
}

.atw-btn-danger:hover {
    background: rgba(244, 63, 94, 0.25);
    border-color: rgba(244, 63, 94, 0.5);
}

.atw-btn-sm {
    padding: 7px 14px;
    font-size: 0.82rem;
    border-radius: 8px;
}

/* ── Modern Form Inputs & Controls ───────────────────────────── */
.atw-form-group {
    margin-bottom: 24px;
}

.atw-form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--atw-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}

.atw-input {
    width: 100%;
    background: rgba(3, 7, 18, 0.6);
    border: 1px solid var(--atw-card-border);
    border-radius: 12px;
    padding: 13px 18px;
    color: var(--atw-text);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    transition: all 0.25s;
}

.atw-input:focus {
    border-color: var(--atw-primary);
    box-shadow: 0 0 0 4px rgba(255, 94, 58, 0.15);
    outline: none;
    background: rgba(3, 7, 18, 0.9);
}

.atw-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.atw-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

/* ── Segmented Mode Tabs ─────────────────────────────────────── */
.atw-mode-tabs {
    display: inline-flex;
    background: rgba(3, 7, 18, 0.7);
    border: 1px solid var(--atw-card-border);
    border-radius: 16px;
    padding: 6px;
    margin-bottom: 28px;
    gap: 6px;
}

.atw-tab-btn {
    background: transparent;
    border: none;
    color: var(--atw-text-muted);
    padding: 11px 24px;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.atw-tab-btn:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.05);
}

.atw-tab-btn.active {
    background: linear-gradient(135deg, var(--atw-primary) 0%, var(--atw-primary-alt) 100%);
    color: #FFFFFF;
    box-shadow: 0 6px 16px var(--atw-primary-glow);
}

/* ── Presets Hub Catalog Cards ───────────────────────────────── */
.atw-presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.atw-preset-group-box {
    background: rgba(3, 7, 18, 0.5);
    border: 1px solid var(--atw-card-border);
    border-radius: var(--atw-radius-md);
    padding: 22px;
}

.atw-preset-group-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: var(--atw-primary);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.atw-preset-item-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--atw-card-border);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.atw-preset-item-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 94, 58, 0.3);
    transform: translateX(4px);
}

/* ── Modern Data Tables ──────────────────────────────────────── */
.atw-table {
    width: 100%;
    border-collapse: collapse;
}

.atw-table th {
    background: rgba(3, 7, 18, 0.6);
    color: var(--atw-text-muted);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--atw-card-border);
    text-align: left;
}

.atw-table td {
    padding: 18px 22px;
    border-bottom: 1px solid var(--atw-card-border);
    vertical-align: middle;
    color: var(--atw-text);
    font-size: 0.9rem;
}

.atw-table tr:last-child td {
    border-bottom: none;
}

.atw-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* ── Switch Pill ─────────────────────────────────────────────── */
.atw-toggle-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 5px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none !important;
}

.atw-toggle-on {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34D399;
}

.atw-toggle-off {
    background: rgba(100, 116, 139, 0.15);
    border: 1px solid rgba(100, 116, 139, 0.3);
    color: #94A3B8;
}

.atw-toggle-knob {
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

.atw-toggle-on .atw-toggle-knob {
    background: var(--atw-emerald);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

.atw-toggle-off .atw-toggle-knob {
    background: #64748B;
}

/* ── Badges ──────────────────────────────────────────────────── */
.atw-badge-cat {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--atw-card-border);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #F1F5F9;
    white-space: nowrap;
}

.atw-kw-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    margin: 2px 2px 2px 0;
}

.atw-kw-inc {
    background: rgba(16, 185, 129, 0.12);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.atw-kw-exc {
    background: rgba(244, 63, 94, 0.12);
    color: #FDA4AF;
    border: 1px solid rgba(244, 63, 94, 0.25);
}

/* ── Multi-Channel Social Hub Cards ──────────────────────────── */
.atw-social-hub-card {
    border-radius: var(--atw-radius-md);
    padding: 20px;
    border: 1px solid var(--atw-card-border);
    transition: all 0.25s;
}

.atw-social-whatsapp {
    background: rgba(37, 211, 102, 0.05);
    border-color: rgba(37, 211, 102, 0.2);
}

.atw-social-twitter {
    background: rgba(29, 161, 242, 0.05);
    border-color: rgba(29, 161, 242, 0.2);
}

.atw-social-anchor {
    background: rgba(108, 92, 231, 0.05);
    border-color: rgba(108, 92, 231, 0.2);
}

.atw-social-box-text {
    background: rgba(3, 7, 18, 0.6);
    border: 1px solid var(--atw-card-border);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 0.88rem;
    line-height: 1.6;
    color: #E2E8F0;
    white-space: pre-wrap;
    margin-top: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ── Live Log Terminal View ──────────────────────────────────── */
.atw-log-terminal {
    background: #020617;
    border: 1px solid var(--atw-card-border);
    border-radius: var(--atw-radius-md);
    overflow: hidden;
}

.atw-terminal-bar {
    background: #0f172a;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--atw-card-border);
}

.atw-terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.atw-terminal-dot.red {
    background: #ef4444;
}

.atw-terminal-dot.yellow {
    background: #f59e0b;
}

.atw-terminal-dot.green {
    background: #10b981;
}

.atw-log-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
}

/* ── Frontend Audio Podcast Player Widget ────────────────────── */
.atw-podcast-player-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
    border: 1px solid rgba(108, 92, 231, 0.4);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 0 15px rgba(108, 92, 231, 0.15);
    border-radius: 14px;
    padding: 16px 20px;
    margin: 20px 0 25px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.atw-podcast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.atw-podcast-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.atw-podcast-icon-glow {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #6C5CE7, #a855f7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 0 12px rgba(108, 92, 231, 0.6);
}

.atw-podcast-title-wrap strong {
    color: #FFFFFF;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
}

.atw-podcast-tag {
    background: rgba(108, 92, 231, 0.2);
    border: 1px solid rgba(108, 92, 231, 0.4);
    color: #c084fc;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.atw-audio-element {
    width: 100%;
    height: 38px;
    border-radius: 8px;
    outline: none;
}

.atw-podcast-fallback-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #6C5CE7, #8B5CF6);
    color: #FFFFFF !important;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.atw-podcast-fallback-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.4);
}

/* ── Reader Sentiment Reaction Poll Widget ───────────────────── */
.atw-sentiment-poll-box {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
    border: 1px solid rgba(255, 94, 58, 0.3);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    border-radius: 14px;
    padding: 22px;
    margin: 30px 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.atw-sentiment-poll-box h4 {
    margin: 0 0 4px;
    color: #FFFFFF;
    font-size: 1.1rem;
}

.atw-sentiment-poll-box p {
    margin: 0 0 16px;
    color: #94A3B8;
    font-size: 0.88rem;
}

.atw-poll-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.atw-poll-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #F8FAFC;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.atw-poll-btn:hover {
    background: rgba(255, 94, 58, 0.15);
    border-color: rgba(255, 94, 58, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.atw-poll-btn.voted {
    background: linear-gradient(135deg, #FF5E3A, #FF2A6D);
    border-color: #FF5E3A;
    color: #FFFFFF;
}

.atw-poll-results {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.atw-poll-bar-wrap {
    margin-bottom: 8px;
}

.atw-poll-bar-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #CBD5E1;
    margin-bottom: 4px;
}

.atw-poll-bar-bg {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.atw-poll-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF5E3A, #FF2A6D);
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* ── Breaking News Marquee Ticker ────────────────────────────── */
.atw-breaking-ticker-wrap {
    display: flex;
    align-items: center;
    background: #0f172a;
    border: 1px solid rgba(255, 94, 58, 0.3);
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.atw-ticker-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #FF5E3A, #FF2A6D);
    color: #FFFFFF;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 10px 16px;
    white-space: nowrap;
    z-index: 2;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

.atw-ticker-track {
    flex: 1;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    padding: 10px 0;
}

.atw-ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: atwTickerScroll 28s linear infinite;
}

.atw-ticker-track:hover .atw-ticker-content {
    animation-play-state: paused;
}

.atw-ticker-item {
    display: inline-block;
    margin-right: 35px;
    color: #F1F5F9;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.atw-ticker-item:hover {
    color: #FF5E3A;
}

.atw-ticker-dot {
    color: #FF5E3A;
    margin-left: 8px;
}

@keyframes atwTickerScroll {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* ============================================================
   INTERACTIVE READER REACTION POLL WIDGET
   ============================================================ */
.atw-reader-poll-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 28px;
    margin: 35px 0 28px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    position: relative;
    overflow: hidden;
}

.atw-poll-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.atw-poll-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.atw-poll-icon {
    font-size: 1.4rem;
}

.atw-poll-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.2px;
}

.atw-poll-total-count {
    font-size: 0.85rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.atw-poll-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.atw-poll-btn {
    position: relative;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    outline: none;
    user-select: none;
    -webkit-appearance: none;
    width: 100%;
}

.atw-poll-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.atw-poll-emoji {
    font-size: 1.35rem;
    flex-shrink: 0;
    z-index: 2;
    transition: transform 0.2s;
}

.atw-poll-btn:hover .atw-poll-emoji {
    transform: scale(1.2);
}

.atw-poll-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    z-index: 2;
    flex-grow: 1;
    line-height: 1.3;
}

.atw-poll-pct {
    font-size: 0.85rem;
    font-weight: 800;
    color: #6c5ce7;
    z-index: 2;
    margin-left: auto;
    opacity: 0.9;
}

.atw-poll-bar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(108, 92, 231, 0.12) 0%, rgba(255, 94, 58, 0.15) 100%);
    border-radius: 11px;
    z-index: 1;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* Active & Voted States */
.atw-has-voted .atw-poll-btn {
    cursor: default;
}

.atw-has-voted .atw-poll-btn:hover {
    transform: none;
}

.atw-selected-vote {
    border-color: #6c5ce7 !important;
    background: rgba(108, 92, 231, 0.06) !important;
    box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.2) !important;
}

.atw-selected-vote .atw-poll-bar {
    background: linear-gradient(90deg, rgba(108, 92, 231, 0.2) 0%, rgba(255, 94, 58, 0.25) 100%);
}

.atw-voting-active {
    opacity: 0.7;
    pointer-events: none;
}

.atw-poll-feedback {
    margin-top: 14px;
    font-size: 0.88rem;
    color: #10B981;
    font-weight: 700;
    text-align: center;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
}

/* ── ATW FAQ Section (తరచుగా అడిగే ప్రశ్నలు) ────────────────────── */
.atw-faq-section {
    margin-top: 35px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 25px;
}

.atw-faq-section h3 {
    font-size: 1.3rem;
    margin-bottom: 18px;
    color: #1e293b;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.atw-faq-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.atw-faq-item:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.atw-faq-item[open] {
    border-color: rgba(108, 92, 231, 0.4);
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.08);
}

.atw-faq-item summary {
    font-weight: 700;
    font-size: 1.02rem;
    color: #0f172a;
    outline: none;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.atw-faq-item p {
    margin-top: 12px;
    color: #475569;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Dark mode compatibility */
[data-theme="dark"] .atw-faq-section h3,
body.dark-mode .atw-faq-section h3 {
    color: #f8fafc;
}

[data-theme="dark"] .atw-faq-item,
body.dark-mode .atw-faq-item {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .atw-faq-item summary,
body.dark-mode .atw-faq-item summary {
    color: #f8fafc;
}

[data-theme="dark"] .atw-faq-item p,
body.dark-mode .atw-faq-item p {
    color: #cbd5e1;
}