* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Inter, sans-serif;
}

.graph-tooltip{

    position:fixed;

    background:linear-gradient(135deg, rgba(24, 42, 82, 0.92), rgba(8, 14, 28, 0.92));

    color:#edf3ff;

    padding:10px 14px;

    border-radius:10px;

    border:1px solid rgba(132,166,255,.42);

    pointer-events:none;

    opacity:0;

    transition:.15s;

    font-size:14px;

    z-index:9999;

    box-shadow:0 12px 28px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.1);

    backdrop-filter:blur(16px) saturate(1.25);

    -webkit-backdrop-filter:blur(16px) saturate(1.25);

}

.graph-tooltip.show{

    opacity:1;

}
html {
    background-image: linear-gradient(rgba(6, 10, 21, 0.48), rgba(6, 10, 21, 0.62)), url("../background.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    background-color: #111111;
    min-height: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-bottom: 24px;
}
html, body {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: none;
    -webkit-overflow-scrolling: touch;
}
body {
    padding-bottom: 30px;
}
#sw-input-screen {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
body {
    color: white;
    text-align: center;
    min-height: 100vh;
    overscroll-behavior-y: none;
}

h1 {
    margin-top: 12px;
    transform: translateY(-12px);
    color: #b9c5eb
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #333333; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #555555; }

/* Navbar */
.navbar {
    width: 100%;
    height: 76px;
    background: rgba(10, 14, 24, 0.82);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 clamp(20px, 5vw, 64px);
    border-bottom: 1px solid rgba(130, 160, 255, 0.16);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(22px) saturate(1.15);
    -webkit-backdrop-filter: blur(22px) saturate(1.15);
    position: relative;
    z-index: 10;
}

.logo {
    height: 48px;
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 700;
    letter-spacing: 0.12em;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: -4px;
}

.logo img {
    display: block;
    width: auto;
    height: 34px;
    object-fit: contain;
}

.logo span { color: white; }

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.8vw, 36px);
    margin-left: auto;
}

.nav-links a {
    color: #aeb7cd;
    text-decoration: none;
    font-size: clamp(0.82rem, 1.25vw, 1.08rem);
    font-weight: 500;
    letter-spacing: 0.03em;
    padding: 28px 0 24px;
    position: relative;
    transition: color 0.2s ease;
}

.nav-links a:hover { color: #f0f4ff; }

.nav-links a.active {
    color: #e6edff;
    font-weight: 650;
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 17px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #8aa8ff, #2950ac);
    box-shadow: 0 0 12px rgba(74, 110, 255, 0.48);
}

@media (max-width: 560px) {
    .navbar { padding: 0 8px; }
    .logo {
        height: 42px;
        gap: 4px;
        font-size: 15px;
        letter-spacing: 0.04em;
        margin-left: 0;
    }
    .logo img { height: 22px; }
    .nav-links { gap: 3px; }
    .nav-links a {
        font-size: clamp(0.58rem, 2.6vw, 0.74rem);
        letter-spacing: 0;
    }

    .account-container {
        width: calc(100vw - 20px);
        padding-left: 10px;
        padding-right: 10px;
    }

    .username-inline-form {
        flex-direction: column;
    }

    .username-inline-form .btn-secondary {
        min-height: 44px;
    }
}

/* Container */
.container { margin-top: 45px; }

.timer-page,
.stopwatch-page {
    min-height: 100vh;
}

.timer-page .container,
.stopwatch-page .container {
    min-height: calc(100vh - 76px);
    margin-top: 0;
    padding: 40px 24px 80px;
    position: relative;
    top: -4vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.timer-page h1,
.stopwatch-page h1 {
    margin-top: 0;
    transform: none;
    margin-bottom: 28px;
}

#input-screen {
    margin-top: 8px;
}

/* Screens */
.screen { transition: opacity 0.5s ease; }
.visible { opacity: 1; pointer-events: all; }
.hidden { opacity: 0; pointer-events: none; height: 0; overflow: hidden; }

/* Input screen layout */
#input-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Time inputs row */
#time-inputs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* Input boxes */
.time-box input {
    width: clamp(84px, 16vw, 190px);
    height: clamp(84px, 16vw, 190px);
    font-size: clamp(38px, 7vw, 82px);
    text-align: center;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(22, 34, 64, 0.34), rgba(4, 8, 18, 0.58));
    color: #2950ac;
    border: 1px solid rgba(132, 166, 255, 0.2);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.045), 0 14px 30px rgba(0,0,0,0.3);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.time-box input:focus {
    border-color: rgba(110, 155, 255, 0.75);
    box-shadow: 0 0 0 3px rgba(74, 110, 255, 0.16), inset 0 1px 0 rgba(255,255,255,0.1);
}

input::placeholder { color: #2950ac; }

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; }

/* Timer display boxes */
.timer-box {
    width: clamp(84px, 16vw, 190px);
    height: clamp(84px, 16vw, 190px);
    font-size: clamp(38px, 7vw, 82px);
    text-align: center;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(22, 34, 64, 0.34), rgba(4, 8, 18, 0.58));
    color: #2950ac;
    border: 1px solid rgba(132, 166, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.045), 0 14px 30px rgba(0,0,0,0.3);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.subject-display {
    margin-top: 12px;
    padding: 12px 18px;
    border: 1px solid #2950ac;
    border-radius: 10px;
    background: #111111;
    color: white;
    font-weight: 600;
    display: inline-block;
    min-width: 180px;
    text-align: center;
    font-weight: 400;
}

.colon { font-size: 40px; margin-bottom: 30px; }

label {
    font-size: 12px;
    letter-spacing: 2px;
    color: #b9c5eb;
}

/* Buttons */
#btn-container {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.startBtn {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(84, 120, 216, 0.95), rgba(41, 80, 172, 0.95));
    border: 1px solid rgba(147, 176, 255, 0.4);
    border-radius: 50px;
    color: #f4f7ff;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: all 0.25s ease;
    box-shadow:
        0 8px 20px rgba(41, 80, 172, 0.28),
        inset 0 1px 0 rgba(255,255,255,0.12);
}

.startBtn:hover {
    background: linear-gradient(135deg, rgba(95, 132, 235, 1), rgba(49, 92, 194, 1));
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(41, 80, 172, 0.35);
}

.startBtn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 110, 255, 0.2), 0 12px 28px rgba(41, 80, 172, 0.35);
}

.startBtn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.startBtn:active { transform: translateY(1px) scale(0.99); }

/* Dropdown */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: min(420px, 86vw);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)),
        linear-gradient(135deg, rgba(41,80,172,0.28), rgba(32,50,92,0.22));
    background-color: rgba(17, 17, 17, 0.9);
    color: #f5f5f5;
    border: 1px solid rgba(41, 80, 172, 0.52);
    border-radius: 16px;
    padding: 14px 52px 14px 18px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.05),
        0 12px 28px rgba(0,0,0,0.22),
        0 0 0 1px rgba(255,255,255,0.02);
    transition: all 0.2s ease;
    background-image:
        linear-gradient(45deg, transparent 50%, #7aa2ff 50%),
        linear-gradient(135deg, #7aa2ff 50%, transparent 50%),
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)),
        linear-gradient(135deg, rgba(41,80,172,0.28), rgba(32,50,92,0.22));
    background-position:
        calc(100% - 20px) calc(50% - 3px),
        calc(100% - 14px) calc(50% - 3px),
        center,
        center;
    background-size: 6px 6px, 6px 6px, cover, cover;
    background-repeat: no-repeat;
}

select:hover {
    border-color: rgba(90, 130, 255, 0.7);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 16px 34px rgba(0,0,0,0.26),
        0 0 0 1px rgba(90,130,255,0.12);
}

select:focus {
    outline: none;
    border-color: rgba(110, 155, 255, 0.9);
    box-shadow:
        0 0 0 3px rgba(74, 110, 255, 0.18),
        0 18px 40px rgba(0,0,0,0.28);
}

select option {
    background: #1a1a1a;
    color: white;
    padding: 12px;
}

/* Log */
#log { margin-top: 30px; }

/* Coming soon */
.coming-soon {
    margin-top: 200px;
    font-size: 24px;
    color: #aaaaaa;
}
#subject-display {
    margin-top: 15px;
    padding: 10px 24px;
    background: #222222;
    border-radius: 50px;
    font-size: 1rem;
    color: white;
    display: inline-block;
}
#btn-container {
    margin-top: 15px;
}

.session-notification {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1100;
    max-width: min(360px, calc(100vw - 32px));
    padding: 14px 22px;
    border: 1px solid rgba(141, 174, 255, 0.42);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(31, 58, 119, 0.9), rgba(8, 16, 34, 0.9));
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255,255,255,0.12);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    color: #edf3ff;
    font-size: 0.92rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px) scale(0.96);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.session-notification.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.onyx-minibar {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(24, 42, 82, 0.78), rgba(8, 14, 28, 0.72));
    border: 1px solid rgba(132, 166, 255, 0.3);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255,255,255,0.1);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    color: #f5f5f5;
    min-width: 220px;
}

.onyx-minibar.hidden {
    display: none;
}

.onyx-minibar__title {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #9bb8ff;
    font-weight: 700;
}

.onyx-minibar__value {
    font-size: 1rem;
    font-weight: 700;
    color: white;
}

.onyx-minibar__meta {
    font-size: 0.8rem;
    color: #9a9a9a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 560px) {
    .timer-page .container,
    .stopwatch-page .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .timer-page #time-inputs,
    .stopwatch-page #time-inputs {
        gap: 5px;
        max-width: 100%;
    }

    .timer-page .colon,
    .stopwatch-page .colon {
        font-size: 26px;
    }

    .timer-page .onyx-minibar,
    .stopwatch-page .onyx-minibar {
        right: 10px;
        left: 10px;
        min-width: 0;
    }
}
/* Base Resets & Global Visual Accents */
:root {
    --bg-gradient: radial-gradient(circle at top right, #111424, #07080f);
    --surface-glass: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.06);
    --text-primary: #ffffff;
    --text-secondary: #8a8f9f;
    --accent-glow: #2950ac;
    --skeleton-bg: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
}

body.premium-theme {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background:
        linear-gradient(180deg, rgba(6, 10, 21, 0.48), rgba(6, 10, 21, 0.62)),
        url("../background.jpg") center center / cover no-repeat fixed;
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Glassmorphic Dashboard Layout Blueprint */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 8rem 1.5rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-group h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
}

/* Premium Analytics Grid Matrix */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.metric-card {
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1.75rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.metric-card:hover {
    border-color: rgba(80, 100, 230, 0.3);
    transform: translateY(-2px);
}

/* Smooth Infinite Loading Skeleton Systems */
.skeleton-line, .skeleton-avatar {
    background: var(--skeleton-bg);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.6s infinite linear;
    border-radius: 4px;
}

.skeleton-line.title {
    height: 1.5rem;
    width: 70%;
    margin-bottom: 0.75rem;
}

.skeleton-line.short {
    height: 0.85rem;
    width: 40%;
}

.skeleton-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Production-Ready Global Footer Architecture (Requirement #1) */
.account-container {
    width: min(640px, calc(100vw - 32px));
    max-width: 640px;
    min-height: calc(100vh - 76px);
    margin: 0 auto;
    padding: clamp(20px, 4vw, 44px) clamp(16px, 3vw, 32px) 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card, .dashboard-profile-card {
    width: 100%;
    background: linear-gradient(180deg, rgba(18, 24, 38, 0.42), rgba(10, 14, 22, 0.28));
    border: 1px solid rgba(140, 168, 255, 0.24);
    backdrop-filter: blur(28px) saturate(1.2);
    -webkit-backdrop-filter: blur(28px) saturate(1.2);
    border-radius: 24px;
    padding: clamp(1.35rem, 4vw, 2.5rem);
    box-shadow:
        0 22px 60px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.badge-accent {
    display: inline-block;
    background: rgba(90, 130, 255, 0.14);
    color: #b7c8ff;
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    border: 1px solid rgba(130, 160, 255, 0.25);
}

.auth-header h2, .profile-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 0.5rem 0;
}

.auth-header p, .setting-desc, .danger-zone p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 2rem 0;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.input-group label, .profile-setting-block h3, .danger-zone h3 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.profile-setting-block h3, .danger-zone h3 {
    color: var(--text-primary);
    font-size: 1rem;
    letter-spacing: -0.01em;
    text-transform: none;
    margin: 0 0 0.35rem 0;
}

.input-group input, .username-inline-form input {
    background: rgba(8, 12, 18, 0.32);
    border: 1px solid rgba(128, 154, 255, 0.18);
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    backdrop-filter: blur(10px);
}

.input-group input:focus, .username-inline-form input:focus {
    outline: none;
    border-color: var(--accent-glow);
    box-shadow: 0 0 0 3px rgba(41, 80, 172, 0.18);
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #3f6ad8, #2950ac);
    color: #ffffff;
    border: none;
    padding: 0.95rem;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 1rem;
    box-shadow: 0 10px 20px rgba(41, 80, 172, 0.22);
}

.btn-primary:hover { background: linear-gradient(135deg, #3158bf, #23489a); }
.btn-primary:active { transform: scale(0.99); }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1.25rem 0;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: rgba(132, 166, 255, 0.16);
}

.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0.85rem;
    border: 1px solid rgba(132, 166, 255, 0.2);
    border-radius: 12px;
    background: rgba(8, 12, 18, 0.34);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-google:hover {
    background: rgba(41, 80, 172, 0.2);
    border-color: rgba(132, 166, 255, 0.48);
    transform: translateY(-1px);
}

.google-mark {
    color: #8aa8ff;
    font-size: 1.05rem;
    font-weight: 800;
}

.auth-toggle {
    margin-top: 1.75rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.auth-toggle button {
    background: none;
    border: none;
    color: #8aa8ff;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
    margin-left: 0.25rem;
}

.auth-link-button {
    display: block;
    margin: -0.45rem 0 0.25rem auto;
    padding: 0;
    border: 0;
    background: none;
    color: #8aa8ff;
    font: inherit;
    font-size: 0.8rem;
    cursor: pointer;
}

.auth-link-button:hover { color: #c7d6ff; }

.auth-card .status-msg,
.auth-card .error-message {
    margin: 0.75rem 0;
    line-height: 1.4;
}

/* Dashboard Profile Additions */
.profile-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 1.75rem;
    margin-bottom: 2rem;
}

.account-rank-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: -0.5rem 0 2rem;
    padding: 22px;
    text-align: center;
    border: 1px solid rgba(132, 166, 255, 0.18);
    border-radius: 14px;
    background: rgba(8, 14, 28, 0.28);
}

.account-rank-display img {
    width: 88px;
    height: 88px;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(41, 80, 172, 0.3));
}

.account-rank-display > div {
    width: 100%;
}

.account-rank-label {
    color: #8aa8ff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.account-rank-title {
    color: #f0f4ff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 2px;
}

.account-rank-level {
    color: #9aabca;
    font-size: 0.78rem;
    margin-top: 2px;
}

.account-rank-level strong {
    color: #dce6ff;
}

.avatar-glow {
    width: 72px;
    height: 72px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.avatar-glow:hover {
    transform: translateY(-2px);
    box-shadow: none;
}

.avatar-glow img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.profile-avatar-picker {
    position: relative;
    flex: 0 0 auto;
}

.status-indicator {
    margin: 0;
    font-size: 0.825rem;
    color: #4ade80;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 8px #4ade80;
}

.profile-setting-block {
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.username-inline-form {
    display: flex;
    gap: 0.75rem;
}

.username-inline-form input { flex: 1; }

.account-select {
    width: 100%;
    margin-top: 0.25rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 0 1.5rem;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }

.danger-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    border: 1px solid rgba(239, 68, 68, 0.18);
    background: rgba(80, 22, 28, 0.14);
    padding: 1.1rem 1.2rem;
    border-radius: 14px;
    margin-bottom: 2.5rem;
}

.danger-zone-copy {
    min-width: 0;
}

.danger-zone h3 {
    color: #f2c2c7;
    margin-bottom: 0.25rem;
}

.danger-zone p {
    margin: 0;
    color: #a89195;
    font-size: 0.78rem;
    line-height: 1.4;
}

.btn-danger {
    width: 100%;
    background: rgba(177, 48, 62, 0.78);
    color: #ffffff;
    border: 1px solid rgba(255, 142, 153, 0.28);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.btn-danger:hover { background: #dc2626; }

.btn-ghost {
    background: none;
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    width: 100%;
    transition: color 0.2s, border-color 0.2s;
}

.btn-ghost:hover { color: var(--text-primary); border-color: rgba(255,255,255,0.2); }

.error-message {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.danger-zone .error-message {
    width: 100%;
    margin: 0;
}

.status-msg { font-size: 0.85rem; margin-top: 0.5rem; font-weight: 500; }
.hidden { display: none !important; }

@media (max-width: 560px) {
    .account-container {
        width: calc(100vw - 20px);
        padding-left: 10px;
        padding-right: 10px;
    }

    .username-inline-form {
        flex-direction: column;
    }

    .username-inline-form .btn-secondary {
        min-height: 44px;
    }
}
/* =========================================================================
   ONYX CHILE-STYLE MINIMAL FOOTER & SPACING EXTENSIONS (DO NOT ERASE ABOVE)
   ========================================================================= */
.global-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(7, 8, 15, 0.85); /* Onyx rich dark background overlay */
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Onyx glass thin border */
    padding: 1.5rem 3rem;
    z-index: 1000;
}

.chiles-clean-footer {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: 0.06em;
    font-size: 0.725rem;
    font-weight: 500;
}

.chiles-meta-group {
    display: flex;
    align-items: center;
    color: #8a8f9f; /* Onyx text secondary */
    gap: 0.75rem;
}

.chiles-title-accent {
    font-weight: 700;
    color: #ffffff; /* Onyx main white text */
}

.chiles-vertical-pipe {
    opacity: 0.2;
    color: #ffffff;
}

.chiles-link-matrix {
    display: flex;
    gap: 2.25rem;
}

.chiles-link-matrix a {
    color: #8a8f9f; /* Onyx text secondary */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.chiles-link-matrix a:hover {
    color: #ffffff; /* Onyx hover contrast glow accent */
}

/* Push primary layout container elements clear of the fixed bottom overlay */
main, .dashboard-container, .account-container {
    padding-bottom: 7rem !important;
}
