:root {
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-subtle: #f1f5f9;
    --bg-input: #ffffff;
    
    --border-main: #e2e8f0;
    --border-subtle: #edf2f7;
    --border-hover: #cbd5e1;
    --border-dark: #0f172a;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --primary: #0f172a;
    --primary-hover: #1e293b;
    --emerald: #059669;
    --emerald-subtle: #ecfdf5;
    --emerald-border: #a7f3d0;
    
    --amber: #d97706;
    --amber-subtle: #fffbeb;
    --amber-border: #fde68a;
    
    --rose: #e11d48;
    --rose-subtle: #fff1f2;
    --rose-border: #fecdd3;

    --blue: #2563eb;
    --blue-subtle: #eff6ff;
    --blue-border: #bfdbfe;
    
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 9999px;
    
    --shadow-2d: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -2px rgba(0, 0, 0, 0.02);
}

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

body {
    background-color: var(--bg-page);
    background-image: radial-gradient(#e2e8f0 1.2px, transparent 1.2px);
    background-size: 24px 24px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.app-layout {
    max-width: 1080px;
    margin: 0 auto;
    padding: 20px 20px 80px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* =========================================
   TOP NAVBAR (Dark Slate Theme)
   ========================================= */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    background: #1e2229;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    gap: 16px;
    min-height: 86px;
}

.brand {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo-img {
    height: 74px;
    width: auto;
    max-width: 320px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.brand-logo-img:hover {
    opacity: 0.95;
    transform: scale(1.02);
}

/* Desktop Nav Links */
.nav-links-desktop {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 600;
    transition: color 0.15s ease;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: var(--radius-full);
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.status-label {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 600;
    color: #cbd5e1;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.15s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.nav-btn.icon-only {
    padding: 6px;
    width: 32px;
    height: 32px;
}

/* =========================================
   GOOGLE ADSENSE AD CONTAINERS
   ========================================= */
.ad-unit-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 4px 0;
}

.ad-label-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--text-light);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.ads-box {
    width: 100%;
    max-width: 728px;
    min-height: 90px;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.ad-placeholder-creative {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 14px;
    text-align: center;
}

.ad-dimension-tag {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

.ad-text-muted {
    font-size: 0.72rem;
    color: var(--text-light);
}

/* =========================================
   HERO GENERATOR (DARK THEME EXACT MATCH SCREENSHOT)
   ========================================= */
.hero-dark-header {
    background: #1e2229;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 36px 28px 30px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.hero-email-title {
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    margin-bottom: 20px;
}

.hero-dashed-box {
    max-width: 620px;
    margin: 0 auto;
    border: 1.5px dashed rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 18px 20px;
    background: rgba(0, 0, 0, 0.18);
}

.hero-input-capsule {
    display: flex;
    align-items: center;
    background: #13171d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    padding: 4px 6px 4px 20px;
    gap: 10px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-email-input {
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 1.18rem;
    font-weight: 600;
    outline: none;
    width: 100%;
    user-select: all;
    letter-spacing: 0.2px;
}

.hero-qr-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #252b36;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.hero-qr-btn:hover {
    background: #333a48;
    color: #ffffff;
}

.hero-green-copy-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #00a86b;
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0, 168, 107, 0.35);
}

.hero-green-copy-btn:hover {
    background: #059669;
    transform: scale(1.06);
    box-shadow: 0 6px 14px rgba(0, 168, 107, 0.5);
}

.hero-green-copy-btn:active {
    transform: scale(0.96);
}

.hero-email-subtext {
    max-width: 640px;
    margin: 18px auto 0;
    color: #8b99a9;
    font-size: 0.78rem;
    line-height: 1.55;
    font-family: var(--font-mono);
}

/* =========================================
   FLOATING ACTION PILLS (EXACT MATCH SCREENSHOT)
   ========================================= */
.floating-actions-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin: 2px 0 6px;
}

.floating-pill-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.floating-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    padding: 10px 26px;
    font-family: var(--font-sans);
    font-size: 0.86rem;
    font-weight: 700;
    color: #1e293b;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: all 0.15s ease;
}

.floating-pill-btn svg {
    color: #64748b;
    transition: color 0.15s ease;
}

.floating-pill-btn:hover {
    border-color: #cbd5e1;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    color: #0f172a;
}

.floating-pill-btn:hover svg {
    color: #0f172a;
}

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

/* Domain Switcher */
.domain-switcher-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    background: #ffffff;
    border: 1px solid var(--border-main);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-2d);
}

.domain-switcher-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
}

.domain-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.domain-pill {
    background: var(--bg-surface);
    border: 1px solid var(--border-main);
    color: var(--text-secondary);
    padding: 3px 9px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.domain-pill:hover {
    background: var(--bg-subtle);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.domain-pill.active {
    background: #1e2229;
    border-color: #1e2229;
    color: #ffffff;
}

/* ============================================================
   FULL-WIDTH INBOX TABLE (EXACT MATCH USER SCREENSHOT 1)
   ============================================================ */
.inbox-table-section {
    width: 100%;
    margin-top: 4px;
}

.inbox-table-card {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -2px rgba(0, 0, 0, 0.02);
}

.inbox-table-header {
    background: #1e2229;
    color: #ffffff;
    display: flex;
    align-items: center;
    padding: 14px 24px;
    font-family: var(--font-sans);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    border-radius: 10px 10px 0 0;
}

.th-col.th-sender {
    flex: 0 0 35%;
}

.th-col.th-subject {
    flex: 1;
}

.th-col.th-actions {
    flex: 0 0 140px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.th-view-label {
    letter-spacing: 0.8px;
}

.btn-clear-inbox {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    padding: 3px 9px;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: var(--font-sans);
}

.btn-clear-inbox:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

.inbox-table-body {
    background: #ffffff;
    border: 1px solid var(--border-main);
    border-top: none;
    border-radius: 0 0 10px 10px;
    min-height: 240px;
    display: flex;
    flex-direction: column;
}

/* Inbox Rows */
.inbox-row {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.15s ease;
    text-decoration: none;
}

.inbox-row:hover {
    background: #f8fafc;
}

.inbox-row:last-child {
    border-bottom: none;
}

.tb-col.tb-sender {
    flex: 0 0 35%;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-right: 12px;
}

.inbox-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    margin-top: 6px;
    flex-shrink: 0;
}

.sender-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.sender-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sender-email {
    font-size: 0.8rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tb-col.tb-subject {
    flex: 1;
    font-size: 0.88rem;
    color: #334155;
    padding-right: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.subject-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.otp-pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    margin-left: 10px;
    flex-shrink: 0;
}

.tb-col.tb-actions {
    flex: 0 0 140px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.btn-row-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-row-delete:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #ef4444;
}

.chevron-icon {
    color: #cbd5e1;
    transition: transform 0.15s ease, color 0.15s ease;
}

.inbox-row:hover .chevron-icon {
    color: #0f172a;
    transform: translateX(3px);
}

/* Empty State inside Full-Width Table (Exact Match User Screenshot) */
.inbox-empty-box {
    padding: 56px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    margin: auto;
}

.empty-envelope-radar {
    position: relative;
    width: 68px;
    height: 68px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes spinClockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin-arrows {
    animation: spinClockwise 12s linear infinite;
    position: absolute;
    top: 0;
    left: 0;
}

.envelope-center-badge {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-inbox-heading {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 10px;
}

.empty-inbox-subtext {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 4px;
}
    line-height: 1.45;
}

/* ============================================================
   FULL-WIDTH EMAIL READER VIEW (EXACT MATCH USER SCREENSHOT 2)
   ============================================================ */
.mail-reader-card {
    background: #ffffff;
    border: 1px solid var(--border-main);
    border-radius: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.reader-top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.btn-back-nav {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.84rem;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-back-nav:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.reader-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-surface);
    border: 1px solid var(--border-main);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.action-btn:hover {
    background: var(--bg-subtle);
    color: var(--text-primary);
}

.btn-danger-action:hover {
    background: var(--rose-subtle);
    color: var(--rose);
    border-color: var(--rose-border);
}

.reader-meta-header {
    padding: 24px 28px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.reader-meta-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.reader-sender-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.reader-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: #059669;
    background: #ffffff;
    flex-shrink: 0;
}

.reader-sender-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.reader-sender-name {
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
}

.reader-sender-email {
    font-size: 0.84rem;
    color: #64748b;
}

.reader-date-group {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
}

.reader-date-label {
    color: #94a3b8;
    font-weight: 600;
}

.reader-date-val {
    color: #475569;
    font-family: var(--font-mono);
    font-size: 0.82rem;
}

.reader-subject-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 0.92rem;
    padding-top: 4px;
}

.reader-subject-label {
    color: #64748b;
    font-weight: 600;
}

.reader-subject-val {
    color: #0f172a;
    font-weight: 700;
    font-size: 1rem;
}

/* Extracted Code Card Inside Reader */
.reader-code-card {
    background: var(--amber-subtle);
    border: 1px solid var(--amber-border);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.code-card-title {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 800;
    color: #b45309;
    letter-spacing: 0.5px;
}

.code-card-number {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #78350f;
}

.btn-card-copy {
    background: var(--amber);
    color: #ffffff;
    border: none;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.reader-link-card {
    background: var(--blue-subtle);
    border: 1px solid var(--blue-border);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #1e40af;
}

.btn-open-link {
    background: var(--blue);
    color: #ffffff;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.78rem;
}

.reader-body-container {
    padding: 24px;
    min-height: 480px;
    background: #ffffff;
}

.mail-iframe {
    width: 100%;
    min-height: 500px;
    border: none;
    background: #ffffff;
}

/* ============================================================
   CENTERED HERO INTRO (MATCHING USER SCREENSHOT 1)
   ============================================================ */
.hero-article-card-centered {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 40px 16px 10px;
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
}

.editorial-h1-center {
    font-family: var(--font-mono);
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: -0.3px;
}

.editorial-lead-center {
    font-size: 0.94rem;
    color: #475569;
    line-height: 1.7;
    text-align: center;
    margin: 0 auto;
}

/* ============================================================
   TEMP-MAIL.ORG RICH EDITORIAL ARTICLES & SEO (ADSENSE CONTENT)
   ============================================================ */
.editorial-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
}

.editorial-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-main);
    border-radius: var(--radius-md);
    padding: 28px 32px;
    box-shadow: var(--shadow-2d);
}

.editorial-h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 10px;
    line-height: 1.35;
}

.editorial-h2:first-child {
    margin-top: 0;
}

.editorial-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 12px;
}

.editorial-bullets {
    margin: 12px 0 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.editorial-bullets li strong {
    color: var(--text-primary);
}

/* Popular Articles Grid */
.popular-articles-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-main);
    border-radius: var(--radius-md);
    padding: 26px 30px;
    box-shadow: var(--shadow-2d);
}

.section-badge-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: var(--blue);
    margin-bottom: 4px;
}

.popular-articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.article-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border-main);
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: all 0.15s ease;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.article-card:hover {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
    transform: translateY(-1px);
}

.article-card:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.article-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.article-read-link {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: transform 0.15s ease;
}

.article-card:hover .article-read-link {
    transform: translateX(3px);
}

.article-icon-box {
    width: 44px;
    height: 44px;
    background: #ffffff;
    border: 1px solid var(--border-main);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    flex-shrink: 0;
}

.article-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.article-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
}

.article-excerpt {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.article-meta-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-light);
    margin-top: 4px;
}

/* Use Cases List */
.usecases-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 16px 0 20px;
}

.usecase-item {
    background: var(--bg-subtle);
    border: 1px solid var(--border-main);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.usecase-badge {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.usecase-item p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============================================================
   PAGE FOOTER & TRUST BADGES (ADSENSE COMPLIANCE NAVIGATION)
   ============================================================ */
.page-footer {
    background: var(--bg-surface);
    border: 1px solid var(--border-main);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    box-shadow: var(--shadow-2d);
    margin-top: 8px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px 24px;
    list-style: none;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    transition: color 0.15s ease;
}

.footer-link:hover {
    color: #0f172a;
    text-decoration: underline;
}

.footer-divider {
    height: 1px;
    background: var(--border-main);
    width: 100%;
}

.footer-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-copyright p {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-subtext {
    font-size: 0.74rem;
    color: var(--text-light);
    max-width: 580px;
    margin-top: 2px;
}

.footer-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.trust-badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    background: var(--bg-subtle);
    border: 1px solid var(--border-main);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
}

/* ============================================================
   MODALS (2D DIALOGS FOR PRIVACY, TERMS, FAQ, CONTACT, ABOUT)
   ============================================================ */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}

.modal-box {
    background: #ffffff;
    border: 1px solid var(--border-main);
    border-radius: var(--radius-md);
    padding: 22px;
    width: 90%;
    max-width: 420px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

.modal-large {
    max-width: 680px;
}

.modal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-main);
}

.modal-top h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.btn-close-modal {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 2px 6px;
}

.btn-close-modal:hover {
    color: var(--text-primary);
}

.legal-text-flow {
    overflow-y: auto;
    padding-right: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.84rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.legal-date {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-light);
}

.legal-text-flow h4 {
    font-size: 0.94rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 8px;
}

.legal-text-flow ul {
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.faq-item-block {
    background: var(--bg-subtle);
    border: 1px solid var(--border-main);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}

.faq-item-block h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    margin-top: 0;
}

.faq-item-block p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* Contact Form */
.contact-desc {
    font-size: 0.84rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.45;
}

.contact-form-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.text-area {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-primary);
    resize: vertical;
    outline: none;
}

.text-area:focus {
    border-color: #0f172a;
}

.form-status-msg {
    background: var(--emerald-subtle);
    border: 1px solid var(--emerald-border);
    color: var(--emerald);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}

/* Username input */
.input-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 6px;
}

.input-group {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    padding-right: 10px;
    margin-bottom: 16px;
}

.input-group:focus-within {
    border-color: #0f172a;
}

.text-input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.92rem;
    padding: 8px 12px;
    outline: none;
    width: 100%;
}

.input-domain {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-modal-submit {
    width: 100%;
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-modal-submit:hover {
    background: #1e293b;
}

.qr-canvas-box {
    display: inline-block;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--border-main);
    border-radius: var(--radius-sm);
    margin: 8px 0;
}

.qr-address-text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    word-break: break-all;
    margin-top: 8px;
}

.text-center {
    text-align: center;
}

/* ============================================================
   GDPR / CCPA COOKIE CONSENT BAR (ADSENSE MANDATORY)
   ============================================================ */
.cookie-consent-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid var(--border-main);
    padding: 14px 24px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    z-index: 999;
}

.cookie-consent-content {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.cookie-icon {
    font-size: 1.4rem;
}

.cookie-text {
    flex: 1;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.cookie-text a {
    color: #0f172a;
    text-decoration: underline;
    font-weight: 600;
}

.cookie-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-cookie-accept {
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-cookie-accept:hover {
    background: #1e293b;
}

.btn-cookie-manage {
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid var(--border-main);
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-cookie-manage:hover {
    background: var(--bg-subtle);
    color: var(--text-primary);
}

/* =========================================
   TOAST POPUP (Clean Flat Bubble)
   ========================================= */
.toast-bubble {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0f172a;
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.84rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 2000;
}

.toast-bubble.active {
    opacity: 1;
    transform: translateY(0);
}

.hidden {
    display: none !important;
}

/* ============================================================
   ARTICLE READER MODAL (FULL EDITORIAL EXPERIENCE)
   ============================================================ */
.modal-article-box {
    max-width: 860px;
    width: 95%;
    max-height: 90vh;
    padding: 0;
    overflow: hidden;
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
}

.article-modal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border-main);
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.btn-article-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.btn-article-back:hover {
    background: var(--bg-subtle);
    color: #0f172a;
}

.article-modal-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: var(--blue);
    background: #eff6ff;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    border: 1px solid #dbeafe;
    text-transform: uppercase;
}

.article-modal-scroll {
    overflow-y: auto;
    padding: 30px 40px 48px;
    max-height: calc(90vh - 60px);
}

.article-header-area {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.article-main-heading {
    font-family: var(--font-sans);
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.3;
    color: #0f172a;
    letter-spacing: -0.4px;
    margin-bottom: 18px;
}

.article-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.author-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #0f172a;
}

.author-role {
    font-size: 0.75rem;
    color: #64748b;
}

.article-meta-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
}

.article-date-badge {
    color: #64748b;
}

.article-read-badge {
    background: #f1f5f9;
    color: #334155;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-weight: 700;
}

/* In-Article Ad Container */
.in-article-ad-wrapper {
    margin: 20px 0 24px;
}

.ad-block-responsive {
    min-height: 90px;
}

/* Article Typography */
.article-body-typography {
    font-size: 0.94rem;
    line-height: 1.75;
    color: #334155;
}

.article-body-typography h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 32px 0 12px;
    letter-spacing: -0.2px;
}

.article-body-typography p {
    margin-bottom: 16px;
}

.article-body-typography ul,
.article-body-typography ol {
    margin: 0 0 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-body-typography li strong {
    color: #0f172a;
}

.article-body-typography code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: #f1f5f9;
    color: #0f172a;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.article-lead-box {
    background: #f8fafc;
    border-left: 4px solid var(--blue);
    padding: 16px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 24px;
    font-size: 0.98rem;
    color: #1e293b;
}

.article-callout {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin: 24px 0;
    font-size: 0.88rem;
    line-height: 1.6;
}

.article-callout.tip {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
}

.article-callout.warning {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.article-callout.note {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.callout-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Comparison Tables */
.article-table-wrapper {
    overflow-x: auto;
    margin: 24px 0;
    border: 1px solid var(--border-main);
    border-radius: var(--radius-sm);
}

.article-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
    text-align: left;
}

.article-comparison-table th {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 700;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-main);
}

.article-comparison-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

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

/* Code Blocks */
.article-code-block {
    background: #0f172a;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin: 20px 0;
}

.article-code-block .code-header {
    background: #1e293b;
    color: #94a3b8;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 8px 14px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.article-code-block pre {
    padding: 14px 16px;
    margin: 0;
    overflow-x: auto;
}

.article-code-block code {
    background: transparent;
    border: none;
    color: #38bdf8;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.6;
    padding: 0;
}

/* Related Guides */
.article-related-box {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--border-main);
}

.related-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 14px;
    letter-spacing: -0.2px;
}

.related-pills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.related-pill-item {
    background: var(--bg-subtle);
    border: 1px solid var(--border-main);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
}

.related-pill-item:hover {
    border-color: var(--blue);
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
}

.related-pill-cat {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--blue);
    text-transform: uppercase;
}

.related-pill-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 680px) {
    .article-modal-scroll {
        padding: 20px 16px 36px;
    }
    .article-main-heading {
        font-size: 1.35rem;
    }
    .article-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .related-pills-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   RESPONSIVE LAYOUT BREAKPOINTS
   ========================================= */
@media (max-width: 860px) {
    .nav-links-desktop {
        display: none;
    }

    .popular-articles-grid {
        grid-template-columns: 1fr;
    }

    .usecases-list {
        grid-template-columns: 1fr;
    }

    .footer-meta-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .th-col.th-sender,
    .tb-col.tb-sender {
        flex: 0 0 45%;
    }
}

@media (max-width: 600px) {
    .app-layout {
        padding: 12px 12px 90px;
    }

    .navbar {
        padding: 8px 16px;
        min-height: 72px;
    }

    .brand-logo-img {
        height: 56px;
        max-width: 220px;
    }

    .hero-dark-header {
        padding: 24px 16px 20px;
    }

    .hero-dashed-box {
        padding: 14px 12px;
    }

    .hero-email-input {
        font-size: 1.02rem;
    }

    .floating-pill-actions {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        width: 100%;
    }

    .floating-pill-btn {
        width: 100%;
        justify-content: center;
        padding: 9px 14px;
        font-size: 0.82rem;
    }

    .th-col.th-subject,
    .tb-col.tb-subject {
        display: none;
    }

    .th-col.th-sender,
    .tb-col.tb-sender {
        flex: 1;
    }

    .inbox-table-header,
    .inbox-row {
        padding: 12px 16px;
    }

    .editorial-h1-center {
        font-size: 1.35rem;
    }

    .reader-meta-header {
        padding: 18px 16px;
    }

    .reader-top-nav {
        padding: 10px 16px;
    }
}


/* ==========================================================================
   ARTICLES EXPLORER & CATEGORY FILTERING (30 GUIDES)
   ========================================================================== */
.articles-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.articles-count-badge {
    display: inline-flex;
    align-items: center;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.article-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 20px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
    user-select: none;
}

.filter-pill:hover {
    background: #e2e8f0;
    color: #1e293b;
    border-color: #94a3b8;
}

.filter-pill.active {
    background: #1e2229;
    color: #ffffff;
    border-color: #1e2229;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.pill-count {
    display: inline-block;
    padding: 1px 6px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.filter-pill.active .pill-count {
    background: #22c55e;
    color: #ffffff;
}

.articles-expand-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.btn-expand-articles {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    background: #1e2229;
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(30, 34, 41, 0.18);
}

.btn-expand-articles:hover {
    background: #15803d;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(21, 128, 61, 0.25);
}

.btn-expand-articles .expand-icon {
    transition: transform 0.2s ease;
}

.btn-expand-articles.is-expanded .expand-icon {
    transform: rotate(180deg);
}

@media (max-width: 640px) {
    .articles-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .filter-pill {
        padding: 6px 11px;
        font-size: 0.75rem;
    }
}
