/**
 * ==========================================================================
 * post.css - SketchX Web Post Viewer Stylesheet
 * Material 3 Expressive Unified Design System
 * ==========================================================================
 */

/* ==========================================================================
   DESIGN TOKENS & FALLBACKS (Guarantees styling even without theme.css)
   ========================================================================== */
:root {
    --max-w: 960px;
    --header-h: 68px;
    --font-heading: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'Roboto Mono', 'JetBrains Mono', monospace;
    --font-family: var(--font-sans);

    /* Material 3 Light Mode Tokens */
    --md-sys-color-primary: #006399;
    --md-sys-color-surface-tint: #006399;
    --md-sys-color-on-primary: #ffffff;
    --md-sys-color-primary-container: #cbe6ff;
    --md-sys-color-on-primary-container: #001e32;
    
    --md-sys-color-secondary: #51606f;
    --md-sys-color-on-secondary: #ffffff;
    --md-sys-color-secondary-container: #d4e4f6;
    --md-sys-color-on-secondary-container: #0d1d2a;
    
    --md-sys-color-tertiary: #67587a;
    --md-sys-color-on-tertiary: #ffffff;
    --md-sys-color-tertiary-container: #eedcff;
    --md-sys-color-on-tertiary-container: #221533;

    --md-sys-color-error: #ba1a1a;
    --md-sys-color-on-error: #ffffff;
    --md-sys-color-error-container: #ffdad6;
    --md-sys-color-on-error-container: #410002;

    --md-sys-color-background: #f8f9ff;
    --md-sys-color-on-background: #191c20;
    --md-sys-color-surface: #f8f9ff;
    --md-sys-color-on-surface: #191c20;
    --md-sys-color-surface-variant: #dee3eb;
    --md-sys-color-on-surface-variant: #42474e;
    --md-sys-color-outline: #72777f;
    --md-sys-color-outline-variant: #c2c7cf;

    --md-sys-color-surface-container-lowest: #ffffff;
    --md-sys-color-surface-container-low: #f2f3fa;
    --md-sys-color-surface-container: #eceef4;
    --md-sys-color-surface-container-high: #e6e8ee;
    --md-sys-color-surface-container-highest: #e0e2e8;

    --md-sys-color-success: #198754;
    --md-sys-color-success-container: #d1e7dd;
    --md-sys-color-on-success-container: #0f5132;

    --shape-full: 9999px;
    --shape-extra-large: 28px;
    --shape-large: 20px;
    --shape-medium: 14px;
    --shape-small: 8px;

    --elevation-1: 0 1px 3px 1px rgba(0, 0, 0, 0.08), 0 1px 2px 0 rgba(0, 0, 0, 0.12);
    --elevation-2: 0 2px 6px 2px rgba(0, 0, 0, 0.08), 0 1px 2px 0 rgba(0, 0, 0, 0.12);
    --elevation-3: 0 4px 12px 3px rgba(0, 0, 0, 0.08), 0 1px 3px 0 rgba(0, 0, 0, 0.15);
    --elevation-4: 0 8px 24px 4px rgba(0, 0, 0, 0.1), 0 2px 6px 0 rgba(0, 0, 0, 0.15);
}

[data-theme="dark"],
.dark {
    --md-sys-color-primary: #8ecdff;
    --md-sys-color-surface-tint: #8ecdff;
    --md-sys-color-on-primary: #003453;
    --md-sys-color-primary-container: #004b75;
    --md-sys-color-on-primary-container: #cbe6ff;

    --md-sys-color-secondary: #b8c8d9;
    --md-sys-color-on-secondary: #23323f;
    --md-sys-color-secondary-container: #263545;
    --md-sys-color-on-secondary-container: #d4e4f6;

    --md-sys-color-tertiary: #d2bfe7;
    --md-sys-color-on-tertiary: #382a4a;
    --md-sys-color-tertiary-container: #4f4061;
    --md-sys-color-on-tertiary-container: #eedcff;

    --md-sys-color-error: #ffb4ab;
    --md-sys-color-on-error: #690005;
    --md-sys-color-error-container: #93000a;
    --md-sys-color-on-error-container: #ffdad6;

    --md-sys-color-background: #101418;
    --md-sys-color-on-background: #e0e2e8;
    --md-sys-color-surface: #101418;
    --md-sys-color-on-surface: #e0e2e8;
    --md-sys-color-surface-variant: #42474e;
    --md-sys-color-on-surface-variant: #c2c7cf;
    --md-sys-color-outline: #8c9199;
    --md-sys-color-outline-variant: #42474e;

    --md-sys-color-surface-container-lowest: #0b0f12;
    --md-sys-color-surface-container-low: #191c20;
    --md-sys-color-surface-container: #1d2024;
    --md-sys-color-surface-container-high: #272a2f;
    --md-sys-color-surface-container-highest: #32353a;

    --md-sys-color-success: #75dc9e;
    --md-sys-color-success-container: #0a4d2c;
    --md-sys-color-on-success-container: #b3f4cf;

    --elevation-1: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --elevation-2: 0 2px 6px 2px rgba(0, 0, 0, 0.45), 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --elevation-3: 0 4px 12px 3px rgba(0, 0, 0, 0.5), 0 1px 3px 0 rgba(0, 0, 0, 0.35);
    --elevation-4: 0 8px 24px 4px rgba(0, 0, 0, 0.55), 0 2px 6px 0 rgba(0, 0, 0, 0.4);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --md-sys-color-primary: #8ecdff;
        --md-sys-color-surface-tint: #8ecdff;
        --md-sys-color-on-primary: #003453;
        --md-sys-color-primary-container: #004b75;
        --md-sys-color-on-primary-container: #cbe6ff;

        --md-sys-color-secondary: #b8c8d9;
        --md-sys-color-on-secondary: #23323f;
        --md-sys-color-secondary-container: #263545;
        --md-sys-color-on-secondary-container: #d4e4f6;

        --md-sys-color-tertiary: #d2bfe7;
        --md-sys-color-on-tertiary: #382a4a;
        --md-sys-color-tertiary-container: #4f4061;
        --md-sys-color-on-tertiary-container: #eedcff;

        --md-sys-color-error: #ffb4ab;
        --md-sys-color-on-error: #690005;
        --md-sys-color-error-container: #93000a;
        --md-sys-color-on-error-container: #ffdad6;

        --md-sys-color-background: #101418;
        --md-sys-color-on-background: #e0e2e8;
        --md-sys-color-surface: #101418;
        --md-sys-color-on-surface: #e0e2e8;
        --md-sys-color-surface-variant: #42474e;
        --md-sys-color-on-surface-variant: #c2c7cf;
        --md-sys-color-outline: #8c9199;
        --md-sys-color-outline-variant: #42474e;

        --md-sys-color-surface-container-lowest: #0b0f12;
        --md-sys-color-surface-container-low: #191c20;
        --md-sys-color-surface-container: #1d2024;
        --md-sys-color-surface-container-high: #272a2f;
        --md-sys-color-surface-container-highest: #32353a;

        --md-sys-color-success: #75dc9e;
        --md-sys-color-success-container: #0a4d2c;
        --md-sys-color-on-success-container: #b3f4cf;
    }
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--md-sys-color-background);
    color: var(--md-sys-color-on-background);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.25s ease, color 0.25s ease;
}

/* ==========================================================================
   LAYOUT CONTAINERS
   ========================================================================== */
.container {
    max-width: var(--max-w);
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.main-wrapper {
    max-width: var(--max-w);
    width: 100%;
    margin: 0 auto;
    padding: 100px 20px 80px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
}

@media (max-width: 768px) {
    .main-wrapper {
        padding: 86px 16px 60px;
        gap: 18px;
    }
}

/* ==========================================================================
   BREADCRUMB & BACK NAVIGATION
   ========================================================================== */
.post-breadcrumb-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.post-back-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--shape-full);
    background: var(--md-sys-color-surface-container);
    border: 1px solid var(--md-sys-color-outline-variant);
    color: var(--md-sys-color-on-surface);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.post-back-pill:hover {
    background: var(--md-sys-color-surface-container-high);
    border-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-primary);
    transform: translateX(-3px);
}

/* ==========================================================================
   CARDS & CONTAINERS
   ========================================================================== */
.m3-card {
    background: var(--md-sys-color-surface-container);
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: var(--shape-extra-large);
    padding: 32px;
    box-shadow: var(--elevation-1);
    transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
}

@media (max-width: 600px) {
    .m3-card {
        padding: 20px 18px;
        border-radius: var(--shape-large);
    }
}

.post-detail-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ==========================================================================
   POST HEADER & META
   ========================================================================== */
.post-header {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

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

.post-meta-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.post-type-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: var(--shape-full);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    border: 1px solid var(--md-sys-color-primary);
}

.post-type-pill.code {
    background: #D2E4FF;
    color: #004A77;
    border: 1px solid #A8C7FA;
}

.post-type-pill.block {
    background: #FFE082;
    color: #5D4037;
    border: 1px solid #FFCA28;
}

[data-theme="dark"] .post-type-pill.code {
    background: rgba(0, 176, 255, 0.15);
    color: #40C4FF;
    border: 1px solid rgba(0, 176, 255, 0.35);
}

[data-theme="dark"] .post-type-pill.block {
    background: rgba(255, 171, 0, 0.15);
    color: #FFD54F;
    border: 1px solid rgba(255, 171, 0, 0.35);
}

.post-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: var(--shape-full);
    background: var(--md-sys-color-success-container);
    color: var(--md-sys-color-on-success-container);
    border: 1px solid var(--md-sys-color-success);
    font-size: 0.76rem;
    font-weight: 700;
}

[data-theme="dark"] .post-verified-badge {
    background: rgba(30, 215, 96, 0.15);
    color: #69F0AE;
    border: 1px solid rgba(30, 215, 96, 0.35);
}

.post-time {
    font-size: 0.85rem;
    color: var(--md-sys-color-outline);
    font-weight: 600;
}

.post-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--md-sys-color-on-surface);
    line-height: 1.25;
    letter-spacing: -0.025em;
    margin-top: 4px;
}

@media (max-width: 600px) {
    .post-title {
        font-size: 1.6rem;
    }
}

/* ==========================================================================
   AUTHOR ROW & BADGES
   ========================================================================== */
.author-profile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px;
    background: var(--md-sys-color-surface-container-high);
    border-radius: var(--shape-large);
    border: 1px solid var(--md-sys-color-outline-variant);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.author-profile-row:hover {
    border-color: var(--md-sys-color-primary);
}

.btn-open-profile-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--shape-full);
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
    white-space: nowrap;
    box-shadow: var(--elevation-1);
    flex-shrink: 0;
}

.btn-open-profile-pill:hover {
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    transform: translateY(-2px);
    box-shadow: var(--elevation-2);
}

.author-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--shape-full);
    object-fit: cover;
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    flex-shrink: 0;
    border: 2px solid var(--md-sys-color-primary);
}

.author-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.author-name-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.author-name {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--md-sys-color-on-surface);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.author-username {
    font-size: 0.84rem;
    color: var(--md-sys-color-outline);
    font-family: var(--font-mono);
    margin-top: 2px;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: var(--shape-full);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.role-badge.admin { background: #FFDAD6; color: #93000A; border: 1px solid #FFB4AB; }
.role-badge.maintainer { background: #EADDFF; color: #4F378B; border: 1px solid #D0BCFF; }
.role-badge.developer { background: #D2E4FF; color: #004A77; border: 1px solid #A8C7FA; }
.role-badge.contributor { background: #C2E7FF; color: #004D68; border: 1px solid #7DD0F6; }
.role-badge.tester { background: #D1E7DD; color: #0F5132; border: 1px solid #A3CFBB; }
.role-badge.pro { background: #FFDF99; color: #5D3600; border: 1px solid #FFB951; }

[data-theme="dark"] .role-badge.admin { background: rgba(239, 83, 80, 0.2); color: #FF8A80; border: 1px solid rgba(239, 83, 80, 0.4); }
[data-theme="dark"] .role-badge.maintainer { background: rgba(171, 71, 188, 0.2); color: #EA80FC; border: 1px solid rgba(171, 71, 188, 0.4); }
[data-theme="dark"] .role-badge.developer { background: rgba(33, 150, 243, 0.2); color: #82B1FF; border: 1px solid rgba(33, 150, 243, 0.4); }
[data-theme="dark"] .role-badge.contributor { background: rgba(0, 188, 212, 0.2); color: #84FFFF; border: 1px solid rgba(0, 188, 212, 0.4); }
[data-theme="dark"] .role-badge.tester { background: rgba(76, 175, 80, 0.2); color: #B9F6CA; border: 1px solid rgba(76, 175, 80, 0.4); }
[data-theme="dark"] .role-badge.pro { background: rgba(255, 171, 0, 0.2); color: #FFE57F; border: 1px solid rgba(255, 171, 0, 0.4); }

/* ==========================================================================
   POST DESCRIPTION & MARKDOWN BODY
   ========================================================================== */
.post-description-body {
    font-size: 1rem;
    color: var(--md-sys-color-on-surface-variant);
    line-height: 1.8;
}

.post-description-body h1, 
.post-description-body h2, 
.post-description-body h3 {
    font-family: var(--font-heading);
    color: var(--md-sys-color-on-surface);
    font-weight: 800;
    margin: 24px 0 12px;
    letter-spacing: -0.015em;
}

.post-description-body p {
    margin-bottom: 16px;
}

.post-description-body blockquote {
    border-left: 4px solid var(--md-sys-color-primary);
    padding: 14px 20px;
    background: var(--md-sys-color-surface-container-high);
    border-radius: 0 var(--shape-medium) var(--shape-medium) 0;
    margin: 20px 0;
    color: var(--md-sys-color-on-surface);
    font-style: italic;
}

.post-description-body code {
    font-family: var(--font-mono);
    background: var(--md-sys-color-surface-container-highest);
    padding: 3px 7px;
    border-radius: 6px;
    font-size: 0.88em;
    color: var(--md-sys-color-primary);
}

/* ==========================================================================
   CODE BLOCKS
   ========================================================================== */
.code-container {
    background: #0D1117;
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: var(--shape-large);
    overflow: hidden;
    margin: 24px 0;
    box-shadow: var(--elevation-2);
}

.code-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #161B22;
    border-bottom: 1px solid #30363D;
}

.code-lang-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    color: #79C0FF;
    text-transform: uppercase;
}

.btn-copy-code {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #21262D;
    border: 1px solid #363B42;
    color: #C9D1D9;
    padding: 5px 14px;
    border-radius: var(--shape-full);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy-code:hover {
    background: #30363D;
    color: #FFFFFF;
}

.code-body-pre {
    padding: 20px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.65;
    color: #E6EDF3;
    max-height: 520px;
}

/* ==========================================================================
   CONTENT LOCKED CARD
   ========================================================================== */
.locked-content-card {
    background: linear-gradient(135deg, rgba(28, 35, 51, 0.96) 0%, rgba(21, 26, 38, 0.98) 100%);
    border: 1.5px dashed rgba(142, 205, 255, 0.35);
    border-radius: var(--shape-extra-large);
    padding: 44px 28px;
    text-align: center;
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .locked-content-card {
    background: linear-gradient(135deg, #F0F4F8 0%, #E6EDF5 100%);
    border: 1.5px dashed rgba(0, 99, 153, 0.3);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.locked-card-icon {
    width: 68px;
    height: 68px;
    border-radius: var(--shape-large);
    background: rgba(142, 205, 255, 0.15);
    color: var(--md-sys-color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 18px;
    animation: gentlePulse 2.8s infinite ease-in-out;
}

[data-theme="light"] .locked-card-icon {
    background: rgba(0, 99, 153, 0.12);
    color: #006399;
}

.locked-card-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--md-sys-color-on-surface);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.locked-card-subtitle {
    font-size: 0.96rem;
    color: var(--md-sys-color-on-surface-variant);
    max-width: 520px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.btn-locked-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    padding: 13px 26px;
    border-radius: var(--shape-full);
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: var(--elevation-2);
    transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s ease;
}

.btn-locked-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(142, 205, 255, 0.35);
}

/* ==========================================================================
   TAGS & SOCIAL ACTION BAR
   ========================================================================== */
.tags-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 16px;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 14px;
    border-radius: var(--shape-full);
    background: var(--md-sys-color-surface-container-high);
    color: var(--md-sys-color-on-surface-variant);
    border: 1px solid var(--md-sys-color-outline-variant);
    font-size: 0.82rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.tag-chip:hover {
    border-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-primary);
    transform: translateY(-1px);
}

.post-social-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--md-sys-color-outline-variant);
    flex-wrap: wrap;
    gap: 12px;
}

.social-stats-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--md-sys-color-on-surface-variant);
    font-size: 0.95rem;
    font-weight: 700;
}

.social-stat-item i {
    font-size: 1.25rem;
    color: var(--md-sys-color-primary);
}

.btn-share {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--md-sys-color-surface-container-high);
    color: var(--md-sys-color-on-surface);
    border: 1px solid var(--md-sys-color-outline-variant);
    padding: 9px 18px;
    border-radius: var(--shape-full);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-share:hover {
    background: var(--md-sys-color-surface-container-highest);
    border-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-primary);
    transform: translateY(-1px);
}

/* ==========================================================================
   PLAY STORE BANNER CARD
   ========================================================================== */
.playstore-banner-card {
    background: linear-gradient(135deg, #161D2B 0%, #10141D 100%);
    border: 1px solid rgba(142, 205, 255, 0.25);
    border-radius: var(--shape-extra-large);
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: var(--elevation-2);
    margin-top: 8px;
}

@media (max-width: 700px) {
    .playstore-banner-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px 18px;
    }
}

.banner-content-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.banner-logo-img {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.banner-text-info h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
}

.banner-text-info p {
    font-size: 0.9rem;
    color: #A6ADBB;
    line-height: 1.5;
}

.btn-playstore-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    color: #0F1318;
    padding: 12px 24px;
    border-radius: var(--shape-full);
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
    flex-shrink: 0;
}

.btn-playstore-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   ERROR & NOT FOUND STATE
   ========================================================================== */
.post-error-card {
    text-align: center;
    padding: 60px 28px 52px;
    background: linear-gradient(180deg, var(--md-sys-color-surface-container) 0%, var(--md-sys-color-surface-container-low) 100%);
    border: 1.5px solid var(--md-sys-color-outline-variant);
    border-radius: var(--shape-extra-large);
    box-shadow: var(--elevation-2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.error-badge-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--shape-full);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    background: var(--md-sys-color-error-container);
    color: var(--md-sys-color-on-error-container);
    border: 1px solid var(--md-sys-color-error);
    margin: 0 auto 20px auto;
}

.error-icon-box {
    width: 80px;
    height: 80px;
    border-radius: var(--shape-large);
    background: var(--md-sys-color-error-container);
    color: var(--md-sys-color-on-error-container);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    margin: 0 auto 20px auto;
    animation: gentlePulse 2.5s infinite ease-in-out;
}

@keyframes gentlePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.06); opacity: 0.9; }
}

.error-title {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--md-sys-color-on-surface);
    letter-spacing: -0.4px;
    margin-bottom: 12px;
}

.error-desc {
    font-size: 0.98rem;
    color: var(--md-sys-color-on-surface-variant);
    max-width: 520px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.error-actions-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

.btn-primary-action,
.btn-secondary-action,
.btn-tonal-action {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 24px;
    border-radius: var(--shape-full);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary-action {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    box-shadow: var(--elevation-1);
}
.btn-primary-action:hover {
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    transform: translateY(-2px);
    box-shadow: var(--elevation-2);
}

.btn-secondary-action {
    background-color: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
    border: 1px solid var(--md-sys-color-outline-variant);
}
.btn-secondary-action:hover {
    background-color: var(--md-sys-color-surface-container-highest);
    color: var(--md-sys-color-on-surface);
    transform: translateY(-2px);
}

.btn-tonal-action {
    background: transparent;
    color: var(--md-sys-color-primary);
    border: 1.5px solid var(--md-sys-color-outline);
}
.btn-tonal-action:hover {
    background-color: var(--md-sys-color-surface-container-high);
    border-color: var(--md-sys-color-primary);
    transform: translateY(-2px);
}

/* ==========================================================================
   ADMIN CONTROLS
   ========================================================================== */
.admin-control-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--shape-full);
    border: 1px solid var(--md-sys-color-outline-variant);
    background: var(--md-sys-color-surface-container-high);
    color: var(--md-sys-color-on-surface);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-control-btn:hover {
    background: var(--md-sys-color-surface-container-highest);
    border-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-primary);
}

.admin-control-btn.active-verified {
    background: rgba(30, 215, 96, 0.15);
    color: #1ED760;
    border-color: rgba(30, 215, 96, 0.4);
}

.admin-control-btn.active-hidden {
    background: rgba(255, 82, 82, 0.15);
    color: #FF5252;
    border-color: rgba(255, 82, 82, 0.4);
}

.admin-control-btn.danger {
    color: var(--md-sys-color-error);
}

.admin-control-btn.danger:hover {
    background: rgba(255, 82, 82, 0.15);
    border-color: var(--md-sys-color-error);
}

/* ==========================================================================
   SITE NAVBAR & BUTTONS
   ========================================================================== */
.site-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    background: var(--md-sys-color-surface-container);
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
    z-index: 1000;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 16px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    flex-shrink: 0;
    color: var(--md-sys-color-on-surface);
    text-decoration: none;
}

.nav-logo-img {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    object-fit: cover;
    border-radius: var(--shape-small, 12px);
    display: block;
}

.m3-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    border-radius: var(--shape-full);
    font-size: 0.72rem;
    font-weight: 800;
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-menu-list {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--md-sys-color-on-surface-variant);
    transition: color 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
}

.nav-link:hover,
.nav-link-active {
    color: var(--md-sys-color-primary);
}

.nav-actions-cluster {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--shape-full);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
    white-space: nowrap;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    box-shadow: var(--elevation-1);
}

.btn-primary:hover {
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    transform: translateY(-2px);
    box-shadow: var(--elevation-2);
}

.nav-cta-btn {
    padding: 9px 18px;
    font-size: 0.86rem;
}

.theme-toggle-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--shape-full);
    background-color: var(--md-sys-color-surface-container-high);
    border: 1px solid var(--md-sys-color-outline-variant);
    color: var(--md-sys-color-on-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
}

.mobile-menu-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: var(--shape-full);
    background-color: var(--md-sys-color-surface-container-high);
    border: 1px solid var(--md-sys-color-outline-variant);
    color: var(--md-sys-color-on-surface);
    font-size: 1.2rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.mobile-drawer {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--md-sys-color-surface-container);
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
    padding: 20px 24px;
    z-index: 999;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--elevation-3);
}

@media (max-width: 768px) {
    .nav-menu-list {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

/* ==========================================================================
   SITE FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--md-sys-color-surface-container-lowest);
    border-top: 1px solid var(--md-sys-color-outline-variant);
    padding: 56px 0 28px;
    margin-top: 40px;
}

.footer-grid-wrap {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 36px;
}

.footer-brand-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-brand-desc {
    font-size: 0.86rem;
    color: var(--md-sys-color-on-surface-variant);
    max-width: 300px;
    line-height: 1.6;
}

.footer-col-title {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--md-sys-color-on-surface);
    margin-bottom: 14px;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link-anchor {
    font-size: 0.85rem;
    color: var(--md-sys-color-on-surface-variant);
    transition: color 0.2s ease;
    text-decoration: none;
}

.footer-link-anchor:hover {
    color: var(--md-sys-color-primary);
}

.footer-bottom-bar {
    padding-top: 24px;
    border-top: 1px solid var(--md-sys-color-outline-variant);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--md-sys-color-outline);
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 768px) {
    .footer-grid-wrap {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}

@media (max-width: 480px) {
    .footer-grid-wrap {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   TOP NAV / BACKWARD COMPATIBILITY
   ========================================================================== */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--md-sys-color-surface-container);
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: var(--shape-extra-large);
    box-shadow: var(--elevation-1);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 16px;
    z-index: 100;
}

.nav-brand-img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

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

.btn-open-app {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    padding: 8px 18px;
    border-radius: var(--shape-full);
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: var(--elevation-1);
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.btn-open-app:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(142, 205, 255, 0.35);
}

.nav-back-link {
    width: 36px;
    height: 36px;
    border-radius: var(--shape-full);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--md-sys-color-surface-container-high);
    border: 1px solid var(--md-sys-color-outline-variant);
    color: var(--md-sys-color-on-surface);
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-back-link:hover {
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
}

/* App icon mask helper */
.btn-app-icon-img {
    width: 15px;
    height: 15px;
    display: inline-block;
    vertical-align: middle;
    background-color: currentColor;
    -webkit-mask: url('/images/ic_app_logo.svg') no-repeat center / contain;
    mask: url('/images/ic_app_logo.svg') no-repeat center / contain;
    flex-shrink: 0;
}