:root {
    --transition: all 0.25s ease;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* DARK MODE - CHARCOAL + ORANGE */
[data-theme="dark"] {
    --bg-dark: #1a1a1a;
    --bg-base: #0d0d0d;
    --bg-card: #141414;
    --bg-card-hover: #1c1c1c;
    --bg-sidebar: #101010;
    --bg-elevated: #181818;
    --text-primary: #f0ede8;
    --text-secondary: #a8a29e;
    --text-muted: #6b6560;
    --border: rgba(40, 38, 35, 0.85);
    --border-light: rgba(40, 38, 35, 0.45);
    --border-hover: rgba(249, 115, 22, 0.4);
    --accent: #f97316;
    --accent-bright: #fb923c;
    --accent-hover: #ea6c0a;
    --accent-glow: rgba(249, 115, 22, 0.1);
    --accent-glow-md: rgba(249, 115, 22, 0.15);
    --accent-soft: rgba(249, 115, 22, 0.06);
    --danger: #ef4444;
    --danger-soft: rgba(239, 68, 68, 0.12);
    --success: #10b981;
    --success-soft: rgba(16, 185, 129, 0.1);
    --warning: #eab308;
    --warning-soft: rgba(234, 179, 8, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.6);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.8);
    --shadow-accent: 0 8px 24px rgba(249, 115, 22, 0.2);
    --glass-bg: rgba(14, 14, 14, 0.92);
    --glass-border: rgba(249, 115, 22, 0.15);
}

/* LIGHT MODE - OFF-WHITE + ORANGE */
[data-theme="light"] {
    --bg-dark: #ede4d8;          /* warm cream — input bg, tab bg */
    --bg-base: #f5ede0;          /* warm parchment page background */
    --bg-card: #fdf6ec;          /* pale amber card */
    --bg-card-hover: #fef0db;
    --bg-sidebar: #fdf6ec;
    --bg-elevated: #f0e4d0;
    --text-primary: #2a1e0f;     /* deep warm charcoal */
    --text-secondary: #5c3d1e;   /* warm brown */
    --text-muted: #9a7a56;       /* mid warm tan */
    --border: rgba(160, 100, 30, 0.15);
    --border-light: rgba(160, 100, 30, 0.08);
    --border-hover: rgba(249, 115, 22, 0.45);
    --accent: #f97316;
    --accent-bright: #ea6c0a;
    --accent-hover: #c2530a;
    --accent-glow: rgba(249, 115, 22, 0.10);
    --accent-glow-md: rgba(249, 115, 22, 0.14);
    --accent-soft: rgba(249, 115, 22, 0.06);
    --danger: #dc2626;
    --danger-soft: rgba(220, 38, 38, 0.08);
    --success: #059669;
    --success-soft: rgba(5, 150, 105, 0.08);
    --warning: #d97706;
    --warning-soft: rgba(217, 119, 6, 0.08);
    --shadow-sm: 0 2px 6px rgba(120, 60, 10, 0.07);
    --shadow: 0 4px 12px rgba(120, 60, 10, 0.10);
    --shadow-lg: 0 8px 32px rgba(120, 60, 10, 0.14);
    --shadow-accent: 0 4px 16px rgba(249, 115, 22, 0.20);
    --glass-bg: rgba(253, 246, 236, 0.95);
    --glass-border: rgba(249, 115, 22, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    transition: background 0.3s ease, color 0.3s ease;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
}

/* Background Effects */
.bg-gradient {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

[data-theme="dark"] .bg-gradient {
    background: radial-gradient(ellipse 80% 50% at 20% -10%, rgba(249, 115, 22, 0.06) 0%, transparent 60%),
                radial-gradient(ellipse 60% 40% at 80% 100%, rgba(249, 115, 22, 0.04) 0%, transparent 60%);
}

[data-theme="light"] .bg-gradient {
    background: radial-gradient(ellipse 80% 50% at 20% -10%, rgba(249, 115, 22, 0.10) 0%, transparent 60%),
                radial-gradient(ellipse 60% 40% at 80% 100%, rgba(249, 115, 22, 0.07) 0%, transparent 60%);
}

.bg-pattern {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

[data-theme="dark"] .bg-pattern {
    background-image: radial-gradient(rgba(249, 115, 22, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

[data-theme="light"] .bg-pattern {
    background-image: radial-gradient(rgba(160, 80, 10, 0.07) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* SweetAlert Modal */
.swal2-popup {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border) !important;
    border-radius: 20px !important;
    box-shadow: var(--shadow-lg) !important;
    font-family: inherit !important;
}

.swal2-input, .swal2-textarea {
    background: var(--bg-dark) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
    border-radius: 10px !important;
}

.swal2-input:focus, .swal2-textarea:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px var(--accent-glow-md) !important;
}

/* Notification */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    max-width: 360px;
}

.notification {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--accent);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

.notification-icon {
    font-size: 1rem;
    margin-top: 2px;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--accent-bright);
}

.notification-message {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.notification-time {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: var(--transition);
}

.notification-close:hover {
    background: var(--accent-glow);
    color: var(--accent);
}

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Login Section */
.login-section {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.login-container {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 2rem 1.8rem;
    max-width: 400px;
    width: 100%;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    animation: fadeUp 0.4s ease;
    backdrop-filter: blur(10px);
}

.login-header {
    text-align: center;
    margin-bottom: 1.8rem;
}

.logo-icon {
    background: var(--bg-dark);
    padding: 0.8rem;
    border-radius: 18px;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    display: inline-block;
}

.login-header h1 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-bright));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tagline {
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.login-tabs {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-dark);
    border-radius: 40px;
    padding: 0.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.login-tab {
    flex: 1;
    padding: 0.6rem;
    background: transparent;
    border: none;
    border-radius: 40px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: var(--transition);
}

.login-tab i {
    font-size: 0.8rem;
}

.login-tab.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.login-tab:not(.active):hover {
    color: var(--text-primary);
}

/* Input Groups */
.input-group {
    margin-bottom: 1rem;
    position: relative;
    display: flex;
    align-items: center;
}

.input-group > i:first-child {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    z-index: 1;
}

.input-group:focus-within > i:first-child {
    color: var(--accent);
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: var(--bg-dark);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.85rem;
    transition: var(--transition);
    font-family: inherit;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--accent);
    background: var(--accent-glow);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.remember-me input {
    width: 14px;
    height: 14px;
    accent-color: var(--accent);
}

.forgot-link {
    color: var(--accent);
    font-size: 0.75rem;
    text-decoration: none;
    transition: var(--transition);
}

.forgot-link:hover {
    text-decoration: underline;
    color: var(--accent-bright);
}

.btn-login, .btn-request {
    width: 100%;
    padding: 0.8rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-login {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border: none;
    color: white;
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.4);
}

.btn-request {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--accent);
}

.btn-request:hover {
    background: var(--accent-glow);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.login-form {
    display: none;
}

.login-form.active {
    display: block;
    animation: fadeUp 0.3s ease;
}

#registerSection {
    display: none;
}

#registerSection.active {
    display: block;
    animation: fadeUp 0.3s ease;
}

.footer-note {
    text-align: center;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.footer-note a {
    color: var(--accent);
    text-decoration: none;
}

.footer-note a:hover {
    text-decoration: underline;
}

/* ── Google Sign In Button ──────────────────────────── */
.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0.75rem 1rem;
    background: var(--bg-dark);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 1rem;
}

.btn-google:hover {
    border-color: var(--border-hover);
    background: var(--accent-glow-md);
    color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.12);
}

.btn-google svg {
    flex-shrink: 0;
}

/* ── Login Divider ──────────────────────────────────── */
.login-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}



.message-container {
    margin-top: 0.75rem;
}

.message {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.7rem;
    text-align: center;
}

.message.success {
    background: var(--success-soft);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.message.error {
    background: var(--danger-soft);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Dashboard Section */
.dashboard-section {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    padding: 1.2rem 1rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 10;
    overflow-y: auto;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0.4rem;
}

.nav-item {
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition);
    font-size: 0.85rem;
    font-weight: 500;
}

.nav-item i {
    width: 1.2rem;
    font-size: 0.9rem;
}

.nav-item:hover {
    background: var(--accent-glow);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--accent-glow-md);
    color: var(--accent);
}

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

.user-info-sidebar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.8rem;
    padding: 0.6rem;
    border-radius: 10px;
    background: var(--bg-dark);
}

.profile-avatar {
    position: relative;
    cursor: pointer;
}

.profile-avatar img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.avatar-upload {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: var(--accent);
    border-radius: 50%;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6px;
    color: white;
    cursor: pointer;
}

#sidebarUsername {
    font-weight: 600;
    font-size: 0.85rem;
}

.logout-sidebar {
    width: 100%;
    padding: 0.5rem;
    background: var(--danger-soft);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 40px;
    color: var(--danger);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
}

.logout-sidebar:hover {
    background: var(--danger);
    color: white;
    transform: translateY(-2px);
}

.main-content {
    margin-left: 260px;
    flex: 1;
    padding: 1.2rem;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 0.6rem 0.75rem;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    gap: 0.6rem;
    position: relative;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.top-bar-right {
    flex-shrink: 0;
    width: 82px;
}

.page-title {
    flex: 1;
    text-align: center;
    min-width: 0;
}

.page-title h2 {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
    text-transform: uppercase;
}

.page-title p {
    display: none;
}

/* Theme toggle */
/* ---- THEME TOGGLE (pill switch like photo 2) ---- */
.theme-toggle {
    position: relative;
    top: auto;
    right: auto;
    width: auto;
    height: auto;
    border-radius: 999px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.theme-toggle-track {
    width: 56px;
    height: 28px;
    background: #1a1a1a;
    border: 1.5px solid rgba(249,115,22,0.35);
    border-radius: 999px;
    display: flex;
    align-items: center;
    padding: 3px;
    transition: background 0.3s, border-color 0.3s;
    position: relative;
}

.theme-toggle:hover .theme-toggle-track {
    border-color: var(--accent);
    background: rgba(249,115,22,0.08);
}

.theme-toggle-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316, #fb923c);
    box-shadow: 0 2px 6px rgba(249,115,22,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    flex-shrink: 0;
}

.theme-toggle-thumb i {
    font-size: 0.65rem;
    color: white;
    display: block;
}

/* Dark mode: thumb on left */
[data-theme="dark"] .theme-toggle-thumb {
    transform: translateX(0px);
}

/* Light mode: thumb on right */
[data-theme="light"] .theme-toggle-thumb {
    transform: translateX(26px);
}

[data-theme="light"] .theme-toggle-track {
    background: rgba(249,115,22,0.08);
    border-color: rgba(249,115,22,0.45);
}


/* Hamburger menu button */
.mobile-menu {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    display: inline-block;
    z-index: 1100;
}

.mobile-menu-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f97316, #fb923c);
    border: none;
    color: white;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(249,115,22,0.4);
}

.mobile-menu-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 5px 16px rgba(249,115,22,0.5);
}

/* Dropdown — fixed position, never clipped */
.mobile-menu-dropdown {
    position: fixed;
    top: 70px;
    left: 16px;
    background: #1e1c1a;
    border-radius: 14px;
    padding: 0.45rem;
    min-width: 215px;
    border: 1px solid rgba(249,115,22,0.25);
    box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 0 1px rgba(249,115,22,0.12);
    display: none;
    flex-direction: column;
    gap: 0.1rem;
    z-index: 99999;
    pointer-events: auto;
}

.mobile-menu-dropdown.show {
    display: flex;
    animation: fadeUp 0.18s ease;
}

.mobile-menu-item {
    background: none;
    border: none;
    padding: 0.62rem 0.85rem;
    text-align: left;
    color: #c8c4be;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.82rem;
    font-weight: 500;
    width: 100%;
    transition: var(--transition);
    pointer-events: auto;
}

.mobile-menu-item i {
    width: 1rem;
    color: var(--accent);
    font-size: 0.82rem;
    text-align: center;
    flex-shrink: 0;
}

.mobile-menu-item:hover {
    background: var(--accent-glow);
    color: var(--text-primary);
}

.mobile-menu-item.active {
    background: var(--accent-glow-md);
    color: var(--accent);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeUp 0.25s ease;
}

/* Dashboard top row */
/* Stat Card - Left aligned */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.stat-card {
    background: var(--bg-card);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 42px;
    height: 42px;
    background: var(--accent-glow);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent);
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
    text-align: left;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .stat-card {
        padding: 0.8rem 1rem;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    .sidebar {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding-bottom: 80px;
    }
    
    .top-bar {
        gap: 0.5rem;
        padding: 0.6rem 0.9rem;
    }

    .top-bar-right {
        display: none;
    }

    .page-title h2 {
        font-size: 1rem;
    }
    
    .theme-toggle {
        width: 54px;
        height: 28px;
    }
    
    .theme-toggle-track {
        width: 50px;
        height: 26px;
    }
    
    .theme-toggle-thumb {
        width: 20px;
        height: 20px;
    }
    
    [data-theme="light"] .theme-toggle-thumb {
        transform: translateX(22px);
    }
    
    .mobile-menu-btn {
        width: 34px;
        height: 34px;
    }
    
    .mobile-menu-dropdown {
        min-width: 200px;
    }

    .home-info-grid {
        grid-template-columns: 1fr;
    }
    
    .notification-container {
        right: 20px;
        top: 70px;
    }
}

.welcome-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    border: 1px solid var(--border);
}

.welcome-icon {
    font-size: 1.8rem;
    background: var(--accent-glow);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.welcome-text h3 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.welcome-text h3 span {
    color: var(--accent);
}

.welcome-text p {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.section-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.2rem;
    border: 1px solid var(--border);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border);
}

.card-header h3 {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.card-header h3 i {
    color: var(--accent);
}

.total-badge {
    background: var(--accent-glow);
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--accent);
}

.two-col-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.2rem;
}

/* Form Row */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: flex-end;
}

.form-row .input-group {
    flex: 1;
    min-width: 140px;
    margin-bottom: 0;
}

.create-user-form {
    margin-top: 0.8rem;
}

.create-user-form button[type="submit"] {
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border: none;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.create-user-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Access Items */
.access-item {
    background: var(--bg-dark);
    padding: 0.8rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    border-left: 3px solid var(--accent);
}

.access-item .btn-approve {
    background: var(--success);
    color: white;
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
}

.access-item .btn-approve:hover {
    transform: translateY(-1px);
}

.access-item .btn-reject {
    background: var(--danger);
    color: white;
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
}

.access-item .btn-reject:hover {
    transform: translateY(-1px);
}

/* Lists */
.number-list-container, .users-list-container, .data-list {
    max-height: 280px;
    overflow-y: auto;
}

.number-item, .user-item {
    background: var(--bg-dark);
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    margin-bottom: 0.4rem;
    border-left: 3px solid var(--accent);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.number-item .date {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.user-item .username {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 1rem auto;
}

.empty-text, .error-text {
    text-align: center;
    padding: 1rem;
    font-size: 0.8rem;
}

.empty-text {
    color: var(--text-muted);
}

.error-text {
    color: var(--danger);
}

/* Table */
.table-responsive {
    overflow-x: auto;
}

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

.data-table th, .data-table td {
    padding: 0.6rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    color: var(--text-muted);
    font-weight: 600;
}

.data-table tr:hover {
    background: var(--bg-dark);
}

/* Role Badges */
.role-badge {
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
}

.role-badge.developer {
    background: var(--accent-glow);
    color: var(--accent);
}

.role-badge.owner {
    background: var(--warning-soft);
    color: var(--warning);
}

.role-badge.reseller {
    background: var(--success-soft);
    color: var(--success);
}

.role-badge.member {
    background: var(--border);
    color: var(--text-muted);
}

/* Profile */
/* ============================================
   PROFILE — Premium Redesign
   ============================================ */

.profile-container {
    max-width: 700px;
    margin: 0 auto;
}

/* Hero Banner + Avatar */
.profile-hero {
    position: relative;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    margin-bottom: 0;
}

.profile-hero-banner {
    height: 100px;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1000 40%, rgba(249,115,22,0.18) 100%);
    position: relative;
    overflow: hidden;
}

.profile-hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(249,115,22,0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(249,115,22,0.08) 0%, transparent 50%);
}

.profile-hero-banner::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--bg-card));
}

.profile-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -44px;
    margin-bottom: 1.6rem;
    position: relative;
    z-index: 2;
}

.avatar-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.avatar-ring {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover), #ff9a44);
    box-shadow: 0 0 0 3px var(--bg-card), 0 8px 24px rgba(249,115,22,0.35);
    transition: var(--transition);
}

.avatar-ring:hover {
    box-shadow: 0 0 0 3px var(--bg-card), 0 8px 32px rgba(249,115,22,0.5);
    transform: scale(1.04);
}

.avatar-preview-large {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.avatar-overlay {
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.avatar-ring:hover .avatar-overlay {
    opacity: 1;
}

.avatar-overlay i {
    color: #fff;
    font-size: 1.1rem;
}

.avatar-status-dot {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 13px;
    height: 13px;
    background: var(--success);
    border-radius: 50%;
    border: 2px solid var(--bg-card);
    box-shadow: 0 0 6px rgba(16,185,129,0.7);
}

.avatar-change-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.65rem;
    padding: 0.35rem 1rem;
    background: var(--accent-glow);
    border: 1px solid rgba(249,115,22,0.3);
    border-radius: 30px;
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: var(--transition);
}

.avatar-change-btn:hover {
    background: var(--accent-glow-md);
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249,115,22,0.2);
}

.avatar-hint {
    font-size: 0.58rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    letter-spacing: 0.2px;
}

/* Profile Form */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}

.profile-field {
    display: flex;
    flex-direction: column;
}

.profile-field.full-width {
    grid-column: span 2;
}

.profile-field label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.45rem;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.profile-field label i {
    color: var(--accent);
    font-size: 0.62rem;
    width: 13px;
}

.profile-input-wrap {
    position: relative;
}

.profile-field input,
.profile-field textarea {
    width: 100%;
    padding: 0.72rem 1rem;
    background: var(--bg-dark);
    border: 1.5px solid var(--border);
    border-radius: 11px;
    color: var(--text-primary);
    font-size: 0.84rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.profile-field textarea {
    resize: vertical;
    min-height: 85px;
    line-height: 1.55;
}

.profile-field input:hover,
.profile-field textarea:hover {
    border-color: rgba(249,115,22,0.35);
    background: var(--bg-elevated);
}

.profile-field input:focus,
.profile-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-elevated);
    box-shadow: 0 0 0 3px rgba(249,115,22,0.12), 0 2px 8px rgba(0,0,0,0.3);
}

.profile-field input:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: var(--bg-base);
}

.field-badge-lock {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.58rem;
    color: var(--text-muted);
    background: var(--border);
    padding: 0.15rem 0.45rem;
    border-radius: 20px;
    letter-spacing: 0.3px;
    font-weight: 600;
}

/* Divider */
.profile-section-divider {
    grid-column: span 2;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0.3rem 0 0.1rem;
}

.profile-section-divider span {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    white-space: nowrap;
}

.profile-section-divider::before,
.profile-section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Actions */
.profile-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.6rem;
    grid-column: span 2;
}

.profile-actions .btn-primary {
    flex: 1;
    padding: 0.78rem 1.2rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    border: none;
    border-radius: 11px;
    color: #fff;
    font-weight: 700;
    font-size: 0.84rem;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(249,115,22,0.3);
    position: relative;
    overflow: hidden;
}

.profile-actions .btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.2s;
}

.profile-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249,115,22,0.45);
}

.profile-actions .btn-primary:hover::before {
    opacity: 1;
}

.profile-actions .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(249,115,22,0.3);
}

.profile-actions .btn-secondary {
    flex: 0 0 auto;
    padding: 0.78rem 1.4rem;
    background: transparent;
    border: 1.5px solid var(--border) !important;
    border-radius: 11px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.84rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.profile-actions .btn-secondary:hover {
    background: var(--accent-glow);
    border-color: rgba(249,115,22,0.4) !important;
    color: var(--accent);
    transform: translateY(-2px);
}

.profile-actions .btn-secondary:active {
    transform: translateY(0);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border: none;
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 10px;
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 10px;
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
}

.btn-secondary:hover {
    background: var(--accent-glow);
    transform: translateY(-2px);
}

.btn-primary-sm {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 40px;
    color: white;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary-sm:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-logout-top {
    background: var(--danger-soft);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 40px;
    padding: 0.4rem 0.8rem;
    color: var(--danger);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-logout-top:hover {
    background: var(--danger);
    color: white;
    transform: translateY(-2px);
}

.btn-reset-password {
    background: var(--warning);
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.6rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-delete-row {
    background: var(--danger-soft);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.65rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-delete-row:hover {
    background: var(--danger);
    color: white;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: var(--accent-glow);
    color: var(--accent);
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.modal-container {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 1.5rem;
    max-width: 400px;
    width: 90%;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

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

.modal-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--accent-glow);
    color: var(--accent);
}

.modal-container .btn-primary {
    width: 100%;
    padding: 0.8rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
}

.modal-container .input-group {
    margin-bottom: 1rem;
}

/* Contact & Support */
/* ============================================
   SUPPORT / CONTACT TAB — Premium Redesign
   ============================================ */

.support-banner {
    margin-bottom: 1.4rem;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-dark);
    position: relative;
}

.support-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    opacity: 0.85;
}

/* Contact intro header */
.contact-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.5rem 0 1.2rem;
    gap: 0.3rem;
}

.contact-intro-icon {
    width: 52px;
    height: 52px;
    background: var(--accent-glow);
    border: 1.5px solid rgba(249,115,22,0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 0.4rem;
    box-shadow: 0 0 24px rgba(249,115,22,0.15);
}

.contact-intro h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.contact-intro p {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin: 0;
}

/* Contact grid — 2 columns */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
    margin-bottom: 1.3rem;
}

.contact-card {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    transition: all 0.22s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    opacity: 0;
    transition: opacity 0.22s ease;
    border-radius: 14px 14px 0 0;
}

.contact-card:first-child::before  { background: linear-gradient(90deg, #25D366, #128C7E); }
.contact-card:nth-child(2)::before { background: linear-gradient(90deg, #26A5E4, #0088cc); }
.contact-card:nth-child(3)::before { background: linear-gradient(90deg, #EA4335, #FBBC05); }
.contact-card:nth-child(4)::before { background: linear-gradient(90deg, #888, #eee); }

.contact-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-elevated);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

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

.contact-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    line-height: 1;
    flex-shrink: 0;
}

.contact-icon i {
    display: block;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.contact-card:first-child .contact-icon {
    background: rgba(37,211,102,0.12);
    border: 1px solid rgba(37,211,102,0.25);
    color: #25D366;
}

.contact-card:nth-child(2) .contact-icon {
    background: rgba(38,165,228,0.12);
    border: 1px solid rgba(38,165,228,0.25);
    color: #26A5E4;
}

.contact-card:nth-child(3) .contact-icon {
    background: rgba(234,67,53,0.12);
    border: 1px solid rgba(234,67,53,0.25);
    color: #EA4335;
}

.contact-card:nth-child(4) .contact-icon {
    background: rgba(160,160,160,0.1);
    border: 1px solid rgba(160,160,160,0.2);
    color: #aaa;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.contact-info strong {
    font-size: 0.78rem;
    color: var(--text-primary);
    font-weight: 700;
    display: block;
}

.contact-info span {
    font-size: 0.62rem;
    color: var(--text-muted);
    display: block;
}

.support-footer {
    border-top: 1px solid var(--border);
    padding-top: 0.9rem;
    text-align: center;
    font-size: 0.62rem;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

/* ============================================
   HOME TAB — Elegant Premium Redesign v2
   ============================================ */

.home-wrap {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

/* ─── Hero Card ─── */
.home-hero-card {
    position: relative;
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(249,115,22,0.05) 100%);
    border-radius: 20px;
    border: 1px solid rgba(249,115,22,0.2);
    padding: 2rem 1.5rem 1.6rem;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 30px rgba(249,115,22,0.08);
}

.home-hero-glow {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 160px;
    background: radial-gradient(ellipse, rgba(249,115,22,0.25) 0%, transparent 70%);
    pointer-events: none;
    animation: heroGlowPulse 3s ease-in-out infinite alternate;
}

@keyframes heroGlowPulse {
    from { opacity: 0.6; transform: translateX(-50%) scale(1); }
    to   { opacity: 1;   transform: translateX(-50%) scale(1.1); }
}

.home-hero-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(249,115,22,0.15), rgba(249,115,22,0.05));
    border: 1.5px solid rgba(249,115,22,0.35);
    border-radius: 18px;
    font-size: 1.7rem;
    color: var(--accent);
    margin-bottom: 0.9rem;
    box-shadow: 0 0 24px rgba(249,115,22,0.2), inset 0 1px 0 rgba(255,255,255,0.08);
}

.home-hero-text h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 40%, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-hero-text p {
    font-size: 0.6rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 1.4rem;
    opacity: 0.9;
}

.home-hero-stats {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    background: rgba(0,0,0,0.25);
    border-radius: 14px;
    border: 1px solid rgba(249,115,22,0.15);
    overflow: hidden;
    backdrop-filter: blur(4px);
}

.home-hero-stat {
    flex: 1;
    padding: 1rem 0.8rem;
    text-align: center;
}

.home-hero-stat span {
    display: block;
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.3rem;
    letter-spacing: -1px;
}

.home-hero-stat label {
    font-size: 0.55rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    cursor: default;
}

.home-hero-divider {
    width: 1px;
    background: rgba(249,115,22,0.15);
    flex-shrink: 0;
    align-self: stretch;
}

/* ─── Info Grid ─── */
.home-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}

.home-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 1.1rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    transition: all 0.22s ease;
    position: relative;
    overflow: hidden;
}

.home-info-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(249,115,22,0.4), transparent);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.home-info-card:hover {
    border-color: rgba(249,115,22,0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.home-info-card:hover::after {
    opacity: 1;
}

.home-info-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: linear-gradient(135deg, rgba(249,115,22,0.2), rgba(249,115,22,0.07));
    border: 1.5px solid rgba(249,115,22,0.32);
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.1rem;
    line-height: 1;
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(249,115,22,0.15), inset 0 1px 0 rgba(255,255,255,0.06);
}

.home-info-icon i {
    display: block;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.home-info-text h4 {
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
}

.home-info-text p {
    font-size: 0.62rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* ─── Developer Card ─── */
.home-dev-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.1rem 1.2rem;
    overflow: hidden;
}

.home-dev-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.home-dev-header i {
    color: var(--accent);
    font-size: 0.8rem;
}

.home-dev-badge {
    margin-left: auto;
    background: linear-gradient(135deg, rgba(249,115,22,0.2), rgba(249,115,22,0.08));
    border: 1px solid rgba(249,115,22,0.3);
    color: var(--accent);
    font-size: 0.58rem;
    font-weight: 700;
    padding: 0.18rem 0.6rem;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* 2-column grid for dev links */
/* ─── Developer Contact Links (2x2 grid, brand colors) ─── */
.home-dev-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.home-dev-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 0.85rem;
    border-radius: 13px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.22s ease;
    border: 1.5px solid var(--border);
    background: var(--bg-dark);
    min-width: 0;
}

.home-dev-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(0,0,0,0.22);
}

/* ── Telegram (blue) ── */
.home-dev-link--telegram {
    border-color: rgba(38,165,228,0.25);
}
.home-dev-link--telegram .home-dev-link-icon {
    background: rgba(38,165,228,0.12);
    border-color: rgba(38,165,228,0.3);
    color: #26A5E4;
}
.home-dev-link--telegram:hover {
    border-color: rgba(38,165,228,0.55);
    background: rgba(38,165,228,0.05);
}
.home-dev-link--telegram:hover .home-dev-link-icon {
    background: rgba(38,165,228,0.2);
    box-shadow: 0 0 10px rgba(38,165,228,0.25);
}

/* ── GitHub (white/gray) ── */
.home-dev-link--github {
    border-color: rgba(200,200,200,0.18);
}
.home-dev-link--github .home-dev-link-icon {
    background: rgba(200,200,200,0.08);
    border-color: rgba(200,200,200,0.25);
    color: #e0e0e0;
}
.home-dev-link--github:hover {
    border-color: rgba(200,200,200,0.45);
    background: rgba(200,200,200,0.04);
}
.home-dev-link--github:hover .home-dev-link-icon {
    background: rgba(200,200,200,0.15);
    color: #fff;
}

/* ── Email (Google red) ── */
.home-dev-link--email {
    border-color: rgba(234,67,53,0.22);
}
.home-dev-link--email .home-dev-link-icon {
    background: rgba(234,67,53,0.1);
    border-color: rgba(234,67,53,0.28);
    color: #EA4335;
}
.home-dev-link--email:hover {
    border-color: rgba(234,67,53,0.5);
    background: rgba(234,67,53,0.04);
}
.home-dev-link--email:hover .home-dev-link-icon {
    background: rgba(234,67,53,0.18);
    box-shadow: 0 0 10px rgba(234,67,53,0.2);
}

/* ── WhatsApp (green) ── */
.home-dev-link--whatsapp {
    border-color: rgba(37,211,102,0.22);
}
.home-dev-link--whatsapp .home-dev-link-icon {
    background: rgba(37,211,102,0.1);
    border-color: rgba(37,211,102,0.28);
    color: #25D366;
}
.home-dev-link--whatsapp:hover {
    border-color: rgba(37,211,102,0.5);
    background: rgba(37,211,102,0.04);
}
.home-dev-link--whatsapp:hover .home-dev-link-icon {
    background: rgba(37,211,102,0.18);
    box-shadow: 0 0 10px rgba(37,211,102,0.2);
}

/* ── Icon box shared ── */
.home-dev-link-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    border: 1.5px solid transparent;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    line-height: 1;
    flex-shrink: 0;
    transition: all 0.22s ease;
}

.home-dev-link-icon i {
    display: block;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.home-dev-link span {
    font-size: 0.72rem;
    font-weight: 700;
    display: block;
    color: var(--text-primary);
}

.home-dev-link small {
    font-size: 0.58rem;
    color: var(--text-muted);
    display: block;
    margin-top: -0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   DASHBOARD HEADER CARD
   ============================================ */
.dash-header-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.9rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.dash-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.dash-header-icon {
    width: 38px;
    height: 38px;
    background: var(--accent-glow);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1rem;
    flex-shrink: 0;
}

.dash-header-left h3 {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.dash-header-left p {
    font-size: 0.65rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-header-left strong {
    color: var(--accent);
    font-weight: 700;
}

.dash-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.1rem;
    background: var(--accent-glow);
    border: 1.5px solid rgba(249,115,22,0.35);
    border-radius: 10px;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.dash-add-btn i {
    font-size: 0.8rem;
}

.dash-add-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249,115,22,0.35);
}

.home-footer {
    text-align: center;
    padding: 0.4rem 0;
    font-size: 0.55rem;
    color: var(--text-muted);
}

/* Check Number & Notification */
#checkNumberInput, #notifRoleSelect, #notifTitle, #notifMessage,
#quotaUserSelect, #quotaAmount {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: var(--bg-dark);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.85rem;
    transition: var(--transition);
    font-family: inherit;
}

#checkNumberInput:focus, #notifRoleSelect:focus, #notifTitle:focus, 
#notifMessage:focus, #quotaUserSelect:focus, #quotaAmount:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

#checkNumberBtn, #sendNotifBtn, #increaseQuotaBtn {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.7rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
}

#checkNumberBtn:hover, #sendNotifBtn:hover, #increaseQuotaBtn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

#notifMessage {
    resize: vertical;
}

.quota-management {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: flex-end;
}

.quota-management .input-group {
    flex: 1;
    margin-bottom: 0;
}

#increaseQuotaBtn {
    width: auto;
    padding: 0.7rem 1.2rem;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    background: var(--bg-dark);
    border: 1.5px solid var(--border);
    border-radius: 40px;
    padding: 0.2rem 0.5rem;
    transition: var(--transition);
}

.search-bar:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-bar i {
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.search-bar input {
    flex: 1;
    padding: 0.6rem 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.8rem;
    outline: none;
    font-family: inherit;
}

/* Admin Grid */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 0.5rem;
}

.admin-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.25rem;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.admin-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-sm);
}

.admin-card .card-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.admin-card .card-header h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-card .card-header h3 i {
    color: var(--accent);
    font-size: 1rem;
}

.admin-card .input-group {
    margin-bottom: 0.75rem;
}

.admin-card .input-group:last-child {
    margin-bottom: 0;
}

.admin-card input,
.admin-card select,
.admin-card textarea {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.5rem;
    background: var(--bg-dark);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 0.8rem;
    color: var(--text-primary);
}

.admin-card button {
    width: 100%;
    padding: 0.7rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.admin-card .btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border: none;
    color: white;
}

.admin-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

.admin-card.full-width {
    grid-column: span 3;
}

/* User Info Stats */
.user-info-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.user-info-stats .stat-item {
    background: var(--bg-dark);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    text-align: center;
    min-width: 80px;
    flex: 1;
    border: 1px solid var(--border);
}

.user-info-stats .stat-item .stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
}

.user-info-stats .stat-item .stat-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-info-container {
    overflow-x: auto;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}

.user-table th,
.user-table td {
    padding: 0.75rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.user-table th {
    color: var(--text-muted);
    font-weight: 600;
    background: var(--bg-dark);
}

.user-table tr:hover {
    background: var(--accent-soft);
}

/* Quota Management */
.quota-management {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
}

.quota-management .input-group {
    flex: 1;
    margin-bottom: 0;
}

.quota-management button {
    width: auto;
    flex-shrink: 0;
    padding: 0.7rem 1.2rem;
    margin-top: 0;
}

/* ========== HITAM ABU-ABU ORANGE (ENTERPRISE DARK) ========== */
[data-theme="dark"] {
    --bg-base: #050505;
    --bg-card: #0c0c0c;
    --bg-dark: #121212;
    --bg-sidebar: #0a0a0a;
    --bg-elevated: #141414;
    --text-primary: #f0ede8;
    --text-secondary: #a8a29e;
    --text-muted: #6b6560;
    --border: rgba(48, 48, 48, 0.9);
    --border-light: rgba(48, 48, 48, 0.4);
    --border-hover: rgba(249, 115, 22, 0.45);
    --accent: #f97316;
    --accent-bright: #fb923c;
    --accent-hover: #ea6c0a;
    --accent-glow: rgba(249, 115, 22, 0.1);
    --accent-glow-md: rgba(249, 115, 22, 0.18);
    --accent-soft: rgba(249, 115, 22, 0.06);
    --shadow-accent: 0 8px 24px rgba(249, 115, 22, 0.22);
    --glass-border: rgba(249, 115, 22, 0.18);
}

[data-theme="light"] {
    --bg-base: #faf9f7;
    --bg-card: #ffffff;
    --bg-dark: #f5f3f0;
    --bg-sidebar: #fafafa;
    --bg-elevated: #f8f6f3;
    --text-primary: #1c1917;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --border: rgba(0, 0, 0, 0.07);
    --border-light: rgba(0, 0, 0, 0.04);
    --border-hover: rgba(249, 115, 22, 0.35);
    --accent: #f97316;
    --accent-bright: #ea6c0a;
    --accent-hover: #c2530a;
    --accent-glow: rgba(249, 115, 22, 0.08);
    --accent-glow-md: rgba(249, 115, 22, 0.14);
    --accent-soft: rgba(249, 115, 22, 0.05);
    --shadow-accent: 0 4px 16px rgba(249, 115, 22, 0.18);
    --glass-border: rgba(249, 115, 22, 0.1);
}

/* override semua tombol & link pake orange */
.btn-login,
.btn-primary,
.btn-primary-sm,
.create-user-form button[type="submit"],
.admin-card .btn-primary,
#checkNumberBtn,
#sendNotifBtn,
#increaseQuotaBtn {
    background: var(--accent) !important;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover)) !important;
    border: none !important;
    color: white !important;
    box-shadow: var(--shadow-accent) !important;
}

.btn-login:hover,
.btn-primary:hover,
.btn-primary-sm:hover,
#checkNumberBtn:hover,
#sendNotifBtn:hover,
#increaseQuotaBtn:hover {
    background: var(--accent-hover) !important;
    transform: translateY(-2px);
}

/* elemen aktif pake orange */
.nav-item.active,
.login-tab.active {
    background: var(--accent-glow-md) !important;
    color: var(--accent) !important;
}

/* link & icon aksen */
.forgot-link,
.nav-item i,
.card-header h3 i,
.home-icon,
.stat-icon i,
.welcome-text h3 span {
    color: var(--accent) !important;
}

/* border aksen */
.number-item,
.user-item,
.access-item {
    border-left-color: var(--accent) !important;
}

/* badge developer pake orange */
.role-badge.developer {
    background: var(--accent-glow) !important;
    color: var(--accent) !important;
}

/* hover efek */
.nav-item:hover {
    background: var(--accent-glow) !important;
    color: var(--accent) !important;
}

/* focus input */
.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus,
#checkNumberInput:focus,
.search-bar:focus-within {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px var(--accent-glow) !important;
}

/* stat value pake orange */
.stat-value,
.home-stat-value {
    color: var(--accent) !important;
}

/* Sembunyikan menu Users di sidebar & mobile menu untuk member */
body.member-role .sidebar-nav .nav-item[data-tab="users"],
body.member-role #mobileNavUsers {
    display: none !important;
}

/* ========== MODERN TOAST NOTIFICATION ========== */
.modern-toast {
    position: relative;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 14px 18px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    transform: translateX(calc(100% + 20px));
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    min-width: 320px;
    max-width: 380px;
    backdrop-filter: blur(10px);
}

.modern-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.modern-toast.hide {
    transform: translateX(calc(100% + 20px));
    opacity: 0;
}

.modern-toast-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
}

.modern-toast-icon i {
    font-size: 1.4rem;
    color: white;
}

.modern-toast-content {
    flex: 1;
}

.modern-toast-title {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.modern-toast-message {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.modern-toast-message strong {
    color: var(--accent);
}

.modern-toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.modern-toast-close:hover {
    background: var(--accent-glow);
    color: var(--accent);
}

@media (max-width: 480px) {
    .modern-toast {
        min-width: 280px;
        max-width: 320px;
        padding: 12px 14px;
    }
    .modern-toast-icon {
        width: 38px;
        height: 38px;
    }
    .modern-toast-icon i {
        font-size: 1.2rem;
    }
}

/* Modern Stats & Cards */
.home-stat-item {
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}

.home-stat-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-accent);
}

.home-contact-card {
    transition: all 0.2s ease;
}

.home-contact-card:hover {
    transform: translateY(-3px);
    background: var(--accent-glow);
    border-color: var(--accent);
    color: var(--accent);
}

@media (max-width: 480px) {
    .login-container {
        padding: 1.2rem;
    }
    .login-header h1 {
        font-size: 1.3rem;
    }
    .login-tab {
        font-size: 0.7rem;
        padding: 0.4rem;
    }
    .home-contact-card {
        padding: 0.35rem 0.75rem;
        font-size: 0.65rem;
    }
}

@media (min-width: 640px) {
    .contact-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
}

/* ══════════════════════════════════════════
   PROFILE INFO CARDS (redesign)
══════════════════════════════════════════ */

/* Info cards container */
.pinfo-cards {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-bottom: 1.2rem;
}

/* Identity card */
.pinfo-identity {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.2rem;
}

.pinfo-card-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}
.pinfo-card-header i {
    color: var(--accent);
    font-size: 0.62rem;
}

.pinfo-display-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 0.3rem;
}

.pinfo-username-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.pinfo-at {
    color: var(--accent);
    font-weight: 700;
}

.pinfo-role-badge {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.18rem 0.55rem;
    border-radius: 20px;
    background: var(--accent-soft);
    color: var(--accent-bright);
    border: 1px solid var(--glass-border);
}
.pinfo-role-badge.role-developer { background: rgba(139,92,246,.12); color: #a78bfa; border-color: rgba(139,92,246,.25); }
.pinfo-role-badge.role-owner     { background: rgba(91,156,246,.12); color: #5b9cf6; border-color: rgba(91,156,246,.25); }
.pinfo-role-badge.role-reseller  { background: var(--success-soft);  color: var(--success); border-color: rgba(16,185,129,.25); }
.pinfo-role-badge.role-member    { background: var(--accent-soft);   color: var(--accent-bright); border-color: var(--glass-border); }

.pinfo-bio-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-style: italic;
}

/* Stats row */
.pinfo-stats-row {
    display: flex;
    align-items: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0.9rem 1rem;
}
.pinfo-stat {
    flex: 1;
    text-align: center;
}
.pinfo-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.25rem;
}
.pinfo-stat-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.pinfo-stat-divider {
    width: 1px;
    height: 2.2rem;
    background: var(--border);
    flex-shrink: 0;
}

/* Detail rows */
.pinfo-details {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.pinfo-detail-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.72rem 1.1rem;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s;
}
.pinfo-detail-row:last-child { border-bottom: none; }
.pinfo-detail-row:hover { background: var(--bg-card-hover); }

.pinfo-detail-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: var(--accent-soft);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.65rem;
    color: var(--accent);
}
.pinfo-detail-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    width: 90px;
    flex-shrink: 0;
}
.pinfo-detail-value {
    font-size: 0.82rem;
    color: var(--text-primary);
    flex: 1;
    word-break: break-all;
}

/* Edit toggle */
.pinfo-edit-toggle-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 0.8rem;
}
.pinfo-edit-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.4rem;
    border-radius: 30px;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}
.pinfo-edit-toggle:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}
.pinfo-edit-toggle.active {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

@media (max-width: 480px) {
    .pinfo-detail-label { width: 72px; }
    .pinfo-stat-value { font-size: 1.05rem; }
}
