/* ============================================
   Global Travels Experts — Portal / Dashboard
   Light Professional Theme
   ============================================ */

:root {
    --deep-twilight: #03045e;
    --french-blue: #023e8a;
    --bright-teal-blue: #0077b6;
    --blue-green: #0096c7;
    --turquoise-surf: #00b4d8;
    --sky-aqua: #48cae4;
    --frosted-blue: #90e0ef;
    --frosted-blue-2: #ade8f4;
    --light-cyan: #caf0f8;
    --white: #ffffff;
    --bg: #f0f9fc;
    --text-primary: #03045e;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --border: rgba(144, 224, 239, 0.6);
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --info: #0077b6;
    --shadow-sm: 0 2px 8px rgba(3, 4, 94, 0.06);
    --shadow-md: 0 8px 30px rgba(3, 4, 94, 0.1);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --gradient: linear-gradient(135deg, var(--french-blue), var(--bright-teal-blue), var(--turquoise-surf));
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --primary-color: var(--bright-teal-blue);
    --secondary-color: var(--turquoise-surf);
    --warning-color: var(--warning);
    --danger-color: var(--danger);
    --success-color: var(--success);
    --info-color: var(--info);
    --text-primary-admin: var(--deep-twilight);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* ---- LOGIN PAGE ---- */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--light-cyan) 0%, #e8f7fc 50%, white 100%);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -30%; right: -20%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(72, 202, 228, 0.2), transparent 70%);
    border-radius: 50%;
}

.login-wrapper { width: 100%; max-width: 440px; position: relative; z-index: 1; }

.login-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.login-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--bright-teal-blue);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 24px;
    transition: color var(--transition);
}

.login-back:hover { color: var(--french-blue); }

.login-header { text-align: center; margin-bottom: 32px; }

.login-logo {
    width: 72px; height: 72px;
    background: var(--gradient);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 6px 20px rgba(0, 119, 182, 0.3);
}

.login-header h1 { font-size: 1.6rem; color: var(--deep-twilight); margin-bottom: 6px; }
.login-header p { color: var(--text-muted); font-size: 0.92rem; }

/* ---- FORMS ---- */
.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--french-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper { position: relative; }

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sky-aqua);
    font-size: 0.95rem;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 13px 14px;
    border: 1.5px solid var(--frosted-blue);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-primary);
    background: white;
    transition: all var(--transition);
}

.input-wrapper .form-input { padding-left: 42px; }
.form-textarea { min-height: 120px; resize: vertical; }

.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: var(--bright-teal-blue);
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.95rem;
    padding: 4px;
}

.password-toggle:hover { color: var(--bright-teal-blue); }

.form-options { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }

.checkbox-wrapper { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.9rem; color: var(--text-secondary); }

.custom-checkbox {
    width: 18px; height: 18px;
    border: 2px solid var(--frosted-blue);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.checkbox-wrapper input:checked + .custom-checkbox { background: var(--gradient); border-color: transparent; }
.checkbox-wrapper input { display: none; }
.checkbox-wrapper input:checked + .custom-checkbox::after { content: '✓'; color: white; font-size: 11px; font-weight: bold; }

.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 119, 182, 0.35); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 12px;
    background: var(--light-cyan);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bright-teal-blue);
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.auth-switch a {
    color: var(--bright-teal-blue);
    font-weight: 700;
    margin-left: 4px;
}

.auth-switch a:hover { color: var(--french-blue); text-decoration: underline; }

.auth-note {
    margin-top: 16px;
    padding: 12px 14px;
    background: var(--light-cyan);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    border: 1px solid var(--frosted-blue-2);
}

.auth-note i { color: var(--bright-teal-blue); margin-right: 6px; }

/* ---- MESSAGES ---- */
.message {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}

.success-message { background: #ecfdf5; border: 1px solid #a7f3d0; color: var(--success); }
.error-message { background: #fef2f2; border: 1px solid #fecaca; color: var(--danger); }

/* ---- NAVBAR ---- */
.navbar {
    background: white;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--deep-twilight);
}

.navbar .logo i { color: var(--bright-teal-blue); font-size: 1.3rem; }

.user-info { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.country-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--light-cyan);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--french-blue);
}

.balance-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: white;
    border: 1.5px solid var(--frosted-blue);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    font-weight: 600;
    color: var(--deep-twilight);
}

.balance-card:hover { border-color: var(--bright-teal-blue); background: var(--light-cyan); }
.balance-card i.fa-plus-circle { color: var(--turquoise-surf); }

.logout-btn, .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--light-cyan);
    color: var(--french-blue);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
}

.logout-btn:hover, .back-btn:hover { background: var(--frosted-blue); }

/* ---- DASHBOARD LAYOUT ---- */
body.portal-page {
    overflow-x: hidden;
    max-width: 100vw;
}

.dashboard-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: clamp(14px, 3vw, 28px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: clamp(16px, 3vw, 28px);
    box-sizing: border-box;
}

.glass-card, .card {
    background: white;
    border-radius: var(--radius-md);
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    max-width: 100%;
    min-width: 0;
}

.card-header { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--light-cyan); }
.card-header h3 { font-size: 1.1rem; color: var(--deep-twilight); display: flex; align-items: center; gap: 10px; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: 16px;
}

.stat-card {
    text-align: center;
    padding: 20px 16px;
    background: var(--light-cyan);
    border-radius: var(--radius-sm);
    border: 1px solid var(--frosted-blue-2);
}

.stat-card .stat-number { font-size: 1.8rem; font-weight: 800; color: var(--bright-teal-blue); }
.stat-card .stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; font-weight: 600; }

/* ---- TABLE ---- */
.tickets-table { width: 100%; border-collapse: collapse; }

.tickets-table th {
    text-align: left;
    padding: 12px 14px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 2px solid var(--light-cyan);
    font-weight: 700;
}

.tickets-table td { padding: 14px; border-bottom: 1px solid var(--light-cyan); font-size: 0.9rem; color: var(--text-secondary); }
.tickets-table tr:hover td { background: rgba(202, 240, 248, 0.3); }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: capitalize;
}

.status-open { background: #fef3c7; color: #92400e; }
.status-in_progress { background: #dbeafe; color: #1e40af; }
.status-resolved { background: #d1fae5; color: #065f46; }

.view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--gradient);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    transition: all var(--transition);
}

.view-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 119, 182, 0.3); }

.empty-state { text-align: center; padding: 48px 20px; color: var(--text-muted); }
.empty-state i { font-size: 3rem; margin-bottom: 16px; opacity: 0.3; display: block; }

/* ---- PAYMENT REQUEST ---- */
.payment-request {
    padding: 20px;
    background: var(--light-cyan);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    border: 1px solid var(--frosted-blue-2);
}

.request-amount { font-size: 1.3rem; font-weight: 800; color: var(--bright-teal-blue); }
.request-from { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

.password-input { display: flex; gap: 10px; margin-top: 12px; }
.password-input .form-input { flex: 1; padding-left: 14px; }

.approve-btn {
    padding: 12px 20px;
    background: var(--success);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition);
}

.approve-btn:hover { background: #047857; }

/* ---- MODAL ---- */
.modal, .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 4, 94, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active, .modal-overlay[style*="flex"] { display: flex; }

.modal-content, .modal-container {
    background: white;
    border-radius: var(--radius-lg);
    max-width: min(520px, calc(100vw - 32px));
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-md);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--light-cyan);
}

.modal-header h3 { font-size: 1.1rem; color: var(--deep-twilight); }

.close-modal, .modal-close {
    background: var(--light-cyan);
    border: none;
    width: 36px; height: 36px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--light-cyan); display: flex; gap: 12px; justify-content: flex-end; }

.gateway-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.gateway-card {
    padding: 16px;
    border: 1.5px solid var(--frosted-blue);
    border-radius: var(--radius-sm);
    text-align: center;
    transition: all var(--transition);
    display: block;
    position: relative;
    cursor: pointer;
}

.gateway-card .gateway-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gateway-card:hover,
.gateway-card.selected {
    border-color: var(--bright-teal-blue);
    background: var(--light-cyan);
    box-shadow: 0 0 0 2px rgba(0, 119, 182, 0.15);
}

.gateway-icon { font-size: 1.5rem; color: var(--bright-teal-blue); margin-bottom: 8px; }
.gateway-name { font-size: 0.85rem; font-weight: 600; }

.deposit-summary {
    background: var(--light-cyan);
    padding: 15px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--frosted-blue-2);
}

.deposit-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.deposit-summary-total {
    margin-bottom: 0;
    padding-top: 10px;
    border-top: 1px solid var(--frosted-blue);
    font-weight: 700;
    color: var(--deep-twilight);
}

/* ---- TICKET VIEW ---- */
.ticket-container { max-width: 900px; margin: 0 auto; padding: 28px 24px; }

.ticket-header { flex: 1; }
.ticket-id { font-size: 1.5rem; color: var(--deep-twilight); margin-bottom: 8px; }
.ticket-subject { font-size: 1rem; color: var(--text-secondary); margin-bottom: 16px; }

.ticket-meta { display: flex; flex-wrap: wrap; gap: 20px; }
.meta-item { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text-muted); }
.meta-item i { color: var(--sky-aqua); }

.glass-card .card-header { display: flex; justify-content: space-between; align-items: flex-start; }

.ticket-content { margin-top: 24px; }

.message-container {
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    border: 1px solid var(--border);
}

.user-reply { background: var(--light-cyan); border-left: 4px solid var(--bright-teal-blue); }
.admin-reply { background: white; border-left: 4px solid var(--turquoise-surf); }

.message-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; flex-wrap: wrap; gap: 10px; }
.message-sender { display: flex; align-items: center; gap: 12px; }

.sender-avatar {
    width: 40px; height: 40px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
}

.sender-info h5 { font-size: 0.9rem; color: var(--deep-twilight); }
.sender-info small { font-size: 0.78rem; color: var(--text-muted); }
.message-time { font-size: 0.78rem; color: var(--text-muted); }
.message-body { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.7; }

.reply-form-container { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--light-cyan); }
.reply-form-container h4 { color: var(--french-blue); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }

.form-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 16px; }

.resolve-btn {
    padding: 12px 24px;
    background: white;
    color: var(--success);
    border: 1.5px solid var(--success);
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition);
}

.resolve-btn:hover { background: var(--success); color: white; }

.form-note { font-size: 0.82rem; color: var(--text-muted); }

.resolved-message {
    text-align: center;
    padding: 40px;
    background: #ecfdf5;
    border-radius: var(--radius-md);
    border: 1px solid #a7f3d0;
    margin-top: 24px;
}

.resolved-message i { font-size: 2.5rem; color: var(--success); margin-bottom: 12px; }
.resolved-message h4 { color: var(--success); margin-bottom: 8px; }

.no-replies { text-align: center; padding: 40px; color: var(--text-muted); }
.no-replies-icon { font-size: 2.5rem; opacity: 0.3; margin-bottom: 12px; display: block; }

.modal-btn {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

.modal-cancel { background: var(--light-cyan); color: var(--text-secondary); }
.modal-confirm { background: var(--success); color: white; }

/* ---- ADMIN LAYOUT ---- */
body.admin-page,
body.admin-ticket-page {
    overflow-x: hidden;
    max-width: 100vw;
    background: var(--bg);
}

.admin-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
}

.sidebar {
    background: white;
    border-right: 1px solid var(--border);
    padding: 24px 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.sidebar .logo { padding: 0 20px 28px; border-bottom: 1px solid var(--light-cyan); margin-bottom: 24px; }
.sidebar .logo h1 { font-size: 1.2rem; color: var(--deep-twilight); display: flex; align-items: center; gap: 10px; }
.sidebar .logo span { font-size: 0.8rem; color: var(--text-muted); display: block; margin-top: 4px; }
.sidebar .logo i { color: var(--bright-teal-blue); }

.nav-menu { display: flex; flex-direction: column; gap: 4px; padding: 0 12px; flex: 1; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.92rem;
    transition: all var(--transition);
}

.nav-item:hover { background: var(--light-cyan); color: var(--french-blue); }
.nav-item.active { background: var(--light-cyan); color: var(--bright-teal-blue); border-left: 3px solid var(--bright-teal-blue); }

.main-content {
    padding: clamp(14px, 2.5vw, 24px);
    min-width: 0;
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
}

.top-bar {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: clamp(14px, 2vw, 18px) clamp(16px, 2.5vw, 24px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.top-bar h2 {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--deep-twilight);
    flex: 1 1 auto;
    min-width: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
}

.btn-primary { background: var(--gradient); color: white; }
.btn-primary:hover { box-shadow: 0 4px 15px rgba(0, 119, 182, 0.35); }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #047857; }

.admin-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }

.admin-stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.stat-header { display: flex; justify-content: space-between; align-items: flex-start; }
.admin-stat-card .stat-number { font-size: 2rem; font-weight: 800; color: var(--deep-twilight); }
.admin-stat-card .stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

.stat-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat-trend { font-size: 0.78rem; margin-top: 12px; color: var(--text-muted); }
.trend-up { color: var(--success); }
.trend-down { color: var(--danger); }

.country-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: 16px;
}

.country-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    min-width: 0;
}

.country-flag { width: 60px; height: 40px; border-radius: 6px; margin: 0 auto 12px; border: 1px solid var(--border); display: block; }

.tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }

.tab-btn {
    padding: 10px 20px;
    background: white;
    border: 1.5px solid var(--frosted-blue);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tab-btn.active, .tab-btn:hover { background: var(--gradient); color: white; border-color: transparent; }

.tab-content { display: none; }
.tab-content.active { display: block; }

.data-table { width: 100%; border-collapse: collapse; background: white; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); }

.data-table th {
    background: var(--light-cyan);
    padding: 14px 16px;
    text-align: left;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--french-blue);
    font-weight: 700;
}

.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--light-cyan); font-size: 0.9rem; }
.data-table tr:hover td { background: rgba(202, 240, 248, 0.3); }

.badge { padding: 3px 10px; border-radius: 50px; font-size: 0.75rem; font-weight: 700; }
.badge-danger { background: #fef2f2; color: var(--danger); }
.badge-success { background: #ecfdf5; color: var(--success); }

.profile-pic {
    width: 36px; height: 36px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
}

.admin-profile { display: flex; align-items: center; gap: 12px; }

.sidebar-admin-card {
    margin: 20px 12px 0;
    padding: 16px;
    background: var(--light-cyan);
    border-radius: var(--radius-sm);
    border: 1px solid var(--frosted-blue-2);
}

.sidebar-admin-card .label { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }

/* Real country flag images (flagcdn.com) */
.country-flag-img,
.flag-icon-img {
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid rgba(3, 4, 94, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    vertical-align: middle;
    flex-shrink: 0;
}

.flag-icon-img { width: 28px; height: 21px; }
.country-flag-img { width: 40px; height: 30px; }
.country-flag-lg { width: 56px; height: 42px; display: block; margin: 0 auto 12px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .dashboard-container { grid-template-columns: 1fr; }
    .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: 1fr; }
    .admin-stats-grid, .country-cards { grid-template-columns: 1fr; }
    .tickets-table { display: block; overflow-x: auto; }
    .navbar-container { flex-direction: column; align-items: flex-start; }
    .user-info { width: 100%; }
    .gateway-options { grid-template-columns: 1fr; }
    .form-actions { flex-direction: column; align-items: stretch; }
    .password-input { flex-direction: column; }
}

/* Admin dashboard stats */
.admin-layout .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.admin-layout .stats-grid .stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    text-align: left;
}

.admin-layout .stats-grid .stat-number { font-size: 2rem; font-weight: 800; color: var(--deep-twilight); }
.admin-layout .stats-grid .stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

.bg-pattern { display: none; }

/* Admin panel sections & sidebar */
.admin-layout .sidebar { display: flex; flex-direction: column; min-height: 100vh; }

.nav-item {
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    text-decoration: none;
}

.admin-layout .main-content .admin-section {
    display: none !important;
    animation: adminFadeIn 0.25s ease;
}

.admin-layout .main-content .admin-section.active {
    display: block !important;
}

.admin-layout .main-content .admin-section[hidden] {
    display: none !important;
}

@keyframes adminFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.table-container {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    max-width: 100%;
}

.table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-scroll .data-table { min-width: 640px; }

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--light-cyan);
}

.table-header h3 { font-size: 1.1rem; color: var(--deep-twilight); margin: 0; }

.badge-primary { background: #dbeafe; color: #1e40af; }
.badge-info { background: var(--light-cyan); color: var(--french-blue); }
.badge-warning { background: #fef3c7; color: #92400e; }

.settings-stack {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.settings-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: clamp(20px, 3vw, 32px);
    box-shadow: var(--shadow-sm);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.settings-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--light-cyan);
    font-size: 0.92rem;
}

.settings-row:last-child { border-bottom: none; }
.settings-row span:first-child { color: var(--text-muted); }
.settings-row span:last-child { font-weight: 600; color: var(--deep-twilight); }

.settings-password-card {
    margin-top: 0;
}

.settings-password-card h3 {
    margin-bottom: 8px;
    color: var(--deep-twilight);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-password-note {
    margin-bottom: 20px;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.settings-password-form .btn {
    margin-top: 4px;
}

/* Admin mobile toggle */
.admin-mobile-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1100;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: var(--gradient);
    color: white;
    font-size: 1.25rem;
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

.admin-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(3, 4, 94, 0.45);
    z-index: 1040;
}

.admin-overlay.show { display: block; }

.form-row-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--deep-twilight);
    margin-bottom: 14px;
}

.stat-card { min-width: 0; }

.admin-profile { flex-shrink: 0; }

@media (max-width: 1100px) {
    .admin-layout .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .admin-mobile-toggle { display: flex; align-items: center; justify-content: center; }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-layout .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: min(280px, 88vw);
        height: 100vh;
        z-index: 1050;
        transform: translateX(-105%);
        transition: transform 0.3s ease;
        box-shadow: var(--shadow-md);
    }

    .admin-layout .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        padding-bottom: 80px;
    }
}

@media (max-width: 600px) {
    .admin-layout .stats-grid,
    .country-cards {
        grid-template-columns: 1fr;
    }

    .top-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-profile,
    .admin-profile .btn {
        width: 100%;
        justify-content: center;
    }

    .table-header {
        flex-direction: column;
        align-items: stretch;
    }

    .table-header .form-select {
        width: 100% !important;
    }

    .btn { font-size: 0.85rem; padding: 9px 14px; }
}

/* Admin ticket view */
.admin-ticket-page .container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: clamp(14px, 3vw, 28px);
    box-sizing: border-box;
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 14px clamp(16px, 3vw, 24px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--deep-twilight); font-size: 1.05rem; text-decoration: none; }
.nav-brand i { color: var(--bright-teal-blue); }
.nav-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-outline {
    background: white;
    color: var(--french-blue);
    border: 1.5px solid var(--frosted-blue);
    text-decoration: none;
}

.btn-outline:hover { background: var(--light-cyan); }

.header-card, .message-card, .sidebar-card, .reply-form {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.admin-ticket-top {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    min-width: 0;
}

.admin-ticket-back {
    padding: 8px 14px;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.admin-ticket-header-card h1 {
    font-size: 1.35rem;
    color: var(--deep-twilight);
    margin-bottom: 14px;
    line-height: 1.35;
}

.admin-ticket-header-card .ticket-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
}

.admin-ticket-header-card .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.admin-ticket-header-card .meta-item i {
    color: var(--bright-teal-blue);
    width: 16px;
    text-align: center;
}

.header-card .ticket-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; }
.header-card h1 { font-size: 1.4rem; color: var(--deep-twilight); margin-bottom: 8px; }

.content-grid { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }

.admin-ticket-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.message-card-title h3,
.message-card h3 {
    font-size: 1rem;
    color: var(--french-blue);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reply-count {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.message-bubble {
    padding: 16px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    border: 1px solid var(--border);
}

.message-bubble:last-child { margin-bottom: 0; }

.message-bubble.user { background: var(--light-cyan); border-left: 4px solid var(--bright-teal-blue); }
.message-bubble.admin { background: #f8fffe; border-left: 4px solid var(--turquoise-surf); }

.message-bubble.message-highlight {
    animation: ticketHighlight 1.5s ease;
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.25);
}

@keyframes ticketHighlight {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 180, 216, 0); }
    50% { box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.35); }
}

.bubble-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; flex-wrap: wrap; gap: 8px; }
.sender-details h4, .sender-details h5 { font-size: 0.9rem; color: var(--deep-twilight); font-weight: 700; margin: 0; }
.sender-role { font-size: 0.75rem; color: var(--text-muted); display: block; margin-top: 2px; }
.message-time { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; }
.message-content { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.7; word-break: break-word; }

.conversation-container {
    max-height: 480px;
    overflow-y: auto;
    padding-right: 4px;
}

.avatar-user, .avatar-admin {
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.avatar-user { background: var(--gradient); }
.avatar-admin { background: linear-gradient(135deg, var(--blue-green), var(--turquoise-surf)); }

.sender-info { display: flex; align-items: center; gap: 10px; }

.reply-form .form-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.reply-form .form-header i {
    color: var(--bright-teal-blue);
    font-size: 1.1rem;
}

.reply-form .form-header h3 {
    font-size: 1rem;
    color: var(--deep-twilight);
    margin: 0;
}

.admin-reply-textarea {
    min-height: 120px;
    resize: vertical;
}

.reply-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.reply-section { margin-top: 24px; }
.reply-section textarea { width: 100%; padding: 14px; border: 1.5px solid var(--frosted-blue); border-radius: var(--radius-sm); font-family: inherit; min-height: 100px; resize: vertical; }
.reply-section textarea:focus { outline: none; border-color: var(--bright-teal-blue); }

.sidebar-card h4 {
    font-size: 0.88rem;
    color: var(--french-blue);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 700;
}

.info-grid { display: flex; flex-direction: column; gap: 0; }

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--light-cyan);
    font-size: 0.88rem;
}

.info-item:last-child { border-bottom: none; }

.info-label { color: var(--text-muted); flex-shrink: 0; }
.info-value { font-weight: 600; color: var(--deep-twilight); text-align: right; word-break: break-word; }

.info-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--light-cyan); font-size: 0.88rem; }
.info-row span:first-child { color: var(--text-muted); }
.info-row span:last-child { font-weight: 600; color: var(--deep-twilight); }

.quick-actions { display: flex; flex-direction: column; gap: 10px; }

.status-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--light-cyan);
    margin-bottom: 4px;
}

.status-select {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--frosted-blue);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--deep-twilight);
    background: white;
}

.status-select:focus {
    outline: none;
    border-color: var(--bright-teal-blue);
}

.status-save-btn {
    width: 100%;
    justify-content: center;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 14px;
    background: var(--light-cyan);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--french-blue);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    font-family: inherit;
    box-sizing: border-box;
}

.action-btn:hover {
    background: var(--frosted-blue);
    border-color: var(--bright-teal-blue);
}

.admin-view-profile-btn {
    width: 100%;
    justify-content: center;
    margin-top: 16px;
    display: inline-flex;
    box-sizing: border-box;
}

.quick-actions button:hover, .quick-actions a:hover { background: var(--frosted-blue); }

.empty-state h4 {
    color: var(--text-secondary);
    margin: 8px 0 6px;
    font-size: 1rem;
}

.alert {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.alert-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: var(--success); }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: var(--danger); }

.user-action-btns {
    display: flex;
    gap: 6px;
    align-items: center;
}

.review-admin-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--frosted-blue);
    display: block;
}

.review-admin-thumb-lg {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.review-admin-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
}

.review-current-image-wrap {
    margin-bottom: 16px;
}

.review-current-image-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.review-remove-image-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.review-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.inline-delete-form {
    display: inline;
    margin: 0;
}

.btn-danger-outline:hover {
    border-color: var(--danger) !important;
    color: var(--danger) !important;
    background: #fef2f2 !important;
}

.admin-user-profile .admin-user-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
}

.admin-user-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.admin-user-balance {
    text-align: right;
    background: var(--light-cyan);
    border: 1px solid var(--frosted-blue);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    min-width: 160px;
}

.admin-user-balance .label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.admin-user-balance .amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--deep-twilight);
    margin-top: 4px;
}

.admin-user-balance .code {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.admin-profile-grid {
    align-items: start;
}

.admin-ticket-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-ticket-item {
    display: block;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition);
}

.admin-ticket-item:hover {
    border-color: var(--bright-teal-blue);
    background: var(--light-cyan);
}

.admin-ticket-item .top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 6px;
}

.admin-ticket-item .meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .content-grid { grid-template-columns: 1fr; }
    .admin-layout .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .login-card { padding: 28px 20px; }
    .glass-card, .card { padding: 20px; }
    .admin-layout .stats-grid { grid-template-columns: 1fr; }
}

/* ——— Offers & Latest Updates ——— */

.country-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.country-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    transition: border-color var(--transition), background var(--transition);
}

.country-checkbox-item:hover {
    border-color: var(--bright-teal-blue);
    background: var(--light-cyan);
}

.country-checkbox-item input {
    accent-color: var(--bright-teal-blue);
}

.update-admin-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.update-admin-no-img {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--light-cyan);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

.update-country-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.update-country-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: var(--light-cyan);
    border-radius: 999px;
    font-size: 0.75rem;
    color: var(--deep-twilight);
}

.nav-update-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #e63946;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.updates-dashboard-card {
    border-left: 4px solid var(--bright-teal-blue);
}

.updates-view-all {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bright-teal-blue);
    text-decoration: none;
}

.updates-view-all:hover {
    text-decoration: underline;
}

.updates-dashboard-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ——— User Latest Updates Page ——— */

body.updates-page {
    background: var(--bg);
}

.updates-nav-user {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

.nav-btn-dashboard {
    background: var(--light-cyan) !important;
    color: var(--french-blue) !important;
}

.updates-page-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 28px 24px 56px;
}

.updates-page-header {
    position: relative;
    margin-bottom: 32px;
    padding: 36px 32px 40px;
    background: linear-gradient(135deg, var(--deep-twilight) 0%, var(--french-blue) 50%, var(--bright-teal-blue) 100%);
    border-radius: var(--radius-lg);
    color: #fff;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.updates-page-header-inner {
    position: relative;
    z-index: 1;
    max-width: 620px;
}

.updates-page-header-deco {
    position: absolute;
    right: -20px;
    bottom: -30px;
    font-size: 9rem;
    color: rgba(255, 255, 255, 0.07);
    line-height: 1;
    pointer-events: none;
}

.updates-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 18px;
    transition: color var(--transition);
}

.updates-back-link:hover {
    color: #fff;
}

.updates-page-header h1 {
    font-size: clamp(1.5rem, 4vw, 1.85rem);
    font-weight: 800;
    margin: 12px 0 10px;
    line-height: 1.25;
}

.updates-page-header p {
    opacity: 0.92;
    font-size: 0.95rem;
    line-height: 1.65;
    max-width: 540px;
}

.updates-page-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.updates-count-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.updates-page-content {
    min-height: 200px;
}

.updates-feed {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.update-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}

.update-card:hover {
    box-shadow: var(--shadow-md);
}

.update-card-image img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    display: block;
}

.update-card-body {
    padding: 22px 24px 24px;
}

.update-card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.update-card-meta i {
    color: var(--bright-teal-blue);
}

.update-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--deep-twilight);
    margin-bottom: 12px;
    line-height: 1.35;
}

.update-card-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.update-card-compact {
    display: flex;
    gap: 0;
    flex-direction: column;
}

.update-card-compact .update-card-image img {
    max-height: 140px;
}

.update-card-compact .update-card-body {
    padding: 14px 16px 16px;
}

.update-card-compact .update-card-title {
    font-size: 1rem;
    margin-bottom: 6px;
}

.update-card-compact .update-card-text {
    font-size: 0.88rem;
}

.updates-empty {
    text-align: center;
    padding: 56px 32px 48px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    color: var(--text-muted);
}

.updates-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--light-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
}

.updates-empty-icon i {
    font-size: 2rem;
    color: var(--bright-teal-blue);
    opacity: 0.7;
}

.updates-empty h3 {
    color: var(--deep-twilight);
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.updates-empty p {
    font-size: 0.95rem;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

.updates-empty-btn {
    margin-top: 24px !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
}

@media (max-width: 640px) {
    .updates-page-wrap {
        padding: 16px 16px 40px;
    }

    .updates-page-header {
        padding: 28px 22px 32px;
    }

    .updates-page-header-deco {
        font-size: 5rem;
        right: -10px;
        bottom: -15px;
    }

    .updates-nav-user {
        display: none;
    }
}

/* ——— Admin User Profile Page ——— */

.admin-user-profile-page .admin-profile-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.admin-profile-hero-main {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

.admin-user-avatar-lg {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 119, 182, 0.25);
}

.admin-profile-hero-text h1 {
    font-size: 1.6rem;
    color: var(--deep-twilight);
    margin: 0 0 4px;
    line-height: 1.2;
}

.admin-profile-id {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 12px;
}

.admin-user-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-user-meta i {
    color: var(--bright-teal-blue);
    width: 16px;
    text-align: center;
}

.admin-profile-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.admin-profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.admin-profile-empty {
    padding: 48px 24px;
    border-top: 1px solid var(--light-cyan);
}

.admin-profile-empty h4 {
    color: var(--text-secondary);
    margin: 8px 0 6px;
}

.admin-profile-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    padding: 10px 12px;
    background: var(--light-cyan);
    border-radius: var(--radius-sm);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn-danger {
    background: #fef2f2 !important;
    color: var(--danger) !important;
    border: 1px solid #fecaca !important;
    width: 100%;
}

.action-btn-danger:hover {
    background: var(--danger) !important;
    color: white !important;
    border-color: var(--danger) !important;
}

.admin-profile-main .table-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-profile-main .table-header h3 i {
    color: var(--bright-teal-blue);
}

@media (max-width: 1024px) {
    .admin-profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .admin-profile-hero-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-profile-stats {
        grid-template-columns: 1fr;
    }

    .admin-profile-hero-actions {
        width: 100%;
    }

    .admin-profile-hero-actions .action-btn {
        justify-content: center;
    }
}
