/* ══════════════════════════════════════════════════════════════════════════
   ZURA PANEL — Admin & Soporte v2.0 (Zura Blue Theme + Premium UI)
   ══════════════════════════════════════════════════════════════════════════ */

:root {
    --bg-dark: #080914;
    --bg-darker: #04050d;
    --bg-surface: #0b0d1a;
    --card-bg: rgba(16, 20, 36, 0.82);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover-border: rgba(56, 189, 248, 0.35);

    /* Marca Zura */
    --brand: #38bdf8;
    --brand-dark: #0ea5e9;
    --brand-darker: #2563eb;
    --brand-glow: rgba(56, 189, 248, 0.35);
    --brand-soft: rgba(56, 189, 248, 0.12);
    --brand-gradient: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --danger: #ef4444;
    --danger-soft: rgba(239, 68, 68, 0.15);
    --warning: #f59e0b;
    --warning-soft: rgba(245, 158, 11, 0.15);
    --success: #10b981;
    --success-soft: rgba(16, 185, 129, 0.15);
    --purple: #8b5cf6;
    --purple-soft: rgba(139, 92, 246, 0.15);

    --sidebar-width: 270px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 26px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.65);
    --shadow-brand: 0 8px 30px rgba(56, 189, 248, 0.25);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 15% 15%, rgba(56, 189, 248, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(99, 102, 241, 0.05) 0%, transparent 45%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

/* ─── GLASS PANEL ─── */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
    border-color: var(--card-hover-border);
    box-shadow: var(--shadow-md), 0 0 24px rgba(56, 189, 248, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ─── SECTION ANIMATION ─── */
.panel-section {
    animation: zuraSectionIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ─── BUTTONS ─── */
.glass-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-main);
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.15);
}

.glass-btn:active {
    transform: translateY(0) scale(0.98);
}

.glass-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-brand {
    background: var(--brand-gradient);
    color: #fff;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-brand:hover {
    box-shadow: 0 10px 40px rgba(56, 189, 248, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger-soft);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.55);
}

.btn-success {
    background: var(--success-soft);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
}

.btn-success:hover {
    background: rgba(16, 185, 129, 0.25);
    border-color: rgba(16, 185, 129, 0.55);
}

/* ─── LAYOUT ─── */
.app-layout {
    display: flex;
    width: 100vw;
    min-height: 100vh;
}

/* ─── SIDEBAR ─── */
.panel-sidebar {
    width: var(--sidebar-width);
    background: rgba(8, 10, 20, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--card-border);
    padding: 22px 14px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 4px 18px 4px;
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 16px;
}

.sidebar-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--brand-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow-brand);
    flex-shrink: 0;
}

.sidebar-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.brand-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    color: #fff;
    letter-spacing: -0.3px;
    line-height: 1.1;
}

.badge-tag {
    font-size: 0.62rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: inline-block;
    margin-top: 4px;
}

.badge-admin {
    background: var(--brand-soft);
    color: var(--brand);
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.badge-support {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-guard {
    background: var(--purple-soft);
    color: #c084fc;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Mode Switcher */
.mode-switcher-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 5px;
    margin-bottom: 16px;
    display: flex;
    gap: 4px;
}

.mode-btn {
    flex: 1;
    padding: 9px 8px;
    border-radius: 9px;
    border: none;
    background: transparent;
    color: var(--text-dim);
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.22s ease;
    text-align: center;
    font-family: inherit;
    letter-spacing: 0.02em;
}

.mode-btn.active {
    background: var(--brand-gradient);
    color: #fff;
    box-shadow: 0 4px 14px var(--brand-glow);
}

/* Navigation */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    overflow-y: auto;
    padding-right: 2px;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.3);
    border-radius: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.86rem;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    background: var(--brand-soft);
    color: var(--brand);
    border-color: rgba(56, 189, 248, 0.3);
    font-weight: 700;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 3px;
    background: var(--brand);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px var(--brand);
}

.nav-link i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Sidebar Footer */
.sidebar-footer {
    padding-top: 14px;
    border-top: 1px solid var(--card-border);
    margin-top: 8px;
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-darker));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 0 12px var(--brand-glow);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.user-details .name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-details .role {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 1px;
}

/* ─── MAIN CONTENT ─── */
.panel-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 28px 32px;
    min-height: 100vh;
    width: calc(100vw - var(--sidebar-width));
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 16px;
}

.header-title h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 900;
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.header-title p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
    line-height: 1.4;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Support Contact Strip */
.support-strip {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(37, 99, 235, 0.12));
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: var(--radius-lg);
    padding: 16px 22px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.support-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.support-contact-item i {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: rgba(56, 189, 248, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    font-size: 1rem;
    flex-shrink: 0;
}

/* ─── STATS GRID ─── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.stat-card {
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--brand-gradient);
    opacity: 0.5;
    transition: opacity 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md), 0 0 24px rgba(56, 189, 248, 0.18);
}

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

.stat-card .title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    font-weight: 800;
}

.stat-card .value {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    margin: 8px 0;
    color: #fff;
    text-shadow: 0 0 25px rgba(56, 189, 248, 0.25);
    letter-spacing: -0.5px;
}

.stat-card .subtext {
    font-size: 0.72rem;
    color: var(--brand);
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

/* ─── FORMS ─── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 15px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.form-input,
.form-select,
.form-textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 12px 15px;
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.25s ease;
    width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
    background: rgba(255, 255, 255, 0.06);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

/* ─── TABLES ─── */
.table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    background: rgba(0, 0, 0, 0.2);
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.85rem;
}

.custom-table th {
    background: rgba(255, 255, 255, 0.03);
    padding: 13px 16px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    border-bottom: 1px solid var(--card-border);
    font-weight: 800;
}

.custom-table td {
    padding: 13px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #e5e7eb;
    vertical-align: middle;
}

.custom-table tbody tr:hover td {
    background: rgba(56, 189, 248, 0.04);
}

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

/* ─── STATUS PILLS ─── */
.status-pill {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.02em;
}

.status-active {
    background: var(--success-soft);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.status-suspended {
    background: var(--danger-soft);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.status-pending {
    background: var(--warning-soft);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.status-in_progress {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

/* ─── AUTH MODAL ─── */
.auth-modal-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, #0a1024 0%, #04060f 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    max-width: 440px;
    width: 100%;
    padding: 38px 32px;
    text-align: center;
    background: rgba(16, 20, 36, 0.92) !important;
    border: 1px solid rgba(56, 189, 248, 0.28) !important;
    box-shadow: var(--shadow-lg), 0 0 60px rgba(56, 189, 248, 0.15) !important;
}

.auth-logo {
    width: 80px;
    height: 80px;
    border-radius: 22px;
    background: radial-gradient(circle, var(--brand-soft), transparent 70%);
    margin: 0 auto 18px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.auth-logo::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--brand-glow) 0%, transparent 70%);
    filter: blur(20px);
    animation: authLogoPulse 3s ease-in-out infinite alternate;
}

@keyframes authLogoPulse {
    0% { opacity: 0.4; transform: scale(0.9); }
    100% { opacity: 0.85; transform: scale(1.15); }
}

.auth-logo img {
    width: 72%;
    height: 72%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.5));
}

/* ─── MOBILE ─── */
.mobile-nav-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--card-border);
    color: #fff;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-nav-toggle:hover {
    background: var(--brand-soft);
    border-color: var(--brand);
    color: var(--brand);
}

.mobile-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(4, 5, 12, 0.80);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99;
    animation: zuraBackdropFade 0.25s ease;
}

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

/* ─── VAULT MODAL ─── */
.db-secret-btn {
    border-radius: 999px;
}

.db-secret-btn.linked {
    background: var(--success-soft);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #6ee7b7;
}

.db-secret-btn.unlinked {
    background: var(--warning-soft);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

.vault-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 5, 12, 0.95);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.vault-modal-overlay.open {
    display: flex;
}

.vault-card {
    max-width: 520px;
    width: 100%;
    padding: 36px 30px;
    text-align: center;
    background: rgba(16, 20, 36, 0.95) !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    box-shadow: var(--shadow-lg), 0 0 50px rgba(56, 189, 248, 0.15) !important;
    border-radius: var(--radius-xl) !important;
}

.vault-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px auto;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--brand-soft), rgba(37, 99, 235, 0.15));
    border: 1px solid rgba(56, 189, 248, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--brand);
    box-shadow: 0 0 30px var(--brand-glow);
}

.vault-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.4px;
}

.vault-subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.vault-subtitle b {
    color: var(--brand);
    font-weight: 700;
}

.vault-msg {
    font-size: 0.8rem;
    margin: 12px 0 4px 0;
    text-align: left;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    display: none;
    font-weight: 600;
}

.vault-msg.ok {
    display: block;
    background: var(--success-soft);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
}

.vault-msg.error {
    display: block;
    background: var(--danger-soft);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

/* ─── UPLOAD CARD ─── */
.upload-preview-card {
    height: 180px;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px dashed rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    text-align: center;
    padding: 14px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    overflow: hidden;
    position: relative;
    transition: all 0.25s ease;
}

.upload-preview-card:hover {
    border-color: var(--brand);
    background: var(--brand-soft);
}

.upload-preview-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

/* ─── CONSOLE ─── */
.console-box {
    background: rgba(4, 5, 12, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: var(--radius-md);
    font-family: 'Consolas', 'Menlo', monospace;
    font-size: 0.78rem;
    overflow: hidden;
}

.console-title {
    padding: 10px 16px;
    background: var(--brand-soft);
    border-bottom: 1px solid rgba(56, 189, 248, 0.3);
    font-weight: 800;
    color: var(--brand);
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.console-log {
    padding: 14px 16px;
    color: #7dd3fc;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 220px;
    overflow-y: auto;
    margin: 0;
    line-height: 1.6;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .panel-sidebar {
        transform: translateX(-100%);
        box-shadow: 20px 0 60px rgba(0, 0, 0, 0.9);
    }

    .panel-sidebar.mobile-open {
        transform: translateX(0);
    }

    .panel-main {
        margin-left: 0;
        width: 100vw;
        padding: 18px 14px 40px 14px;
    }

    .mobile-nav-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 768px) {
    .panel-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .panel-header > div:first-child {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .header-title h1 {
        font-size: 1.3rem;
    }

    .header-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }

    .header-actions button,
    .header-actions span {
        flex: 1 1 calc(50% - 4px);
        min-width: 120px;
        justify-content: center;
        font-size: 0.75rem !important;
        padding: 9px 10px !important;
    }

    .support-strip {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px 16px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 20px;
    }

    .stat-card {
        padding: 14px 12px;
    }

    .stat-card .value {
        font-size: 1.5rem;
    }

    div[style*="grid-template-columns:repeat(auto-fit,minmax(340px,1fr))"],
    div[style*="grid-template-columns: repeat(auto-fit, minmax(340px, 1fr))"],
    div[style*="grid-template-columns:repeat(auto-fit,minmax(280px,1fr))"],
    div[style*="grid-template-columns: repeat(auto-fit, minmax(280px, 1fr))"],
    div[style*="grid-template-columns:1fr 1fr"],
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    .glass-panel {
        padding: 16px !important;
        border-radius: var(--radius-md);
    }

    .table-container {
        border-radius: var(--radius-sm);
    }

    .custom-table {
        min-width: 560px;
    }
}

@media (max-width: 480px) {
    .panel-main {
        padding: 14px 10px 30px 10px;
    }

    .header-title h1 {
        font-size: 1.15rem;
    }

    .header-actions {
        flex-direction: column;
    }

    .header-actions button,
    .header-actions span {
        flex: 1 1 100%;
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .auth-card,
    .vault-card {
        padding: 24px 16px !important;
        border-radius: var(--radius-lg) !important;
        max-width: 95vw !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}