/* ============================================================
   M-EX — India's Steel Market Exchange
   Main stylesheet — mobile-first, responsive
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --mex-orange:   #F2A100;
  --mex-orange-d: #C97A00;
  --mex-dark:     #0A1628;
  --mex-mid:      #16213E;
  --mex-steel:    #4A5568;
  --mex-light:    #F7FAFC;
  --mex-border:   #E2E8F0;
  --mex-text:     #2D3748;
  --mex-muted:    #718096;
  --mex-success:  #38A169;
  --mex-danger:   #E53E3E;
  --mex-warning:  #D69E2E;
  --radius:       6px;
  --shadow:       0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08);
  --shadow-md:    0 4px 6px rgba(0,0,0,.1), 0 2px 4px rgba(0,0,0,.08);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--mex-text);
  background: var(--mex-light);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--mex-orange); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Header / Nav --- */
.mex-header {
  background: var(--mex-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
  overflow: visible;
}

.mex-header-inner {
  max-width: 100%;
  margin: 0;
  padding: 0 1.5rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  overflow: visible;
}

.mex-logo {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 72px;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.mex-logo em {
  display: flex;
  align-items: center;
  font-family: 'Bebas Neue', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 46px;
  line-height: 1;
  letter-spacing: 0.6px;
  color: #F4F5F7;
  margin: 0;
  padding: 0;
}
.mex-logo .dash {
  display: inline-block;
  width: 10px;
  height: 5px;
  background: var(--mex-orange);
  margin-left: 5px;
  margin-right: 5px;
  transform: translateY(-1px);
}
.mex-logo span {
  font-family: 'Exo 2', sans-serif;
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 1.35px;
  text-transform: uppercase;
  color: rgba(215, 220, 228, 0.90);
  line-height: 1;
  position: relative;
  top: 1px;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
}

.mex-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex-wrap: wrap;
}

.mex-nav a, .mex-nav-direct {
  color: #CBD5E0;
  padding: .4rem .75rem;
  border-radius: var(--radius);
  font-size: .9rem;
  transition: background .15s, color .15s;
  text-decoration: none;
  display: inline-block;
}
.mex-nav a:hover, .mex-nav a.active,
.mex-nav-direct:hover, .mex-nav-direct.active {
  background: rgba(255,255,255,.1);
  color: #fff;
  text-decoration: none;
}

.mex-nav-bell {
  position: relative;
  color: #CBD5E0;
  font-size: 1.1rem;
  padding: .4rem .6rem;
  border-radius: var(--radius);
  cursor: pointer;
}
.mex-nav-bell .badge {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--mex-orange);
  color: #fff;
  font-size: .65rem;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Mobile nav */
.mex-mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--mex-mid);
  padding: .5rem 0 1rem;
  border-top: 1px solid rgba(255,255,255,.08);
  max-height: calc(100dvh - 56px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mex-mobile-nav.open { display: flex; }
.mex-mobile-nav a {
  color: #CBD5E0;
  padding: .55rem .75rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: .92rem;
}
.mex-mobile-nav a:hover { color: #fff; background: rgba(255,255,255,.05); text-decoration: none; }

/* Hamburger (mobile) */
.mex-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .5rem;
  background: none;
  border: none;
}
.mex-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #CBD5E0;
  border-radius: 2px;
  transition: .2s;
}

/* Mobile nav drawer */
.mex-nav-drawer {
  display: none;
  flex-direction: column;
  background: var(--mex-mid);
  padding: .5rem 1rem 1rem;
}
.mex-nav-drawer.open { display: flex; }
.mex-nav-drawer a {
  color: #CBD5E0;
  padding: .6rem .5rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: .95rem;
}
.mex-nav-drawer a:last-child { border-bottom: none; }

@media (max-width: 768px) {
  .mex-nav { display: none; }
  .mex-hamburger { display: flex; }
}


/* --- Nav Dropdowns --- */
.mex-dropdown {
  position: relative;
  display: inline-block;
}
.mex-dropdown-trigger {
  background: none;
  border: none;
  color: #CBD5E0;
  padding: .4rem .6rem;
  border-radius: var(--radius);
  font-size: .85rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.mex-dropdown-trigger:hover,
.mex-dropdown-trigger.active {
  background: rgba(255,255,255,.1);
  color: #fff;
}
.mex-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #0f2040;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  z-index: 9999;
  padding: .35rem 0;
  margin-top: 0;
}
/* Invisible bridge prevents menu closing when mouse moves from trigger to menu */
.mex-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 8px;
}
.mex-dropdown:hover .mex-dropdown-menu,
.mex-dropdown.open .mex-dropdown-menu {
  display: block;
}
.mex-dropdown-menu a {
  display: block;
  color: #CBD5E0;
  padding: .5rem 1rem;
  font-size: .88rem;
  white-space: nowrap;
  transition: background .12s, color .12s;
}
.mex-dropdown-menu a:hover,
.mex-dropdown-menu a.active {
  background: rgba(255,255,255,.08);
  color: #fff;
  text-decoration: none;
}
.mex-dropdown-divider {
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: .35rem 0;
}
/* Mobile nav section labels */
.mex-mobile-nav-label {
  color: var(--mex-orange);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .75rem .75rem .2rem;
  margin-top: .25rem;
}
/* Post Stock button */
.mex-btn-post {
  background: var(--mex-orange-d);
  color: #fff !important;
  font-weight: 700;
  border: none;
  padding: .35rem .75rem;
  border-radius: var(--radius);
  font-size: .85rem;
  white-space: nowrap;
  text-decoration: none !important;
}
.mex-btn-post:hover {
  background: #92400E;
  color: #fff !important;
}
/* --- Footer --- */
.mex-footer {
  margin-top: auto;
  background: var(--mex-dark);
  color: #718096;
  font-size: .82rem;
}
.mex-footer a { color: #A0AEC0; text-decoration: none; }
.mex-footer a:hover { color: #fff; }
.mex-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.25rem;
}
.mex-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.mex-footer-brand p {
  font-size: .83rem;
  color: #718096;
  line-height: 1.6;
  margin: .75rem 0 .5rem;
  max-width: 280px;
}
.mex-footer-operator {
  font-size: .78rem;
  color: #4A5568;
  margin-top: .5rem;
}
.mex-footer-col h4 {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #94A3B8;
  margin-bottom: .75rem;
}
.mex-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.mex-footer-col ul li a {
  font-size: .83rem;
  color: #718096;
}
.mex-footer-col ul li a:hover { color: #fff; }
.mex-footer-address {
  font-size: .8rem;
  color: #4A5568;
  line-height: 1.7;
  margin-top: .5rem;
}
.mex-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 1rem;
  text-align: center;
  font-size: .78rem;
  color: #4A5568;
}
@media (max-width: 900px) {
  .mex-footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1.5rem;
  }
}
@media (max-width: 640px) {
  .mex-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
  .mex-footer-brand {
    grid-column: 1 / -1;
  }
}

/* --- Main content wrapper --- */
.mex-main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

/* --- Page title bar --- */
.mex-page-header {
  padding: 1.75rem 0 1.5rem;
  border-bottom: 1px solid var(--mex-border);
  margin-bottom: 1.75rem;
}
.mex-page-title {
  margin-bottom: 1.5rem;
}
.mex-page-title h1,
h1.mex-page-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--mex-dark);
  line-height: 1.2;
  margin-bottom: 0.35rem;
}
.mex-page-sub {
  color: var(--mex-muted);
  font-size: 0.92rem;
  margin-top: 0;
}
.mex-page-title p {
  color: var(--mex-muted);
  font-size: .9rem;
  margin-top: .2rem;
}

/* --- Cards --- */
.mex-card {
  background: #fff;
  border: 1px solid var(--mex-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mex-card-header {
  padding: .875rem 1.25rem;
  border-bottom: 1px solid var(--mex-border);
  font-weight: 600;
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FAFAFA;
}
.mex-card-body { padding: 1.25rem; }

/* --- Stat cards (wallet summary) --- */
.mex-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.mex-stat {
  background: #fff;
  border: 1px solid var(--mex-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
}
.mex-stat-label {
  font-size: .78rem;
  color: var(--mex-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .35rem;
}
.mex-stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--mex-dark);
}
.mex-stat-value.orange { color: var(--mex-orange); }
.mex-stat-value.green  { color: var(--mex-success); }

/* --- Tab nav (dashboard) --- */
.mex-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--mex-border);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}
.mex-tab {
  padding: .65rem 1.25rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--mex-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.mex-tab.active {
  color: var(--mex-orange);
  border-bottom-color: var(--mex-orange);
}
.mex-tab-panel { display: none; }
.mex-tab-panel.active { display: block; }

/* --- Tables --- */
.mex-table-wrap { overflow-x: auto; }
.mex-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.mex-table th {
  background: #F7FAFC;
  color: var(--mex-muted);
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .4px;
  padding: .6rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--mex-border);
  white-space: nowrap;
}
.mex-table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--mex-border);
  vertical-align: middle;
}
.mex-table tr:last-child td { border-bottom: none; }
.mex-table tr:hover td { background: #FAFAFA; }

/* --- Badges / status pills --- */
.mex-badge {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.mex-badge-entry   { background: #EBF8FF; color: #2B6CB0; }
.mex-badge-offer   { background: #FAF5FF; color: #6B46C1; }
.mex-badge-auction { background: #FFFAF0; color: #C05621; }
.mex-badge-closed  { background: #F0FFF4; color: #276749; }
.mex-badge-draft   { background: #F7FAFC; color: #718096; }
.mex-badge-won     { background: #F0FFF4; color: #276749; }
.mex-badge-outbid  { background: #FFF5F5; color: #C53030; }
.mex-badge-pending { background: #FFFAF0; color: #C05621; }

/* --- Buttons --- */
.mex-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, opacity .15s;
  text-decoration: none;
}
.mex-btn:hover { text-decoration: none; }
.mex-btn-primary {
  background: var(--mex-orange);
  color: #fff;
}
.mex-btn-primary:hover { background: var(--mex-orange-d); color: #fff; }
.mex-btn-outline {
  background: transparent;
  color: var(--mex-orange);
  border-color: var(--mex-orange);
}
.mex-btn-outline:hover { background: var(--mex-orange); color: #fff; }
.mex-btn-sm { padding: .3rem .7rem; font-size: .8rem; }

/* --- Forms --- */
.mex-form-group { margin-bottom: 1rem; }
.mex-label {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  color: var(--mex-text);
  margin-bottom: .35rem;
}
.mex-input {
  width: 100%;
  padding: .55rem .75rem;
  border: 1px solid var(--mex-border);
  border-radius: var(--radius);
  font-size: .95rem;
  color: var(--mex-text);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.mex-input:focus {
  outline: none;
  border-color: var(--mex-orange);
  box-shadow: 0 0 0 3px rgba(230,92,0,.12);
}

/* --- Alerts --- */
.mex-alert {
  padding: .75rem 1rem;
  border-radius: var(--radius);
  font-size: .9rem;
  margin-bottom: 1rem;
  border-left: 4px solid;
}
.mex-alert-danger  { background: #FFF5F5; border-color: var(--mex-danger);  color: #742A2A; }
.mex-alert-success { background: #F0FFF4; border-color: var(--mex-success); color: #22543D; }
.mex-alert-info    { background: #EBF8FF; border-color: #3182CE;            color: #2A4365; }
.mex-alert-warning { background: #FFFAF0; border-color: var(--mex-warning); color: #744210; }

/* --- Login page centred layout --- */
.mex-auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--mex-dark) 0%, var(--mex-mid) 100%);
  padding: 1rem;
}
.mex-auth-box {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  width: 100%;
  max-width: 420px;
  padding: 2.5rem 2rem;
}
.mex-auth-logo {
  text-align: center;
  margin-bottom: 1.75rem;
}
.mex-auth-logo .name { font-size: 1.75rem; font-weight: 800; color: var(--mex-orange); }
.mex-auth-logo .tagline { font-size: .82rem; color: var(--mex-muted); margin-top: .2rem; }
.mex-auth-box h2 { font-size: 1.1rem; margin-bottom: 1.25rem; color: var(--mex-dark); }

/* --- Empty state --- */
.mex-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--mex-muted);
}
.mex-empty-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.mex-empty p { font-size: .95rem; }

/* --- Responsive grid --- */
.mex-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 640px) {
  .mex-grid-2 { grid-template-columns: 1fr; }
  .mex-stat-value { font-size: 1.2rem; }
  .mex-auth-box { padding: 2rem 1.25rem; }
}

/* --- Utility --- */
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.text-muted { color: var(--mex-muted); font-size: .88rem; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.fw-bold { font-weight: 700; }
.w-full { width: 100%; }

/* ── Pagination ─────────────────────────────────────────────── */
.mex-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0;
}
.mex-page-btn {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border: 1px solid #2a3f5f;
    border-radius: 4px;
    color: #cbd5e1;
    background: #0f1f38;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.mex-page-btn:hover {
    background: var(--mex-orange);
    color: #0A1628;
    border-color: var(--mex-orange);
}
.mex-page-btn.active {
    background: var(--mex-orange);
    color: #0A1628;
    border-color: var(--mex-orange);
    font-weight: 700;
    pointer-events: none;
}
.mex-page-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: default;
}

/* ── Breadcrumb ─────────────────────────────────────────────── */
.mex-breadcrumb {
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}
.mex-breadcrumb-link {
    color: #0A1628;
    text-decoration: none;
}
.mex-breadcrumb-link:hover { color: var(--mex-orange); }
.mex-breadcrumb-sep { color: #94a3b8; margin: 0 0.15rem; }
.mex-breadcrumb-current { color: #64748b; }

/* ── Hero ───────────────────────────────────────────────────── */
.mex-hero {
  background: linear-gradient(135deg, #0A1628 0%, #1A2F50 100%);
  color: #fff;
  padding: 4rem 1.25rem 3.5rem;
}
.mex-hero-inner {
  max-width: 900px;
  margin: 0 auto;
}
.mex-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3rem 1rem;
  margin-bottom: 1.25rem;
}
.mex-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.mex-hero h1 em {
  color: #F2A100;
  font-style: normal;
}
.mex-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.70);
  max-width: 540px;
  line-height: 1.6;
}
.mex-hero-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}
.mex-hero-link {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.80);
  text-decoration: none;
  letter-spacing: .01em;
  padding: .65rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  transition: color .15s, border-color .15s;
}
.mex-hero-link:hover {
  color: #F2A100;
  border-color: #F2A100;
}
@media (max-width: 640px) {
  .mex-hero { padding: 2.5rem 1rem 2rem; }
  .mex-hero h1 { font-size: 1.55rem; }
  .mex-hero-actions { flex-direction: column; align-items: stretch; }
}

/* ── Button system ──────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: .9rem;
  padding: .5rem 1.25rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none !important;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  text-align: center;
  white-space: nowrap;
}
.btn-lg {
  font-size: 1rem;
  padding: .65rem 1.6rem;
}
.btn-sm {
  font-size: .8rem;
  padding: .3rem .85rem;
}
.btn-primary {
  background: var(--mex-orange-d);
  color: #fff !important;
  border-color: var(--mex-orange-d);
}
.btn-primary:hover {
  background: #92400E;
  border-color: #92400E;
  color: #fff !important;
}
.btn-outline-light {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255,255,255,0.55);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.10);
  border-color: #fff;
  color: #fff !important;
}
.btn-outline-primary {
  background: transparent;
  color: var(--mex-orange) !important;
  border-color: var(--mex-orange);
}
.btn-outline-primary:hover {
  background: var(--mex-orange);
  color: #fff !important;
}

/* ── Contact Page ─────────────────────────────────────────── */
.mex-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2.5rem;
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1.25rem 3rem;
}
@media(max-width:700px){
  .mex-contact-grid { grid-template-columns: 1fr; }
}
.mex-contact-info h3,
.mex-contact-form h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.25rem;
}
.mex-contact-row {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: 1.1rem;
}
.mex-contact-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #f3f4f6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mex-contact-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #374151;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mex-contact-text strong {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .2rem;
}
.mex-contact-text {
  font-size: .9rem;
  color: #374151;
  line-height: 1.5;
}
.mex-contact-operator {
  margin-top: 1.5rem;
  font-size: .85rem;
  color: #6b7280;
  line-height: 1.6;
}
.mex-contact-operator a {
  color: var(--mex-orange);
  text-decoration: none;
  font-weight: 600;
}
.mex-captcha {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.mex-captcha-question {
  font-size: .9rem;
  color: #374151;
  font-weight: 500;
}
.mex-captcha input {
  width: 80px;
}

/* User account dropdown */
.mex-user-trigger {
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 3px;
  padding: .35rem .75rem;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.mex-user-trigger:hover {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
/* Notification bell */
.mex-notif-wrapper {
  position: relative;
  display: inline-block;
}
.mex-notif-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 3px;
  color: rgba(255,255,255,0.75);
  transition: border-color 0.15s, color 0.15s;
}
.mex-notif-btn:hover {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.mex-notif-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}
.mex-notif-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  background: #F2A100;
  border-radius: 50%;
}
.mex-dropdown-menu-right {
  right: 0;
  left: auto;
  min-width: 180px;
}
.mex-dropdown-logout {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: .55rem 1rem;
  font-size: .88rem;
  color: #ef4444;
  cursor: pointer;
  font-family: inherit;
}
.mex-dropdown-logout:hover {
  background: #fef2f2;
  color: #dc2626;
}

/* Hamburger always rightmost on mobile */
@media (max-width: 768px) {
  .mex-nav-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: nowrap;
  }
  .mex-hamburger {
    order: 99;
    flex-shrink: 0;
  }
  .mex-user-dropdown {
    flex-shrink: 1;
    min-width: 0;
  }
  .mex-user-trigger {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Mobile logo — stack subtitle below logomark */
@media (max-width: 768px) {
  .mex-logo {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    height: auto;
    white-space: normal;
  }
  .mex-logo em {
    font-size: 32px;
    line-height: 1;
  }
  .mex-logo span {
    font-size: 7px;
    letter-spacing: 1px;
    top: 0;
  }
}

/* Hamburger left-first on mobile */
@media (max-width: 768px) {
  .mex-hamburger {
    order: -1;
    display: flex;
    flex-shrink: 0;
  }
}

/* Dashboard welcome line */
.mex-dash-welcome {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  padding: 1.25rem 1.25rem 0.5rem;
}
.mex-dash-welcome-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0A1628;
}
.mex-dash-welcome-sep {
  color: #cbd5e1;
  font-size: 1rem;
}
.mex-dash-welcome-meta {
  font-size: 0.88rem;
  color: #64748b;
}
.mex-dash-welcome-meta strong {
  color: #0A1628;
}
@media (max-width: 768px) {
  .mex-dash-welcome {
    flex-direction: column;
    gap: 0.15rem;
    padding: 1rem 1.25rem 0.4rem;
  }
  .mex-dash-welcome-sep {
    display: none;
  }
  .mex-dash-welcome-name {
    font-size: 1.25rem;
  }
}

/* Dashboard action rows */
.mex-dash-actions {
  padding: 0 1.25rem;
  margin-bottom: 1.5rem;
}
.mex-dash-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  align-items: center;
}
.mex-dash-action-row:last-child {
  margin-bottom: 0;
}
.mex-dash-action-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 60px;
}
@media (max-width: 768px) {
  .mex-dash-action-label {
    width: 100%;
    min-width: 0;
    padding-bottom: 0.15rem;
  }
}

/* Compact wallet strip — dashboard + context bar */
.mex-wallet-strip {
  background: #111e35;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mex-wallet-strip-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mex-wallet-strip-row:last-child {
  border-bottom: none;
}
.mex-wallet-strip-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mex-wallet-strip-value {
  font-size: 0.85rem;
  font-weight: 600;
}
.mex-wallet-strip-value.amber { color: #F2A100; }
.mex-wallet-strip-value.blue { color: #93c5fd; }
.mex-wallet-strip-value.green { color: #86efac; }
.mex-wallet-strip-detail {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
}

/* Wallet strip — bottom border separation */
.mex-wallet-strip {
  border-bottom: 2px solid rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
}

/* Breakdown detail wraps below on mobile */
@media (max-width: 768px) {
  .mex-wallet-strip-row {
    flex-wrap: wrap;
  }
  .mex-wallet-strip-label {
    flex: 0 0 auto;
  }
  .mex-wallet-strip-value {
    flex: 1 1 auto;
    text-align: right;
  }
  .mex-wallet-strip-detail {
    display: block;
    flex: 0 0 100%;
    text-align: right;
    font-size: 0.68rem;
    padding-bottom: 4px;
    margin-top: -2px;
  }
}
