/* ─────────────────────────────────────────────────────────────────
   Maxwell License Portal — Sidebar Layout v4.0
   Matches Admin Panel · Dark UI · Purple #5227FF · Full-width
───────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-primary:      #060612;
    --bg-secondary:    #0b0b1a;
    --bg-card:         rgba(12, 10, 22, 0.85);
    --bg-sidebar:      #0a0a18;
    --purple-primary:  #5227FF;
    --purple-secondary:#7c5cff;
    --purple-light:    #a78bfa;
    --purple-glow:     rgba(82, 39, 255, 0.15);
    --magenta:         #FF9FFC;
    --border-subtle:   rgba(82, 39, 255, 0.12);
    --border-strong:   rgba(82, 39, 255, 0.25);
    --text-primary:    #f0f0f8;
    --text-secondary:  #a1a1b5;
    --text-muted:      #64647a;
    --glass-bg:        rgba(12, 10, 22, 0.7);
    --glass-border:    rgba(82, 39, 255, 0.08);
    --success:         #10b981;
    --success-bg:      rgba(16, 185, 129, 0.1);
    --danger:          #ef4444;
    --danger-bg:       rgba(239, 68, 68, 0.1);
    --warning:         #f59e0b;
    --warning-bg:      rgba(245, 158, 11, 0.1);
    --sidebar-w:       260px;
    --sidebar-collapsed: 68px;
    --transition:      0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--purple-secondary); text-decoration: none; }
a:hover { color: var(--purple-light); }

code {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    background: rgba(82, 39, 255, 0.1);
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 12px;
    color: var(--purple-light);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(82, 39, 255, 0.25); border-radius: 3px; }

/* ══════════════════════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════════════════════ */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-w);
    height: 100vh;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    z-index: 200;
    transition: width var(--transition);
    overflow: hidden;
}

.sidebar.collapsed { width: var(--sidebar-collapsed); }

/* Logo area */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 20px 20px;
    border-bottom: 1px solid var(--border-subtle);
    min-height: 73px;
    flex-shrink: 0;
}

.sidebar-brand img {
    height: 24px;
    width: auto;
    flex-shrink: 0;
    transition: opacity var(--transition);
}

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    white-space: nowrap;
    transition: opacity var(--transition), width var(--transition);
}

.sidebar-brand-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--purple-primary);
    line-height: 1.2;
}

.sidebar-brand-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.sidebar.collapsed .sidebar-brand-text { opacity: 0; width: 0; }
.sidebar.collapsed .sidebar-brand { padding: 24px 0 20px; justify-content: center; gap: 0; }

/* Toggle button */
.sidebar-toggle {
    position: absolute;
    top: 26px;
    right: -14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-sidebar);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 210;
}

.sidebar-toggle:hover {
    background: var(--purple-primary);
    color: #fff;
    border-color: var(--purple-primary);
}

/* Nav items */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 12px;
}

.sidebar-section {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 16px 12px 8px;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity var(--transition);
}

.sidebar.collapsed .sidebar-section { opacity: 0; height: 0; padding: 0; margin: 0; }

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 400;
    border-radius: 10px;
    transition: all 0.2s;
    white-space: nowrap;
    margin-bottom: 2px;
    text-decoration: none;
}

.sidebar-nav a:hover {
    color: var(--text-primary);
    background: rgba(82, 39, 255, 0.08);
}

.sidebar-nav a.active {
    color: #fff;
    background: var(--purple-primary);
    box-shadow: 0 4px 16px rgba(82, 39, 255, 0.3);
}

.sidebar-nav a .nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.sidebar-nav a .nav-label {
    overflow: hidden;
    transition: opacity var(--transition), width var(--transition);
}

.sidebar.collapsed .sidebar-nav a .nav-label { opacity: 0; width: 0; }
.sidebar.collapsed .sidebar-nav a { justify-content: center; padding: 10px; }
.sidebar.collapsed .sidebar-nav { padding: 16px 8px; }

/* Sidebar user info */
.sidebar-user {
    padding: 12px 16px;
    border-top: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.sidebar-user-email {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity var(--transition);
}

.sidebar.collapsed .sidebar-user-email { opacity: 0; }

/* Sidebar footer */
.sidebar-footer {
    padding: 12px 16px 16px;
    border-top: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text-muted);
    font-size: 13px;
    border-radius: 10px;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.sidebar-footer a:hover {
    color: var(--danger);
    background: var(--danger-bg);
}

.sidebar.collapsed .sidebar-footer a { justify-content: center; padding: 10px; }
.sidebar.collapsed .sidebar-footer a .nav-label { opacity: 0; width: 0; overflow: hidden; }
.sidebar.collapsed .sidebar-user { padding: 8px; }

/* ══════════════════════════════════════════════════════════════
   MAIN CONTENT — full width with sidebar offset
══════════════════════════════════════════════════════════════ */

.main {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    transition: margin-left var(--transition);
    padding: 32px 40px 80px;
}

body.sidebar-collapsed .main { margin-left: var(--sidebar-collapsed); }

/* Main footer (inside .main for authenticated pages) */
.main-footer {
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.main-footer p {
    font-size: 13px;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.main-footer-credit {
    display: inline-flex;
    align-items: center;
    opacity: 0.7;
    transition: opacity 0.25s ease;
}

.main-footer-credit:hover { opacity: 1; }

.main-footer p .main-footer-credit img {
    height: 11px;
    width: auto;
    display: block;
}

/* Producer credit inside the full (unauth) footer */
.footer-producer {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.25s ease;
}

.footer-producer:hover { opacity: 1; }

.footer-producer-label {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

.footer-brand .footer-producer img {
    height: 12px;
    width: auto;
    display: block;
    opacity: 0.95;
}

/* ══════════════════════════════════════════════════════════════
   UNAUTHENTICATED TOP BAR (login/signup/verify pages)
══════════════════════════════════════════════════════════════ */

.portal-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.portal-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.portal-logo img {
    height: 36px;
    width: auto;
}

.portal-logo-divider {
    width: 1px;
    height: 28px;
    background: var(--border-subtle);
}

.portal-logo-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--purple-primary);
}

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    padding: 6px 8px;
}

.topbar-nav a {
    display: block;
    padding: 8px 18px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    border-radius: 50px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.topbar-nav a:hover { color: rgba(255, 255, 255, 0.85); }
.topbar-nav a.active { color: #fff; background: rgba(82, 39, 255, 0.2); }

/* ══════════════════════════════════════════════════════════════
   PAGE TITLES & SECTION HEADERS
══════════════════════════════════════════════════════════════ */

.page-title {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.page-subtitle {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--purple-primary);
    margin-bottom: 0;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

h1 {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    margin-bottom: 0;
}

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

/* ══════════════════════════════════════════════════════════════
   GLASS CARD
══════════════════════════════════════════════════════════════ */

.glass-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 28px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg,
        transparent 0%, transparent 35%,
        rgba(82, 39, 255, 0.5) 45%, #5227FF 50%,
        rgba(82, 39, 255, 0.5) 55%,
        transparent 65%, transparent 100%);
    background-size: 400% 400%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.glass-card:hover::before {
    opacity: 1;
    animation: border-glow 4s ease-in-out infinite;
}

.glass-card:hover {
    border-color: rgba(82, 39, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 20px rgba(82, 39, 255, 0.05);
}

@keyframes border-glow {
    0%   { background-position: 0% 0%; }
    50%  { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(82, 39, 255, 0.12) 0%, transparent 70%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.glass-card:hover .card-glow { opacity: 1; }

/* ══════════════════════════════════════════════════════════════
   AUTH FORMS (Login / Signup) — centred, no sidebar
══════════════════════════════════════════════════════════════ */

.auth-wrap {
    min-height: calc(100vh - 73px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 48px 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.auth-card::after {
    content: '';
    position: absolute;
    top: -60%;
    left: -20%;
    width: 140%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(82, 39, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.auth-logo img {
    height: 32px;
    width: auto;
    opacity: 0.9;
}

.auth-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 6px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 32px;
}

.auth-switch {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 24px;
}

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

.auth-row-split {
    display: grid;
    grid-template-columns: repeat( 2, 1fr );
    gap: 12px;
    margin-bottom: 12px;
}
.auth-row-split > div:only-child { grid-column: 1 / -1; max-width: 160px; }
.auth-row-split label { margin-top: 0; }
@media ( max-width: 520px ) {
    .auth-row-split { grid-template-columns: 1fr; }
    .auth-row-split > div:only-child { max-width: none; }
}

/* Use local logo in auth forms */
.auth-logo img[src*="maxwelldigital.studio"] {
    /* fallback if external loads — local is preferred */
}

/* ══════════════════════════════════════════════════════════════
   FORM FIELDS
══════════════════════════════════════════════════════════════ */

label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    margin-bottom: 16px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
}

input:focus, select:focus, textarea:focus {
    border-color: rgba(82, 39, 255, 0.5);
    background: rgba(82, 39, 255, 0.04);
    box-shadow: 0 0 0 3px rgba(82, 39, 255, 0.1);
}

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

select option {
    background: #0f0f24;
    color: var(--text-primary);
}

/* ══════════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    color: #fff;
    white-space: nowrap;
}

.btn-primary {
    background: var(--purple-primary);
    border: 1px solid transparent;
}
.btn-primary:hover {
    background: var(--purple-secondary);
    box-shadow: 0 4px 20px rgba(82, 39, 255, 0.35);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-secondary);
}
.btn-ghost:hover {
    border-color: var(--purple-primary);
    color: var(--purple-primary);
    background: rgba(82, 39, 255, 0.06);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-secondary);
}
.btn-secondary:hover {
    border-color: var(--purple-primary);
    color: var(--purple-primary);
    background: rgba(82, 39, 255, 0.06);
}

.btn-danger {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
}
.btn-danger:hover {
    background: var(--danger-bg);
    border-color: var(--danger);
}

.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }
.btn-full { width: 100%; text-align: center; padding: 13px; }

.btn:disabled, .btn[disabled] {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ══════════════════════════════════════════════════════════════
   MESSAGES
══════════════════════════════════════════════════════════════ */

.msg {
    padding: 13px 18px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.5;
    border: 1px solid;
}
.msg-success { background: var(--success-bg);  border-color: rgba(16,185,129,0.3);  color: #6ee7b7; }
.msg-error   { background: var(--danger-bg);   border-color: rgba(239,68,68,0.3);   color: #fca5a5; }
.msg-info    { background: rgba(99,102,241,0.1); border-color: rgba(99,102,241,0.3); color: #a5b4fc; }
.msg-warning { background: var(--warning-bg);  border-color: rgba(245,158,11,0.3);  color: #fcd34d; }

/* ══════════════════════════════════════════════════════════════
   LICENSE CARDS
══════════════════════════════════════════════════════════════ */

.license-grid {
    display: grid;
    gap: 16px;
}

.license-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 24px 28px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: start;
}

.license-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg,
        transparent 0%, transparent 35%,
        rgba(82, 39, 255, 0.6) 45%, #5227FF 50%,
        rgba(82, 39, 255, 0.6) 55%,
        transparent 65%, transparent 100%);
    background-size: 400% 400%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.license-card:hover::before {
    opacity: 1;
    animation: border-glow 3s ease-in-out infinite;
}

.license-card:hover {
    border-color: rgba(82, 39, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 20px rgba(82, 39, 255, 0.06);
}

/* Left accent bar by status */
.license-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 20px;
    bottom: 20px;
    width: 3px;
    border-radius: 0 2px 2px 0;
    background: var(--purple-primary);
    transition: opacity 0.3s;
}

.license-card.status-expired::after   { background: var(--danger); }
.license-card.status-suspended::after { background: var(--warning); }

.license-card.status-expired { opacity: 0.65; }
.license-card.status-expired:hover { opacity: 0.85; }

.license-card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(82, 39, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}
.license-card:hover .license-card-glow { opacity: 1; }

.license-plan-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(82, 39, 255, 0.12);
    border: 1px solid rgba(82, 39, 255, 0.25);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--purple-primary);
    margin-bottom: 12px;
}

.license-card.status-expired .license-plan-tag {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.25);
    color: #f87171;
}

.license-key-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.key-display {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    word-break: break-all;
    letter-spacing: 0.3px;
}

.btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(82, 39, 255, 0.1);
    color: var(--purple-secondary);
    border: 1px solid rgba(82, 39, 255, 0.2);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    vertical-align: middle;
}
.btn-copy:hover  { background: rgba(82, 39, 255, 0.2); border-color: var(--purple-primary); }
.btn-copy.copied { background: var(--success-bg); border-color: rgba(16,185,129,0.4); color: #6ee7b7; }

.license-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.license-meta-item { display: flex; flex-direction: column; gap: 2px; }
.license-meta-item span { font-size: 11px; letter-spacing: 0.5px; text-transform: uppercase; }
.license-meta-item strong { font-size: 14px; color: var(--text-secondary); font-weight: 500; }

/* Sites progress bar */
.sites-bar {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    margin-top: 4px;
    overflow: hidden;
}
.sites-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--purple-primary), var(--purple-secondary));
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* Status badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid;
}

.badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.badge-active {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}
.badge-active::before { animation: pulse-dot 2s ease-in-out infinite; }

.badge-expired {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.badge-suspended {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fcd34d;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ══════════════════════════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════════════════════════ */

.empty-state {
    text-align: center;
    padding: 80px 24px;
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(82, 39, 255, 0.1);
    border: 1px solid rgba(82, 39, 255, 0.2);
    color: var(--purple-primary);
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.empty-state h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 28px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════
   INFO / VERIFY PAGES
══════════════════════════════════════════════════════════════ */

.info-wrap {
    min-height: calc(100vh - 73px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.info-card {
    width: 100%;
    max-width: 480px;
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 56px 44px;
    backdrop-filter: blur(20px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.info-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    margin: 0 auto 28px;
    border: 1px solid;
}

.info-icon-success,.info-icon-ok { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.3); color: #6ee7b7; }
.info-icon-error   { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); color: #f87171; }
.info-icon-mail    { background: rgba(139,95,255,0.1); border-color: rgba(139,95,255,0.3); color: var(--purple-primary); }

.info-card h1 { font-size: 24px; font-weight: 700; margin-bottom: 14px; }
.info-card p  { color: var(--text-secondary); font-size: 15px; line-height: 1.7; margin-bottom: 6px; }

/* ══════════════════════════════════════════════════════════════
   PLAN PICKER
══════════════════════════════════════════════════════════════ */

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.plan-option { position: relative; }
.plan-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }

.plan-label {
    display: block;
    padding: 24px 22px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.plan-option input:checked + .plan-label {
    background: rgba(82, 39, 255, 0.1);
    border-color: var(--purple-primary);
    box-shadow: 0 0 0 1px var(--purple-primary), 0 8px 30px rgba(139,95,255,0.15);
}

.plan-label:hover {
    border-color: rgba(82, 39, 255, 0.4);
    background: rgba(82, 39, 255, 0.06);
}

.plan-badge {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(82, 39, 255, 0.12);
    border: 1px solid rgba(82, 39, 255, 0.2);
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--purple-primary);
    margin-bottom: 12px;
}

.plan-option input:checked + .plan-label .plan-badge {
    background: var(--purple-primary);
    color: #fff;
    border-color: var(--purple-primary);
}

.plan-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    background: linear-gradient(90deg, #fff, #5227FF, #a855f7, #5227FF, #fff);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-text 6s linear infinite;
}

@keyframes gradient-text {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.plan-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 16px; }

.plan-price {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, var(--purple-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plan-features { list-style: none; margin-top: 16px; border-top: 1px solid var(--border-subtle); padding-top: 14px; }
.plan-features li {
    font-size: 12px;
    color: var(--text-muted);
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 7px;
}
.plan-features li::before {
    content: '\2713';
    color: var(--purple-primary);
    font-size: 11px;
    font-weight: 700;
}

.perks-strip {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.perk {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #6ee7b7;
}

/* ══════════════════════════════════════════════════════════════
   NEW KEY FLASH
══════════════════════════════════════════════════════════════ */

.new-key-card {
    position: relative;
    background: rgba(82, 39, 255, 0.08);
    border: 1px solid rgba(82, 39, 255, 0.35);
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 28px;
    overflow: hidden;
}

.new-key-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--purple-primary), transparent);
    box-shadow: 0 0 20px var(--purple-primary);
}

.new-key-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--purple-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.new-key-label::after {
    content: 'NEW';
    padding: 2px 8px;
    background: var(--purple-primary);
    color: #fff;
    border-radius: 4px;
    font-size: 9px;
}

/* ══════════════════════════════════════════════════════════════
   EXPLORE PLUGINS BANNER
══════════════════════════════════════════════════════════════ */

.explore-banner {
    position: relative;
    background: linear-gradient(135deg, rgba(139,95,255,0.12) 0%, rgba(168,85,247,0.06) 100%);
    border: 1px solid rgba(82, 39, 255, 0.2);
    border-radius: 16px;
    padding: 32px 36px;
    margin-top: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.explore-banner:hover {
    border-color: rgba(82, 39, 255, 0.4);
    box-shadow: 0 0 40px rgba(82, 39, 255, 0.06);
}

.explore-banner::after {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(139,95,255,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.explore-banner-text { position: relative; z-index: 1; }

.explore-banner-text p {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--purple-primary);
    margin-bottom: 6px;
}

.explore-banner-text h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.explore-banner-text span {
    font-size: 14px;
    color: var(--text-muted);
}

.explore-banner a { position: relative; z-index: 1; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════
   FOOTER (unauth pages — full width)
══════════════════════════════════════════════════════════════ */

.portal-footer {
    position: relative;
    background: var(--bg-secondary);
    padding: 48px 40px 28px;
    border-top: 1px solid var(--border-subtle);
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    margin-top: 80px;
    overflow: hidden;
}

.portal-footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139,95,255,0.3), transparent);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
    align-items: start;
}

.footer-brand img { height: 36px; width: auto; opacity: 0.85; }
.footer-brand p { margin-top: 12px; font-size: 13px; color: var(--text-muted); font-style: italic; line-height: 1.5; }

.footer-links h4,
.footer-contact-col h4 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--purple-primary);
    margin-bottom: 14px;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--purple-primary); }

.footer-contact-col p { font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; }
.footer-contact-col a { color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.footer-contact-col a:hover { color: var(--purple-primary); }

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p { font-size: 13px; color: var(--text-muted); }
.footer-slogan { font-size: 13px; color: var(--text-secondary); font-style: italic; }

/* ══════════════════════════════════════════════════════════════
   MOBILE / RESPONSIVE
══════════════════════════════════════════════════════════════ */

.mobile-menu-btn {
    display: none !important;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 300;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-sidebar);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.mobile-overlay {
    display: none !important;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 190;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

@media (max-width: 1024px) {
    .main { padding: 24px 24px 60px; }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-w);
    }
    .sidebar.mobile-open { transform: translateX(0); }
    .main { margin-left: 0 !important; padding: 20px 16px 60px; }

    .mobile-menu-btn { display: flex !important; }
    .mobile-overlay { display: block !important; }
    .mobile-overlay.active { opacity: 1; pointer-events: auto; }

    .portal-topbar { padding: 14px 20px; }
    .portal-logo-label { display: none; }
    .portal-logo-divider { display: none; }
    .topbar-nav { padding: 4px 6px; }
    .topbar-nav a { padding: 6px 12px; font-size: 13px; }

    .section-header { flex-direction: column; align-items: flex-start; }
    .license-card { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .explore-banner { flex-direction: column; align-items: flex-start; }
    .auth-card { padding: 36px 24px; }
    .plan-grid { grid-template-columns: 1fr; }
}
