/* ==========================================================================
   Design Tokens & CSS Variables
   ========================================================================== */

:root {
    /* Font Families */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Base Dimensions */
    --border-radius-sm: 0px; /* Sharp corners like original site */
    --border-radius-md: 0px;
    --border-radius-lg: 0px;
    --transition-speed: 0.2s;
    --transition-curve: ease-in-out;
}

/* --- Theme 1: Default (Government Blue & Gold Accent) --- */
body.theme-default {
    --bg-page: #f1f3f7; /* Matching the light grey screenshot */
    --bg-card: #ffffff;
    --bg-header: #ffffff;
    --bg-header-top: #1b325f; /* Dark Blue */
    --text-primary: #1b325f; /* Dark Blue text */
    --text-secondary: #555555;
    --text-muted: #777777;
    --text-on-nav: #ffffff;
    --border-color: #d1d5db;
    
    --color-accent: #1b325f; 
    --color-accent-hover: #000000;
    --color-gold: #d97706; 
    
    /* Buttons */
    --btn-submit-bg: #007a33; /* Forest Green from screenshot */
    --btn-submit-hover: #005a24;
    --btn-submit-text: #ffffff;
    --btn-submit-shadow: none;

    --input-focus-border: #1b325f;
    --input-focus-shadow: none;
    
    --error-color: #c92c3b;
    --success-color: #007a33;
    
    --cookie-banner-bg: #1b325f;
    --cookie-banner-text: #ffffff;
    
    --modal-overlay: rgba(27, 50, 95, 0.5);
}

/* --- Theme 2: Black & White (High Contrast) --- */
body.theme-bw {
    --bg-page: #ffffff;
    --bg-card: #ffffff;
    --bg-header: #ffffff;
    --bg-header-top: #000000;
    --text-primary: #000000;
    --text-secondary: #000000;
    --text-muted: #555555;
    --text-on-nav: #ffffff;
    --border-color: #000000;
    
    --color-accent: #000000;
    --color-accent-hover: #000000;
    --color-gold: #000000;
    
    --btn-submit-bg: #000000;
    --btn-submit-hover: #000000;
    --btn-submit-text: #ffffff;
    --btn-submit-shadow: none;

    --input-focus-border: #000000;
    --input-focus-shadow: none;
    
    --error-color: #000000;
    --success-color: #000000;
    
    --cookie-banner-bg: #000000;
    --cookie-banner-text: #ffffff;
    
    --modal-overlay: rgba(0, 0, 0, 0.85);
    
    font-weight: 500 !important;
}

/* --- Theme 3: Inverse (Dark Mode / High Contrast) --- */
body.theme-inverse {
    --bg-page: #0f172a;
    --bg-card: #1e293b;
    --bg-header: #1e293b;
    --bg-header-top: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --text-on-nav: #f8fafc;
    --border-color: #475569;
    
    --color-accent: #38bdf8;
    --color-accent-hover: #7dd3fc;
    --color-gold: #f59e0b;
    
    --btn-submit-bg: #10b981;
    --btn-submit-hover: #059669;
    --btn-submit-text: #0f172a;
    --btn-submit-shadow: none;

    --input-focus-border: #38bdf8;
    --input-focus-shadow: none;
    
    --error-color: #f87171;
    --success-color: #34d399;
    
    --cookie-banner-bg: #0f172a;
    --cookie-banner-text: #cbd5e1;
    
    --modal-overlay: rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   Font Scale Settings
   ========================================================================== */

body.font-small {
    font-size: 14px;
    --heading-factor: 0.85;
}
body.font-normal {
    font-size: 16px;
    --heading-factor: 1.0;
}
body.font-large {
    font-size: 18px;
    --heading-factor: 1.15;
}

/* ==========================================================================
   Global Reset & Base Layouts
   ========================================================================== */

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color var(--transition-speed) var(--transition-curve), 
                color var(--transition-speed) var(--transition-curve);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-curve);
}
a:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
}

/* Top Flag Stripes */
.top-flag-stripes {
    display: flex;
    height: 6px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}
.top-flag-stripes .stripe {
    flex: 1;
}
.top-flag-stripes .stripe.red { background-color: #c92c3b; }
.top-flag-stripes .stripe.blue { background-color: #0c407c; }
.top-flag-stripes .stripe.white { background-color: #ffffff; }

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.main-header {
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 900;
    margin-top: 6px; /* Offset for flag stripes */
    box-shadow: none;
    transition: background-color var(--transition-speed) var(--transition-curve),
                border-color var(--transition-speed) var(--transition-curve);
}

/* Top Blue Bar */
.top-header-bar {
    background-color: var(--bg-header-top);
    height: 36px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.top-header-container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Header controls and menus */
.language-dropdown-container {
    position: relative;
}
.lang-selector-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 8px;
    background: none;
    color: var(--text-on-nav);
    border: none;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 13px;
    transition: opacity 0.2s;
}
.lang-selector-btn:hover {
    opacity: 0.8;
}
.lang-selector-btn .chevron-icon {
    width: 12px;
    height: 12px;
    transition: transform var(--transition-speed) var(--transition-curve);
}
.language-dropdown-container.open .lang-selector-btn .chevron-icon {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    min-width: 130px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: none;
    flex-direction: column;
    z-index: 999;
}
.language-dropdown-container.open .lang-menu {
    display: flex;
}
.lang-item {
    padding: 8px 12px;
    text-align: left;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s;
}
.lang-item:last-child {
    border-bottom: none;
}
.lang-item:hover {
    background-color: var(--bg-page);
    color: var(--text-primary);
}
.lang-item.active {
    background-color: var(--bg-page);
    color: var(--color-accent);
    font-weight: 700;
}

/* Header Body (White part) */
.header-body {
    padding: 24px 0 12px 0;
}
.header-body-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* eID Outline Circle logo */
.logo-link {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none !important;
}
.eid-circle-logo {
    width: 52px;
    height: 57px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    background-color: transparent;
    transition: transform var(--transition-speed);
}
.logo-link:hover .eid-circle-logo {
    transform: scale(1.03);
}
.eid-svg {
    width: 52px;
    height: 57px;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
}
.logo-text-row {
    line-height: 1.1;
}
.logo-bold {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: calc(26px * var(--heading-factor));
    color: var(--text-primary);
    letter-spacing: -0.5px;
}
.logo-domain {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: calc(26px * var(--heading-factor));
    color: var(--text-primary);
}
.logo-title {
    font-size: calc(13px * var(--heading-factor));
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.2px;
    margin-top: 2px;
}



/* Secondary navbar (Inside white area, below logo) */
.nav-bar {
    background-color: transparent;
    border-top: 1px solid transparent;
}
.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}
.header-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0px; /* Gap handled by dividers */
}
.header-nav li {
    display: flex;
    align-items: center;
}
.header-nav a {
    display: block;
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    transition: color 0.15s;
}
.header-nav a:hover {
    color: #000000;
    text-decoration: underline;
}
.header-nav a.nav-highlight {
    font-weight: 600;
}
.nav-divider {
    color: #cbd5e1;
    font-size: 12px;
    user-select: none;
}



/* ==========================================================================
   Page Title Banner (Breadcrumbs)
   ========================================================================== */

.breadcrumbs-section {
    background: transparent;
    padding: 24px 24px 0 24px;
    text-align: left;
}
.breadcrumbs-container {
    max-width: 1000px;
    margin: 0 auto;
}
.page-main-heading {
    font-family: var(--font-heading);
    font-size: calc(28px * var(--heading-factor));
    font-weight: 700;
    color: var(--text-primary);
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */

.main-content {
    flex: 1;
    padding: 20px 24px 60px 24px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.content-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* ==========================================================================
   Authentication Card
   ========================================================================== */

.auth-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: none;
    overflow: hidden;
    margin-top: 10px;
}

/* Auth Tabs */
.auth-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 2px solid var(--color-accent);
    background-color: #f8fafc;
}
.tab-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 16px 20px;
    gap: 12px;
    background-color: #f1f3f7;
    border: none;
    border-right: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: all 0.15s;
    height: 100%;
}
.tab-link:last-child {
    border-right: none;
}
.tab-link:hover {
    background-color: #e2e8f0;
}
.tab-link.active {
    background-color: var(--color-accent);
    color: #ffffff;
}

.tab-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 0px;
    background-color: transparent;
    color: inherit;
}
.tab-icon {
    width: 24px;
    height: 24px;
}
.tab-label {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    line-height: 1.3;
}

/* Tab Panels */
.tab-content {
    padding: 30px;
    max-width: 580px;
    margin: 0 auto;
}
.tab-panel {
    display: none;
}
.tab-panel.active {
    display: block;
}

/* Illustrations & Avatars */
.panel-header-illustration {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
.avatar-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--text-primary);
    background-color: transparent;
    color: var(--text-primary);
}
.avatar-circle.certificate-theme {
    color: var(--text-primary);
    border-color: var(--text-primary);
}
.avatar-circle.mobile-theme {
    color: var(--text-primary);
    border-color: var(--text-primary);
}
.avatar-svg {
    width: 28px;
    height: 28px;
}

/* Description Text */
.tab-info-text {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}
.info-link {
    font-weight: 600;
    text-decoration: underline;
    margin-left: 4px;
}

/* Forms & Fields */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-label {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.field-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.input-wrapper {
    position: relative;
}
.form-input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--text-primary);
    border-radius: 0px; /* Sharp corners like screenshot */
    font-family: inherit;
    font-size: 15px;
    color: #000000;
    background-color: #ffffff;
    transition: border-color 0.15s;
}
.form-input:focus {
    outline: 2px solid var(--text-primary);
    border-color: var(--text-primary);
    box-shadow: none;
}

/* Password eye button inside field */
.password-wrapper .form-input {
    padding-right: 100px;
}
.password-toggle-btn {
    position: absolute;
    right: 4px;
    top: 4px;
    height: 36px;
    padding: 0 12px;
    background: none;
    border: none;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    transition: color 0.15s;
}
.password-toggle-btn:hover {
    color: var(--text-primary);
}

/* Green sign-in button */
.form-actions-row {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}
.submit-btn {
    width: 100%;
    height: 48px;
    padding: 0 24px;
    border-radius: 2px;
    background-color: var(--btn-submit-bg);
    color: var(--btn-submit-text);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: none;
    transition: background-color 0.2s;
    position: relative;
}
.submit-btn:hover {
    background-color: var(--btn-submit-hover);
    transform: none;
    box-shadow: none;
}
.submit-btn:active {
    transform: none;
}

/* Circle wave badge on button left side */
.btn-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: transparent;
    color: #ffffff;
    flex-shrink: 0;
}
.btn-svg-icon {
    width: 24px;
    height: 24px;
}

/* Spinner indicator */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}
.loading-spinner.hidden {
    display: none;
}

/* Recover links */
.recovery-row {
    margin-top: 8px;
    text-align: left;
}
.recover-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: underline;
}

.registration-footer-row {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
}
.register-here-link {
    font-weight: 700;
    text-decoration: underline;
    margin-left: 4px;
}
.flex-column-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.activation-info-link-row {
    margin-top: 4px;
}

/* Certificate Scan Animation Box */
.certificate-scan-box {
    border: 2px dashed var(--border-color);
    border-radius: 0px;
    padding: 24px 16px;
    text-align: center;
    background-color: var(--bg-page);
    margin-bottom: 24px;
}
.smartcard-icon-container {
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
}
.smartcard-svg {
    width: 64px;
    height: 64px;
}
.sc-card {
    transition: all 0.3s;
}
.sc-chip {
    color: var(--color-gold);
}
.sc-signal {
    opacity: 0.2;
    animation: signalWave 2s infinite linear;
}
.signal-1 { animation-delay: 0s; }
.signal-2 { animation-delay: 0.6s; }
.signal-3 { animation-delay: 1.2s; }

.card-status-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    max-width: 320px;
    margin: 0 auto;
    line-height: 1.4;
}

/* Validation Errors */
.error-msg {
    display: none;
    font-size: 12px;
    font-weight: 600;
    color: var(--error-color);
    margin-top: 4px;
}
.form-group.has-error .form-input {
    border-color: var(--error-color) !important;
    outline: 2px solid var(--error-color) !important;
}
.form-group.has-error .error-msg {
    display: block;
}

/* ==========================================================================
   Mock Success / Status Feedback
   ========================================================================== */

.auth-result-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0px;
    padding: 40px;
    text-align: center;
}
.auth-result-card.hidden {
    display: none;
}
.result-icon-container {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}
.result-icon-container.success {
    background-color: rgba(0, 122, 51, 0.1);
    color: #007a33;
}
.result-icon-container.error {
    background-color: rgba(201, 44, 59, 0.1);
    color: #c92c3b;
}
.result-icon-container svg {
    width: 32px;
    height: 32px;
}
.auth-result-card h3 {
    font-family: var(--font-heading);
    font-size: calc(22px * var(--heading-factor));
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.auth-result-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.main-footer {
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-secondary);
}

.footer-top-anchor {
    background-color: var(--bg-header-top); /* Dark Blue */
    padding: 8px 24px;
    height: 40px;
    display: flex;
    align-items: center;
}
.footer-top-container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
}
.to-top-btn {
    color: #ffffff;
    font-weight: 500;
    font-size: 13px;
}
.to-top-btn:hover {
    color: #e2e8f0;
    text-decoration: underline;
}

.footer-main-content {
    padding: 30px 24px;
}
.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-branding {
    display: flex;
    align-items: center;
    gap: 16px;
}
.footer-logo {
    height: 84px;
    width: auto;
    object-fit: contain;
}
.footer-text-wrapper {
    display: flex;
    flex-direction: column;
}
.footer-branding h3 {
    font-family: var(--font-heading);
    font-size: calc(18px * var(--heading-factor));
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.footer-branding p {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.footer-license {
    line-height: 1.6;
    color: var(--text-muted);
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}
.footer-nav li {
    display: flex;
    align-items: center;
}
.footer-nav a {
    font-weight: 500;
    color: var(--text-secondary);
}
.footer-nav a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* ==========================================================================
   Cookie Consent Banner
   ========================================================================== */

.cookie-consent-banner {
    position: fixed;
    bottom: -200px;
    left: 0;
    right: 0;
    background-color: var(--cookie-banner-bg);
    color: var(--cookie-banner-text);
    z-index: 999;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.15);
    padding: 16px 24px;
    transition: bottom 0.4s ease-out;
}
.cookie-consent-banner.show {
    bottom: 0;
}
.cookie-banner-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.cookie-icon-wrapper {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cookie-icon-wrapper svg {
    width: 18px;
    height: 18px;
}
.cookie-content {
    flex: 1;
}
.cookie-content p {
    font-size: 13px;
    line-height: 1.5;
}
.cookie-content a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
}
.cookie-accept-btn {
    white-space: nowrap;
    padding: 8px 16px !important;
    font-size: 13px !important;
}

/* ==========================================================================
   Idle Warning Alert Dialog
   ========================================================================== */

.idle-modal {
    border: none;
    border-radius: var(--border-radius-lg);
    background: none;
    padding: 0;
    max-width: 440px;
    width: calc(100% - 32px);
    margin: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 1001;
}
.idle-modal::backdrop {
    background-color: var(--modal-overlay);
    backdrop-filter: blur(2px);
}
.idle-modal-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.idle-warning-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: rgba(217, 119, 6, 0.1);
    color: #d97706;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.idle-warning-icon svg {
    width: 28px;
    height: 28px;
}
.idle-modal-content h3 {
    font-family: var(--font-heading);
    font-size: calc(18px * var(--heading-factor));
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.idle-modal-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
}
#idleCountdownText {
    color: var(--error-color);
    font-size: 14px;
    font-weight: 700;
}
.idle-modal-actions {
    display: flex;
    gap: 10px;
    width: 100%;
}
.idle-btn {
    flex: 1;
    height: 40px;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.idle-btn.dismiss {
    border: 1px solid var(--border-color);
    background-color: var(--bg-page);
    color: var(--text-primary);
    transition: background-color 0.15s;
}
.idle-btn.dismiss:hover {
    background-color: var(--border-color);
}
.idle-btn.action {
    background-color: var(--btn-submit-bg);
    color: var(--btn-submit-text);
}

/* ==========================================================================
   Animations & Transitions
   ========================================================================== */

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

@keyframes signalWave {
    0% { opacity: 0.1; }
    50% { opacity: 1; color: var(--color-gold); }
    100% { opacity: 0.1; }
}

/* Responsive adjust */
@media (max-width: 768px) {
    .header-body-container {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    .settings-toggle {
        align-self: flex-end;
        margin-top: -48px;
    }
    .header-nav ul {
        justify-content: flex-start;
    }
    .auth-tabs {
        grid-template-columns: 1fr;
        border-bottom: none;
    }
    .tab-link {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 12px 16px;
    }
    .tab-link.active {
        border-left: 4px solid var(--color-gold);
        border-bottom-color: var(--border-color);
    }
    .tab-content {
        padding: 20px 16px;
    }
    .cookie-banner-container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        text-align: center;
    }
    .cookie-icon-wrapper {
        margin: 0 auto;
    }
    .cookie-accept-btn {
        width: 100%;
    }
    .idle-modal-actions {
        flex-direction: column-reverse;
    }
}
