:root {
    --bg-dark: #050508;
    --bg-sidebar: #0a0a0f;
    --panel-dark: #070b14;
    --primary: #00f0ff;
    --secondary: #7000ff;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}

.client-shell {
    display: flex;
}

.sidebar {
    width: 280px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--glass-border);
}

.logo {
    margin-bottom: 2.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
}

.logo span {
    color: var(--primary);
}

.nav-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    list-style: none;
}

.nav-menu a,
.logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    transition: 0.25s ease;
}

.nav-menu a {
    color: var(--text-muted);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #fff;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.nav-menu a.active {
    border-color: var(--primary);
}

.logout-btn {
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.12);
}

.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 3rem;
}

.header-top {
    margin-bottom: 2rem;
}

.page-title,
.header-top h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.4rem;
}

.page-subtitle,
.muted,
.detail-muted,
.modal-subtitle {
    color: var(--text-muted);
}

.page-subtitle {
    margin-top: 0.45rem;
    line-height: 1.6;
}

.detail-accent {
    color: var(--primary);
}

.fill-min {
    flex: 1;
    min-width: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: none;
    border-radius: 12px;
    padding: 0.82rem 0.9rem;
    font-size: 0.86rem;
    font-weight: 700;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.btn-secondary {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
}

.btn-access {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.notice {
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 1rem 1.2rem;
}

.notice.info {
    color: #67e8f9;
    background: rgba(0, 240, 255, 0.08);
    border-color: rgba(0, 240, 255, 0.2);
}

.notice.success {
    color: #86efac;
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.22);
}

.notice.warning {
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.22);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--glass-bg);
    border: 1px dashed var(--glass-border);
    border-radius: 20px;
}

.empty-state-icon {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.15);
    font-size: 3rem;
}

.empty-state-copy {
    margin-top: 0.6rem;
}

.empty-state-action {
    margin-top: 1.25rem;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(2, 4, 10, 0.82);
    backdrop-filter: blur(8px);
}

.modal-backdrop.show {
    display: flex;
}

.modal-card {
    width: min(560px, 100%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1.5rem;
    background: var(--panel-dark);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.modal-head h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
}

.modal-subtitle {
    margin-top: 0.35rem;
}

.modal-close {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.modal-summary {
    margin-bottom: 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1rem 1.1rem;
    background: rgba(255, 255, 255, 0.03);
}

.modal-summary p {
    margin-top: 0.35rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.modal-section {
    margin-top: 1rem;
}

.modal-section h3 {
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.method-option {
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    text-align: left;
    transition: 0.2s ease;
}

.method-option.active {
    border-color: var(--primary);
    background: rgba(0, 240, 255, 0.1);
}

.method-option span {
    display: block;
    margin-top: 0.35rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

.modal-renew {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
}

.modal-renew input {
    margin-top: 0.2rem;
    accent-color: var(--primary);
}

.modal-renew strong {
    display: block;
    margin-bottom: 0.2rem;
}

.modal-renew p {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.modal-actions .btn {
    flex: 1;
}

.modal-footnote {
    margin-top: 0.9rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

.ui-notice {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1200;
    display: none;
    width: min(380px, calc(100vw - 32px));
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 1rem 1.1rem;
    background: rgba(7, 11, 20, 0.96);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.ui-notice.show {
    display: block;
}

.ui-notice strong {
    display: block;
    margin-bottom: 0.28rem;
}

.ui-notice p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.ui-notice.error {
    border-color: rgba(239, 68, 68, 0.28);
}

.ui-notice.error strong {
    color: #fca5a5;
}

.ui-notice.success {
    border-color: rgba(16, 185, 129, 0.28);
}

.ui-notice.success strong {
    color: #86efac;
}

@media (max-width: 960px) {
    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
        padding: 1.5rem;
    }

    .method-grid,
    .modal-actions {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
}
