/**
 * Galabot OS - Global Cyber Hacker Matrix Design System
 * Pure Phosphor Green, Neon Cyan, and Deep Space Matrix Aesthetics.
 */
:root {
    --bg-dark: #02060c;
    --glass-bg: rgba(3, 8, 16, 0.88);
    --glass-border: rgba(0, 255, 102, 0.25);
    --glass-accent: #00ff66;
    --primary: #00ff66;
    --primary-hover: #00dd55;
    --primary-gradient: linear-gradient(135deg, #00ff66 0%, #00f0ff 100%);
    --neon-green: #00ff66;
    --neon-cyan: #00f0ff;
    --neon-amber: #ffb703;
    --neon-red: #ff0055;
    --neon-glow: rgba(0, 255, 102, 0.4);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --font-main: 'JetBrains Mono', 'Share Tech Mono', monospace, system-ui;
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.85), 0 0 25px rgba(0, 255, 102, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 102, 0.4) rgba(0, 0, 0, 0.35);
}

/* Custom Cyber Matrix Scrollbar */
*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

*::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(0, 255, 102, 0.5), rgba(0, 240, 255, 0.5));
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 102, 0.15);
    transition: all 0.2s ease;
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00ff66, #00f0ff);
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.6);
}

*::-webkit-scrollbar-corner {
    background: transparent;
}

html {
    width: 100%;
    max-width: 100vw;
    min-height: 100%;
    height: 100%;
    background-color: #02060c;
    overflow-x: hidden !important;
    touch-action: pan-y;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    color: var(--text-main);
    display: block;
    background-color: #02060c;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    overflow-y: auto;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

/* Falling Matrix Background Canvas for Auth & Standalone Pages */
.matrix-bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    opacity: 0.65;
    mix-blend-mode: screen;
}

/* Cyber Matrix Card & Full-Screen Auth Container */
.premium-card {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    padding-top: calc(env(safe-area-inset-top, 0px) + 32px);
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 28px);
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
    animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

/* Remove bracket pseudo-elements on full-screen auth */
.premium-card::before,
.premium-card::after {
    display: none !important;
}

/* Auth Center Column: solid, high-contrast, beautiful cyber-card */
.auth-container {
    width: 100%;
    max-width: 440px;
    margin: auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    text-align: center;
    background: #0b1220;
    background: rgba(11, 18, 32, 0.96);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(0, 240, 255, 0.28);
    border-radius: 18px;
    padding: 30px 26px 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 240, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

@media (max-width: 480px) {
    .premium-card {
        padding-top: calc(env(safe-area-inset-top, 0px) + 28px);
        padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
        padding-left: 12px;
        padding-right: 12px;
    }

    .auth-container {
        width: 100%;
        max-width: 100%;
        margin: auto 0;
        padding: 24px 18px 20px;
        border-radius: 16px;
    }
}

.auth-container form,
.auth-container .oauth-divider,
.auth-container .oauth-buttons,
.auth-container .links,
.auth-container .auth-legal-footer {
    width: 100%;
}

/* Fallback for standalone dialog cards without .auth-container (e.g. no-license.html) */
.premium-card:not(:has(.auth-container)) {
    max-width: 480px;
    margin: auto;
    min-height: auto;
    background: var(--glass-bg);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 2.2rem 2.2rem 1.8rem;
    box-shadow: var(--shadow-premium);
}

.premium-card:not(:has(.auth-container))::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 10px;
    height: 10px;
    border-top: 2px solid #00ff66;
    border-left: 2px solid #00ff66;
    pointer-events: none;
    display: block !important;
}

.premium-card:not(:has(.auth-container))::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid #00ff66;
    border-right: 2px solid #00ff66;
    pointer-events: none;
    display: block !important;
}

/* In-Card Language Switcher with Cyber Styling */
.card-lang-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(4, 9, 18, 0.88);
    border: 1px solid rgba(0, 255, 102, 0.25);
    border-radius: 8px;
    padding: 3px 5px;
    margin: 0 auto 1.2rem auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 10px rgba(0, 255, 102, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-sizing: border-box;
    height: 34px;
    flex-shrink: 0;
}

.card-lang-btn {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;
    flex: 0 0 38px !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    border-radius: 5px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
    opacity: 0.55;
    color: #ffffff !important;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease !important;
    transform: none !important;
    overflow: hidden !important;
    position: relative !important;
}

.card-lang-btn:hover {
    opacity: 0.95;
    background: rgba(0, 255, 102, 0.1) !important;
    border-color: rgba(0, 255, 102, 0.35) !important;
    transform: none !important;
}

.card-lang-btn:active {
    transform: none !important;
}

.card-lang-btn.active {
    opacity: 1 !important;
    background: rgba(0, 255, 102, 0.22) !important;
    border-color: #00ff66 !important;
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.4) !important;
    transform: none !important;
}

.card-lang-btn * {
    pointer-events: none !important;
}

.card-flag-svg {
    width: 22px !important;
    height: 15px !important;
    min-width: 22px !important;
    min-height: 15px !important;
    max-width: 22px !important;
    max-height: 15px !important;
    border-radius: 2px !important;
    display: block !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    flex-shrink: 0 !important;
    pointer-events: none !important;
}

.tma-ripple-wave {
    position: absolute !important;
    border-radius: 50% !important;
    pointer-events: none !important;
    background: radial-gradient(circle, rgba(0, 255, 102, 0.3) 0%, transparent 70%) !important;
    transform: scale(0) !important;
    animation: tmaRippleEffect 0.48s cubic-bezier(0.1, 0.8, 0.3, 1) forwards !important;
}

@keyframes tmaRippleEffect {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}

@media (max-width: 480px) {
    body, html {
        min-height: 100%;
        height: auto;
    }

    .card-lang-switch {
        gap: 6px;
        padding: 3px 5px;
        margin-bottom: 1rem;
        height: 34px;
    }

    .card-lang-btn {
        width: 38px !important;
        height: 26px !important;
        padding: 0 !important;
    }

    .card-flag-svg {
        width: 22px !important;
        height: 15px !important;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Headings with Matrix Glow */
h1 {
    font-family: 'JetBrains Mono', 'Share Tech Mono', monospace;
    font-size: clamp(1.4rem, 4.5vw, 1.85rem);
    font-weight: 800;
    margin-bottom: 0.4rem;
    color: #ffffff;
    text-shadow: 0 0 12px rgba(0, 255, 102, 0.6);
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
}

.subtitle {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    font-size: 0.82rem;
    line-height: 1.4;
    font-family: inherit;
    letter-spacing: 0.02em;
}

/* Terminal Header Pill */
.terminal-auth-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: #00ff66;
    background: rgba(0, 255, 102, 0.1);
    border: 1px solid rgba(0, 255, 102, 0.3);
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.terminal-auth-tag .tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00ff66;
    box-shadow: 0 0 6px #00ff66;
    animation: authLedBlink 1.4s infinite alternate;
}

@keyframes authLedBlink {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

.form-group {
    margin-bottom: 1.15rem;
    text-align: left;
}

label {
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

input {
    width: 100%;
    background: #111a2e !important;
    border: 1.5px solid rgba(0, 240, 255, 0.3) !important;
    border-radius: 10px;
    padding: 12px 14px;
    color: #ffffff !important;
    font-size: 16px; /* 16px is required by iOS Safari to prevent auto-zooming on focus */
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    font-family: 'JetBrains Mono', monospace;
    -webkit-appearance: none;
    box-sizing: border-box;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

input::placeholder {
    color: #64748b !important;
    font-weight: 400;
}

input:focus {
    border-color: #00ff66 !important;
    background: #15223c !important;
    box-shadow: 0 0 0 3px rgba(0, 255, 102, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
    color: #ffffff !important;
}

/* Primary Execution Button */
.btn-primary {
    width: 100%;
    min-height: 48px;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, #00ff66 0%, #00f0ff 100%) !important;
    color: #040914 !important;
    border: none;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.92rem;
    font-family: inherit;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.22s ease;
    box-shadow: 0 4px 22px rgba(0, 255, 102, 0.45);
    margin-top: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 255, 102, 0.55);
    filter: brightness(1.1);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.links {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.links a {
    color: #00ff66;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s;
    border-bottom: 1px dashed rgba(0, 255, 102, 0.4);
}

.links a:hover {
    color: #00f0ff;
    border-bottom-color: #00f0ff;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.error-message {
    background: rgba(255, 0, 85, 0.15);
    border: 1px solid rgba(255, 0, 85, 0.4);
    color: #ff6b8b;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    display: none;
    text-align: left;
    font-family: inherit;
}

/* Specific to Register */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Specific to No-License */
.lock-icon {
    font-size: 3rem;
    margin-bottom: 0.8rem;
    display: inline-block;
    filter: drop-shadow(0 0 12px #ff0055);
}

.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin-top: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 255, 102, 0.08);
    border: 1px solid rgba(0, 255, 102, 0.3);
    border-radius: 8px;
    color: #00ff66;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(0, 255, 102, 0.18);
    box-shadow: 0 0 12px rgba(0, 255, 102, 0.3);
}

/* OAuth Social Login Styles (Cyber Relays) */
.oauth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.25rem 0 1rem;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.oauth-divider::before,
.oauth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(0, 255, 102, 0.18);
}

.oauth-divider::before {
    margin-right: 0.75rem;
}

.oauth-divider::after {
    margin-left: 0.75rem;
}

.oauth-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 0.75rem;
}

.btn-oauth {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    padding: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid rgba(255, 255, 255, 0.14) !important;
    outline: none;
    font-family: inherit;
    background: #111a2e !important;
    color: var(--text-main);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
    -webkit-appearance: none;
    appearance: none;
}

.btn-oauth svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.btn-oauth:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55);
    background: #16223d !important;
}

.btn-oauth:hover:not(:disabled) svg {
    transform: scale(1.1);
}

.btn-oauth:active:not(:disabled) {
    transform: translateY(0);
}

.btn-oauth:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-oauth.btn-google:hover:not(:disabled) {
    background: rgba(234, 67, 53, 0.18) !important;
    border-color: #ea4335 !important;
    box-shadow: 0 4px 18px rgba(234, 67, 53, 0.4) !important;
}

.btn-oauth.btn-telegram:hover:not(:disabled) {
    background: rgba(41, 169, 234, 0.18) !important;
    border-color: #24a1de !important;
    box-shadow: 0 4px 18px rgba(36, 161, 222, 0.4) !important;
}

.btn-oauth.btn-github:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: #ffffff !important;
    box-shadow: 0 4px 18px rgba(255, 255, 255, 0.35) !important;
}

.btn-oauth.btn-yandex:hover:not(:disabled) {
    background: rgba(252, 63, 29, 0.18) !important;
    border-color: #fc3f1d !important;
    box-shadow: 0 4px 18px rgba(252, 63, 29, 0.4) !important;
}

.btn-oauth.btn-vk:hover:not(:disabled) {
    background: rgba(0, 119, 255, 0.18) !important;
    border-color: #0077ff !important;
    box-shadow: 0 4px 18px rgba(0, 119, 255, 0.4) !important;
}

.btn-oauth.btn-discord:hover:not(:disabled) {
    background: rgba(88, 101, 242, 0.18) !important;
    border-color: #5865f2 !important;
    box-shadow: 0 4px 18px rgba(88, 101, 242, 0.4) !important;
}

@media (max-width: 380px) {
    .oauth-buttons {
        gap: 6px;
    }
    .btn-oauth {
        height: 42px;
        border-radius: 8px;
    }
    .btn-oauth svg {
        width: 20px;
        height: 20px;
    }
}

#telegramWidgetContainer {
    display: none;
    justify-content: center;
    margin-top: 0.5rem;
}

/* --- Cyberpunk Real-Time Update Banner --- */
.cyber-update-banner {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 440px;
    background: rgba(4, 9, 18, 0.94);
    border: 1px solid #00f0ff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(0, 240, 255, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 999999;
    font-family: 'JetBrains Mono', monospace;
    opacity: 0;
    transform: translateY(-20px) scale(0.96);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

.cyber-update-banner.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.update-banner-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00f0ff, #00ff66, #b5179e);
    border-radius: 10px 10px 0 0;
}

.update-banner-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(0, 240, 255, 0.12);
    border: 1px solid rgba(0, 240, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #00f0ff;
    animation: updateIconSpin 4s linear infinite;
}

@keyframes updateIconSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.update-banner-content {
    flex: 1;
    min-width: 0;
}

.update-banner-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 800;
    color: #00f0ff;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.update-pulse-led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff66;
    box-shadow: 0 0 10px #00ff66;
    animation: updateLedBlink 1.2s infinite ease-in-out;
}

@keyframes updateLedBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}

.update-banner-desc {
    font-size: 0.72rem;
    color: #94a3b8;
    line-height: 1.35;
}

.update-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-update-apply {
    background: linear-gradient(135deg, #00f0ff 0%, #00ff66 100%);
    color: #02060c;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.45);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-update-apply:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #00f0ff;
}

.btn-update-dismiss {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.15s ease;
}

.btn-update-dismiss:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .cyber-update-banner {
        top: calc(env(safe-area-inset-top, 0px) + 10px);
        left: 12px;
        right: 12px;
        max-width: none;
        padding: 12px 14px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .update-banner-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ==========================================================
   Live Password Validation & Security Rules Component
   ========================================================== */
.password-rules-box {
    background: #090e1c;
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 10px;
    padding: 12px 14px;
    margin-top: 8px;
    margin-bottom: 12px;
    text-align: left;
    box-sizing: border-box;
    transition: all 0.25s ease;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

.rules-meter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.rules-meter-header .meter-title {
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.rules-meter-header .meter-label {
    color: #ef4444;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    transition: color 0.25s ease;
}

.rules-meter-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

.rules-meter-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: #ef4444;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s ease, box-shadow 0.25s ease;
}

.rules-checklist {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 12px;
}

@media (max-width: 440px) {
    .rules-checklist {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

.rule-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.73rem;
    color: #64748b;
    font-family: 'JetBrains Mono', monospace;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.rule-item .rule-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    font-size: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #64748b;
    flex-shrink: 0;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rule-item.valid {
    color: #00ff66 !important;
    text-shadow: 0 0 8px rgba(0, 255, 102, 0.35);
}

.rule-item.valid .rule-icon {
    background: rgba(0, 255, 102, 0.22) !important;
    border-color: #00ff66 !important;
    color: #00ff66 !important;
    box-shadow: 0 0 8px rgba(0, 255, 102, 0.45) !important;
}
