/* Modern Dark Glassmorphic Design System */

:root {
    --bg-dark: #070b19;
    --card-bg: rgba(13, 20, 38, 0.45);
    --card-border: rgba(255, 255, 255, 0.07);
    --input-bg: rgba(10, 15, 30, 0.65);
    --input-border: rgba(255, 255, 255, 0.1);
    
    /* Neon gradients & colors */
    --color-primary: #00d2ff;
    --color-secondary: #0066ff;
    --color-purple: #a855f7;
    --color-purple-dark: #7e22ce;
    --color-green: #10b981;
    --color-green-light: #34d399;
    --color-red: #ef4444;
    
    /* Typography */
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadows */
    --neon-glow-blue: 0 0 15px rgba(0, 210, 255, 0.35);
    --neon-glow-purple: 0 0 15px rgba(168, 85, 247, 0.35);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: #e2e8f0;
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Neon Glow Background Circles */
.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

.bg-glow-1 {
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    top: -10%;
    left: -10%;
}

.bg-glow-2 {
    background: radial-gradient(circle, var(--color-purple) 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
}

.bg-glow-3 {
    background: radial-gradient(circle, var(--color-secondary) 0%, transparent 70%);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    opacity: 0.1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(13, 20, 38, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Container */
.app-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
}

/* Screen Transitions */
.screen {
    display: none;
    width: 100%;
    max-width: 1200px;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.screen.active {
    display: block;
    opacity: 1;
    transform: scale(1);
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    padding: 24px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

/* ================= LOGIN CARDS ================= */
.login-card {
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
    padding: 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.5), transparent, rgba(168, 85, 247, 0.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.brand {
    margin-bottom: 30px;
}

.logo-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: #fff;
    box-shadow: var(--neon-glow-blue);
    animation: pulse-glow 3s infinite ease-in-out;
}

.logo-icon.admin-logo {
    background: linear-gradient(135deg, var(--color-purple), var(--color-purple-dark));
    box-shadow: var(--neon-glow-purple);
}

.brand h2 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand p {
    font-size: 14px;
    color: #94a3b8;
}

/* Forms and Inputs */
.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #4b5563;
    font-size: 16px;
    transition: color 0.3s;
}

.input-wrapper input, .input-wrapper textarea, .input-group input, .input-group textarea {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 14px 16px 14px 48px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.input-group input, .input-group textarea {
    padding-left: 16px;
}

.input-wrapper input:focus, .input-group input:focus, .input-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.15);
    background: rgba(10, 15, 30, 0.8);
}

.input-wrapper input:focus + .input-icon {
    color: var(--color-primary);
}

.toggle-pwd-btn, .btn-eye {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #4b5563;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    outline: none;
}

.toggle-pwd-btn:hover, .btn-eye:hover {
    color: #94a3b8;
}

/* Buttons */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    padding: 14px 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    outline: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #fff;
}

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

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

.btn-purple {
    background: linear-gradient(135deg, var(--color-purple), var(--color-purple-dark));
    color: #fff;
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: var(--color-red);
    color: #fff;
}

.btn-icon {
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 12px;
}

.glow-btn {
    position: relative;
    overflow: hidden;
}

.glow-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30px;
    height: 200%;
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(30deg);
    transition: transform 0.5s;
    opacity: 0.13;
}

.glow-btn:hover::after {
    transform: translate(250%, 0) rotate(30deg);
    transition: transform 0.7s;
}

.login-footer {
    margin-top: 25px;
    font-size: 13px;
}

.login-footer a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s;
}

.login-footer a:hover {
    color: var(--color-primary);
}

/* ================= NAVIGATION NAV ================= */
.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 16px 24px;
    margin-bottom: 24px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.nav-brand i {
    color: var(--color-primary);
}

.admin-nav .nav-brand i {
    color: var(--color-purple);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #94a3b8;
}

/* ================= MAIN LAYOUT ================= */
.main-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: start;
}

.sidebar {
    padding: 16px;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    color: #94a3b8;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

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

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

.nav-item.active {
    color: #fff;
    background: rgba(0, 210, 255, 0.1);
    border-left: 3px solid var(--color-primary);
}

.admin-nav + .main-layout .nav-item.active {
    background: rgba(168, 85, 247, 0.1);
    border-left: 3px solid var(--color-purple);
}

.badge {
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    margin-left: auto;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-primary);
    padding: 0;
    margin-left: auto;
}

.bg-red {
    background-color: var(--color-red);
    color: #fff;
}

/* Tab Content Visibility */
.tab-content {
    display: none;
    animation: fade-in 0.3s ease-out;
}

.tab-content.active {
    display: block;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ================= STATS GRID & PROGRESS ================= */
.stats-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.stat-card {
    display: flex;
    flex-direction: column;
}

.stat-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 40px;
    height: 100%;
}

.circular-progress-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.65s;
    transform-origin: 50% 50%;
}

.progress-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

.progress-labels {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.label-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.bg-blue {
    background-color: var(--color-primary);
    box-shadow: 0 0 8px var(--color-primary);
}

.dot.bg-green {
    background-color: var(--color-green);
    box-shadow: 0 0 8px var(--color-green);
}

.dot.bg-dark {
    background-color: #374151;
}

.label-title {
    display: block;
    font-size: 12px;
    color: #64748b;
}

.label-val {
    font-size: 16px;
    font-weight: 600;
    color: #f1f5f9;
}

/* Time Status / Countdown */
.time-status-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.expiry-text {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    text-align: center;
}

.countdown-timer {
    display: flex;
    gap: 12px;
}

.time-block {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 14px;
    border-radius: 12px;
    text-align: center;
    min-width: 60px;
}

.time-block span {
    display: block;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    text-shadow: var(--neon-glow-blue);
}

.time-block label {
    font-size: 9px;
    color: #64748b;
    text-transform: uppercase;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    color: #94a3b8;
}

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

.bg-green-badge {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-green-light);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.bg-blue-badge {
    background: rgba(0, 210, 255, 0.15);
    color: var(--color-primary);
    border: 1px solid rgba(0, 210, 255, 0.2);
}

/* ================= CONNECTION CARD & COPY ================= */
.connection-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.connection-card .subtitle {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 24px;
}

.key-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.key-field label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.copy-input-group {
    display: flex;
    gap: 10px;
}

.copy-input-group input {
    flex: 1;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 12px 16px;
    color: #f1f5f9;
    font-size: 14px;
    outline: none;
    font-family: monospace;
}

.copy-input-group input:focus {
    border-color: var(--color-primary);
}

.btn-copy {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 0 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.3s;
}

.btn-copy:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-eye {
    position: static;
    transform: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ================= REFERRALS TAB ================= */
.referral-intro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 24px;
}

.intro-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.intro-content p {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 12px;
}

.alert-info {
    background: rgba(0, 210, 255, 0.08);
    border: 1px solid rgba(0, 210, 255, 0.15);
    border-radius: 12px;
    padding: 12px 16px;
    color: #88eeff;
    font-size: 13px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 20px !important;
}

.intro-icon {
    font-size: 90px;
    color: rgba(0, 210, 255, 0.15);
}

.result-card {
    border-color: rgba(16, 185, 129, 0.3);
    margin-bottom: 24px;
    animation: slide-down 0.4s ease-out;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.result-header h4 {
    color: var(--color-green-light);
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-close {
    background: none;
    border: none;
    color: #64748b;
    font-size: 18px;
    cursor: pointer;
}

.btn-close:hover {
    color: #ef4444;
}

.small-hint {
    font-size: 12px;
    color: #64748b;
    margin-top: 10px;
}

/* Tables styling */
.table-card {
    padding: 0;
    overflow: hidden;
}

.table-card h3 {
    padding: 24px;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.table th, .table td {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.table th {
    background: rgba(255, 255, 255, 0.02);
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.01);
}

.text-center {
    text-align: center;
}

.text-muted {
    color: #64748b;
}

/* ================= SUPPORT TICKETS TAB ================= */
.support-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    height: 520px;
}

.ticket-sidebar {
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.ticket-list {
    list-style: none;
    overflow-y: auto;
    flex: 1;
}

.ticket-item {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: background 0.3s;
}

.ticket-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.ticket-item.active {
    background: rgba(0, 210, 255, 0.06);
    border-left: 3px solid var(--color-primary);
}

.ticket-item.active-admin {
    background: rgba(168, 85, 247, 0.06);
    border-left: 3px solid var(--color-purple);
}

.ticket-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.ticket-subject {
    font-weight: 600;
    font-size: 14px;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.ticket-date {
    font-size: 11px;
    color: #4b5563;
}

.ticket-preview {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Chat view */
.ticket-chat-area {
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.chat-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    color: #4b5563;
}

.chat-placeholder i {
    font-size: 64px;
    margin-bottom: 20px;
}

.chat-placeholder h3 {
    color: #94a3b8;
    font-size: 18px;
    margin-bottom: 8px;
}

.chat-placeholder p {
    font-size: 14px;
}

.chat-view {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
}

.chat-header {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.01);
}

.chat-header h4 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.chat-messages {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    position: relative;
    word-break: break-word;
}

.message-bubble.client-msg {
    align-self: flex-end;
    background: var(--color-secondary);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.message-bubble.admin-msg {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    border-bottom-left-radius: 4px;
}

.message-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 6px;
}

.admin-msg .message-meta {
    color: #64748b;
}

.msg-sender-badge {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 9px;
    color: var(--color-purple);
}

.chat-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 12px;
    align-items: center;
}

.chat-footer input {
    flex: 1;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 12px 16px;
    color: #fff;
    outline: none;
    font-size: 14px;
}

.chat-footer input:focus {
    border-color: var(--color-primary);
}

/* ================= MODAL WINDOW ================= */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(8px);
    z-index: 100;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 500px;
    width: 100%;
    position: relative;
    animation: zoom-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.modal-close-btn {
    background: none;
    border: none;
    color: #4b5563;
    font-size: 20px;
    cursor: pointer;
}

.modal-close-btn:hover {
    color: #fff;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

/* ================= ANNOUNCEMENTS TAB ================= */
.announcements-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.announcements-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}

.announcements-section > div {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ann-card {
    border-left: 4px solid var(--color-primary);
    padding: 16px 20px;
    position: relative;
}

.personal-messages-list .ann-card {
    border-left: 4px solid var(--color-purple);
}

.ann-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.ann-title {
    font-weight: 600;
    font-size: 15px;
    color: #fff;
}

.ann-date {
    font-size: 11px;
    color: #4b5563;
}

.ann-content {
    font-size: 13.5px;
    color: #94a3b8;
}

.ann-delete-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 14px;
}

/* ================= ADMIN DASHBOARD PANELS ================= */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    color: #fff;
}

.stat-icon.bg-blue {
    background: rgba(0, 210, 255, 0.15);
    color: var(--color-primary);
    border: 1px solid rgba(0, 210, 255, 0.2);
}

.stat-icon.bg-green {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-green-light);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.stat-icon.bg-cyan {
    background: rgba(0, 102, 255, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(0, 102, 255, 0.2);
}

.stat-icon.bg-red {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.stat-details {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.stat-lbl {
    font-size: 12px;
    color: #64748b;
}

.welcome-card h3 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 8px;
}

.welcome-card p {
    font-size: 14.5px;
    color: #94a3b8;
}

.admin-messaging-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.admin-messaging-grid h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.admin-messaging-grid .subtitle {
    font-size: 12px;
    color: #64748b;
}

.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 32px; }
.py-4 { padding-top: 24px; padding-bottom: 24px; }

/* ================= NOTIFICATIONS ================= */
.notification-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.notification {
    background: rgba(13, 20, 38, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 20px;
    width: 320px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    animation: slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

.notification-icon {
    font-size: 18px;
}

.notification.success {
    border-left: 4px solid var(--color-green);
}
.notification.success .notification-icon {
    color: var(--color-green-light);
}

.notification.error {
    border-left: 4px solid var(--color-red);
}
.notification.error .notification-icon {
    color: var(--color-red);
}

.notification.info {
    border-left: 4px solid var(--color-primary);
}
.notification.info .notification-icon {
    color: var(--color-primary);
}

.notification-body {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 13.5px;
    color: #fff;
    margin-bottom: 2px;
}

.notification-msg {
    font-size: 12.5px;
    color: #94a3b8;
}

/* Animations */
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slide-down {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-in {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes zoom-in {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulse-glow {
    0% { transform: scale(1); box-shadow: 0 0 15px rgba(0, 210, 255, 0.35); }
    50% { transform: scale(1.02); box-shadow: 0 0 25px rgba(0, 210, 255, 0.55); }
    100% { transform: scale(1); box-shadow: 0 0 15px rgba(0, 210, 255, 0.35); }
}

/* Responsive Styles */
@media (max-width: 900px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        padding: 8px;
    }
    
    .nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .nav-item {
        flex: 1;
        justify-content: center;
        padding: 10px;
        font-size: 12px;
    }
    
    .nav-item.active {
        border-left: none;
        border-bottom: 3px solid var(--color-primary);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .support-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .ticket-sidebar {
        height: 250px;
    }
    
    .ticket-chat-area {
        height: 400px;
    }
    
    .admin-messaging-grid {
        grid-template-columns: 1fr;
    }
    
    .announcements-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .nav-menu {
        justify-content: space-between;
    }
    .nav-item span {
        display: none; /* Hide labels on very small screens, show icons only */
    }
    .nav-item i {
        font-size: 20px;
        width: auto;
    }
    .circular-progress-wrapper {
        width: 120px;
        height: 120px;
    }
    .progress-ring {
        width: 120px;
        height: 120px;
    }
    .progress-ring circle {
        r: 50px;
        cx: 60px;
        cy: 60px;
    }
    .progress-value {
        font-size: 20px;
    }
    .progress-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}
