/* ===========================
   Euroscot Virtual Crew Portal
   Unified Brand UI (Light + Dark Theme)
=========================== */

/* ============================================
   THEME TOKENS — LIGHT MODE
============================================ */

:root {
    --radius: 8px;
    --shadow-soft: 0 10px 30px rgba(0, 40, 89, 0.18);
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --success: #16a34a;
    --warning: #f59e0b;
    --danger: #ef4444;

    --bg: #eef0f4;
    --bg-elevated: rgba(255,255,255,0.92);
    --accent: #004b8d;
    --accent-soft: rgba(0, 75, 141, 0.12);

    --text: #0b1120;
    --text-muted: #4b5563;

    --border: rgba(0,0,0,0.12);
}

/* ===========================
   GLASS PANELS FOR CONTENT
=========================== */

.layout-main {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(0,0,0,0.12);
}


[data-theme="dark"] .layout-main {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255,255,255,0.15);
}

/* ===========================
   SIDEBAR GLASS EFFECT
=========================== */

.sidebar {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0,0,0,0.12);
}

[data-theme="dark"] .sidebar {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255,255,255,0.15);
}

/* ===========================
   DASHBOARD CARDS
=========================== */

.card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(0,0,0,0.12);
}

[data-theme="dark"] .card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255,255,255,0.15);
}

/* ===========================
   LOGIN / REGISTER BOXES
=========================== */

.auth-box {
    max-width: 420px;
    margin: 60px auto;
    padding: 30px;
    background: rgba(255,255,255,0.88);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0,0,0,0.12);
}

[data-theme="dark"] .auth-box {
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.15);
}

/* ===========================
   PROFILE / STAFF PANELS
=========================== */

.profile-section,
.staff-section {
    background: rgba(255,255,255,0.88);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(0,0,0,0.12);
}

[data-theme="dark"] .profile-section,
[data-theme="dark"] .staff-section {
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.15);
}

/* ============================================
   DARK MODE
============================================ */

[data-theme="dark"] {
    --bg: #020617;
    --bg-elevated: #0f172a;
    --accent: #38bdf8;
    --accent-soft: rgba(56, 189, 248, 0.16);

    --text: #e5e7eb;
    --text-muted: #9ca3af;

    --border: #1f2937;

    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.75);
}

[data-theme="dark"] .site-header {
    filter: brightness(0.75);
}

/* RESET */

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

body {
    margin: 0;
    font-family: var(--font-main);
    background: var(--bg);
    color: var(--text);

    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===========================
   GLOBAL BACKGROUND
=========================== */

.page-background {
    background: url('/assets/img/bgp3.jpg') no-repeat center center fixed;
    background-size: cover;
    background-attachment: fixed;
    flex: 1;
    width: 100%;
    padding: 10px 0;
}

/* ===========================
   HEADER
=========================== */

.site-header {
    background: url('/assets/img/tartan-bg.png') repeat;
    background-size: auto;
    background-position: top left;

    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;

    height: 60px;
    display: flex;
    align-items: center;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    height: 32px;
    margin-right: 0.75rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ===========================
   HEADER MENU BUTTONS
=========================== */

.menu-btn {
    padding: 8px 14px;
    background: rgba(255,255,255,0.35);
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 6px;
    color: #0b1120;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    transition: 0.2s;
}

.menu-btn:hover {
    background: rgba(255,255,255,0.55);
}

[data-theme="dark"] .menu-btn {
    background: rgba(0,0,0,0.35);
    border-color: rgba(255,255,255,0.15);
    color: #e5e7eb;
}

.public-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* ===========================
   SIDEBAR NAVIGATION
=========================== */

.sidebar {
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;

    background: rgba(255,255,255,0.45);
    border: 1px solid rgba(0,0,0,0.12);
    color: var(--text);
    backdrop-filter: blur(6px);
    transition: 0.2s ease;
}

.nav-link:hover {
    background: #1e4a8a;
    color: #ffffff;
}

.nav-link.active {
    background: #163766;
    border-color: #163766;
    color: #ffffff;
}
.nav-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
    opacity: 0.9;
}
.exclusive-card {
    background: rgba(255,255,255,0.96);
    padding: 20px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.12);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .exclusive-card {
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: none;
}

.exclusive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.exclusive-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.exclusive-description {
    margin: 12px 0 15px;
    line-height: 1.5;
}

/* Code box */
.exclusive-code {
    display: inline-block;
    padding: 10px 14px;
    background: #edf2ff;
    border: 1px solid #c3d0ff;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 10px;
}

[data-theme="dark"] .exclusive-code {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

/* Status badges */
.badge {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-active {
    background: #d4edda;
    color: #155724;
}

.badge-inactive {
    background: #f8d7da;
    color: #721c24;
}

[data-theme="dark"] .badge-active {
    background: rgba(0,255,0,0.15);
    color: #9aff9a;
}

[data-theme="dark"] .badge-inactive {
    background: rgba(255,0,0,0.15);
    color: #ff9a9a;
}


/* ===========================
   DASHBOARD
=========================== */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

/* ===========================
   LAYOUT (CLEANED)
=========================== */

.layout {
    max-width: 1200px;
    margin: 1.5rem auto;
    padding: 0 1.5rem;

    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.5rem;
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 960px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: -1;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .layout {
        padding: 0 1rem;
    }

    .card {
        padding: 0.9rem 1rem;
    }
}

/* ===========================
   FOOTER — Navy + #363871 Overlay
=========================== */
.site-footer,
.eus-footer {
  background: #163766;
  position: relative;
  color: #ffffff;
  padding: 20px 20px 10px;
  margin-top: auto;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.site-footer::before,
.eus-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #163766;
  pointer-events: none;
  z-index: 0;
}
.site-footer > *,
.eus-footer > * {
  position: relative;
  z-index: 1;
}

.footer-images {
  display: flex;
  gap: 12px;
}

.footer-images.left {
  justify-content: flex-start;
}

.footer-images.right {
  justify-content: flex-end;
}

.footer-img-box {
  background-color: transparent;
  border: 3px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  padding: 8px;
  width: 140px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-img-box img {
  width: auto;
  height: 32px;
  max-width: 110px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 8px rgba(0,0,0,1));
}

.footer-img-box img[alt="IVAO"],
.footer-img-box img[alt="VATSIM"] {
  height: 36px;
  max-width: 130px;
}

.footer-center-box {
  background-color: rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 10px 20px;
  color: #ffffff;
  text-align: center;
  font-weight: 500;
  white-space: nowrap;
  margin: 0 auto;
  backdrop-filter: blur(4px);
}

.footer-center-box a {
  color: #ffffff;
  text-decoration: underline;
}

/* ================================
   TAB SYSTEM
================================ */

.tab-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 18px;
    background: #e5e7eb;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #163766;
    transition: 0.2s;
}

.tab-btn:hover {
    background: #d1d5db;
}

.tab-btn.active {
    background: #163766;
    color: #ffffff;
}

.tab-content {
    display: none;
}

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

/* ================================
   PROFILE SECTIONS
================================ */

.profile-section {
    background: rgba(255,255,255,0.96);
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.12);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin-bottom: 30px;
    margin: 0; /* remove default spacing */
    padding: 0; /* remove default padding */
}

.profile-group {
    margin-bottom: 18px;
}

.profile-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #163766;
}

.profile-group input,
.profile-group select,
.profile-group textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid #004080;
    background: #ffffff;
    color: #002859;
    font-size: 0.95rem;
    transition: 0.2s;
}

.profile-group input:focus,
.profile-group select:focus,
.profile-group textarea:focus {
    border-color: #1e4a8a;
    box-shadow: 0 0 0 3px rgba(30,74,138,0.25);
    outline: none;
}

/* ================================
   ADMIN ACTIONS
================================ */

.admin-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.action-group {
    background: #f8fafc;
    border: 1px solid rgba(0,0,0,0.12);
    padding: 16px;
    border-radius: 10px;
}

.action-group h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #163766;
}
/* Back Button */
/* Back Button */
.back-btn {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 14px;
    background: #163766;
    color: #ffffff !important;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.back-btn:hover {
    background: #1e4a8a;
    transform: translateY(-1px);
}
/* Back Button */
.back-btn {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 14px;
    background: #163766;
    color: #ffffff !important;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.back-btn:hover {
    background: #1e4a8a;
    transform: translateY(-1px);
}

/* Tab System (same as edit.php) */
.tab-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 18px;
    background: #e5e7eb;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #163766;
    transition: 0.2s;
}

.tab-btn:hover {
    background: #d1d5db;
}

.tab-btn.active {
    background: #163766;
    color: #ffffff;
}

.tab-content {
    display: none;
}

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

/* Profile Section (same as edit.php) */
.profile-section {
    background: rgba(255,255,255,0.96);
    padding: 24px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.12);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}

.profile-group {
    margin-bottom: 18px;
}

.profile-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #163766;
}

.profile-group input,
.profile-group textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid #004080;
    background: #ffffff;
    color: #002859;
    font-size: 0.95rem;
}

.profile-group input:disabled,
.profile-group textarea:disabled {
    opacity: 0.7;
}
/* Alerts (matching new UI) */
.success, .warning, .error, .info {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-weight: 600;
}

.success { background: #d4edda; color: #155724; }
.warning { background: #fff3cd; color: #856404; }
.error   { background: #f8d7da; color: #721c24; }
.info    { background: #d1ecf1; color: #0c5460; }

/* Back Button */
.back-btn {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 14px;
    background: #163766;
    color: #ffffff !important;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.back-btn:hover {
    background: #1e4a8a;
    transform: translateY(-1px);
}

/* Variable Box */
.variable-box {
    margin-top: 20px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.variable-box ul {
    margin: 10px 0 0 20px;
    padding: 0;
    line-height: 1.6;
}

/* Inputs (reuse profile-group styling) */
.profile-group select,
.profile-group input {
    border: 2px solid #004080;
}

.profile-group select:focus,
.profile-group input:focus {
    border-color: #1e4a8a;
    box-shadow: 0 0 0 3px rgba(30,74,138,0.25);
}
/* Status badges */
.email-status {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.email-status.sent {
    background: #d1fae5;
    color: #065f46;
}

.email-status.failed {
    background: #fee2e2;
    color: #991b1b;
}

.email-status.queued {
    background: #fef3c7;
    color: #92400e;
}

/* Expandable message row */
.email-message-row td {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

.email-message-container {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.25s ease;
    padding: 0 4px 10px 4px;
}

/* Message card */
.email-message {
    background: #ffffff;
    padding: 16px 20px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.12);
    color: #163766;
    font-size: 0.95rem;
    line-height: 1.45;
}

/* Header inside expanded message */
.email-message-header {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 10px;
    color: #163766;
}
/* Styled checkboxes for admin delete column */
.eus-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #163766;
    cursor: pointer;
    border-radius: 4px;
}


/* Small button variant */
.public-btn.small {
    padding: 6px 12px;
    font-size: 0.8rem;
}
/* ================================
   VA EXCLUSIVES — CARD LAYOUT
================================ */

.exclusive-card {
    background: rgba(255,255,255,0.96);
    padding: 20px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.12);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}

[data-theme="dark"] .exclusive-card {
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: none;
}

.exclusive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.exclusive-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.exclusive-description {
    margin: 12px 0 15px;
    line-height: 1.5;
}

.exclusive-code {
    display: inline-block;
    padding: 10px 14px;
    background: #edf2ff;
    border: 1px solid #c3d0ff;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 15px;
}

[data-theme="dark"] .exclusive-code {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.exclusive-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.created-date {
    opacity: 0.7;
}

/* ================================
   BADGES
================================ */

.exclusive-badge {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.exclusive-badge.active {
    background: #d4edda;
    color: #155724;
}

.exclusive-badge.inactive {
    background: #e2e3e5;
    color: #555;
}

[data-theme="dark"] .exclusive-badge.active {
    background: rgba(0,255,0,0.15);
    color: #9aff9a;
}

[data-theme="dark"] .exclusive-badge.inactive {
    background: rgba(255,255,255,0.1);
    color: #ccc;
}
.exclusive-actions {
    display: flex;
    flex-direction: column;
    gap: 10px; /* increase or decrease as needed */
}


/* ================================
   BUTTONS
================================ */

.public-btn.small {
    padding: 6px 10px;
    font-size: 0.75rem;
}
 .clock-btn {
            padding: 6px 12px;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.9rem;
            background: #ffffff;
            border: 1px solid rgba(0,0,0,0.25);
            color: #000000;
            margin-right: 12px;
        }

        [data-theme="dark"] .clock-btn {
            background: #1e1e1e;
            border-color: rgba(255,255,255,0.25);
            color: #ffffff;
        }
        /* ===============================
   EVOM Top Bar Layout
   =============================== */
.evom-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

/* Search bar reduced width */
.evom-search-bar {
    flex: 1;
    max-width: 420px;
    padding: 14px 18px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.25);
    background: #ffffff;
    color: #000000;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

/* Dark mode */
[data-theme="dark"] .evom-search-bar {
    background: #1e1e1e;
    border-color: rgba(255,255,255,0.25);
    color: #ffffff;
}

/* Placeholder */
.evom-search-bar::placeholder {
    color: rgba(0,0,0,0.45);
}

[data-theme="dark"] .evom-search-bar::placeholder {
    color: rgba(255,255,255,0.45);
}

/* Contact-page matching focus outline */
.evom-search-bar:focus {
    outline: 2px solid #1e4a8a;
    border-color: #1e4a8a;
    box-shadow: 0 0 6px rgba(30,74,138,0.25);
}

/* ===============================
   Expand / Collapse / Clear Buttons
   =============================== */
.evom-controls {
    display: flex;
    gap: 10px;
}

.evom-btn {
    padding: 10px 16px;
    background: #163766;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.evom-btn:hover {
    background: #1e4a8a;
}

/* Dark mode */
[data-theme="dark"] .evom-btn {
    background: #163766;
}

[data-theme="dark"] .evom-btn:hover {
    background: #1e4a8a;
}

/* Header image */
.about-header-image img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    max-height: 260px;
    margin-bottom: 20px;
}

/* Title */
.about-title {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 2rem;
    font-weight: 700;
    text-align: left;
}

/* ===============================
   Dropdown Header
   =============================== */
.dropdown-box {
    width: 100%;
    padding: 14px 18px;
    margin-top: 20px;
    background: #163766;
    color: #ffffff;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.dropdown-box::after {
    content: "▼";
    font-size: 0.9rem;
    margin-left: auto !important;
    transition: transform 0.2s;
}

.dropdown-box.active::after {
    transform: rotate(180deg);
}

/* ===============================
   Dropdown Content
   =============================== */
.dropdown-content {
    display: none;
    padding: 12px 16px;
    margin-top: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
    line-height: 1.6;
}

.dropdown-content h4 {
    margin-top: 14px;
    margin-bottom: 6px;
    font-weight: 600;
}

.dropdown-content h4:first-of-type {
    margin-top: 6px;
}

.dropdown-content p,
.dropdown-content ul {
    margin-top: 6px;
    margin-bottom: 10px;
}

/* Prevent images from expanding dropdowns */
.dropdown-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
    border-radius: 6px;
}

/* ===============================
   EVOM TABLE STYLING
   =============================== */
.evom-table,
.dropdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.95rem;
}

.evom-table th,
.dropdown-content table th {
    background: #163766;
    color: #ffffff;
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid rgba(0,0,0,0.15);
}

.evom-table td,
.dropdown-content table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(0,0,0,0.15);
}

.evom-table tr:nth-child(even),
.dropdown-content table tr:nth-child(even) {
    background: rgba(255,255,255,0.08);
}

.evom-table tr:hover,
.dropdown-content table tr:hover {
    background: rgba(22,55,102,0.15);
}

/* Dark mode tables */
[data-theme="dark"] .evom-table,
[data-theme="dark"] .dropdown-content table {
    background: rgba(255,255,255,0.03);
}

[data-theme="dark"] .evom-table th,
[data-theme="dark"] .dropdown-content table th {
    background: #163766;
}

[data-theme="dark"] .evom-table td,
[data-theme="dark"] .dropdown-content table td {
    border-color: rgba(255,255,255,0.15);
}

/* ===============================
   LINK STYLING
   =============================== */
.dropdown-content a,
.evom-table a {
    color: #163766;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(22,55,102,0.4);
    transition: 0.2s ease;
}

.dropdown-content a:hover,
.evom-table a:hover {
    color: #0d2342;
    border-bottom-color: #0d2342;
}

/* Dark mode links */
[data-theme="dark"] .dropdown-content a,
[data-theme="dark"] .evom-table a {
    color: #93c5fd;
    border-bottom: 1px solid rgba(147,197,253,0.4);
}

[data-theme="dark"] .dropdown-content a:hover,
[data-theme="dark"] .evom-table a:hover {
    color: #cfe4ff;
    border-bottom-color: #cfe4ff;
}
/* PROFILE STYLES */

/* Unified Avatar Styling (Discord + Staff) */
.dashboard-avatar-box {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,0.85);
    border:2px solid var(--accent);
    box-shadow:0 2px 6px rgba(0,0,0,0.25);
}

[data-theme="dark"] .dashboard-avatar-box {
    background:rgba(0,0,0,0.45);
    border:2px solid rgba(255,255,255,0.25);
}

.dashboard-avatar-img {
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:50%;
}

.btn-edit {
    display: inline-block;
    background: #163766;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

/* Hover — updated to match new blue theme */
.btn-edit:hover {
    background: #1e4a8a;
    color: #ffffff;
}

/* Active — updated to match new blue theme */
.btn-edit:active {
    background: #163766;
    color: #ffffff;
}
/* Soft Box Tag */
.soft-tag {
    background: rgba(0,0,0,0.06);
    padding: 4px 10px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.95rem;
}

[data-theme="dark"] .soft-tag {
    background: rgba(255,255,255,0.12);
    color: #fff;
}
/* ============================================================
   EUROS COT VIRTUAL — PROFILE PAGE LAYOUT + TYPOGRAPHY
   CLEAN + FINAL VERSION
   ============================================================ */

/* PROFILE HEADER SECTION — compact version */
.evp-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0; /* reduced vertical padding */
    margin-bottom: 10px;
}

/* TITLE — slightly smaller + tighter line height */
.evp-header-row .evp-profile-title {
    font-size: 1.65rem;   /* was 2rem */
    font-weight: 800;
    color: #163766;
    margin: 0;
    padding: 0;
    line-height: 1.1;     /* tighter vertical spacing */
}

/* AVATAR — unchanged position, but header shrinks around it */
.evp-header-row .evp-profile-avatar {
    width: 72px;          /* slightly smaller */
    height: 72px;
    border-radius: 50%;
    border: 3px solid #5865F2;
    object-fit: cover;
    margin-left: 20px;
    flex-shrink: 0;
}


/* ============================================================
   GRID + CARD SYSTEM
   ============================================================ */

.evp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    padding: 0;
}

.evp-card {
    padding: 0; /* header touches edges */
    border-radius: 14px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(0,0,0,0.12);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    padding-bottom: 10px; /* tighter bottom */
}

[data-theme="dark"] .evp-card {
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.15);
}

/* ============================================================
   SECTION TITLE (BLUE HEADER)
   ============================================================ */

.evp-section-title {
    background: #163766;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 14px 14px 0 0;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 8px 0; /* tighter spacing */
    display: block;
    width: 100%;
    box-sizing: border-box;
}

/* ============================================================
   CONTENT WRAPPER
   ============================================================ */

.evp-card-content {
    padding: 12px 18px 14px 18px; /* compact + aligned */
}

.evp-card-content p {
    margin: 4px 0; /* compact vertical spacing */
}

/* ============================================================
   FIELD LABELS + VALUES
   ============================================================ */

.evp-field-label {
    font-weight: 700;
    color: #163766;
    margin-right: 6px;
}

.evp-field-value {
    font-weight: 400;
    color: #163766;
}

.evp-field-mono {
    font-family: monospace;
    color: #163766;
}

[data-theme="dark"] .evp-field-mono {
    color: #93c5fd;
}

/* ============================================================
   INFO GRID (FSD ACCOUNT)
   ============================================================ */

.evp-info-grid {
    display: grid;
    grid-template-columns: 150px 1fr;
    row-gap: 10px;
}

/* ============================================================
   WARNING BOX
   ============================================================ */

.evp-warning-box {
    background: rgba(255, 230, 180, 0.4);
    border: 1px solid #d4a048;
    padding: 12px;
    border-radius: 8px;
    margin-top: 14px;
}

/* ============================================================
   STAFF PROFILE BOX
   ============================================================ */

.evp-staff-box {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px; /* tightened */
    align-items: center;
}

/* ============================================================
   ICON BUTTONS
   ============================================================ */

.icon-btn {
    border: none;
    background: rgba(0,0,0,0.06);
    border-radius: 999px;
    padding: 4px 8px;
    margin-left: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

.icon-btn:hover {
    filter: brightness(0.95);
}

[data-theme="dark"] .icon-btn {
    background: rgba(255,255,255,0.12);
    color: #fff;
}
.profile-section:first-of-type {
    margin-bottom: 6px; /* tiny gap only */
}
.evp-header-row {
    padding: 6px 0; /* was 12px */
}

.evp-header-row .evp-profile-title {
    font-size: 1.5rem; /* was 1.65rem */
    line-height: 1.05;
}

.evp-header-row .evp-profile-avatar {
    width: 64px;  /* was 72px */
    height: 64px;
}
/* ============================================================
   EDIT PROFILE PAGE — MATCH PROFILE PAGE STYLING
   ============================================================ */

/* Page title */
h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #163766;
    margin: 0 0 14px 0;
}

/* Section titles (h2) */
.profile-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #163766;
    margin: 0 0 10px 0;
}

/* Paragraph text */
.profile-section p,
.profile-section label,
.profile-section strong {
    color: #163766;
    font-size: 0.95rem;
}

/* Form groups */
.profile-group {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
}

/* Labels */
.profile-group label {
    font-weight: 700;
    margin-bottom: 4px;
    color: #163766;
}

/* Inputs */
.profile-group input[type="text"],
.profile-group input[type="email"],
.profile-group textarea {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.12);
    font-size: 0.95rem;
    color: #163766;
    background: #ffffff;
    box-sizing: border-box;
}

/* Disabled inputs */
.profile-group input[disabled] {
    background: rgba(0,0,0,0.04);
    color: #163766;
}

/* Buttons */
.btn-edit {
    display: inline-block;
    background: #163766;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: 0.15s ease;
}

.btn-edit:hover {
    filter: brightness(1.1);
}

/* Success + error messages */
.success {
    background: rgba(76, 175, 80, 0.15);
    padding: 10px 14px;
    border-radius: 8px;
    color: #2e7d32;
    margin-bottom: 12px;
}

.error {
    background: rgba(244, 67, 54, 0.15);
    padding: 10px 14px;
    border-radius: 8px;
    color: #c62828;
    margin-bottom: 12px;
}
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    vertical-align: middle;
    line-height: 1;
}

/* --- Dashboard Welcome Layout --- */
.dashboard-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard-welcome {
    font-size: 1.2rem;
    line-height: 1.2;
    margin: 0;
}

.dashboard-staff-title {
    margin-top: -4px;
    font-weight: 600;
    opacity: 0.85;
}

/* --- GOLD BADGES (Airline Award Style) --- */
.eus-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.70rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid rgba(0,0,0,0.25);
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    white-space: nowrap;
}

/* Anniversary Badge — bright gold */
.eus-badge-anniversary {
    background: linear-gradient(135deg, #f7e9b0, #d4af37);
    color: #1a1a1a;
    border-color: #b8962f;
}

/* Founder Badge — deeper premium gold */
.eus-badge-founder {
    background: linear-gradient(135deg, #e8c46b, #c89b2b);
    color: #1a1a1a;
    border-color: #a88424;
}
/* Banner layout */
.dashboard-banner-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Top row: left + right */
.db-left,
.db-right {
    display: flex;
    flex-direction: column;
}

.dashboard-banner-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 10px 20px;
}

/* Name */
.dashboard-welcome {
    font-size: 1.2rem;
    margin: 0;
}

/* Staff title */
.dashboard-staff-title {
    margin-top: -4px;
    font-weight: 600;
    opacity: 0.85;
}

/* Badges aligned right */
.db-badge-row {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* Avatars stacked under badges */
.db-avatar-row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 6px;
}

/* Buttons full width under both columns */
.db-button-row {
    grid-column: 1 / span 2;
    display: flex;
    gap: 16px;
    margin-top: 4px;
}

/* Buttons */
.db-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    background: #163766;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(29,78,216,0.35);
    transition: background 0.15s, transform 0.15s;
}

.db-btn:hover {
    background: #1e4a8a;
    transform: translateY(-1px);
}

/* Unread badge */
.db-unread {
    background:#dc2626;
    color:white;
    font-size:0.75rem;
    font-weight:700;
    padding:2px 8px;
    border-radius:999px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:22px;
    box-shadow:0 1px 4px rgba(0,0,0,0.25);
}

/* Gold badges (already correct) */
.eus-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.70rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid rgba(0,0,0,0.25);
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    white-space: nowrap;
}

.eus-badge-anniversary {
    background: linear-gradient(135deg, #f7e9b0, #d4af37);
    color: #1a1a1a;
    border-color: #b8962f;
}

.eus-badge-founder {
    background: linear-gradient(135deg, #e8c46b, #c89b2b);
    color: #1a1a1a;
    border-color: #a88424;
}
.eus-banner {
    width: 100%;
    background: linear-gradient(135deg, #163766, #111827);
    border-bottom: 1px solid #d4af37;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden; /* critical for scroll effect */
}

.eus-banner-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #f5e3a1, #d4af37);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #111827;
    flex-shrink: 0;
    z-index: 2; /* text disappears “behind” this */
}

.eus-banner-marquee {
    position: relative;
    overflow: hidden;
    flex: 1;
}

.eus-banner-track {
    display: inline-flex;
    align-items: center;
    gap: 40px;
    white-space: nowrap;
    animation: eus-banner-scroll 50s linear infinite;
    padding-left: 40px; /* gives the illusion of disappearing at the plane */
}

.eus-banner-main,
.eus-banner-extra {
    font-weight: 600;
    color: #f9fafb;
    font-size: 14px;
}

.eus-banner-main {
    font-size: 14px;
}

.eus-banner-extra a {
    color: #f9fafb;
    text-decoration: underline;
}

/* scrolling animation */
@keyframes eus-banner-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
.profile-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    font-size: 15px;
    color: #1e293b;
    appearance: none;
    outline: none;
    cursor: pointer;
    transition: 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg fill='none' stroke='%236b7280' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
}

.profile-select:hover {
    border-color: #94a3b8;
}

.profile-select:focus {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.25);
}

/* ============================================================
   ESSENTIAL COOKIE NOTICE — vEUS Unified Styling
   ============================================================ */

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 520px;

    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);

    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;

    font-size: 0.9rem;
    color: var(--text);
    z-index: 9999;
}

.cookie-banner p {
    margin: 0;
    line-height: 1.4;
}

.cookie-banner a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
}

.cookie-banner button {
    background: #163766;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
    white-space: nowrap;
}

.cookie-banner button:hover {
    background: #1e4a8a;
}

/* Dark mode */
[data-theme="dark"] .cookie-banner {
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.15);
    color: #ffffff;
}

[data-theme="dark"] .cookie-banner a {
    color: #93c5fd;
}

[data-theme="dark"] .cookie-banner button {
    background: #163766;
}

[data-theme="dark"] .cookie-banner button:hover {
    background: #1e4a8a;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 14px 16px;
    }

    .cookie-banner button {
        width: 100%;
        margin-top: 8px;
    }
}


