/* PCB Theme - Complete Design System */

/* ===== COLOR VARIABLES ===== */
:root {
    /* Core Colors */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #111111;
    --pcb-green: #1a4d3a;
    --pcb-green-light: #2d6b4f;
    --pcb-green-dark: #0f2d20;
    --accent-green: #00ff88;
    --accent-blue: #0099ff;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #666666;
    --link-color: #7fe3ba;
    --link-hover: #00ff88;
    --border-primary: #333333;
    --border-secondary: #222222;
    --border-accent: var(--pcb-green);
    
    /* Status Colors */
    --success: #00ff88;
    --danger: #ff4444;
    --warning: #ffaa00;
    --info: #0099ff;

    /* Analytics semantics: reuse these for the same cohort/category everywhere. */
    --analytics-total: var(--accent-green);
    --analytics-authenticated: var(--info);
    --analytics-anonymous: var(--warning);
    --analytics-homepage: var(--link-color);
    --analytics-promo: #c084fc;
    --analytics-composer: #f472b6;
    --analytics-composer-focus: #94a3b8;
    --analytics-composer-typed: #22d3ee;
    --analytics-composer-sent: var(--analytics-composer);

    /* Legacy support */
    --primary: var(--pcb-green);
    --primary-contrast: var(--text-primary);
    --bg: var(--bg-primary);
    --surface: var(--bg-secondary);
    --text: var(--text-primary);
}

/* ===== GLOBAL STYLES ===== */
* {
    box-sizing: border-box;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

main a,
main a:visited {
    color: var(--link-color);
    text-decoration: underline;
    text-decoration-color: rgba(127, 227, 186, 0.65);
    text-underline-offset: 2px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover,
a:focus-visible {
    color: var(--link-hover);
    text-decoration-color: var(--link-hover);
}

/* PCB-inspired circuit patterns */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, var(--border-secondary) 1px, transparent 1px),
        linear-gradient(var(--border-secondary) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    pointer-events: none;
    z-index: -1;
}

/* ===== BUTTON SYSTEM ===== */
.btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-accent);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: var(--pcb-green);
    border-color: var(--accent-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
    color: var(--text-primary);
    text-decoration: none;
}

/* Keyboard-only focus ring so a mouse click does not leave a persistent outline. */
.btn:focus-visible {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
}

.btn-primary {
    /* Bootstrap's focused and pressed selectors use these at higher specificity. */
    --bs-btn-hover-bg: var(--pcb-green-light);
    --bs-btn-hover-border-color: var(--accent-green);
    --bs-btn-active-bg: var(--pcb-green-light);
    --bs-btn-active-border-color: var(--accent-green);
    background: var(--pcb-green);
    border-color: var(--pcb-green-light);
    color: #ffffff !important;
}

.btn-primary:visited,
.btn-primary:focus,
.btn-primary:focus-visible,
.btn-primary:active {
    color: #ffffff !important;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--pcb-green-light);
    border-color: var(--accent-green);
    color: #ffffff !important;
    text-decoration: none;
}

.btn-secondary {
    background: var(--bg-tertiary);
    border-color: var(--border-primary);
}

.btn-secondary:hover {
    background: var(--pcb-green-dark);
    border-color: var(--pcb-green);
}

.btn-outline-primary {
    --bs-btn-hover-bg: var(--pcb-green);
    --bs-btn-hover-border-color: var(--pcb-green-light);
    --bs-btn-active-bg: var(--pcb-green-light);
    --bs-btn-active-border-color: var(--accent-green);
    background: transparent;
    border-color: var(--pcb-green-light);
    color: var(--link-color);
}

.btn-outline-primary:hover {
    background: var(--pcb-green);
    color: var(--text-primary);
}

.btn-outline-secondary {
    background: var(--bg-tertiary);
    border-color: var(--border-primary);
    color: var(--text-secondary);
}

.btn-outline-secondary:hover {
    background: var(--pcb-green);
    border-color: var(--pcb-green-light);
    color: var(--text-primary);
}

/* Bootstrap applies its own palette through `.btn:disabled`, which outranks the
   single-class brand rules above and turns disabled buttons Bootstrap blue.
   Restate a branded, clearly inert disabled appearance. */
.btn:disabled,
.btn.disabled,
fieldset:disabled .btn {
    background: var(--bg-tertiary);
    border-color: var(--border-primary);
    color: var(--text-muted);
    opacity: 1;
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
}

.btn:disabled::before,
.btn.disabled::before {
    display: none;
}

/* `.btn-primary` forces its foreground with !important, so the disabled
   foreground has to be restated at a higher specificity. */
.btn-primary:disabled,
.btn-primary.disabled {
    color: var(--text-muted) !important;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-close {
    filter: invert(1);
}

/* ===== CONTAINER SYSTEM ===== */
.modern-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-accent);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.modern-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pcb-green), var(--accent-green), var(--pcb-green));
}

.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-accent) !important;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pcb-green), var(--accent-green), var(--pcb-green));
    background-size: 200% 100%;
    animation: pcb-glow 3s ease-in-out infinite;
}

@keyframes pcb-glow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.15);
    border-color: var(--accent-green);
}

.container {
    max-width: 1200px;
}

/* Keep CMS legal/docs media responsive inside the content column. */
.legal-content img,
.legal-content picture,
.legal-content video,
.legal-content iframe {
    max-width: 100%;
}

.legal-content img,
.legal-content picture img,
.legal-content video {
    height: auto;
}

/* ===== FORM SYSTEM ===== */
.form-control {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
    border-radius: 6px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-select {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
    border-radius: 6px;
    padding: 0.75rem 2.25rem 0.75rem 0.75rem;
    transition: all 0.3s ease;
    /* Keep Bootstrap's chevron visible on dark backgrounds */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23b0b0b0' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

.form-control:focus {
    background: var(--bg-tertiary);
    border-color: var(--pcb-green);
    box-shadow: 0 0 0 0.2rem rgba(26, 77, 58, 0.25);
    color: var(--text-primary);
    outline: none;
}

.form-select:focus {
    background-color: var(--bg-tertiary);
    border-color: var(--pcb-green);
    box-shadow: 0 0 0 0.2rem rgba(26, 77, 58, 0.25);
    color: var(--text-primary);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:disabled,
.form-control[readonly],
.form-select:disabled {
    background-color: #1b1b1b;
    color: var(--text-secondary);
    border-color: var(--border-primary);
    opacity: 1;
}

.form-label {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label i {
    color: var(--pcb-green);
    width: 16px;
}

.form-text {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-check-input:checked {
    background-color: var(--pcb-green);
    border-color: var(--pcb-green);
}

.form-check-label {
    color: var(--text-secondary);
}

/* Django renders field errors as <ul class="errorlist">; keep them readable
   instead of falling back to the browser's default bulleted list. */
.errorlist {
    list-style: none;
    margin: 0.4rem 0 0;
    padding: 0;
    color: var(--danger);
    font-size: 0.82rem;
    line-height: 1.45;
}

.errorlist li + li {
    margin-top: 0.2rem;
}

.errorlist.nonfield {
    margin: 0 0 1.25rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--danger);
    border-radius: 6px;
    background: rgba(255, 68, 68, 0.1);
}

/* ===== INFO BOXES ===== */
.info-box {
    background: rgba(26, 77, 58, 0.2);
    border: 1px solid var(--pcb-green);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.info-box i {
    color: var(--pcb-green);
    margin-top: 0.125rem;
    flex-shrink: 0;
}

/* ===== HEADER SYSTEM ===== */
.page-header {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--pcb-green-dark) 100%);
    border-bottom: 2px solid var(--pcb-green);
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, var(--pcb-green) 2px, transparent 2px),
        radial-gradient(circle at 80% 50%, var(--pcb-green) 1px, transparent 1px);
    background-size: 100px 50px, 150px 75px;
    opacity: 0.3;
}

.page-title {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Auth page specific titles */
.auth-title {
    color: var(--text-primary);
    font-size: clamp(1.4rem, 5vw, 1.75rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 0.4rem;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* ===== NAVBAR SYSTEM ===== */
.navbar {
    background: var(--bg-primary) !important;
    border-top: none;
    border-bottom: 1px solid var(--border-accent);
    backdrop-filter: blur(10px);
    padding: 0.75rem 0;
}

.navbar-brand {
    color: var(--text-primary) !important;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-brand img {
    border-radius: 4px;
    padding: 2px;
}

/* ===== ICON SYSTEM ===== */
.icon-circle {
    width: 60px;
    height: 60px;
    background: var(--pcb-green);
    border: 1px solid var(--pcb-green-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--text-primary);
}

/* Status variants use a tinted surface with a coloured glyph: white text on the
   bright status colours does not reach a readable contrast ratio. */
.icon-circle.success {
    background: rgba(0, 255, 136, 0.12);
    border: 1px solid var(--success);
    color: var(--success);
}

.icon-circle.info {
    background: rgba(0, 153, 255, 0.12);
    border: 1px solid var(--info);
    color: var(--info);
}

.icon-circle.danger {
    background: rgba(255, 68, 68, 0.12);
    border: 1px solid var(--danger);
    color: var(--danger);
}

.icon-circle.warning {
    background: rgba(255, 170, 0, 0.12);
    border: 1px solid var(--warning);
    color: var(--warning);
}

/* ===== ALERT SYSTEM ===== */
.alert {
    border-radius: 6px;
    border: 1px solid;
    padding: 1rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--success);
    color: var(--success);
}

.alert-info {
    background: rgba(0, 153, 255, 0.1);
    border-color: var(--info);
    color: var(--info);
}

.alert-danger {
    background: rgba(255, 68, 68, 0.1);
    border-color: var(--danger);
    color: var(--danger);
}

.alert-warning {
    background: rgba(255, 170, 0, 0.1);
    border-color: var(--warning);
    color: var(--warning);
}

/* ===== MODAL SYSTEM ===== */
.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-accent);
    border-radius: 12px;
}

.modal-header {
    border-bottom: 1px solid var(--border-primary);
    background: var(--bg-tertiary);
    border-radius: 12px 12px 0 0;
}

.modal-title {
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-title i {
    color: var(--pcb-green);
}

.modal-footer {
    border-top: 1px solid var(--border-primary);
    background: var(--bg-tertiary);
    border-radius: 0 0 12px 12px;
}

/* ===== FOOTER SYSTEM ===== */
.site-footer {
    background: var(--bg-secondary);
    border-top: 2px solid var(--pcb-green);
    color: var(--text-secondary);
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--pcb-green), var(--accent-green), var(--pcb-green));
    background-size: 200% 100%;
    animation: pcb-glow 3s ease-in-out infinite;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer-brand {
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand i {
    color: var(--pcb-green);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.site-footer .nav-link {
    color: var(--text-secondary) !important;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    position: relative;
}

.site-footer .nav-link:hover {
    color: var(--accent-green) !important;
    background: rgba(26, 77, 58, 0.1);
    transform: translateY(-1px);
    text-decoration: none;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-social a {
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.footer-social a:hover {
    color: var(--accent-green);
    background: rgba(26, 77, 58, 0.1);
    transform: translateY(-2px);
}

/* ===== MAIN CONTENT ===== */
main {
    background: var(--bg-primary);
    min-height: calc(100vh - 140px);
}

/* ===== LINKS ===== */
.link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.link:hover {
    color: var(--accent-green);
    text-decoration: none;
}

.link i {
    font-size: 0.75rem;
}

/* ===== AUTH PAGES (login, signup, password reset) ===== */
.auth-page {
    width: 100%;
    max-width: 30rem;
    margin: 3rem auto;
    padding: 0 1rem;
}

.auth-page .modern-container {
    padding: 2rem 1.75rem;
}

.auth-page .icon-circle {
    width: 56px;
    height: 56px;
    margin-bottom: 1.1rem;
    font-size: 1.3rem;
}

.auth-head {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Steadier hover for stacked full-width auth controls: keep the colour change,
   drop the lift so the whole column does not shift under the cursor. */
.auth-page .btn:hover {
    transform: none;
}

.auth-page .form-label {
    font-size: 0.875rem;
    margin-bottom: 0.4rem;
}

.auth-page .form-label i {
    color: var(--accent-green);
}

.auth-page .form-control {
    min-height: 3rem;
    font-size: 0.95rem;
}

.auth-actions {
    display: grid;
    gap: 0.75rem;
}

.auth-provider-btn {
    width: 100%;
    min-height: 3rem;
    justify-content: center;
    gap: 0.6rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
}

.auth-provider-btn i {
    font-size: 1.05rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1 1 0;
    height: 1px;
    background: var(--border-primary);
}

/* Sits directly inside the collapse, so the inputs line up flush with the
   provider buttons above instead of being inset by a nested card. */
.auth-form-panel {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-primary);
}

.auth-field {
    margin-bottom: 1.25rem;
}

.auth-field:last-of-type {
    margin-bottom: 1rem;
}

.auth-consent {
    display: grid;
    gap: 0.65rem;
    padding: 0.9rem 1rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    background: var(--bg-tertiary);
}

.auth-consent .form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    min-height: 0;
    margin: 0;
    padding: 0;
}

.auth-consent .form-check-input {
    flex: 0 0 auto;
    float: none;
    width: 1.05rem;
    height: 1.05rem;
    margin: 0.12rem 0 0;
}

.auth-consent .form-check-label {
    font-size: 0.82rem;
    line-height: 1.5;
}

/* hCaptcha ships a fixed-width iframe; centre it and reserve its height so the
   form does not jump once the widget finishes loading. */
.auth-captcha {
    margin-bottom: 1.25rem;
}

.auth-captcha .h-captcha {
    display: flex;
    justify-content: center;
    min-height: 78px;
}

.auth-captcha .h-captcha iframe {
    max-width: 100%;
}

.auth-submit-btn {
    width: 100%;
    min-height: 3rem;
    font-size: 1rem;
    font-weight: 600;
}

.auth-form-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1.25rem;
    margin-top: 1.5rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--border-primary);
}

.auth-form-links--centered {
    justify-content: center;
}

@media (max-width: 400px) {
    .auth-form-links {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .auth-page {
        margin: 1.75rem auto;
        padding: 0 0.85rem;
    }

    .auth-page .modern-container {
        padding: 1.5rem 1.15rem;
    }
}

/* ===== TEXT UTILITIES ===== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted) !important; }
.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-info { color: var(--info) !important; }

/* ===== LAYOUT UTILITIES ===== */
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.align-items-center { align-items: center !important; }
.justify-content-center { justify-content: center !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .navbar-brand span {
        display: none;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .page-header {
        padding: 1.5rem 0;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .modern-container, .card {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
    }

    .footer-social {
        justify-content: center;
    }
}

/* Small screen specific responsive styles */
@media (max-width: 480px) {
    .d-flex.justify-content-between {
        flex-direction: column !important;
        text-align: center;
    }
}

/* Footer brand alignment on smaller screens */
@media (max-width: 767px) {
    .footer-brand {
        justify-content: center;
    }
}

/* ===== ENHANCED FOOTER STYLES ===== */
.footer-brand-name {
    color: var(--accent-green) !important;
}

.footer-copy {
    color: var(--text-secondary) !important;
    font-size: 0.9rem !important;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-green) !important;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.6);
}

.social-link {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--text-muted);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--accent-green);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
    transform: translateY(-2px);
    color: var(--accent-green);
}

.footer-tagline {
    font-size: 0.8rem;
    color: var(--accent-green) !important;
    margin: 0;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.6);
    font-family: 'Consolas', 'Monaco', 'Lucida Console', monospace;
} 

/* ===== CMS GUIDE TABLES ===== */
.guide-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    margin: 1rem 0;
    border: 1px solid var(--border-primary);
    border-radius: 10px;
    background: var(--bg-secondary);
}

.guide-table {
    width: max(100%, 780px);
    border-collapse: collapse;
    table-layout: fixed;
    margin: 0;
    color: var(--text-primary);
}

.guide-table th,
.guide-table td {
    border: 1px solid var(--border-primary);
    padding: 0.75rem 0.9rem;
    vertical-align: top;
    text-align: left;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.guide-table thead th {
    background: rgba(26, 77, 58, 0.35);
    color: #dfffee;
    font-weight: 600;
}

.guide-table tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.02);
}

.guide-table tbody tr:hover {
    background: rgba(0, 255, 136, 0.08);
}

/* ===== CMS MARKDOWN LIST MARKERS ===== */
ul.md-marker-list {
    list-style: none;
    padding-left: 1.5rem;
}

ul.md-marker-list > li {
    position: relative;
}

ul.md-marker-list > li::before {
    content: attr(data-marker);
    position: absolute;
    left: -1.1rem;
    color: var(--text-secondary);
    font-weight: 600;
    line-height: 1.4;
}
