/* ==========================================================================
   Vladimír Cedula - Candidate & Councillor Blog Design System (Dark Minimalist)
   ========================================================================== */

:root {
    --bg-main: #0b0f19;
    --bg-card: #151d30;
    --bg-card-hover: #1c2742;
    --bg-glass: rgba(21, 29, 48, 0.75);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(99, 102, 241, 0.4);
    
    --primary-blue: #3b82f6;
    --primary-indigo: #6366f1;
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    --accent-emerald: #10b981;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.25);
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
    outline: none;
}

h1:focus, h2:focus, h3:focus, h4:focus, h5:focus, h6:focus,
h1:focus-visible, h2:focus-visible, h3:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #60a5fa;
}

/* Loader */
.initial-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    gap: 1.5rem;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loader-text {
    font-family: var(--font-heading);
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Blazor Error UI */
#blazor-error-ui {
    background: #1e1b4b;
    color: #f87171;
    bottom: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    display: none;
    left: 0;
    padding: 0.75rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-top: 1px solid #ef4444;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 1.25rem;
    top: 0.75rem;
    color: #94a3b8;
}

/* Header & Navigation */
.navbar-custom {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0 0 0;
}

/* Dedicated Admin Toolbar Bar */
.admin-bar {
    background: linear-gradient(90deg, rgba(30, 41, 67, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
    padding: 0.5rem 0;
    margin-top: 0.75rem;
}

.admin-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-bar-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #38bdf8;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.admin-bar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-nav-btn {
    padding: 0.4rem 0.9rem !important;
    font-size: 0.82rem !important;
    text-decoration: none;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: none !important;
    white-space: nowrap;
}

.admin-logout-btn {
    padding: 0.4rem 0.85rem !important;
    font-size: 0.82rem !important;
    color: #f87171 !important;
    border-color: rgba(248, 113, 113, 0.3) !important;
    white-space: nowrap;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-avatar {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
    font-size: 1.1rem;
    box-shadow: var(--shadow-glow);
    object-fit: cover;
    object-position: top;
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.2;
}

.brand-tag {
    font-size: 0.75rem;
    color: var(--primary-blue);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-link-custom {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    border: 1px solid transparent;
}

.nav-link-custom:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.06);
}

.nav-link-custom.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(99, 102, 241, 0.25) 100%);
    border: 1px solid rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
    font-weight: 700;
}

/* Hero Section */
.hero-wrapper {
    position: relative;
    padding: 4rem 1.5rem 3rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(11, 15, 25, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-card {
    position: relative;
    z-index: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2.5rem;
    align-items: center;
    box-shadow: var(--shadow-soft);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent-emerald);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-emerald);
    box-shadow: 0 0 10px var(--accent-emerald);
}

.hero-title {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    max-width: 700px;
}

.candidate-avatar-large {
    width: 240px;
    height: 300px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    display: block;
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(99, 102, 241, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.15);
    object-fit: cover;
    object-position: center;
}

/* Articles Section */
.section-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.75rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--primary-gradient);
    margin-top: 0.5rem;
    border-radius: 2px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-glow);
    background: var(--bg-card-hover);
}

.article-image-wrapper {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.article-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: linear-gradient(to bottom, rgba(21, 29, 48, 0) 0%, rgba(21, 29, 48, 0.98) 100%);
    pointer-events: none;
    z-index: 2;
    transition: background 0.3s ease;
}

.article-card:hover .article-image-wrapper::after {
    background: linear-gradient(to bottom, rgba(28, 39, 66, 0) 0%, rgba(28, 39, 66, 0.98) 100%);
}

.article-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    pointer-events: none;
    z-index: 3;
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image {
    transform: scale(1.05);
}

.article-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-date {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.article-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.article-summary {
    color: var(--text-muted);
    font-size: 0.925rem;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.article-link {
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Newsletter Subscription Section */
.subscribe-card {
    background: linear-gradient(135deg, rgba(21, 29, 48, 0.9) 0%, rgba(30, 41, 67, 0.9) 100%);
    border: 1px solid var(--border-color-hover);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.subscribe-title {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.subscribe-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.subscribe-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 0.75rem;
}

.input-custom {
    flex-grow: 1;
    background: rgba(11, 15, 25, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.25rem;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.input-custom:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: var(--radius-sm);
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Article Detail Page */
.article-detail-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.article-header {
    margin-bottom: 2.5rem;
}

.article-detail-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.article-cover-large {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 2.5rem;
    padding: 6px;
    background: var(--bg-card);
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(99, 102, 241, 0.2);
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e2e8f0;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body h2, .article-body h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-body ul, .article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    padding: 8px;
    background: #151d30;
    border-radius: var(--radius-md);
    border: 1px solid rgba(99, 102, 241, 0.35);
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.6), 0 0 18px rgba(99, 102, 241, 0.15);
    transition: all 0.3s ease;
}

.article-body img:hover {
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.article-body blockquote {
    border-left: 4px solid var(--primary-indigo);
    padding-left: 1.25rem;
    font-style: italic;
    color: var(--text-muted);
    margin: 1.5rem 0;
}

/* Article Detail Subscribe Banner */
.article-subscribe-banner {
    background: linear-gradient(135deg, rgba(21, 29, 48, 0.95) 0%, rgba(30, 41, 67, 0.95) 100%);
    border: 1px solid var(--border-color-hover);
    border-radius: var(--radius-md);
    padding: 2rem 2.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: var(--shadow-soft);
}

.article-subscribe-title {
    font-size: 1.2rem;
    margin: 0 0 0.35rem 0;
    color: var(--text-main);
}

.article-subscribe-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.article-subscribe-action {
    flex-shrink: 0;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-top: 4rem;
}

.desktop-text {
    display: inline;
}
.mobile-text {
    display: none;
}

.nav-admin-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.nav-logout-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Mobile & Tablet Responsiveness Enhancements */
@media (max-width: 768px) {
    .navbar-custom {
        padding: 0.5rem 0 0 0;
    }

    .nav-container {
        padding: 0 0.85rem;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .brand-avatar {
        width: 34px;
        height: 34px;
    }

    .brand-name {
        font-size: 0.95rem;
    }

    .brand-tag {
        display: none; /* Skrytie dlhého podnadpisu na mobiloch pre čistú lištu */
    }

    .nav-actions {
        display: flex;
        align-items: center;
        gap: 0.35rem;
    }

    .nav-link-custom {
        padding: 0.35rem 0.6rem !important;
        font-size: 0.82rem !important;
    }

    .admin-bar {
        padding: 0.4rem 0;
        margin-top: 0.5rem;
    }

    .admin-bar-container {
        padding: 0 0.85rem;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .admin-bar-label {
        font-size: 0.78rem;
    }

    .admin-nav-btn,
    .admin-logout-btn {
        padding: 0.35rem 0.65rem !important;
        font-size: 0.78rem !important;
    }

    .article-subscribe-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.75rem 1.25rem;
        gap: 1.25rem;
    }

    .article-subscribe-action,
    .article-subscribe-action .btn-primary {
        width: 100%;
        display: block;
        text-align: center;
    }

    .hero-wrapper {
        padding: 1.25rem 0.85rem 1rem 0.85rem;
    }

    .hero-card {
        padding: 1.5rem 1.25rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .hero-image-col {
        order: -1;
    }

    .hero-title {
        font-size: 1.35rem !important;
        line-height: 1.25 !important;
        margin-bottom: 0.75rem !important;
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.25rem;
    }

    .candidate-avatar-large {
        width: 170px;
        height: 210px;
        margin: 0 auto;
    }

    .hero-card .btn-primary, 
    .hero-card .btn-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .section-wrapper {
        padding: 1.25rem 0.85rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .section-title {
        font-size: 1.25rem !important;
    }

    /* Mobile Typography - Compact headings for mobile viewports */
    h1 {
        font-size: 1.45rem !important;
        line-height: 1.25 !important;
    }

    h2 {
        font-size: 1.25rem !important;
        line-height: 1.3 !important;
    }

    h3 {
        font-size: 1.1rem !important;
        line-height: 1.35 !important;
    }

    .article-detail-container {
        padding: 1.5rem 0.85rem;
    }

    .article-detail-title {
        font-size: 1.4rem !important;
        line-height: 1.25 !important;
        margin-bottom: 0.75rem !important;
    }

    .subscribe-title {
        font-size: 1.3rem !important;
        line-height: 1.3 !important;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .article-image-wrapper {
        height: 190px;
    }

    .article-content {
        padding: 1.15rem;
    }

    .article-card-title {
        font-size: 1.05rem;
    }

    .subscribe-card {
        padding: 1.5rem 1.25rem !important;
        flex-direction: column !important;
        text-align: center;
        gap: 1rem !important;
    }

    .subscribe-card .btn-primary {
        width: 100%;
        display: block;
        text-align: center;
    }

    .subscribe-form {
        flex-direction: column;
    }

    footer {
        padding: 2rem 1rem;
        margin-top: 2rem;
    }

    footer > div {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem !important;
    }
}

/* Progressive Web App (PWA) Installation Banner */
.pwa-banner-wrapper {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 92%;
    max-width: 520px;
    animation: pwaSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pwaSlideUp {
    from {
        transform: translate(-50%, 100px);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.pwa-banner {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 16px;
    padding: 0.85rem 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(59, 130, 246, 0.25);
}

.pwa-banner-info {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.pwa-banner-icon img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.pwa-banner-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pwa-banner-text strong {
    font-size: 0.95rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pwa-banner-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pwa-banner-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.pwa-install-btn {
    padding: 0.45rem 0.9rem !important;
    font-size: 0.82rem !important;
    white-space: nowrap;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%) !important;
}

.pwa-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.25rem 0.4rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.pwa-close-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
}

.pwa-ios-help {
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-top: none;
    border-radius: 0 0 14px 14px;
    padding: 1rem 1.25rem;
    margin-top: -6px;
    font-size: 0.85rem;
    color: #e2e8f0;
}

.pwa-ios-help ol {
    margin: 0.5rem 0 0 0;
    padding-left: 1.2rem;
    line-height: 1.6;
}

/* Responsive Admin Dashboard */
.admin-desktop-grid {
    display: block;
}
.admin-mobile-list {
    display: none;
}
.admin-stats-grid {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .admin-desktop-grid {
        display: none !important;
    }
    .admin-mobile-list {
        display: flex !important;
        flex-direction: column;
        gap: 1rem;
    }
    .admin-mobile-card {
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        padding: 1.25rem;
        box-shadow: var(--shadow-soft);
    }
    .admin-mobile-thumb {
        width: 64px;
        height: 48px;
        object-fit: cover;
        border-radius: var(--radius-sm);
        border: 1px solid var(--border-color);
        flex-shrink: 0;
    }
    .admin-mobile-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 0.85rem;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }
    .admin-action-btn {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 120px;
        text-align: center;
        justify-content: center;
        padding: 0.55rem 0.75rem;
        font-size: 0.85rem;
    }
    .admin-stats-grid {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    .admin-add-subscriber-box {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .admin-add-subscriber-box input {
        max-width: 100% !important;
    }
    .admin-add-subscriber-box button {
        width: 100% !important;
    }
}