/* ==========================================================================
   Ultra CMS — Theme (single stylesheet)
   Editorial dark / gold accent. Replaces the previous front-1..3 / premium /
   theme-dark / theme-vivid stack — this is the only stylesheet the theme
   loads. Every class here matches what the .twig templates actually use.
   ========================================================================== */

/* ── Design Tokens ── */
:root,
[data-theme="dark"] {
    color-scheme: dark;
    --gold:           var(--theme-primary, #cda45a);
    --gold-light:     #e3c07f;
    --gold-dim:       rgba(205, 164, 90, 0.12);
    --gold-ink:       #16130a; /* text color when sitting on a gold fill */
    --purple:         var(--theme-secondary, #8b7fd8);
    --purple-dim:     rgba(139, 127, 216, 0.14);
    --red-alert:      #e5484d;

    --bg-base:        var(--theme-bg, #0b0c11);
    --bg-surface:     #121319;
    --bg-card:        #171821;
    --bg-card-hover:  #1d1f2b;
    --bg-glass:       rgba(255, 255, 255, 0.035);
    --bg-nav:         rgba(11, 12, 17, 0.94);

    --border-subtle:  rgba(255, 255, 255, 0.08);
    --border-accent:  rgba(205, 164, 90, 0.32);

    --text-primary:   var(--theme-text, #eef0f4);
    --text-secondary: #9a9db1;
    --text-muted:     #64687c;

    --font-heading:   'Cairo', 'Tajawal', -apple-system, sans-serif;
    --font-body:      'Tajawal', 'Cairo', -apple-system, sans-serif;
    --font-mono:      'Space Mono', monospace;

    --radius-sm:  8px;
    --radius-md:  12px;
    --radius-lg:  16px;
    --radius-xl:  22px;
    --radius-pill: 999px;

    --shadow-sm: 0 2px 10px rgba(0,0,0,.28);
    --shadow-md: 0 10px 28px rgba(0,0,0,.35);
    --shadow-lg: 0 18px 44px rgba(0,0,0,.45);

    --ease: 0.2s cubic-bezier(.4,0,.2,1);

    --bs-body-bg:      var(--bg-base);
    --bs-body-color:   var(--text-primary);
    --bs-primary:      var(--gold);
    --bs-secondary:    var(--purple);
    --bs-card-bg:      var(--bg-card);
    --bs-border-color: var(--border-subtle);
    --bs-link-color:   var(--gold);
    --bs-link-hover-color: var(--gold-light);
}

[data-theme="light"] {
    color-scheme: light;
    --bg-base:        #f4f6f9;
    --bg-surface:     #ffffff;
    --bg-card:        #ffffff;
    --bg-card-hover:  #f8fafc;
    --bg-glass:       rgba(0, 0, 0, 0.035);
    --bg-nav:         rgba(255, 255, 255, 0.95);

    --border-subtle:  rgba(0, 0, 0, 0.09);
    --border-accent:  rgba(205, 164, 90, 0.45);

    --text-primary:   #1a1d26;
    --text-secondary: #4b5563;
    --text-muted:     #848da0;

    --shadow-sm: 0 2px 10px rgba(0,0,0,.05);
    --shadow-md: 0 10px 28px rgba(0,0,0,.08);
    --shadow-lg: 0 18px 44px rgba(0,0,0,.12);

    --bs-body-bg:      var(--bg-base);
    --bs-body-color:   var(--text-primary);
    --bs-card-bg:      var(--bg-card);
    --bs-border-color: var(--border-subtle);
}

/* ── Base ── */
html { scroll-behavior: smooth; }

body {
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--text-primary); font-weight: 800; line-height: 1.4; text-wrap: pretty; }

a { color: var(--gold); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--gold-light); }

img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--gold); color: var(--gold-ink); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: #262838; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ── Bootstrap component overrides ── */
.text-muted, .text-secondary { color: var(--text-secondary) !important; }
.bg-white, .bg-light { background-color: var(--bg-card) !important; }
.text-dark { color: var(--text-primary) !important; }
.border, .border-top, .border-bottom, .border-subtle { border-color: var(--border-subtle) !important; }
.shadow-sm, .shadow { box-shadow: var(--shadow-sm) !important; }

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

.form-control, .form-select {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
}
.form-control:focus, .form-select:focus {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    border-color: var(--border-accent);
    box-shadow: 0 0 0 3px var(--gold-dim);
}
.form-control::placeholder { color: var(--text-muted); }
.form-label { color: var(--text-secondary); }

.btn-primary { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); font-weight: 700; }
.btn-primary:hover, .btn-primary:focus { background: var(--gold-light); border-color: var(--gold-light); color: var(--gold-ink); }
.btn-outline-primary { color: var(--gold); border-color: var(--gold); }
.btn-outline-primary:hover { background: var(--gold); color: var(--gold-ink); }

.dropdown-menu { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: .5rem; }
.dropdown-item { color: var(--text-secondary); font-size: .88rem; padding: .55rem 1rem; border-radius: var(--radius-sm); transition: var(--ease); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--gold-dim); color: var(--gold); }

.badge.bg-primary { background: var(--gold) !important; color: var(--gold-ink) !important; }

.breadcrumb-item a { color: var(--text-muted); }
.breadcrumb-item a:hover { color: var(--gold); }
.breadcrumb-item.active { color: var(--text-secondary); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }

.alert-success { background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.3); color: #6ee7a8; }

/* ── Admin bar ── */
#admin-bar a:hover { opacity: .85; }

/* ── Navbar ── */
.navbar { 
    background: var(--bg-nav, rgba(11,12,17,0.92)) !important; 
    backdrop-filter: blur(16px); 
    -webkit-backdrop-filter: blur(16px); 
    border-bottom: 1px solid var(--border-subtle); 
    padding: .65rem 0; 
    z-index: 1030;
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.navbar-brand { 
    font-family: var(--font-heading); 
    font-weight: 800; 
    letter-spacing: -.3px; 
    white-space: nowrap;
    flex-shrink: 0;
}
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}
.nav-link { 
    color: var(--text-secondary) !important; 
    font-weight: 600; 
    font-size: .88rem; 
    padding: .42rem .75rem !important; 
    border-radius: var(--radius-pill, 20px); 
    transition: var(--ease);
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px;
    line-height: 1.3;
}
.nav-link:hover, .nav-link.active { 
    color: var(--gold) !important; 
    background: var(--gold-dim); 
}
.nav-link.dropdown-toggle::after {
    margin-right: 4px;
    vertical-align: middle;
}

.navbar-search-input {
    background: var(--bg-glass); border: 1px solid var(--border-subtle); border-radius: var(--radius-pill);
    color: var(--text-primary); padding: .42rem 2.2rem .42rem .85rem; width: 140px; font-size: .82rem;
    outline: none; transition: var(--ease);
}
.navbar-search-input:focus { border-color: var(--border-accent); width: 190px; box-shadow: 0 0 0 3px var(--gold-dim); }
.navbar-search-icon { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: .8rem; pointer-events: none; }

.navbar-profile-link {
    display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); text-decoration: none; font-size: .82rem;
    padding: .38rem .8rem; border: 1px solid var(--border-subtle); border-radius: var(--radius-pill); transition: var(--ease);
    white-space: nowrap;
}
.navbar-profile-link:hover { border-color: var(--border-accent); color: var(--gold); }

@media (min-width: 992px) and (max-width: 1280px) {
    .navbar-nav {
        overflow-x: auto;
        max-width: 55vw;
        scrollbar-width: none;
    }
    .navbar-nav::-webkit-scrollbar { display: none; }
}

@media (max-width: 991px) {
    .navbar-collapse { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 1.25rem; margin-top: .75rem; }
    .navbar-nav { flex-direction: column; align-items: stretch; }
    .nav-link { padding: .65rem 1rem !important; }
}

/* ── Buttons ── */
.btn-gold {
    background: var(--gold); color: var(--gold-ink); font-weight: 700; border: none; border-radius: var(--radius-pill);
    padding: .5rem 1.3rem; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; transition: var(--ease);
}
.btn-gold:hover { background: var(--gold-light); color: var(--gold-ink); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* ── Breaking ticker (default + site-builder markup) ── */
.ticker-wrap, .uc-ticker {
    background: var(--bg-surface); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); padding: .5rem 0; font-size: .88rem;
}
.ticker-inner, .uc-ticker__row { display: flex; align-items: center; gap: 12px; overflow: hidden; }
.ticker-badge, .uc-ticker__badge {
    background: var(--red-alert); color: #fff; font-weight: 800; font-size: .74rem; padding: 3px 12px; border-radius: var(--radius-pill);
    display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.ticker-badge-pulse { width: 7px; height: 7px; background: #fff; border-radius: 50%; animation: pulseRed 1.6s infinite; }
@keyframes pulseRed { 0% { transform: scale(.9); opacity: 1; } 50% { transform: scale(1.35); opacity: .45; } 100% { transform: scale(.9); opacity: 1; } }
.ticker-content, .uc-ticker__track { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticker-link, .uc-ticker__item { color: var(--text-primary); font-weight: 600; transition: var(--ease); }
.ticker-link:hover, .uc-ticker__item:hover { color: var(--gold); }

/* ── Hero / slider ── */
.hero-card { border-radius: var(--radius-lg); overflow: hidden; position: relative; background: var(--bg-card); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-md); }
.hero-overlay { background: linear-gradient(0deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.5) 48%, transparent 100%); }
.trending-badge {
    background: var(--gold); color: var(--gold-ink); font-size: .72rem; font-weight: 800; letter-spacing: .4px;
    padding: 4px 14px; border-radius: var(--radius-pill); text-transform: uppercase;
}
@media (max-width: 767px) { .hero-caption { padding: 1.5rem 1rem 1rem; } .hero-card { border-radius: var(--radius-md); } }

/* ── Category pills ── */
.category-pills-bar { display: flex; flex-wrap: wrap; gap: 8px; padding: .5rem 0 0; }
.category-pill {
    background: var(--bg-glass); color: var(--text-secondary); border: 1px solid var(--border-subtle);
    padding: 7px 20px; border-radius: var(--radius-pill); font-size: .875rem; font-weight: 600; transition: var(--ease); text-decoration: none;
}
.category-pill:hover, .category-pill.active { background: var(--gold); color: var(--gold-ink); border-color: transparent; }

/* ── Post / news card ── */
.post-card {
    background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); overflow: hidden;
    transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease); display: flex; flex-direction: column; height: 100%;
}
.post-card:hover { transform: translateY(-4px); border-color: var(--border-accent); box-shadow: var(--shadow-lg); }
.post-card .card-img-wrap { position: relative; overflow: hidden; aspect-ratio: 16/9; background: var(--bg-surface); }
.post-card .card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .card-img-wrap img { transform: scale(1.05); }
.post-card .cat-badge { position: absolute; top: 12px; right: 12px; }
.post-card .card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; background: transparent; }
.post-card .card-title { font-size: 1.02rem; font-weight: 700; line-height: 1.55; margin-bottom: .6rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .card-title a { color: var(--text-primary); }
.post-card:hover .card-title a { color: var(--gold); }
.post-card .card-text { color: var(--text-secondary); font-size: .85rem; line-height: 1.7; flex: 1; }
.post-card .card-footer-meta { display: flex; justify-content: space-between; font-size: .78rem; color: var(--text-muted); padding-top: .75rem; margin-top: auto; border-top: 1px solid var(--border-subtle); }

.cat-badge {
    background: var(--gold); color: var(--gold-ink); font-weight: 800; font-size: .72rem; padding: 4px 12px;
    border-radius: var(--radius-pill); text-decoration: none; z-index: 2;
}

/* ── Trending sidebar ── */
.trending-sidebar { background: var(--bg-glass); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 1.5rem; }
.trending-sidebar .section-title { font-size: 1rem; font-weight: 800; color: var(--text-primary); display: flex; align-items: center; gap: 8px; margin-bottom: 1.25rem; }
.trending-item { display: flex; gap: 12px; padding: .75rem 0; border-bottom: 1px solid var(--border-subtle); }
.trending-item:last-child { border-bottom: none; padding-bottom: 0; }
.trending-num { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 900; color: var(--gold); opacity: .8; line-height: 1; min-width: 30px; }
.trending-title { font-size: .92rem; font-weight: 700; color: var(--text-primary); line-height: 1.5; }
.trending-item:hover .trending-title { color: var(--gold); }
.trending-meta { font-size: .75rem; color: var(--text-muted); }

/* ── Section headers ── */
.section-header { display: flex; align-items: center; gap: 12px; margin-bottom: 1.5rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border-subtle); }
.section-header h3, .section-header h4 { margin: 0; font-size: 1.25rem; font-weight: 800; padding-right: 14px; position: relative; }
.section-header h3::before, .section-header h4::before { content: ''; position: absolute; right: 0; top: 4px; bottom: 4px; width: 3px; background: var(--gold); border-radius: 2px; }

/* ── Category hero ── */
.category-hero { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: 2.5rem; text-align: center; }
.category-hero h1 { font-weight: 900; font-size: clamp(1.5rem, 4vw, 2.1rem); }
.category-hero .cat-icon { color: var(--gold); }
.category-hero .cat-count { display: inline-block; margin-top: 1rem; background: var(--gold-dim); color: var(--gold); border: 1px solid var(--border-accent); padding: 4px 16px; border-radius: var(--radius-pill); font-size: .85rem; font-weight: 700; }

/* ── Pagination ── */
.pagination-dark { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.pagination-dark .page-link { background: var(--bg-card); border: 1px solid var(--border-subtle); color: var(--text-secondary); border-radius: var(--radius-sm); width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; font-weight: 600; transition: var(--ease); text-decoration: none; }
.pagination-dark .page-link:hover { background: var(--gold-dim); border-color: var(--border-accent); color: var(--gold); }
.pagination-dark .page-item.active .page-link { background: var(--gold); border-color: transparent; color: var(--gold-ink); }

/* ── Single post ── */
#readProgress { background: var(--gold); }
.post-header { margin-bottom: 1.75rem; }
.post-meta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; color: var(--text-muted); font-size: .875rem; }
.post-meta i { color: var(--gold); margin-left: 4px; }

.post-quick-tools .post-tool-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 700;
    transition: var(--ease);
    cursor: pointer;
}
.post-quick-tools .post-tool-btn:hover {
    border-color: var(--border-accent);
    color: var(--gold);
    background: var(--gold-dim);
    transform: translateY(-1px);
}
.post-meta-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    transition: var(--ease);
}
.post-meta-pills .meta-pill {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--ease);
}
.post-meta-pills .meta-pill:hover {
    border-color: var(--border-accent);
    background: var(--gold-dim);
    color: var(--gold) !important;
}
.text-gold { color: var(--gold) !important; }
.post-featured-img { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 2rem; border: 1px solid var(--border-subtle); box-shadow: var(--shadow-md); }

.glass-card { background: var(--bg-glass); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); }
#postToc { border-right: 3px solid var(--gold); }
#postTocList a { color: var(--text-secondary); font-size: .9rem; text-decoration: none; transition: var(--ease); }
#postTocList a:hover { color: var(--gold); }

.post-content { font-size: 1.12rem; line-height: 2.05; color: var(--text-secondary); }
.post-content p { margin-bottom: 1.6rem; }
.post-content h2, .post-content h3, .post-content h4 { color: var(--text-primary); margin-top: 2.4rem; margin-bottom: 1.1rem; padding-right: 14px; position: relative; }
.post-content h2::before, .post-content h3::before { content: ''; position: absolute; right: 0; top: 6px; bottom: 6px; width: 3px; background: var(--gold); border-radius: 2px; }
.post-content blockquote { background: var(--bg-surface); border-right: 3px solid var(--gold); border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: 1.4rem 1.6rem; margin: 1.75rem 0; font-style: italic; color: var(--text-primary); }
.post-content img { border-radius: var(--radius-md); margin: 1.75rem 0; border: 1px solid var(--border-subtle); }
.post-content a { color: var(--gold); border-bottom: 1px solid var(--border-accent); }

.tag-link { background: var(--bg-glass); border: 1px solid var(--border-subtle); color: var(--text-secondary); font-size: .82rem; font-weight: 600; padding: 4px 14px; border-radius: var(--radius-pill); transition: var(--ease); text-decoration: none; display: inline-block; }
.tag-link:hover { background: var(--gold-dim); color: var(--gold); border-color: var(--border-accent); }

.share-btn { width: 40px; height: 40px; border-radius: var(--radius-pill); display: inline-flex; align-items: center; justify-content: center; color: var(--text-secondary); font-size: .95rem; border: 1px solid var(--border-subtle); background: var(--bg-glass); transition: var(--ease); text-decoration: none; }
.share-btn:hover { transform: translateY(-2px); color: #fff; }
.share-btn.twitter:hover { background: #000; border-color: #000; }
.share-btn.facebook:hover { background: #1877f2; border-color: #1877f2; }
.share-btn.whatsapp:hover { background: #25d366; border-color: #25d366; }
.share-btn.telegram:hover { background: #229ed9; border-color: #229ed9; }

.related-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); overflow: hidden; transition: var(--ease); height: 100%; }
.related-card:hover { transform: translateY(-3px); border-color: var(--border-accent); }
.related-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.related-body { padding: 1rem; }
.related-title a { color: var(--text-primary); font-weight: 700; font-size: .9rem; line-height: 1.45; }
.related-title a:hover { color: var(--gold); }

.comments-section { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 2rem; margin-top: 2.5rem; }
.dark-input { background: var(--bg-surface) !important; border: 1px solid var(--border-subtle) !important; border-radius: var(--radius-sm) !important; color: var(--text-primary) !important; padding: .75rem 1rem !important; }
.dark-input:focus { border-color: var(--border-accent) !important; box-shadow: 0 0 0 3px var(--gold-dim) !important; }
.comment-item { padding-bottom: 1.25rem; border-bottom: 1px solid var(--border-subtle); margin-bottom: 1.25rem; }
.comment-item:last-child { border-bottom: none; margin-bottom: 0; }
.comment-name { color: var(--text-primary); font-weight: 700; }
.comment-text { color: var(--text-secondary); line-height: 1.8; }
.comment-date { color: var(--text-muted); font-size: .8rem; }

/* ── Search page ── */
.search-hero { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: 2.5rem; text-align: center; }
.search-input-wrap { max-width: 600px; margin: 0 auto; position: relative; }
.search-input-wrap input { background: var(--bg-base); border: 2px solid var(--border-accent); border-radius: var(--radius-pill); padding: .85rem 5.5rem .85rem 1.5rem; font-size: 1rem; color: var(--text-primary); width: 100%; }
.search-input-wrap input:focus { outline: none; box-shadow: 0 0 0 4px var(--gold-dim); border-color: var(--gold); }
.search-input-wrap .search-icon { position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); color: var(--gold); }

/* ── Author page ── */
.author-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: 2.5rem; display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; }
.author-avatar-wrap { width: 112px; height: 112px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 3px solid var(--border-accent); }
.author-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
.author-avatar-fallback { width: 100%; height: 100%; background: var(--gold-dim); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 2.6rem; font-weight: 800; }
.author-role-badge { display: inline-block; background: var(--gold-dim); color: var(--gold); padding: 4px 14px; border-radius: var(--radius-pill); font-size: .82rem; font-weight: 700; }
.author-stats { display: flex; gap: 2rem; text-align: center; margin-right: auto; }
.author-stat strong { display: block; font-size: 1.8rem; font-weight: 800; color: var(--text-primary); font-family: var(--font-mono); }
.author-stat span { color: var(--text-muted); font-size: .82rem; }
.author-pagination a { color: var(--text-secondary); background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); padding: 8px 14px; text-decoration: none; transition: var(--ease); }
.author-pagination a:hover { border-color: var(--border-accent); color: var(--gold); }
.author-pagination a.active { background: var(--gold); color: var(--gold-ink); border-color: transparent; }

/* ── Profile (settings) page ── */
.profile-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); overflow: hidden; }
.profile-card-header { background: linear-gradient(160deg, var(--bg-surface), var(--bg-card)); border-bottom: 1px solid var(--border-subtle); text-align: center; padding: 2.75rem 2rem; }
.profile-avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid var(--border-accent); }
.profile-avatar-edit { width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); display: flex; align-items: center; justify-content: center; font-size: 13px; cursor: pointer; }
.profile-role-badge { background: var(--gold-dim); color: var(--gold); }
.profile-card-body { padding: 2rem 2.5rem; }

/* ── Static page ── */
.page-article { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 2.5rem; }

/* ── Error pages ── */
.error-code { background: linear-gradient(135deg, var(--gold), var(--gold-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 900; }
.error-code.is-danger { background: linear-gradient(135deg, #e5484d, #a71d2a); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.error-btn-outline { background: transparent; color: var(--text-primary); border: 1px solid var(--border-accent); border-radius: var(--radius-pill); font-weight: 600; }
.error-btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ── Footer ── */
footer { background: var(--bg-surface); border-top: 1px solid var(--border-subtle); color: var(--text-secondary); margin-top: 3.5rem; }
footer a { color: var(--text-secondary); }
footer a:hover { color: var(--gold); }
.footer-quick-link { display: flex; align-items: center; gap: 8px; }
.footer-quick-link i { color: var(--gold); font-size: .75rem; }
.social-icon-btn { width: 38px; height: 38px; border-radius: var(--radius-sm); background: var(--bg-glass); border: 1px solid var(--border-subtle); display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: var(--ease); }
.social-icon-btn:hover { color: #fff; border-color: transparent; }
.social-icon-btn.fb:hover { background: #1877f2; }
.social-icon-btn.tw:hover { background: #000; }
.social-icon-btn.yt:hover { background: #ff0000; }
.social-icon-btn.ig:hover { background: linear-gradient(45deg,#f09433,#dc2743,#bc1888); }
.footer-pill-link { font-size: .8rem; padding: 5px 14px; border: 1px solid var(--border-subtle); border-radius: var(--radius-pill); color: var(--text-muted); transition: var(--ease); }
.footer-pill-link:hover { color: var(--gold); border-color: var(--border-accent); }

/* ── Site Builder blocks (home-builder.html.twig, builder_header/footer/ticker/sidebar) ── */
.uc-container, .sb-homepage .container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.sb-homepage { background: var(--bg-base); color: var(--text-primary); padding: 24px 0 60px; }
.sb-row { margin-bottom: 40px; }
.sb-heading { font-family: var(--font-heading); font-size: 22px; font-weight: 800; margin: 0 0 20px; padding-bottom: 10px; border-bottom: 1px solid var(--border-subtle); position: relative; }
.sb-heading::after { content: ''; position: absolute; bottom: -1px; right: 0; width: 44px; height: 2px; background: var(--gold); }

.uc-header { background: var(--bg-base); border-bottom: 1px solid var(--border-subtle); }
.uc-header__utility-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; font-size: 13px; color: var(--text-muted); }
.uc-icon-btn { background: none; border: none; color: var(--text-muted); padding: 6px; border-radius: 6px; transition: var(--ease); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.uc-icon-btn:hover { color: var(--gold); background: var(--gold-dim); }
.uc-icon-sun { display: none; }
.uc-icon-moon { display: inline-block; }
[data-theme="dark"] .uc-icon-moon { display: none !important; }
[data-theme="dark"] .uc-icon-sun { display: inline-block !important; }
.uc-header__masthead { text-align: center; padding: 20px 0 16px; }
.uc-logo__text { font-family: var(--font-heading); font-weight: 800; font-size: 36px; color: var(--gold); }
.uc-nav { border-top: 1px solid var(--border-subtle); }
.uc-nav__row { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.uc-nav__link { padding: 14px 2px; font-size: 15px; font-weight: 600; color: var(--text-secondary); border-bottom: 3px solid transparent; text-decoration: none; transition: var(--ease); }
.uc-nav__link:hover { color: var(--gold); }
.uc-nav__link.is-active { color: var(--gold); font-weight: 800; border-bottom-color: var(--gold); }

.uc-slider--split { display: flex; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-card); }
.uc-slider--split .uc-slide { display: none; width: 100%; text-decoration: none; color: inherit; }
.uc-slider--split .uc-slide.is-active { display: flex; width: 100%; }
.uc-slider--split .uc-slide__image { flex: 1.2; aspect-ratio: 16/10; background: var(--bg-surface); background-size: cover; background-position: center; }
.uc-slider--split .uc-slide__body { flex: 1; padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.uc-slider--split .uc-slide__cat { color: var(--gold); font-weight: 700; font-size: 13px; }
.uc-slider--split .uc-slide__title { margin: 0; font-size: 22px; font-weight: 800; color: var(--text-primary); }
.uc-slider--split .uc-slide__excerpt { margin: 0; font-size: 14px; color: var(--text-secondary); line-height: 1.8; }
.uc-slider--split .uc-slide-dots { display: flex; gap: 6px; margin-top: 4px; }
.uc-slider--split .uc-slide-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--border-subtle); padding: 0; }
.uc-slider--split .uc-slide-dots button.is-active { background: var(--gold); width: 18px; border-radius: 4px; }
@media (max-width: 768px) { .uc-slider--split .uc-slide.is-active { flex-direction: column; } .uc-slider--split .uc-slide__body { padding: 20px; } }

.uc-posts-carousel { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
.uc-posts-carousel .uc-card { scroll-snap-align: start; flex: 0 0 260px; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: var(--ease); }
.uc-posts-carousel .uc-card:hover { transform: translateY(-3px); border-color: var(--border-accent); }
.uc-posts-carousel .uc-card__image { aspect-ratio: 16/9; background: var(--bg-surface); background-size: cover; background-position: center; }
.uc-posts-carousel .uc-card__body { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.uc-posts-carousel .uc-card__cat { color: var(--gold); font-size: 11px; font-weight: 700; }
.uc-posts-carousel .uc-card__title { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--text-primary); line-height: 1.5; }
.uc-posts-carousel .uc-card__time { font-size: 11px; color: var(--text-muted); margin-top: auto; }

.uc-posts-magazine { display: flex; gap: 24px; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 20px; }
.uc-posts-magazine .uc-mag-lead { flex: 1.3; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit; }
.uc-posts-magazine .uc-mag-lead__image { aspect-ratio: 16/10; background: var(--bg-surface); border-radius: var(--radius-md); background-size: cover; background-position: center; }
.uc-posts-magazine .uc-mag-lead__title { margin: 0; font-size: 19px; font-weight: 800; color: var(--text-primary); }
.uc-posts-magazine .uc-mag-lead:hover .uc-mag-lead__title { color: var(--gold); }
.uc-posts-magazine .uc-mag-list { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.uc-posts-magazine .uc-mag-item { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border-subtle); text-decoration: none; color: inherit; align-items: center; }
.uc-posts-magazine .uc-mag-item:last-child { border-bottom: none; }
.uc-posts-magazine .uc-mag-item__thumb { width: 76px; height: 58px; flex-shrink: 0; border-radius: var(--radius-sm); background: var(--bg-surface); background-size: cover; background-position: center; }
.uc-posts-magazine .uc-mag-item__title { margin: 0; font-size: 14px; font-weight: 700; color: var(--text-primary); line-height: 1.5; }
.uc-posts-magazine .uc-mag-item:hover .uc-mag-item__title { color: var(--gold); }
@media (max-width: 800px) { .uc-posts-magazine { flex-direction: column; } }

.sb-posts-tabbed { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 20px; }
.sb-posts-tabbed .nav-pills { border-bottom: 1px solid var(--border-subtle); padding-bottom: 10px; gap: 8px; }
.sb-posts-tabbed .nav-pills .nav-link { color: var(--text-muted); font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: var(--radius-sm); background: var(--bg-surface); border: 1px solid transparent; }
.sb-posts-tabbed .nav-pills .nav-link.active { background: var(--gold); color: var(--gold-ink); }
.sb-posts-tabbed .list-group-item { background: transparent; color: var(--text-primary); padding: 12px 0; border-bottom: 1px solid var(--border-subtle) !important; }
.sb-posts-tabbed .list-group-item:last-child { border-bottom: none !important; }

.sb-social { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 20px; display: flex; gap: 10px; }
.sb-social a { flex: 1; display: flex; align-items: center; justify-content: center; height: 42px; border-radius: var(--radius-sm); background: var(--bg-surface); color: var(--text-primary); border: 1px solid var(--border-subtle); transition: var(--ease); }
.sb-social a:hover { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }

.sb-newsletter { background: linear-gradient(135deg, var(--bg-card), var(--bg-surface)); border: 1px solid var(--border-accent); border-radius: var(--radius-lg); padding: 28px 24px; color: var(--text-primary); }
.sb-newsletter h3 { font-size: 18px; font-weight: 800; }
.sb-newsletter p { font-size: 13px; color: var(--text-secondary); }
.sb-newsletter .form-control { background: var(--bg-base); border: 1px solid var(--border-subtle); }
.sb-newsletter .btn { background: var(--gold); color: var(--gold-ink); border: none; font-weight: 700; }
.sb-newsletter .btn:hover { background: var(--gold-light); }

.uc-footer { background: var(--bg-surface); color: var(--text-secondary); margin-top: 48px; }
.uc-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 56px 0 32px; }
.uc-footer__heading { margin: 0 0 12px; font-size: 14px; font-weight: 800; color: var(--text-primary); }
.uc-footer__link, .uc-footer__text { display: block; font-size: 14px; color: var(--text-secondary); text-decoration: none; margin-bottom: 10px; }
.uc-footer__link:hover { color: var(--gold); }
.uc-footer__logo { color: var(--gold); font-size: 28px; }
.uc-footer__social { display: flex; gap: 10px; }
.uc-footer__social-btn { width: 34px; height: 34px; border-radius: var(--radius-pill); border: 1px solid var(--border-subtle); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: var(--ease); }
.uc-footer__social-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.uc-footer__bottom { border-top: 1px solid var(--border-subtle); padding: 18px 0; text-align: center; font-size: 13px; color: var(--text-muted); }
@media (max-width: 900px) { .uc-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 576px) { .uc-footer__grid { grid-template-columns: 1fr; } }
