/* ===== XCIPTV Panel - Futuristic Red/Black Theme ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Orbitron:wght@400;500;600;700&display=swap');

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: #16161f;
    --bg-card-hover: #1e1e2a;
    --border-color: #2a1a1a;
    --border-glow: #dc143c33;
    --accent: #dc143c;
    --accent-hover: #e82040;
    --accent-glow: rgba(220, 20, 60, 0.4);
    --accent-soft: rgba(220, 20, 60, 0.12);
    --success: #00e676;
    --warning: #ffab00;
    --danger: #ff1744;
    --info: #40c4ff;
    --text-primary: #f0f0f5;
    --text-secondary: #8a8a9a;
    --text-muted: #55556a;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow: 0 4px 24px rgba(0,0,0,0.5);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.6);
    --shadow-glow: 0 0 30px rgba(220, 20, 60, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-bg: rgba(22, 22, 31, 0.6);
    --glass-border: rgba(220, 20, 60, 0.15);
    --glass-blur: blur(20px);
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 20%, rgba(220, 20, 60, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 80%, rgba(220, 20, 60, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(30, 10, 10, 0.8) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: #3a1a1a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ===== Login Page ===== */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    position: relative;
}

.login-bg-pattern {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(220, 20, 60, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(220, 20, 60, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(10, 10, 15, 0.9) 0%, transparent 100%);
    z-index: 0;
}

.login-bg-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(220,20,60,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(220,20,60,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    margin: 20px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.login-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: linear-gradient(135deg, rgba(220,20,60,0.3), transparent 50%, rgba(220,20,60,0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.login-logo {
    text-align: center;
    margin-bottom: 36px;
}

.login-logo .logo-img {
    max-width: 120px;
    max-height: 120px;
    margin: 0 auto 16px;
    display: block;
    border-radius: 16px;
    object-fit: contain;
}

.login-logo .logo-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--accent), #8b0000);
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #fff;
    margin-bottom: 16px;
    box-shadow: 0 8px 32px var(--accent-glow);
    position: relative;
}

.login-logo .logo-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--accent), transparent);
    z-index: -1;
    opacity: 0.4;
    filter: blur(8px);
}

.login-logo h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px;
    letter-spacing: 2px;
}

.login-logo p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    letter-spacing: 0.5px;
}

/* ===== Form Elements ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow), inset 0 0 20px rgba(220, 20, 60, 0.05);
    background: rgba(10, 10, 15, 0.8);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* ===== Glass Buttons ===== */
.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent), #8b0000);
    border: 1px solid rgba(220, 20, 60, 0.5);
    border-radius: var(--radius);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn-login:hover::before {
    transform: translateX(100%);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--accent-glow), 0 0 60px rgba(220, 20, 60, 0.2);
}

.btn-login:active {
    transform: translateY(0);
}

/* ===== Panel Layout ===== */
.panel-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ===== Sidebar ===== */
.sidebar {
    width: 260px;
    background: rgba(17, 17, 24, 0.95);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--border-color);
    padding: 24px 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.sidebar-logo {
    padding: 0 24px 24px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo .logo-img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: contain;
    flex-shrink: 0;
}

.sidebar-logo .s-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--accent), #8b0000);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.sidebar-logo span {
    font-family: 'Orbitron', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.sidebar-nav {
    flex: 1;
    padding: 0 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 4px;
    position: relative;
    border: 1px solid transparent;
}

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

.nav-item.active {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.2), rgba(139, 0, 0, 0.15));
    color: #fff;
    border-color: rgba(220, 20, 60, 0.4);
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.1);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--accent);
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 10px var(--accent-glow);
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.sidebar-footer {
    padding: 16px 12px 0;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

/* ===== Main Content ===== */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 32px;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

/* ===== Stats Cards ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

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

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow), 0 0 30px rgba(220, 20, 60, 0.1);
    border-color: rgba(220, 20, 60, 0.3);
}

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
    position: relative;
}

.stat-card .stat-icon.purple { background: rgba(220, 20, 60, 0.12); color: var(--accent); }
.stat-card .stat-icon.teal { background: rgba(0, 230, 118, 0.12); color: var(--success); }
.stat-card .stat-icon.blue { background: rgba(64, 196, 255, 0.12); color: var(--info); }
.stat-card .stat-icon.orange { background: rgba(255, 171, 0, 0.12); color: var(--warning); }
.stat-card .stat-icon.red { background: rgba(255, 23, 68, 0.12); color: var(--danger); }

.stat-card .stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.2;
    color: var(--text-primary);
}

.stat-card .stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== Content Cards ===== */
.content-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
}

.content-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(220, 20, 60, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.content-card-header h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
}

.content-card-body {
    padding: 24px;
}

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

.pro-table {
    width: 100%;
    border-collapse: collapse;
}

.pro-table thead th {
    background: rgba(10, 10, 15, 0.5);
    padding: 14px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.pro-table tbody td {
    padding: 14px 16px;
    font-size: 13px;
    border-bottom: 1px solid rgba(42, 26, 26, 0.5);
    color: var(--text-primary);
    word-wrap: break-word;
}

.pro-table tbody tr {
    transition: var(--transition);
}

.pro-table tbody tr:hover {
    background: rgba(220, 20, 60, 0.04);
}

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

/* ===== Badges ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-success {
    background: rgba(0, 230, 118, 0.12);
    color: var(--success);
    border: 1px solid rgba(0, 230, 118, 0.2);
}

.badge-danger {
    background: rgba(255, 23, 68, 0.12);
    color: var(--danger);
    border: 1px solid rgba(255, 23, 68, 0.2);
}

.badge-warning {
    background: rgba(255, 171, 0, 0.12);
    color: var(--warning);
    border: 1px solid rgba(255, 171, 0, 0.2);
}

/* ===== Glass Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn:hover::before {
    opacity: 1;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #8b0000);
    color: #fff;
    border-color: rgba(220, 20, 60, 0.5);
    box-shadow: 0 2px 12px rgba(220, 20, 60, 0.2);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-hover), #a00000);
    box-shadow: 0 4px 20px var(--accent-glow);
    color: #fff;
}

.btn-success {
    background: rgba(0, 230, 118, 0.08);
    color: var(--success);
    border: 1px solid rgba(0, 230, 118, 0.2);
}
.btn-success:hover { background: rgba(0, 230, 118, 0.15); color: var(--success); box-shadow: 0 4px 16px rgba(0, 230, 118, 0.15); }

.btn-warning {
    background: rgba(255, 171, 0, 0.08);
    color: var(--warning);
    border: 1px solid rgba(255, 171, 0, 0.2);
}
.btn-warning:hover { background: rgba(255, 171, 0, 0.15); color: var(--warning); box-shadow: 0 4px 16px rgba(255, 171, 0, 0.15); }

.btn-danger {
    background: rgba(255, 23, 68, 0.08);
    color: var(--danger);
    border: 1px solid rgba(255, 23, 68, 0.2);
}
.btn-danger:hover { background: rgba(255, 23, 68, 0.15); color: var(--danger); box-shadow: 0 4px 16px rgba(255, 23, 68, 0.15); }

.btn-info {
    background: rgba(64, 196, 255, 0.08);
    color: var(--info);
    border: 1px solid rgba(64, 196, 255, 0.2);
}
.btn-info:hover { background: rgba(64, 196, 255, 0.15); color: var(--info); box-shadow: 0 4px 16px rgba(64, 196, 255, 0.15); }

.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn-block { width: 100%; justify-content: center; }

/* ===== Forms ===== */
.form-card {
    max-width: 520px;
    margin: 0 auto;
}

.form-control {
    width: 100%;
    padding: 13px 18px;
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow), inset 0 0 20px rgba(220, 20, 60, 0.05);
    background: rgba(10, 10, 15, 0.8);
}

.form-control::placeholder { color: var(--text-muted); }

textarea.form-control { resize: vertical; min-height: 120px; }

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.form-check-label {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ===== Modals ===== */
.modal-content {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--border-color) !important;
    padding: 20px 24px;
}

.modal-header h2, .modal-header h5 {
    color: var(--text-primary) !important;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.modal-body {
    color: var(--text-secondary) !important;
    padding: 20px 24px;
    font-size: 14px;
}

.modal-footer {
    border-top: 1px solid var(--border-color) !important;
    padding: 16px 24px;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
    color: var(--accent);
}

.empty-state p {
    font-size: 14px;
}

/* ===== Mobile Toggle ===== */
.mobile-toggle {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 200;
    width: 44px;
    height: 44px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-shadow: var(--shadow);
}

/* ===== Sidebar Overlay (mobile) ===== */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 99;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.sidebar-overlay.show {
    display: block;
}

/* ===== Mobile Top Bar ===== */
.mobile-topbar {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 56px;
    background: rgba(17, 17, 24, 0.95);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    z-index: 90;
    align-items: center;
    padding: 0 16px 0 64px;
}

.mobile-topbar .topbar-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 1px;
}

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

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(220, 20, 60, 0.1); }
    50% { box-shadow: 0 0 30px rgba(220, 20, 60, 0.2); }
}

.stat-card, .content-card {
    animation: fadeIn 0.5s ease forwards;
}

.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.2s; }
.stat-card:nth-child(4) { animation-delay: 0.3s; }

/* ===== Responsive — Tablet (max 1024px) ===== */
@media (max-width: 1024px) {
    .sidebar { width: 220px; }
    .main-content { margin-left: 220px; padding: 28px 24px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Responsive — Mobile (max 768px) ===== */
@media (max-width: 768px) {
    .mobile-toggle { display: flex; }
    .mobile-topbar { display: flex; }
    .sidebar {
        position: fixed;
        transform: translateX(-100%);
        width: 280px;
        z-index: 100;
        box-shadow: none;
    }
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 8px 0 30px rgba(0,0,0,0.8);
    }
    .main-content { margin-left: 0; padding: 72px 16px 24px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .stat-card { padding: 16px; }
    .stat-card .stat-icon { width: 42px; height: 42px; font-size: 16px; margin-bottom: 12px; }
    .stat-card .stat-value { font-size: 20px; }
    .stat-card .stat-label { font-size: 10px; }
    .page-header { margin-bottom: 20px; }
    .page-header h1 { font-size: 18px; }
    .page-header p { font-size: 12px; }
    .content-card-header { flex-wrap: wrap; gap: 12px; padding: 16px; }
    .content-card-body { padding: 16px; }
    .form-card { max-width: 100%; }
    .btn { padding: 12px 18px; font-size: 13px; }
    .btn-sm { padding: 10px 14px; font-size: 12px; }

    .pro-table thead { display: none; }
    .pro-table tbody tr {
        display: block;
        background: rgba(22, 22, 31, 0.8);
        border: 1px solid var(--border-color);
        border-radius: var(--radius);
        margin-bottom: 12px;
        padding: 14px 16px;
    }
    .pro-table tbody tr:hover { background: var(--bg-card-hover); }
    .pro-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 0;
        border-bottom: 1px solid rgba(42,26,26,0.3);
        font-size: 12px;
    }
    .pro-table tbody td:last-child {
        border-bottom: none;
        padding-top: 10px;
        justify-content: flex-start;
        gap: 8px;
    }
    .pro-table tbody td::before {
        content: attr(data-label);
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--text-muted);
        flex-shrink: 0;
        margin-right: 12px;
    }
    .pro-table tbody td[style*="max-width"] {
        max-width: none !important;
        white-space: normal !important;
        word-break: break-all;
    }
    .modal-dialog { margin: 16px; }
    .login-card { padding: 32px 24px; margin: 16px; border-radius: var(--radius); }
    .login-logo .logo-icon { width: 56px; height: 56px; font-size: 24px; }
    .login-logo h2 { font-size: 20px; }
}

/* ===== Responsive — Small phones (max 480px) ===== */
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; gap: 10px; }
    .stat-card { display: flex; align-items: center; gap: 16px; padding: 14px 16px; }
    .stat-card .stat-icon { margin-bottom: 0; flex-shrink: 0; }
    .stat-card .stat-info { flex: 1; }
    .main-content { padding: 64px 12px 20px; }
    .page-header h1 { font-size: 16px; }
    .content-card-header h3 { font-size: 13px; }
    .btn { padding: 10px 16px; font-size: 12px; }
}

/* ===== Safe area (notch phones) ===== */
@supports (padding: env(safe-area-inset-bottom)) {
    .sidebar-footer { padding-bottom: env(safe-area-inset-bottom); }
    .main-content { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.mt-3 { margin-top: 16px; }
.gap-2 { gap: 8px; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
