v3 · 37 files

ProjectElly/options/options.css 44.8 KB Raw
/* ==================== ELLY PREMIUM DASHBOARD THEME ==================== */

:root {
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
    --dark-bg: #0a0a1b;
    --card-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    /* Native <select> / options: solid surfaces (fixes white-on-white system dropdowns) */
    --select-surface: #0f172a;
    --select-surface-hover: #1e293b;
    --select-text: #f1f5f9;
    --accent-blue: #60a5fa;
    --accent-purple: #a78bfa;
    --accent-pink: #f472b6;
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;
}

/* Dark UI: tell the browser to render form controls for dark surfaces (Chromium/Opera dropdown lists). */
html {
    color-scheme: dark;
}

/* ==================== BASE STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

    /* Animated background */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.15) 0%, transparent 50%), radial-gradient(circle at 50% 50%, rgba(217, 70, 239, 0.1) 0%, transparent 60%);
        animation: meshMove 20s ease-in-out infinite;
        pointer-events: none;
        z-index: 0;
    }

@keyframes meshMove {
    0%, 100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, -20px);
    }
}

@keyframes ellyHeaderGradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes ellyHeaderGlowPulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 0.75;
        transform: scale(1.05);
    }
}

@keyframes ellyHeaderBarShimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(200%);
    }
}

/* ==================== CONTAINER ==================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    background: transparent;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ==================== HEADER ==================== */
header {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background:
        linear-gradient(90deg,
            rgba(10, 10, 27, 0.58) 0%,
            rgba(10, 10, 27, 0.16) 16%,
            rgba(10, 10, 27, 0.00) 32%,
            rgba(10, 10, 27, 0.00) 68%,
            rgba(10, 10, 27, 0.16) 84%,
            rgba(10, 10, 27, 0.58) 100%
        ),
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.06) 0%,
            rgba(255, 255, 255, 0.02) 42%,
            rgba(10, 10, 27, 0.30) 76%,
            rgba(10, 10, 27, 0.52) 100%
        ),
        linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background-size: 300% 300%;
    animation: ellyHeaderGradientShift 15s ease infinite;
    backdrop-filter: blur(20px);
    border-bottom: none;
    color: white;
    padding-top: 32px;
    padding-bottom: 32px;
    padding-left: max(40px, calc((100vw - 1400px) / 2 + 40px));
    padding-right: max(40px, calc((100vw - 1400px) / 2 + 40px));
    position: sticky;
    top: 0;
    z-index: 100;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3), 0 0 100px rgba(99, 102, 241, 0.1) inset;
}

    header::before {
        content: '';
        position: absolute;
        inset: 0;
        background:
            radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.28) 0%, transparent 60%),
            radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.18) 0%, transparent 60%);
        animation: ellyHeaderGlowPulse 6s ease-in-out infinite;
        pointer-events: none;
        z-index: 0;
    }

    header::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
        animation: ellyHeaderBarShimmer 3s ease-in-out infinite;
        pointer-events: none;
        z-index: 0;
    }

    header h1 {
        display: flex;
        align-items: center;
        gap: 16px;
        margin-bottom: 24px;
        font-size: 32px;
        font-weight: 800;
        letter-spacing: -0.5px;
    }

        header h1 .ti {
            font-size: 36px;
            color: #fff;
            filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.28));
        }

.header-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

    .header-toolbar h1 {
        margin-bottom: 0;
    }

.header-premium-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.header-premium-caption {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.03em;
    text-align: right;
    line-height: 1.35;
    max-width: 220px;
}

.header-premium-price {
    display: inline-block;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #fde047;
    text-shadow:
        0 0 16px rgba(250, 204, 21, 0.9),
        0 0 6px rgba(251, 191, 36, 0.6),
        0 1px 2px rgba(0, 0, 0, 0.45);
}

.btn-premium-top {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(251, 191, 36, 0.45);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.18), rgba(217, 70, 239, 0.12));
    color: #fde68a;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

    .btn-premium-top:hover {
        box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.25);
        transform: translateY(-1px);
    }

.elly-premium-panel {
    margin: 20px 40px 24px;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.65);
    position: relative;
    z-index: 1;
    scroll-margin-top: 24px;
}

.elly-premium-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}

@media (max-width: 960px) {
    .elly-premium-grid {
        grid-template-columns: 1fr;
    }
}

.elly-premium-col h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.elly-field-label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

/* Match global input[type="…"] block (padding/radius/background) so email/url/tel/password look identical */
.elly-input {
    width: 100%;
    margin-top: 6px;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

    .elly-input:focus {
        outline: none;
        border-color: var(--accent-purple);
        background: rgba(255, 255, 255, 0.08);
        box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
    }

    .elly-input::placeholder {
        color: var(--text-secondary);
    }

.elly-input-readonly {
    opacity: 0.92;
    cursor: default;
    background: rgba(255, 255, 255, 0.04);
}

.elly-login-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 14px 0;
}

.elly-login-stack .elly-key-field-wrap {
    margin-bottom: 12px;
}

.elly-login-stack .elly-field-label {
    margin-bottom: 4px;
}

.elly-login-stack .elly-input {
    margin-top: 0;
}

.elly-login-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 4px;
}

.elly-login-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0;
    align-items: center;
}

    .elly-login-row .elly-input {
        flex: 1 1 160px;
        margin-top: 0;
    }

/* Register modal — legal links + toggle switches (Vril Hosting parity, switch instead of checkbox) */
.elly-register-modal {
    max-width: min(520px, 94vw);
    max-height: min(900px, 92vh);
}

.elly-register-modal .elly-modal-inner {
    max-height: 92vh;
    overflow-y: auto;
}

.elly-register-lead {
    margin-bottom: 14px !important;
}

.elly-register-fields {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.elly-register-switches {
    margin-top: 8px;
    padding: 14px 0 4px;
    border-top: 1px dashed var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.elly-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.elly-switch-label {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    flex: 1;
    min-width: 0;
}

.elly-inline-link {
    color: var(--accent-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

    .elly-inline-link:hover {
        color: #93c5fd;
    }

.elly-switch {
    position: relative;
    display: inline-flex;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
    cursor: pointer;
}

    .elly-switch input {
        opacity: 0;
        width: 0;
        height: 0;
        position: absolute;
    }

.elly-switch-slider {
    position: absolute;
    inset: 0;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid var(--glass-border);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

    .elly-switch-slider::before {
        content: '';
        position: absolute;
        height: 20px;
        width: 20px;
        left: 3px;
        bottom: 2px;
        border-radius: 50%;
        background: #e2e8f0;
        transition: transform 0.2s ease;
    }

    .elly-switch input:checked + .elly-switch-slider {
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.85), rgba(139, 92, 246, 0.85));
        border-color: rgba(99, 102, 241, 0.45);
    }

    .elly-switch input:checked + .elly-switch-slider::before {
        transform: translateX(20px);
        background: #fff;
    }

    .elly-switch input:focus-visible + .elly-switch-slider {
        box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.45);
    }

.elly-register-error {
    margin-top: 12px;
    margin-bottom: 0;
    color: var(--danger);
    font-size: 13px;
    line-height: 1.45;
}

.elly-status-line {
    font-size: 13px;
    line-height: 1.45;
    color: var(--accent-blue);
    margin: 12px 0;
    min-height: 1.2em;
}

.elly-key-block {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed var(--glass-border);
}

.elly-key-signin-hint {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-secondary);
}

.elly-mfa-block {
    margin: 12px 0;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: rgba(99, 102, 241, 0.06);
}

.elly-mfa-block .btn-primary {
    margin-top: 4px;
}

.elly-key-field-wrap {
    margin-bottom: 12px;
}

.elly-key-field-wrap .elly-input {
    display: block;
    width: 100%;
    margin-top: 6px;
}

.elly-key-field-wrap .elly-input:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.elly-key-stored-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(52, 211, 153, 0.25);
    background: rgba(16, 185, 129, 0.06);
}

.elly-key-stored-msg {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

    .elly-key-stored-msg .ti {
        color: var(--success);
    }

.btn-link-elly {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: var(--accent-blue);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 4px 6px;
}

    .btn-link-elly:hover {
        color: #93c5fd;
    }

.elly-greeting-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(52, 211, 153, 0.35);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(99, 102, 241, 0.08));
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.elly-greeting-main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex: 1 1 220px;
    min-width: 0;
}

.elly-greeting-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(52, 211, 153, 0.2);
    color: var(--success);
    font-size: 22px;
    flex-shrink: 0;
}

.elly-greeting-copy {
    min-width: 0;
}

.elly-greeting-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--success);
    margin: 0 0 4px;
}

.elly-greeting-line {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--text-primary);
    margin: 0;
    word-break: break-word;
}

.elly-toast-host {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
}

.elly-toast {
    max-width: min(420px, 92vw);
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.92);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

    .elly-toast--show {
        opacity: 1;
        transform: translateY(0);
    }

    .elly-toast--info {
        border-color: rgba(96, 165, 250, 0.35);
    }

    .elly-toast--success {
        border-color: rgba(52, 211, 153, 0.45);
    }

    .elly-toast--warning {
        border-color: rgba(251, 191, 36, 0.45);
        color: #fef3c7;
    }

/* Explicit width + min-width: <dialog> + container queries must not collapse to a narrow strip (Opera/Chromium). */
.elly-modal {
    width: min(480px, calc(100vw - 32px));
    min-width: min(280px, 100%);
    max-width: min(480px, 94vw);
    box-sizing: border-box;
    margin: auto;
    padding: 0;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    background: #0f172a;
    color: var(--text-primary);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

/* Container queries on the dialog, not .elly-modal-inner — inner + container-type:inline-size caused width collapse. */
.elly-pin-prompt-modal {
    container-type: inline-size;
    container-name: elly-pin-shell;
}

    .elly-modal::backdrop {
        background: rgba(0, 0, 0, 0.55);
    }

.elly-modal-inner {
    padding: 28px;
}

.elly-modal-body-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-secondary);
    white-space: pre-wrap;
}

    .elly-modal-inner h3 {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 12px;
        font-size: 1.15rem;
    }

.elly-modal-actions {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.elly-pin-prompt-modal .elly-modal-inner {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.62), 0 0 70px rgba(99, 102, 241, 0.18) inset;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

    .elly-pin-prompt-modal .elly-modal-inner::before {
        content: '';
        position: absolute;
        inset: -40%;
        background:
            radial-gradient(circle at 28% 30%, rgba(99, 102, 241, 0.22) 0%, transparent 45%),
            radial-gradient(circle at 72% 68%, rgba(217, 70, 239, 0.17) 0%, transparent 45%);
        animation: meshMove 16s ease-in-out infinite;
        pointer-events: none;
        z-index: 0;
    }

    .elly-pin-prompt-modal .elly-modal-inner > * {
        position: relative;
        z-index: 1;
    }

/*
 * Per-digit PIN layouts (Parent PIN dialog, etc.):
 * — Wide shell: one row of N cells (--pin-len from JS, max 12).
 * — Narrow: exactly 4 columns so 12 → 4+4+4; shorter PINs wrap in rows of 4.
 * Same rules are mirrored on pin/pin.html for the 8-digit access PIN display.
 */
.elly-pin-prompt-inputs {
    --pin-len: 12;
    display: grid;
    gap: 8px;
    margin-top: 12px;
    /* Default (narrow modal): exactly 4 columns → 12 digits = 3 rows of 4 */
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: auto;
    align-content: start;
}

/* Wide enough (~480px modal minus padding ≈424px): one row of N cells (--pin-len from JS) */
@container elly-pin-shell (min-width: 410px) {
    .elly-pin-prompt-inputs {
        grid-template-columns: repeat(var(--pin-len), minmax(0, 1fr));
    }
}

.elly-pin-digit {
    width: 100%;
    min-width: 0;
    height: 44px;
    text-align: center;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: rgba(10, 10, 27, 0.5);
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0;
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

    .elly-pin-digit:focus {
        outline: none;
        border-color: rgba(96, 165, 250, 0.9);
        box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.28), 0 10px 22px rgba(99, 102, 241, 0.25);
        transform: translateY(-1px);
    }

.elly-pin-prompt-error {
    margin-top: 10px;
    margin-bottom: 0;
    color: var(--warning);
    font-size: 13px;
    line-height: 1.4;
}

/* ==================== NAVIGATION TABS ==================== */
nav {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 12px 0 18px;
    margin-bottom: 6px;
    scrollbar-width: none;
    position: relative;
    z-index: 1;
}

    nav::-webkit-scrollbar {
        display: none;
    }

.tab-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.3s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

    .tab-btn:hover {
        background: var(--primary-gradient);
        border-color: transparent;
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(99, 102, 241, 0.32);
    }

    .tab-btn.active {
        background: var(--primary-gradient);
        color: #fff;
        border-color: transparent;
        box-shadow: 0 10px 28px rgba(99, 102, 241, 0.42);
    }

    .tab-btn .ti {
        font-size: 18px;
    }

.tab-lock-icon {
    font-size: 14px !important;
    opacity: 0.9;
    color: #fbbf24;
}

.nav-lock-btn {
    margin-left: auto;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 10px;
    border: 1px solid rgba(251, 191, 36, 0.45);
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

    .nav-lock-btn .ti {
        font-size: 18px;
    }

    .nav-lock-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 22px rgba(251, 191, 36, 0.28);
    }

    .nav-lock-btn.is-locked {
        border-color: rgba(248, 113, 113, 0.5);
        background: rgba(239, 68, 68, 0.14);
        color: #fca5a5;
    }

    .nav-lock-btn.is-locked:hover {
        box-shadow: 0 8px 22px rgba(239, 68, 68, 0.28);
    }

    .nav-lock-btn.is-unlocked {
        border-color: rgba(52, 211, 153, 0.45);
        background: rgba(16, 185, 129, 0.12);
        color: #6ee7b7;
    }

    .nav-lock-btn.is-unlocked:hover {
        box-shadow: 0 8px 22px rgba(16, 185, 129, 0.28);
    }

/* ==================== MAIN CONTENT ==================== */
main {
    padding: 40px;
    margin-top: 16px;
    position: relative;
    z-index: 1;
    scroll-margin-top: 24px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

    .tab-content.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== HEADINGS ==================== */
h2 {
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
}

    h2 .ti {
        font-size: 32px;
        background: var(--primary-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

h3 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin: 24px 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

    h3 .ti {
        color: var(--accent-purple);
        font-size: 20px;
    }

h4 {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* ==================== INPUT GROUPS ==================== */
.input-group {
    display: flex;
    gap: 12px;
    margin: 24px 0;
}

.url-input {
    flex: 1;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="search"],
input[type="number"],
input[type="password"],
input[type="time"],
select,
textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.3s;
}

    input::placeholder,
    textarea::placeholder {
        color: var(--text-secondary);
    }

    input:focus,
    select:focus,
    textarea:focus {
        outline: none;
        border-color: var(--accent-purple);
        background: rgba(255, 255, 255, 0.08);
        box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
    }

/* ==================== BUTTONS ==================== */
button {
    font-family: inherit;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

    button::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }

    button:active::before {
        width: 300px;
        height: 300px;
    }

.btn-add,
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-focus,
.btn-save,
.btn-delete {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.btn-add,
.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

    .btn-add:hover,
    .btn-primary:hover {
        box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4);
        transform: translateY(-2px);
    }

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

    .btn-secondary:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }

.btn-danger,
.btn-delete {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
}

    .btn-danger:hover,
    .btn-delete:hover {
        box-shadow: 0 12px 32px rgba(239, 68, 68, 0.4);
        transform: translateY(-2px);
    }

.btn-focus,
.btn-save {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

    .btn-focus:hover,
    .btn-save:hover {
        box-shadow: 0 12px 32px rgba(16, 185, 129, 0.4);
        transform: translateY(-2px);
    }

.remove-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s;
}

    .remove-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    }

/* ==================== PRESETS ==================== */
.presets {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 24px;
    border-radius: 16px;
    margin: 32px 0;
}

.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.preset-btn {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .preset-btn:hover {
        background: var(--primary-gradient);
        border-color: transparent;
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
    }

    .preset-btn .ti {
        font-size: 18px;
    }

.presets-hint {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.presets .input-group {
    margin-top: 16px;
}

.presets-list-heading {
    margin: 20px 0 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

    .presets-list-heading .ti {
        font-size: 18px;
        opacity: 0.9;
    }

.presets .site-list {
    margin-top: 12px;
}

/* ==================== LISTS ==================== */
.site-list {
    list-style: none;
    max-height: 400px;
    overflow-y: auto;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

    .site-list li {
        padding: 16px 20px;
        border-bottom: 1px solid var(--glass-border);
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: all 0.3s;
    }

        .site-list li:last-child {
            border-bottom: none;
        }

        .site-list li:hover {
            background: rgba(255, 255, 255, 0.05);
        }

/* ==================== LIMITS ==================== */
.limits-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.limit-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 24px;
    border-radius: 16px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

    .limit-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: var(--primary-gradient);
        opacity: 0;
        transition: opacity 0.3s;
    }

    .limit-card:hover {
        transform: translateY(-4px);
        border-color: rgba(255, 255, 255, 0.2);
    }

        .limit-card:hover::before {
            opacity: 1;
        }

.limit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.limit-domain {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 16px;
}

.limit-time {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 14px;
}

.progress-container {
    background: rgba(0, 0, 0, 0.3);
    height: 6px;
    border-radius: 100px;
    margin: 12px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 100px;
    transition: width 0.3s;
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.5);
}

.usage-info {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.limit-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

    .limit-actions button {
        flex: 1;
        padding: 10px;
        font-size: 13px;
    }

/* ==================== SCHEDULES ==================== */
.schedules-list {
    margin-top: 32px;
}

.schedule-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin-bottom: 24px;
    overflow: hidden;
    transition: all 0.3s;
}

    .schedule-card:hover {
        border-color: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }

.schedule-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.schedule-name {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
    padding: 0;
}

.schedule-body {
    padding: 24px;
}

.time-range {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
}

    .time-range label {
        color: var(--text-secondary);
        font-weight: 600;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

.days-selector {
    margin: 24px 0;
}

    .days-selector > label {
        display: block;
        color: var(--text-secondary);
        font-weight: 600;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 12px;
    }

.days-buttons {
    display: flex;
    gap: 8px;
}

.day-btn {
    padding: 10px 16px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s;
}

    .day-btn:hover {
        background: rgba(255, 255, 255, 0.08);
    }

    .day-btn.active {
        background: var(--primary-gradient);
        color: white;
        border-color: transparent;
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    }

.schedule-type {
    margin: 24px 0;
}

    .schedule-type label {
        display: block;
        margin: 12px 0;
        color: var(--text-primary);
        font-weight: 500;
        cursor: pointer;
    }

    .schedule-type input[type="radio"] {
        margin-right: 8px;
    }

.schedule-urls {
    width: 100%;
    min-height: 120px;
    margin-top: 12px;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    resize: vertical;
}

.schedule-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* ==================== SETTINGS ==================== */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.setting-item {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 28px;
    border-radius: 16px;
    transition: all 0.3s;
}

    .setting-item:hover {
        transform: translateY(-2px);
        border-color: rgba(255, 255, 255, 0.2);
    }

.setting-control {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .setting-control label {
        color: var(--text-secondary);
        font-weight: 500;
        font-size: 14px;
    }

.setting-control--stacked {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.setting-inline-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.setting-hint {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}

.setting-hint--below {
    margin-top: 4px;
    width: 100%;
    max-width: 100%;
}

.setting-hint--subtle {
    font-size: 12px;
    opacity: 0.9;
}

.setting-hint a {
    color: var(--accent-blue);
    text-decoration: underline;
}

.setting-select-full {
    width: 100%;
    max-width: 100%;
    margin-top: 4px;
    padding: 10px 36px 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background-color: var(--select-surface);
    color: var(--select-text);
    font-size: 14px;
    line-height: 1.45;
    color-scheme: dark;
    cursor: pointer;
}

.setting-select-full:hover:not(:disabled) {
    background-color: var(--select-surface-hover);
    border-color: rgba(148, 163, 184, 0.5);
}

.setting-select-full:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.75);
    background-color: var(--select-surface-hover);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.22);
}

.setting-select-full:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Dropdown list items (where the engine allows styling) */
.setting-select-full option {
    background-color: var(--select-surface);
    color: var(--select-text);
}

/* Selected value must stay readable (closed state) */
#themeSelect.setting-select-full,
#syncFrequency.setting-select-full {
    -webkit-text-fill-color: var(--select-text);
}

/* Visual cue tying the control to the chosen block-page theme */
#themeSelect.setting-select-full[data-block-theme="light"] {
    border-left: 3px solid #cbd5e1;
    padding-left: 9px;
}

#themeSelect.setting-select-full[data-block-theme="dark"] {
    border-left: 3px solid #64748b;
    padding-left: 9px;
}

#themeSelect.setting-select-full[data-block-theme="blue"] {
    border-left: 3px solid #3b82f6;
    padding-left: 9px;
}

.tab-lead {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0 0 20px;
    max-width: 720px;
}

.toggle-with-label {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
}

.toggle-text-block {
    flex: 1;
    min-width: 0;
    line-height: 1.45;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.toggle--row {
    flex-shrink: 0;
    margin-top: 2px;
}

.block-theme-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.preview-chip {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    opacity: 0.55;
    pointer-events: none;
}

.preview-chip--active {
    opacity: 1;
    border-color: rgba(99, 102, 241, 0.6);
    background: rgba(99, 102, 241, 0.15);
}

.data-mgmt-lead {
    margin-bottom: 12px;
}

.data-mgmt-unlock-row {
    margin-top: 0;
}

.pin-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.pin-row .url-input {
    flex: 1;
    min-width: 160px;
}

.pin-row--stacked {
    flex-direction: column;
    align-items: stretch;
}

.pin-row--stacked .url-input {
    width: 100%;
    min-width: 0;
}

/* ==================== PIN MODAL ==================== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-overlay--visible {
    display: flex;
}

.modal-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 28px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.modal-card h3 {
    margin: 0 0 12px;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-hint {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 16px;
}

.modal-field-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 10px 0 6px;
}

.modal-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    font-size: 16px;
    letter-spacing: 0.2em;
}

.modal-error {
    color: var(--danger);
    font-size: 13px;
    margin: 8px 0 0;
}

.modal-save {
    width: 100%;
    margin-top: 16px;
    justify-content: center;
}

/* ==================== TOGGLE SWITCH ==================== */
.toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 12px;
}

    .toggle input {
        display: none;
    }

.toggle-slider {
    width: 56px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    position: relative;
    transition: all 0.3s;
}

    .toggle-slider::before {
        content: '';
        position: absolute;
        width: 24px;
        height: 24px;
        background: white;
        border-radius: 50%;
        top: 3px;
        left: 4px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

.toggle input:checked + .toggle-slider {
    background: var(--primary-gradient);
    border-color: transparent;
}

    .toggle input:checked + .toggle-slider::before {
        transform: translateX(24px);
    }

/* ==================== STATISTICS ==================== */
.stats-header {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.stat-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

    .stat-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: var(--primary-gradient);
        opacity: 0;
        transition: opacity 0.3s;
    }

    .stat-card:hover {
        transform: translateY(-4px);
        border-color: rgba(255, 255, 255, 0.2);
    }

        .stat-card:hover::before {
            opacity: 1;
        }

.stat-number {
    font-size: 48px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .stat-label .ti {
        font-size: 16px;
        color: var(--accent-purple);
    }

/* ==================== CHARTS ==================== */
.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.chart-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 28px;
    border-radius: 16px;
    transition: all 0.3s;
}

    .chart-card:hover {
        transform: translateY(-2px);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .chart-card h3 {
        margin-bottom: 24px;
    }

.export-stats {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

/* ==================== FOOTER ==================== */
footer {
    padding: 24px 40px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 13px;
}

    .footer-info span {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .footer-info .ti {
        color: var(--accent-purple);
    }

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.2);
    }

/* ==================== ICON COLORS ==================== */
.ti-brand-facebook {
    color: #1877F2;
}

.ti-player-play {
    color: #FF0000;
}

.ti-shopping-cart {
    color: #FF9900;
}

.ti-device-gamepad {
    color: #34d399;
}

.ti-news {
    color: #60a5fa;
}

/* ==================== ANIMATIONS ==================== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.setting-item,
.stat-card,
.limit-card,
.schedule-card {
    animation: slideIn 0.5s ease-out backwards;
}

    .setting-item:nth-child(1) {
        animation-delay: 0.05s;
    }

    .setting-item:nth-child(2) {
        animation-delay: 0.1s;
    }

    .setting-item:nth-child(3) {
        animation-delay: 0.15s;
    }

    .setting-item:nth-child(4) {
        animation-delay: 0.2s;
    }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .charts-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .elly-premium-panel {
        margin: 16px 20px 20px;
        padding: 18px;
    }

    main {
        padding: 24px 20px;
        margin-top: 12px;
    }

    header {
        padding: 24px 20px;
    }

    footer {
        padding: 20px;
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .input-group {
        flex-direction: column;
    }

    .stats-header {
        grid-template-columns: 1fr;
    }

    nav {
        flex-wrap: wrap;
    }

    .limits-list {
        grid-template-columns: 1fr;
    }

    .days-buttons {
        flex-wrap: wrap;
    }
}