/* ==========================================================================
   Router Admin Login - High Performance Design System & Multi-Color Themes
   Vanilla CSS - Zero Bloat - Ultra Fast (CLS: 0, FCP: <0.2s)
   ========================================================================== */

/* 1. Base Variables & Multi-Color Palettes */
:root {
    /* Default Theme: Ocean Blue */
    --theme-primary: #2563eb;
    --theme-primary-hover: #1d4ed8;
    --theme-primary-light: #eff6ff;
    --theme-primary-border: #bfdbfe;
    --theme-accent: #0284c7;
    --theme-header-bg: #0f172a;
    --theme-header-text: #ffffff;
    --theme-badge-bg: #10b981;
    --theme-badge-text: #ffffff;
    --btn-action-bg: #eab308;
    --btn-action-hover: #ca8a04;
    --btn-action-text: #1e293b;

    /* Base Surfaces (Light Mode) */
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --bg-subtle: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-card: #e2e8f0;
    --border-hover: #cbd5e1;
    --code-bg: #f1f5f9;
    --code-text: #0f172a;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Theme: Cyber Emerald Green */
[data-theme-color="green"] {
    --theme-primary: #059669;
    --theme-primary-hover: #047857;
    --theme-primary-light: #ecfdf5;
    --theme-primary-border: #a7f3d0;
    --theme-accent: #10b981;
    --theme-header-bg: #064e3b;
    --btn-action-bg: #10b981;
    --btn-action-hover: #059669;
    --btn-action-text: #ffffff;
}

/* Theme: Aurora Purple / Indigo */
[data-theme-color="purple"] {
    --theme-primary: #6366f1;
    --theme-primary-hover: #4f46e5;
    --theme-primary-light: #eef2ff;
    --theme-primary-border: #c7d2fe;
    --theme-accent: #8b5cf6;
    --theme-header-bg: #1e1b4b;
    --btn-action-bg: #f59e0b;
    --btn-action-hover: #d97706;
    --btn-action-text: #1e1b4b;
}

/* Theme: Solar Amber / Orange */
[data-theme-color="amber"] {
    --theme-primary: #d97706;
    --theme-primary-hover: #b45309;
    --theme-primary-light: #fffbeb;
    --theme-primary-border: #fde68a;
    --theme-accent: #f59e0b;
    --theme-header-bg: #451a03;
    --btn-action-bg: #0284c7;
    --btn-action-hover: #0369a1;
    --btn-action-text: #ffffff;
}

/* Theme: Crimson Ruby */
[data-theme-color="rose"] {
    --theme-primary: #e11d48;
    --theme-primary-hover: #be123c;
    --theme-primary-light: #fff1f2;
    --theme-primary-border: #fecdd3;
    --theme-accent: #f43f5e;
    --theme-header-bg: #4c0519;
    --btn-action-bg: #3b82f6;
    --btn-action-hover: #2563eb;
    --btn-action-text: #ffffff;
}

/* Dark Mode Overrides (Automatic or explicitly toggled) */
[data-mode="dark"] {
    --bg-page: #0b0f17;
    --bg-card: #131a26;
    --bg-subtle: #1c2638;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-card: #243046;
    --border-hover: #334155;
    --code-bg: #090d14;
    --code-text: #38bdf8;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
}

[data-mode="dark"][data-theme-color="green"] {
    --theme-primary-light: #064e3b33;
    --theme-primary-border: #065f46;
}

[data-mode="dark"][data-theme-color="purple"] {
    --theme-primary-light: #312e8133;
    --theme-primary-border: #3730a3;
}

[data-mode="dark"][data-theme-color="amber"] {
    --theme-primary-light: #78350f33;
    --theme-primary-border: #92400e;
}

[data-mode="dark"][data-theme-color="rose"] {
    --theme-primary-light: #88133733;
    --theme-primary-border: #9f1239;
}

[data-mode="dark"][data-theme-color="blue"] {
    --theme-primary-light: #1e3a8a33;
    --theme-primary-border: #1e40af;
}

/* 2. Global Resets & Typography */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.2s ease, color 0.2s ease;
}

a {
    color: var(--theme-primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--theme-primary-hover);
    text-decoration: underline;
}

p {
    margin-bottom: 1rem;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

h1 { font-size: 1.875rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

code, samp {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background-color: var(--code-bg);
    color: var(--code-text);
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-card);
}

/* 3. Header & Navigation */
.site-header {
    background-color: var(--theme-header-bg);
    color: var(--theme-header-text);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.25s ease;
}

.header-container {
    max-width: var(--container-max-width, 1200px);
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: max-width 0.2s ease;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff !important;
    text-decoration: none !important;
    letter-spacing: -0.02em;
}

.brand-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-accent));
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    list-style: none;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none !important;
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius-sm);
    transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.12);
}

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

/* Theme Switcher in Header */
.theme-picker {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    padding: 0.2rem 0.4rem;
    gap: 0.35rem;
}

.theme-swatch {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.theme-swatch:hover {
    transform: scale(1.2);
}

.theme-swatch.active {
    border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.theme-swatch-blue { background-color: #2563eb; }
.theme-swatch-green { background-color: #059669; }
.theme-swatch-purple { background-color: #6366f1; }
.theme-swatch-amber { background-color: #d97706; }
.theme-swatch-rose { background-color: #e11d48; }

.mode-toggle-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.mode-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: rotate(15deg);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 4. Layout Container & Grid */
.main-wrapper {
    max-width: var(--container-max-width, 1200px);
    width: 100%;
    margin: 1.5rem auto;
    padding: 0 1rem;
    flex: 1;
    transition: max-width 0.2s ease;
}

.grid-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.5rem;
    align-items: start;
}

.full-width-layout {
    display: block;
}

/* 5. Cards & Containers */
.card-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card-box:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.card-header {
    border-bottom: 1px solid var(--border-card);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Hero Alert Box */
.hero-notice {
    background-color: var(--theme-primary-light);
    border: 1px solid var(--theme-primary-border);
    color: var(--text-main);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
}

/* Direct Gateway Login Banner (Inspired by 192-168-1-1ip.mobi) */
.gateway-action-box {
    background: linear-gradient(135deg, var(--theme-primary-light), var(--bg-subtle));
    border: 2px solid var(--theme-primary-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-sm);
}

.gateway-action-box h2 {
    color: var(--theme-primary);
    margin-bottom: 0.5rem;
}

.gateway-ip-badge {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--theme-primary);
    background-color: var(--bg-card);
    padding: 0.35rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--theme-primary-border);
    margin: 0.5rem 0 1rem;
}

.gateway-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

/* 6. Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.15s ease;
    line-height: 1.4;
}

.btn-primary {
    background-color: var(--theme-primary);
    color: #ffffff !important;
}

.btn-primary:hover {
    background-color: var(--theme-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-action {
    background-color: var(--btn-action-bg);
    color: var(--btn-action-text) !important;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 0.65rem 1.75rem;
    border-radius: var(--radius-md);
}

.btn-action:hover {
    background-color: var(--btn-action-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--bg-subtle);
    color: var(--text-main) !important;
    border-color: var(--border-card);
}

.btn-secondary:hover {
    background-color: var(--border-card);
    color: var(--text-main) !important;
}

.btn-sm {
    padding: 0.3rem 0.75rem;
    font-size: 0.8125rem;
    border-radius: var(--radius-sm);
}

/* 7. IP Cards Grid (Router-Network Style) */
.ip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.ip-card-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.ip-card-item:hover {
    transform: translateY(-2px);
    border-color: var(--theme-primary);
    box-shadow: var(--shadow-md);
}

.ip-card-item .ip-text {
    font-weight: 700;
    font-size: 1.125rem;
    font-family: var(--font-mono);
    color: var(--text-main);
}

/* 8. Logins Data Cards (Router-Network Percentage Badges) */
.login-card-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: border-color 0.15s ease;
}

.login-card-item:hover {
    border-color: var(--theme-primary-border);
}

.hit-badge {
    background-color: var(--theme-badge-bg);
    color: var(--theme-badge-text);
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    text-align: center;
    min-width: 55px;
}

.login-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem 1rem;
    flex: 1;
    font-size: 0.875rem;
}

.login-field {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.login-label {
    color: var(--text-muted);
    font-weight: 500;
}

.login-val {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text-main);
}

/* 9. Data Tables */
.table-container {
    overflow-x: auto;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    margin: 1rem 0;
    background-color: var(--bg-card);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9375rem;
}

.data-table th {
    background-color: var(--bg-subtle);
    color: var(--text-main);
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--border-card);
}

.data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-card);
    color: var(--text-main);
}

.data-table tbody tr:hover {
    background-color: var(--theme-primary-light);
}

/* 10. Copy Button & Quick Actions */
.copy-btn {
    background: transparent;
    border: 1px solid var(--border-card);
    color: var(--text-muted);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.copy-btn:hover {
    background-color: var(--theme-primary-light);
    color: var(--theme-primary);
    border-color: var(--theme-primary-border);
}

/* 11. FAQ Accordions */
.faq-list {
    margin: 1.5rem 0;
}

.faq-item {
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    background-color: var(--bg-card);
    overflow: hidden;
}

.faq-question {
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: background-color 0.15s ease;
}

.faq-question:hover {
    background-color: var(--bg-subtle);
}

.faq-answer {
    padding: 0 1.25rem 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 12. Sidebar Styling */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sidebar-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    border-bottom: 2px solid var(--theme-primary);
    padding-bottom: 0.4rem;
    margin-bottom: 0.85rem;
}

.sidebar-list {
    list-style: none;
}

.sidebar-list li {
    margin-bottom: 0.45rem;
}

.sidebar-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0.5rem;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.9125rem;
    transition: all 0.15s ease;
}

.sidebar-list a:hover {
    background-color: var(--theme-primary-light);
    color: var(--theme-primary);
    text-decoration: none;
    padding-left: 0.75rem;
}

/* 13. Search and Filter Bar */
.filter-bar {
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.search-input, .select-input {
    font-family: inherit;
    font-size: 0.9375rem;
    background-color: var(--bg-subtle);
    border: 1px solid var(--border-card);
    color: var(--text-main);
    padding: 0.55rem 0.85rem;
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-input {
    flex: 1;
    min-width: 220px;
}

.search-input:focus, .select-input:focus {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px var(--theme-primary-border);
}

/* 14. Breadcrumb */
.breadcrumb-trail {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.breadcrumb-trail a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumb-trail a:hover {
    color: var(--theme-primary);
}

.breadcrumb-separator {
    color: var(--border-card);
}

/* 15. Tools Page Specifics */
.tool-dashboard {
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

.tool-output-box {
    background-color: var(--bg-subtle);
    border: 2px dashed var(--theme-primary-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    margin: 1.5rem 0;
}

.strength-bar {
    height: 8px;
    border-radius: 4px;
    background-color: var(--border-card);
    margin-top: 0.5rem;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

/* 16. Floating Theme Switcher */
.floating-theme-bar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-full);
    padding: 0.4rem 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 999;
}

/* 17. Footer */
.site-footer {
    background-color: var(--theme-header-bg);
    color: rgba(255, 255, 255, 0.75);
    padding: 2.5rem 1rem 1.5rem;
    margin-top: auto;
    font-size: 0.875rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    max-width: var(--container-max-width, 1200px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
    transition: max-width 0.2s ease;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 0.85rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.4rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.75);
}

.footer-col a:hover {
    color: #ffffff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* 18. Responsive Breakpoints */
@media (max-width: 900px) {
    .grid-layout {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--theme-header-bg);
        padding: 1rem;
        box-shadow: var(--shadow-lg);
    }

    .mobile-nav-toggle {
        display: block;
    }
}

/* Language switcher */
.lang-switcher { position: relative; }
.lang-switcher-details { position: relative; }
.lang-switcher-btn {
    list-style: none;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 6px;
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 600;
}
.lang-switcher-btn::-webkit-details-marker { display: none; }
.lang-switcher-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 160px;
    background: #fff;
    color: #0f172a;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    padding: 0.4rem;
    z-index: 50;
    list-style: none;
    margin: 0;
}
html[dir="rtl"] .lang-switcher-menu { right: auto; left: 0; }
.lang-switcher-menu a {
    display: block;
    padding: 0.45rem 0.65rem;
    border-radius: 6px;
    color: #0f172a;
    text-decoration: none;
    font-size: 0.875rem;
}
.lang-switcher-menu a:hover,
.lang-switcher-menu a.active {
    background: var(--theme-primary-light, #eff6ff);
    color: var(--theme-primary, #2563eb);
}
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .header-container,
html[dir="rtl"] .footer-container { direction: rtl; }
