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

:root {
    --bg: #0f1117;
    --surface: #1a1d27;
    --border: #2a2d3a;
    --text: #e4e4e7;
    --text-muted: #9ca3af;
    --text-dim: #64748b;
    --primary: #6366f1;
    --primary-hover: #818cf8;
    --accent: #f97316;
    --accent-hover: #fb923c;
    --error: #ef4444;
    --success: #22c55e;
    --radius: 8px;
}

body {
    font-family: 'Nunito Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

/* Mesh background */
.mesh-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; }

.mesh-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    animation: drift 24s ease-in-out infinite;
}

.blob-1 { width: 500px; height: 500px; background: #7c3aed; opacity: 0.3; top: -10%; left: -5%; }
.blob-2 { width: 420px; height: 420px; background: #f97316; opacity: 0.22; top: 30%; right: -10%; animation-delay: -7s; }
.blob-3 { width: 380px; height: 380px; background: #6366f1; opacity: 0.2; bottom: -10%; left: 10%; animation-delay: -14s; }
.blob-4 { width: 300px; height: 300px; background: #fb923c; opacity: 0.16; top: 10%; right: 20%; animation-delay: -19s; }

@keyframes drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(18px, -10px) scale(1.03); }
    66% { transform: translate(-12px, 16px) scale(0.97); }
}

.grain {
    position: fixed; inset: 0; z-index: 1; opacity: 0.025; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Floating glass navbar */
.navbar {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1rem 1.5rem 0;
    padding: 0.6rem 1.2rem;
    background: rgba(26, 29, 39, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

.navbar-brand {
    font-family: 'Figtree', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    background: linear-gradient(135deg, #a78bfa, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-link {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.navbar-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

/* Main split layout */
.main {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 2rem 3rem;
    gap: 2rem;
    min-height: 0;
}

/* Left: Marketing copy */
.brand-section {
    flex: 1;
    padding-left: 2rem;
    animation: fadeRight 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
    opacity: 0;
}

@keyframes fadeRight {
    from { opacity: 0; transform: translateX(-14px); }
    to { opacity: 1; transform: translateX(0); }
}

.brand-section h2 {
    font-family: 'Figtree', sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.85rem;
    max-width: 380px;
}

.brand-section h2 .gradient-text,
.gradient-text {
    background: linear-gradient(135deg, #a78bfa, #c084fc, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-section p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 360px;
}

.trust-row {
    display: flex;
    gap: 1.25rem;
    margin-top: 1.75rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    color: var(--text-dim);
}

.trust-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.7;
}

/* Right: Portal ring with form inside */
.form-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    animation: fadeLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
}

@keyframes fadeLeft {
    from { opacity: 0; transform: translateX(14px) scale(0.97); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

/* Portal ring */
.portal-ring {
    position: relative;
    padding: 3px;
    border-radius: 50%;
    width: 470px;
    height: 470px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Animated conic gradient border */
.portal-ring::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 2px;
    background: conic-gradient(from var(--ring-angle, 0deg),
        transparent 0%, var(--primary) 12%, #a78bfa 22%, #f97316 35%, transparent 45%,
        transparent 55%, #fb923c 65%, #818cf8 78%, var(--primary) 88%, transparent 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: ringRotate 8s linear infinite;
    opacity: 0.5;
}

/* Outer glow */
.portal-ring::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: conic-gradient(from var(--ring-angle, 0deg),
        transparent, rgba(99, 102, 241, 0.1), transparent, rgba(249, 115, 22, 0.08), transparent
    );
    filter: blur(20px);
    animation: ringRotate 8s linear infinite;
    z-index: -1;
}

@property --ring-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes ringRotate { to { --ring-angle: 360deg; } }

/* Inner circle with form */
.portal-inner {
    width: 430px;
    height: 430px;
    border-radius: 50%;
    background: rgba(15, 17, 23, 0.82);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.wordmark h1 {
    font-family: 'Figtree', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-align: center;
    background: linear-gradient(135deg, #a78bfa, #c084fc, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.2rem;
}

.wordmark p {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-bottom: 1.2rem;
    letter-spacing: 0.03em;
}

.portal-form { width: 100%; max-width: 255px; }

.field { margin-bottom: 0.85rem; }

.field label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.field input {
    width: 100%;
    padding: 0.58rem 0.75rem;
    background: rgba(15, 17, 23, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.8rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.field input::placeholder { color: var(--text-dim); font-weight: 300; }

.field input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.field input:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Password visibility toggle */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 2.5rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.2rem;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: var(--text);
}

.password-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.password-mismatch {
    font-size: 0.68rem;
    color: #fca5a5;
    margin-top: 0.3rem;
    display: none;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary:disabled:hover {
    background: var(--primary);
    transform: none;
    box-shadow: none;
}

.field.inline {
    display: flex;
    gap: 0.5rem;
}

.field.inline input { flex: 1; }

.btn-primary {
    width: 100%;
    padding: 0.58rem 1rem;
    background: var(--primary);
    border: none;
    border-radius: var(--radius);
    color: #fff;
    font-family: 'Figtree', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    margin-top: 0.15rem;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25), 0 2px 8px rgba(249, 115, 22, 0.15);
}

.btn-primary:active { transform: translateY(0); }
.btn-primary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.field.inline .btn-primary { width: auto; margin-top: 0; }

.btn-secondary {
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-family: 'Figtree', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
    border-color: var(--text);
    color: var(--text);
}

.auth-link {
    text-align: center;
    margin-top: 0.8rem;
    font-size: 0.68rem;
    color: var(--text-dim);
}

.auth-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-link a:hover { color: var(--primary-hover); }

/* Alerts */
.alert {
    padding: 0.55rem 0.7rem;
    border-radius: var(--radius);
    font-size: 0.72rem;
    margin-bottom: 0.85rem;
}

.alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

/* Password reset link display */
.reset-link-box {
    margin: 0.75rem 0;
}

.reset-link-box label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.35rem;
}

.reset-link-display {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 0.6rem;
    color: #e0e7ff;
    font-size: 0.7rem;
    font-family: monospace;
    resize: none;
    word-break: break-all;
}

/* Dashboard */
.dashboard-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    margin: 0 auto;
    padding: 1.5rem;
}

.dashboard-header {
    margin-bottom: 1.5rem;
}

.dashboard-header h1 {
    font-family: 'Figtree', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.dashboard-email {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.dashboard-card {
    background: rgba(26, 29, 39, 0.75);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.dashboard-card h2 {
    font-family: 'Figtree', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.text-muted {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.navbar-user {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-right: 0.5rem;
}

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

.license-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0.85rem;
    background: rgba(15, 17, 23, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
}

.license-key {
    font-family: "SF Mono", "Fira Code", monospace;
    font-size: 0.8rem;
}

.badge {
    font-size: 0.68rem;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-weight: 600;
}

.badge.active {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.badge.inactive {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Short viewports — reduce portal ring */
@media (max-height: 750px) {
    .portal-ring {
        width: 340px;
        height: 340px;
    }
    .portal-inner {
        width: 310px;
        height: 310px;
        padding: 1.2rem;
    }
    .wordmark h1 {
        font-size: 1.3rem;
    }
    .wordmark p {
        margin-bottom: 0.6rem;
    }
    .field {
        margin-bottom: 0.55rem;
    }
    .field label {
        font-size: 0.6rem;
        margin-bottom: 0.2rem;
    }
    .field input {
        padding: 0.42rem 0.6rem;
        font-size: 0.75rem;
    }
    .btn-primary {
        padding: 0.42rem 0.75rem;
        font-size: 0.75rem;
    }
    .auth-link {
        margin-top: 0.5rem;
        font-size: 0.6rem;
    }
    .password-toggle {
        right: 0.5rem;
    }
}

/* Tablet — stack vertically, keep portal ring */
@media (max-width: 1024px) {
    .main {
        flex-direction: column;
        justify-content: center;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .brand-section {
        flex: none;
        padding-left: 0;
        text-align: center;
    }

    .form-section {
        flex: none;
    }

    .brand-section h2 { font-size: 2.2rem; max-width: none; }
    .brand-section p { max-width: none; text-align: center; }
    .trust-row { justify-content: center; }

    .portal-ring { width: 420px; height: 420px; }
    .portal-inner { width: 386px; height: 386px; padding: 2rem; }
    .wordmark h1 { font-size: 1.5rem; }
}

/* Mobile — portal becomes glass card */
@media (max-width: 600px) {
    .navbar {
        margin: 0.75rem;
        padding: 0.55rem 1rem;
    }

    .main {
        padding: 1rem;
        gap: 1.25rem;
    }

    .brand-section h2 { font-size: 1.75rem; }
    .brand-section p { font-size: 0.82rem; }
    .trust-row { gap: 0.8rem; flex-wrap: wrap; }
    .trust-item { font-size: 0.68rem; }

    .portal-ring {
        width: 100%;
        height: auto;
        border-radius: 16px;
        padding: 0;
    }

    .portal-ring::before,
    .portal-ring::after { display: none; }

    .portal-inner {
        width: 100%;
        height: auto;
        border-radius: 16px;
        padding: 2rem 1.5rem;
        background: rgba(26, 29, 39, 0.75);
        border: 1px solid var(--border);
    }

    .portal-form { max-width: 100%; }

    .wordmark h1 { font-size: 1.4rem; letter-spacing: 0.15em; }
    .wordmark p { margin-bottom: 1rem; }

    /* Ensure touch-friendly targets (min 44px) */
    .field input {
        padding: 0.72rem 0.85rem;
        font-size: 1rem; /* 16px prevents iOS zoom */
    }

    .btn-primary {
        padding: 0.72rem 1rem;
        font-size: 0.88rem;
        min-height: 44px;
    }

    .navbar-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .password-wrapper input {
        padding-right: 2.75rem;
    }
    .password-toggle {
        right: 0.85rem;
    }

    /* Dashboard mobile */
    .dashboard-content { padding: 1rem; }
    .dashboard-card { padding: 1.25rem; border-radius: 12px; }
}

/* Small phones */
@media (max-width: 375px) {
    .brand-section h2 { font-size: 1.5rem; }
    .main { padding: 0.75rem; }
    .portal-inner { padding: 1.75rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    .mesh-blob { animation: none; }
    .portal-ring::before, .portal-ring::after { animation: none; }
    .navbar, .brand-section, .form-section { animation: none; opacity: 1; transform: none; }
    .btn-primary, .field input { transition: none; }
}

/* ============================================================
   Admin Dashboard
   ============================================================ */

.admin-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: rgba(26, 29, 39, 0.85);
    border-right: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    padding: 1.25rem 0;
}

.admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1.25rem 1.25rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.75rem;
}

.admin-badge {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0 0.75rem;
    flex: 1;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.admin-nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.admin-nav-link.active {
    color: var(--text);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.admin-nav-link svg {
    opacity: 0.6;
    flex-shrink: 0;
}

.admin-nav-link.active svg {
    opacity: 1;
    color: var(--primary);
}

.admin-sidebar-footer {
    padding: 0 0.75rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

/* Main content area */
.admin-content {
    flex: 1;
    padding: 2rem 2.5rem;
    overflow-y: auto;
    max-width: 1100px;
}

.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.admin-page-header h1 {
    font-family: 'Figtree', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.admin-page-header p {
    margin-top: 0.25rem;
}

/* Stats cards */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-stat-card {
    background: rgba(26, 29, 39, 0.75);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.admin-stat-value {
    font-family: 'Figtree', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a78bfa, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Table */
.admin-table-wrapper {
    background: rgba(26, 29, 39, 0.75);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.admin-table thead {
    background: rgba(15, 17, 23, 0.5);
}

.admin-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border);
}

.admin-table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid rgba(42, 45, 58, 0.5);
    vertical-align: middle;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.admin-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.admin-link:hover {
    color: var(--primary-hover);
}

.admin-mono {
    font-family: "SF Mono", "Fira Code", monospace;
    font-size: 0.75rem;
}

/* Detail cards */
.admin-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.admin-detail-card {
    background: rgba(26, 29, 39, 0.75);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.admin-detail-card h2 {
    font-family: 'Figtree', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.85rem;
    color: var(--text);
}

.admin-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(42, 45, 58, 0.4);
}

.admin-detail-row:last-child {
    border-bottom: none;
}

.admin-detail-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.badge-role {
    font-size: 0.68rem;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-weight: 600;
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Small action buttons */
.btn-danger-sm,
.btn-success-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Figtree', sans-serif;
    transition: opacity 0.2s;
}

.btn-danger-sm {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger-sm:hover { opacity: 0.8; }

.btn-success-sm {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.btn-success-sm:hover { opacity: 0.8; }

.btn-danger-xs,
.btn-success-xs {
    padding: 0.25rem 0.55rem;
    font-size: 0.68rem;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Figtree', sans-serif;
    transition: opacity 0.2s;
}

.btn-danger-xs {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.btn-danger-xs:hover { opacity: 0.8; }

.btn-success-xs {
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.btn-success-xs:hover { opacity: 0.8; }

/* Admin form layout */
.admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* Admin responsive */
@media (max-width: 768px) {
    .admin-wrapper {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0.75rem;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .admin-sidebar-brand {
        padding: 0 0.5rem 0 0;
        border-bottom: none;
        margin-bottom: 0;
    }

    .admin-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.25rem;
        padding: 0;
    }

    .admin-nav-link {
        padding: 0.4rem 0.55rem;
        font-size: 0.72rem;
    }

    .admin-sidebar-footer {
        display: none;
    }

    .admin-content {
        padding: 1.25rem;
    }

    .admin-detail-grid {
        grid-template-columns: 1fr;
    }

    .admin-form-grid {
        grid-template-columns: 1fr;
    }

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

/* ============================================================
   Org Portal
   ============================================================ */

.org-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.org-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: rgba(26, 29, 39, 0.85);
    border-right: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    padding: 1.25rem 0;
}

.org-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1.25rem 1.25rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.75rem;
}

.org-badge {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.25);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
}

.org-nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0 0.75rem;
    flex: 1;
}

.org-nav-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.org-nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.org-nav-link.active {
    color: var(--text);
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.15);
}

.org-nav-link svg {
    opacity: 0.6;
    flex-shrink: 0;
}

.org-nav-link.active svg {
    opacity: 1;
    color: var(--accent);
}

.org-sidebar-footer {
    padding: 0 0.75rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

/* Main content area */
.org-content {
    flex: 1;
    padding: 2rem 2.5rem;
    overflow-y: auto;
    max-width: 1100px;
}

.org-page-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.org-page-header h1 {
    font-family: 'Figtree', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Stats */
.org-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.org-stat-card {
    background: rgba(26, 29, 39, 0.75);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.org-stat-value {
    font-family: 'Figtree', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fb923c, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.org-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Detail cards */
.org-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.org-detail-card {
    background: rgba(26, 29, 39, 0.75);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.org-detail-card h2 {
    font-family: 'Figtree', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.85rem;
    color: var(--text);
}

.org-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(42, 45, 58, 0.4);
}

.org-detail-row:last-child {
    border-bottom: none;
}

.org-detail-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Table */
.org-table-wrapper {
    background: rgba(26, 29, 39, 0.75);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.org-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.org-table thead {
    background: rgba(15, 17, 23, 0.5);
}

.org-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border);
}

.org-table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid rgba(42, 45, 58, 0.5);
    vertical-align: middle;
}

.org-table tbody tr:last-child td {
    border-bottom: none;
}

.org-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.org-actions-cell {
    display: flex;
    gap: 0.35rem;
    align-items: center;
}

/* Invite form */
.org-invite-form {
    margin-top: 0.5rem;
}

.org-form-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.org-select {
    width: 100%;
    padding: 0.58rem 0.75rem;
    background: rgba(15, 17, 23, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.8rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}

.org-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.org-select option {
    background: var(--surface);
    color: var(--text);
}

/* Org actions row */
.org-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* ============================================================
   Org Create Page
   ============================================================ */

.org-create-wrapper {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.org-create-header {
    text-align: center;
    margin-bottom: 2rem;
}

.org-create-header h1 {
    font-family: 'Figtree', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

/* Plan selection grid */
.org-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.org-plan-card {
    cursor: pointer;
    display: block;
}

.org-plan-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.org-plan-card-inner {
    background: rgba(26, 29, 39, 0.75);
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.org-plan-card-inner:hover {
    border-color: rgba(249, 115, 22, 0.4);
    transform: translateY(-2px);
}

.org-plan-radio:checked + .org-plan-card-inner {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15), 0 4px 16px rgba(249, 115, 22, 0.1);
}

.org-plan-radio:focus-visible + .org-plan-card-inner {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.org-plan-name {
    font-family: 'Figtree', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.org-plan-price {
    font-family: 'Figtree', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fb923c, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.35rem;
}

.org-plan-period {
    font-size: 0.75rem;
    font-weight: 500;
    -webkit-text-fill-color: var(--text-muted);
}

.org-plan-seats {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Org portal responsive */
@media (max-width: 768px) {
    .org-wrapper {
        flex-direction: column;
    }

    .org-sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0.75rem;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .org-sidebar-brand {
        padding: 0 0.5rem 0 0;
        border-bottom: none;
        margin-bottom: 0;
    }

    .org-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.25rem;
        padding: 0;
    }

    .org-nav-link {
        padding: 0.4rem 0.55rem;
        font-size: 0.72rem;
    }

    .org-sidebar-footer {
        display: none;
    }

    .org-content {
        padding: 1.25rem;
    }

    .org-detail-grid {
        grid-template-columns: 1fr;
    }

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

    .org-form-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .org-form-row .field {
        width: 100% !important;
    }

    .org-plan-grid {
        grid-template-columns: 1fr;
    }

    .org-create-header h1 {
        font-size: 1.5rem;
    }
}

/* ============================================================
   Command Center: Stats, Tables, Badges, Audit
   ============================================================ */

/* ---- Stats Grid ---- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card {
    background: rgba(26, 29, 39, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    backdrop-filter: blur(12px);
    transition: border-color 0.2s;
}
.stat-card:hover { border-color: rgba(99, 102, 241, 0.3); }
.stat-card-warn { border-color: var(--accent); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.stat-value { font-family: 'Figtree', sans-serif; font-size: 2rem; font-weight: 700; color: var(--text); }
.stat-dim { font-size: 1rem; color: var(--text-dim); font-weight: 400; }
.stat-icon { margin-bottom: 0.5rem; }
.stat-link { font-size: 0.75rem; color: var(--accent); text-decoration: none; margin-top: 0.5rem; display: block; }
.stat-link:hover { text-decoration: underline; }

/* ---- Seat Usage Bar ---- */
.seat-bar { height: 4px; background: var(--border); border-radius: 2px; margin-top: 0.75rem; overflow: hidden; }
.seat-bar-fill { height: 100%; background: var(--primary); border-radius: 2px; transition: width 0.6s ease; }
.product-bar-alma { background: var(--primary); }
.product-bar-biai { background: var(--accent); }

/* ---- Product Badges ---- */
.product-badge, .product-badge-lg {
    display: inline-block; padding: 0.15rem 0.5rem; border-radius: 4px;
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.product-badge-lg { font-size: 0.8rem; padding: 0.25rem 0.75rem; }
.product-alma { background: rgba(99, 102, 241, 0.15); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.25); }
.product-biai { background: rgba(249, 115, 22, 0.15); color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.25); }

/* ---- Status Badges ---- */
.status-badge {
    display: inline-block; padding: 0.15rem 0.5rem; border-radius: 4px;
    font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em;
}
.status-active { background: rgba(34, 197, 94, 0.12); color: #4ade80; box-shadow: 0 0 8px rgba(34, 197, 94, 0.15); }
.status-suspended { background: rgba(251, 191, 36, 0.12); color: #fbbf24; box-shadow: 0 0 8px rgba(251, 191, 36, 0.15); }
.status-deletion_pending { background: rgba(239, 68, 68, 0.12); color: #f87171; box-shadow: 0 0 8px rgba(239, 68, 68, 0.15); }

/* ---- Role Badges ---- */
.role-badge {
    display: inline-block; padding: 0.15rem 0.5rem; border-radius: 4px;
    font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
}
.role-owner { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.role-admin { background: rgba(99, 102, 241, 0.12); color: #a5b4fc; }
.role-member { background: rgba(148, 163, 184, 0.12); color: #94a3b8; }

/* ---- Data Table ---- */
.table-card {
    background: rgba(26, 29, 39, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    backdrop-filter: blur(12px);
}
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    text-align: left; padding: 0.75rem 1rem; font-size: 0.7rem;
    text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.data-table td { padding: 0.75rem 1rem; font-size: 0.85rem; border-bottom: 1px solid rgba(42, 45, 58, 0.5); }
.data-table tbody tr { transition: background 0.15s; }
.data-table tbody tr:hover { background: rgba(99, 102, 241, 0.04); }
.cell-name { font-weight: 600; }
.cell-email { color: var(--text-muted); }
.cell-products { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.cell-actions { display: flex; gap: 0.3rem; flex-wrap: wrap; }

/* ---- Small Buttons ---- */
.btn-sm {
    padding: 0.25rem 0.5rem; font-size: 0.7rem; border-radius: 4px;
    border: none; cursor: pointer; font-weight: 600; transition: all 0.15s;
    text-decoration: none; display: inline-block;
}
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--text-muted); }
.btn-warn { background: rgba(251, 191, 36, 0.12); color: #fbbf24; }
.btn-warn:hover { background: rgba(251, 191, 36, 0.2); }
.btn-danger { background: rgba(239, 68, 68, 0.12); color: #f87171; }
.btn-danger:hover { background: rgba(239, 68, 68, 0.2); }

/* ---- Section Card ---- */
.section-card {
    background: rgba(26, 29, 39, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(12px);
}
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.section-title { font-size: 1rem; font-weight: 700; }
.link-muted { font-size: 0.75rem; color: var(--text-muted); text-decoration: none; }
.link-muted:hover { color: var(--text); }

/* ---- Quick Actions ---- */
.quick-actions { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; flex-wrap: wrap; }

/* ---- Launch Button ---- */
.btn-launch {
    padding: 0.6rem 1.2rem; font-size: 0.8rem; border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white; border: none; cursor: pointer; font-weight: 600;
    text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem;
    transition: transform 0.15s, box-shadow 0.15s;
}
.btn-launch:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3); }

/* ---- Audit List ---- */
.audit-list { display: flex; flex-direction: column; gap: 0.5rem; }
.audit-row {
    display: flex; align-items: center; gap: 1rem; padding: 0.5rem 0;
    border-bottom: 1px solid rgba(42, 45, 58, 0.3); font-size: 0.8rem;
}
.audit-action { color: var(--text); font-weight: 500; flex: 1; }
.audit-actor { color: var(--text-muted); }
.audit-time { color: var(--text-dim); font-size: 0.7rem; }

/* ---- Product Grid ---- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.product-stat-card {
    background: rgba(26, 29, 39, 0.4);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
}
.product-stat-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.product-stat-value { font-family: 'Figtree', sans-serif; font-size: 1.5rem; font-weight: 700; }

/* ---- Admin Header ---- */
.admin-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem;
}
.admin-title { font-family: 'Figtree', sans-serif; font-size: 1.5rem; font-weight: 800; }
.admin-subtitle { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ---- Responsive: Command Center ---- */
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
    .quick-actions { flex-direction: column; }
    .data-table { font-size: 0.75rem; }
    .data-table th, .data-table td { padding: 0.5rem 0.65rem; }
    .cell-actions { flex-direction: column; gap: 0.25rem; }
    .admin-header { flex-direction: column; }
}

/* Slide-over panel */
.slide-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 100;
  overflow-y: auto;
  padding: 1.5rem;
  transition: right 0.3s ease;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.4);
}
.slide-panel:not(:empty) {
  right: 0;
}
.slide-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 99;
  display: none;
}
.slide-overlay.active {
  display: block;
}
.slide-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.slide-panel-title {
  font-family: 'Figtree', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.slide-panel-close {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 4px;
}
.slide-panel-close:hover {
  color: var(--text);
}

/* Seat badge toggles */
.seat-toggle {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px dashed var(--border);
  background: transparent;
  color: var(--text-dim);
}
.seat-toggle:hover {
  border-style: solid;
  border-color: var(--text-muted);
  color: var(--text-muted);
}
.seat-toggle.active {
  border-style: solid;
}
.seat-toggle.active.product-alma {
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
  border-color: rgba(99, 102, 241, 0.4);
}
.seat-toggle.active.product-biai {
  background: rgba(249, 115, 22, 0.2);
  color: #fb923c;
  border-color: rgba(249, 115, 22, 0.4);
}
.seat-toggle.disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
.seat-toggle.disabled:hover {
  border-style: dashed;
  border-color: var(--border);
  color: var(--text-dim);
}
.row-suspended {
  opacity: 0.6;
}
.seat-counter {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

/* Breadcrumbs */
.breadcrumb {
  font-size: 0.8rem;
  margin-bottom: 1rem;
  color: var(--text-dim);
}
.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--text);
}
.breadcrumb .separator {
  margin: 0 0.4rem;
  color: var(--border);
}
.breadcrumb .current {
  color: var(--text);
  font-weight: 600;
}

/* Search input */
.search-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: rgba(15, 17, 23, 0.6);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  box-sizing: border-box;
}
.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

/* Inline role select */
.role-select {
  background: rgba(15, 17, 23, 0.6);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  padding: 2px 6px;
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
}
.role-select:focus {
  border-color: var(--primary);
  outline: none;
}

/* Section divider for slide panel forms */
.form-section-label {
  color: var(--primary);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 0.75rem;
  margin-top: 1rem;
}
.form-section-label:first-child {
  margin-top: 0;
}

/* Info callout */
.info-callout {
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.7rem;
  color: var(--primary-hover);
}

/* HTMX transitions */
.htmx-swapping {
  opacity: 0;
  transition: opacity 0.2s ease-out;
}
