/* ═══════════════════════════════════════════════════════════
   PREDIXAFY — Design System v2 (Polymarket-inspired)
   Light theme · Plus Jakarta Sans · Clean & minimal
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ── Variables ───────────────────────────────────────────── */
:root {
  --bg-base:       #f7f8fa;
  --bg-surface:    #ffffff;
  --bg-card:       #ffffff;
  --bg-card-hover: #fafbfc;
  --bg-elevated:   #f0f2f5;
  --bg-input:      #ffffff;
  --border:        #e4e7ed;
  --border-subtle: #f0f2f5;
  --border-bright: #c8cdd8;
  --blue:          #1652f0;
  --blue-dark:     #1246d6;
  --blue-light:    #e8eeff;
  --blue-mid:      #3b6ef6;
  /* Backward-compat aliases */
  --cyan:          #1652f0;
  --cyan-dim:      #1246d6;
  --cyan-glow:     rgba(22,82,240,.08);
  --cyan-glow-lg:  rgba(22,82,240,.04);
  --green:         #00b37d;
  --green-dim:     #059669;
  --green-glow:    rgba(0,179,125,.10);
  --green-light:   #e6f7f2;
  --red:           #f43f5e;
  --red-dim:       #e11d48;
  --red-glow:      rgba(244,63,94,.10);
  --red-light:     #fff0f2;
  --amber:         #f59e0b;
  --amber-dim:     #d97706;
  --amber-glow:    rgba(245,158,11,.10);
  --amber-light:   #fff8e6;
  --purple:        #7c3aed;
  --purple-light:  #f3efff;
  --text-primary:   #0d1117;
  --text-secondary: #4b5563;
  --text-muted:     #9ca3af;
  --text-faint:     #d1d5db;
  --font-display:  'Plus Jakarta Sans', sans-serif;
  --font-body:     'Plus Jakarta Sans', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg:  0 12px 32px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.04);
  --shadow-card: 0 1px 3px rgba(0,0,0,.06);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --transition: 0.15s ease;
  --transition-slow: 0.3s ease;
}

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-body); font-size: 14px; line-height: 1.5; color: var(--text-primary); background-color: var(--bg-base); min-height: 100vh; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.25; color: var(--text-primary); }
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
p { color: var(--text-secondary); }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
.font-mono { font-family: var(--font-mono); }
.text-muted { color: var(--text-muted) !important; }
.text-secondary-color { color: var(--text-secondary) !important; }
.text-cyan  { color: var(--blue) !important; }
.text-amber { color: var(--amber) !important; }
.text-green { color: var(--green) !important; }
.text-red   { color: var(--red) !important; }

/* ── Container ───────────────────────────────────────────── */
.container-predixafy { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

/* ── Navigation ──────────────────────────────────────────── */
.navbar-predixafy { position: sticky; top: 0; z-index: 1000; background: var(--bg-card); border-bottom: 1px solid var(--border); height: 60px; }
.navbar-predixafy .container-predixafy { height: 60px; display: flex; align-items: center; padding: 0 20px; }
.navbar-brand-predixafy { display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; margin-right: 28px; }
.brand-icon { width: 30px; height: 30px; background: var(--blue); border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #fff; font-weight: 800; font-family: var(--font-display); }
.brand-text { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; color: var(--text-primary); letter-spacing: -0.03em; }
.brand-text span { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-link-item { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 0.875rem; font-weight: 500; text-decoration: none; transition: all var(--transition); white-space: nowrap; }
.nav-link-item:hover { color: var(--text-primary); background: var(--bg-elevated); }
.nav-link-item.active { color: var(--blue); background: var(--blue-light); font-weight: 600; }
.nav-link-item i { font-size: 0.85rem; }
.nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto; }
.wallet-badge { display: flex; align-items: center; gap: 6px; padding: 6px 14px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 999px; font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; color: var(--text-primary); text-decoration: none; transition: all var(--transition); }
.wallet-badge:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.wallet-badge i { font-size: 0.75rem; color: var(--green); }
.notif-btn { position: relative; width: 36px; height: 36px; border-radius: var(--radius-sm); background: transparent; border: 1px solid var(--border); color: var(--text-secondary); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all var(--transition); text-decoration: none; }
.notif-btn:hover { border-color: var(--border-bright); color: var(--text-primary); background: var(--bg-elevated); }
.notif-dot { position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; background: var(--red); border-radius: 50%; border: 1.5px solid #fff; }
.lang-toggle { display: flex; align-items: center; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; font-size: 0.75rem; font-weight: 600; }
.lang-toggle a { padding: 5px 9px; color: var(--text-muted); text-decoration: none; transition: all var(--transition); }
.lang-toggle a.active { background: var(--blue); color: #fff; }
.lang-toggle a:hover:not(.active) { color: var(--text-secondary); }
.user-menu-btn { display: flex; align-items: center; gap: 7px; padding: 4px 10px 4px 4px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 999px; cursor: pointer; transition: all var(--transition); text-decoration: none; }
.user-menu-btn:hover { border-color: var(--border-bright); }
.user-avatar { width: 26px; height: 26px; background: var(--blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.68rem; font-weight: 700; color: #fff; font-family: var(--font-display); }
.user-menu-btn span { font-size: 0.84rem; font-weight: 600; color: var(--text-primary); max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-btn .chevron { color: var(--text-muted); font-size: 0.65rem; transition: transform var(--transition); }
.btn-nav-login { padding: 6px 14px; border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); border: 1px solid var(--border); background: transparent; text-decoration: none; transition: all var(--transition); }
.btn-nav-login:hover { color: var(--text-primary); border-color: var(--border-bright); background: var(--bg-elevated); }
.btn-nav-register { padding: 6px 16px; border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 600; color: #fff; background: var(--blue); border: 1px solid var(--blue); text-decoration: none; transition: all var(--transition); }
.btn-nav-register:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.navbar-toggler-predixafy { display: none; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: transparent; color: var(--text-secondary); cursor: pointer; align-items: center; justify-content: center; font-size: 1.1rem; transition: all var(--transition); }
.navbar-toggler-predixafy:hover { border-color: var(--border-bright); color: var(--text-primary); }

/* ── Stats Ticker ────────────────────────────────────────── */
.stats-ticker { background: var(--bg-elevated); border-bottom: 1px solid var(--border); padding: 7px 0; overflow: hidden; }
.ticker-inner { display: flex; align-items: center; gap: 24px; animation: ticker 50s linear infinite; white-space: nowrap; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.ticker-item { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; }
.ticker-label { color: var(--text-muted); }
.ticker-value { font-family: var(--font-mono); font-weight: 600; color: var(--text-secondary); }
.ticker-change { font-family: var(--font-mono); font-size: 0.72rem; }
.ticker-change.up { color: var(--green); }
.ticker-change.down { color: var(--red); }
.ticker-sep { color: var(--text-faint); }

/* ── Dropdown ────────────────────────────────────────────── */
.dropdown-predixafy { position: relative; }
.dropdown-menu-predixafy { position: absolute; top: calc(100% + 6px); right: 0; min-width: 200px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 4px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all var(--transition); z-index: 999; }
.dropdown-predixafy:hover .dropdown-menu-predixafy, .dropdown-predixafy.open .dropdown-menu-predixafy { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item-predixafy { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 0.875rem; text-decoration: none; transition: all var(--transition); }
.dropdown-item-predixafy:hover { color: var(--text-primary); background: var(--bg-elevated); }
.dropdown-item-predixafy i { width: 14px; text-align: center; color: var(--text-muted); }
.dropdown-item-predixafy:hover i { color: var(--blue); }
.dropdown-divider-predixafy { height: 1px; background: var(--border); margin: 4px 0; }
.dropdown-item-predixafy.danger { color: var(--red); }
.dropdown-item-predixafy.danger:hover { background: var(--red-light); color: var(--red); }
.dropdown-item-predixafy.danger i { color: var(--red); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--font-body); font-weight: 600; border: none; cursor: pointer; text-decoration: none; transition: all var(--transition); white-space: nowrap; font-size: 0.875rem; }
.btn-primary { background: var(--blue); color: #fff; border-radius: var(--radius-sm); padding: 9px 20px; border: 1px solid var(--blue); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-primary:active { transform: scale(0.98); }
.btn-secondary { background: var(--bg-elevated); color: var(--text-primary); border-radius: var(--radius-sm); padding: 9px 20px; border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--border-bright); color: var(--text-primary); }
.btn-ghost { background: transparent; color: var(--text-secondary); border-radius: var(--radius-sm); padding: 8px 16px; border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg-elevated); color: var(--text-primary); }
.btn-yes { background: var(--green-light); color: var(--green); border: 1px solid rgba(0,179,125,.25); border-radius: var(--radius-sm); padding: 7px 16px; font-size: 0.84rem; font-weight: 700; }
.btn-yes:hover { background: rgba(0,179,125,.18); border-color: var(--green); color: var(--green); }
.btn-no { background: var(--red-light); color: var(--red); border: 1px solid rgba(244,63,94,.25); border-radius: var(--radius-sm); padding: 7px 16px; font-size: 0.84rem; font-weight: 700; }
.btn-no:hover { background: rgba(244,63,94,.14); border-color: var(--red); color: var(--red); }
.btn-amber { background: var(--amber-light); color: var(--amber); border: 1px solid rgba(245,158,11,.25); border-radius: var(--radius-sm); padding: 9px 20px; font-size: 0.875rem; font-weight: 600; }
.btn-amber:hover { background: rgba(245,158,11,.18); border-color: var(--amber); color: var(--amber); }
.btn-sm { padding: 5px 12px !important; font-size: 0.78rem !important; }
.btn-lg { padding: 12px 28px !important; font-size: 0.95rem !important; }
.btn-full { width: 100%; }
.btn:disabled, .btn.disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.btn-table { padding: 3px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; border: 1px solid; cursor: pointer; background: transparent; transition: all var(--transition); }
.btn-table.success { color: var(--green); border-color: rgba(0,179,125,.3); }
.btn-table.success:hover { background: var(--green-light); }
.btn-table.danger { color: var(--red); border-color: rgba(244,63,94,.3); }
.btn-table.danger:hover { background: var(--red-light); }

/* ── Cards ───────────────────────────────────────────────── */
.card-predixafy { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: all var(--transition); position: relative; }
.card-predixafy:hover { border-color: var(--border-bright); box-shadow: var(--shadow-md); }
.card-body-predixafy { padding: 18px; }
.card-header-predixafy { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-footer-predixafy { padding: 12px 18px; border-top: 1px solid var(--border); }

/* ── Market Card ─────────────────────────────────────────── */
.market-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; cursor: pointer; transition: all var(--transition); display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit; position: relative; }
.market-card:hover { border-color: var(--border-bright); box-shadow: var(--shadow-md); color: inherit; }
.market-card-header { display: flex; align-items: flex-start; gap: 10px; }
.market-category-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; background: var(--blue-light); color: var(--blue); flex-shrink: 0; }
.market-title { font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; color: var(--text-primary); line-height: 1.4; flex: 1; }
.prob-bar-container { display: flex; flex-direction: column; gap: 7px; }
.prob-row { display: flex; align-items: center; gap: 8px; }
.prob-label { font-size: 0.78rem; font-weight: 700; width: 28px; flex-shrink: 0; }
.prob-label.yes { color: var(--green); }
.prob-label.no  { color: var(--red); }
.prob-bar-track { flex: 1; height: 5px; background: var(--bg-elevated); border-radius: 3px; overflow: hidden; }
.prob-bar-fill { height: 100%; border-radius: 3px; transition: width 0.5s ease; }
.prob-bar-fill.yes { background: var(--green); }
.prob-bar-fill.no  { background: var(--red); }
.prob-value { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; width: 40px; text-align: right; flex-shrink: 0; }
.prob-value.yes { color: var(--green); }
.prob-value.no  { color: var(--red); }
.market-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.market-meta-item { display: flex; align-items: center; gap: 4px; font-size: 0.75rem; color: var(--text-muted); }
.market-meta-item i { font-size: 0.68rem; }
.market-meta-item strong { color: var(--text-secondary); font-weight: 500; }
.market-volume { font-family: var(--font-mono); color: var(--text-secondary); font-weight: 600; }

/* ── Section Titles ──────────────────────────────────────── */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ''; width: 3px; height: 16px; background: var(--blue); border-radius: 2px; flex-shrink: 0; }
.section-link { font-size: 0.8rem; color: var(--text-muted); text-decoration: none; display: flex; align-items: center; gap: 4px; transition: color var(--transition); }
.section-link:hover { color: var(--blue); }

/* ── Status Badges ───────────────────────────────────────── */
.badge-predixafy { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.badge-open      { background: var(--green-light);  color: var(--green);  border: 1px solid rgba(0,179,125,.2); }
.badge-closed    { background: var(--bg-elevated);   color: var(--text-muted); border: 1px solid var(--border); }
.badge-resolved  { background: var(--purple-light);  color: var(--purple); border: 1px solid rgba(124,58,237,.2); }
.badge-resolving { background: var(--amber-light);   color: var(--amber);  border: 1px solid rgba(245,158,11,.2); }
.badge-cancelled { background: var(--red-light);     color: var(--red);    border: 1px solid rgba(244,63,94,.2); }
.badge-featured  { background: var(--blue-light);    color: var(--blue);   border: 1px solid rgba(22,82,240,.2); }
.badge-predixafy .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ── Category Pills ──────────────────────────────────────── */
.category-pills { display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.category-pills::-webkit-scrollbar { display: none; }
.category-pill { display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px; border-radius: 999px; font-size: 0.8rem; font-weight: 500; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-secondary); cursor: pointer; white-space: nowrap; text-decoration: none; transition: all var(--transition); }
.category-pill:hover { border-color: var(--border-bright); color: var(--text-primary); background: var(--bg-elevated); }
.category-pill.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ── Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 0.84rem; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.form-control-predixafy { width: 100%; padding: 10px 14px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-primary); font-family: var(--font-body); font-size: 0.9rem; transition: all var(--transition); outline: none; appearance: none; }
.form-control-predixafy:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22,82,240,.10); }
.form-control-predixafy::placeholder { color: var(--text-muted); }
.form-control-predixafy.is-invalid { border-color: var(--red); }
.form-control-predixafy.is-invalid:focus { box-shadow: 0 0 0 3px rgba(244,63,94,.10); }
.form-error { font-size: 0.78rem; color: var(--red); margin-top: 5px; display: flex; align-items: center; gap: 4px; }
select.form-control-predixafy { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; cursor: pointer; }
.input-group-predixafy { display: flex; align-items: stretch; }
.input-group-predixafy .form-control-predixafy:not(:last-child) { border-right: none; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group-addon { display: flex; align-items: center; padding: 0 12px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text-secondary); font-size: 0.84rem; font-family: var(--font-mono); font-weight: 600; white-space: nowrap; }

/* Toggle */
.toggle-switch { position: relative; display: inline-block; width: 38px; height: 20px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 20px; cursor: pointer; transition: all var(--transition); }
.toggle-slider:before { content: ''; position: absolute; width: 14px; height: 14px; left: 2px; top: 2px; background: var(--text-muted); border-radius: 50%; transition: all var(--transition); }
.toggle-switch input:checked + .toggle-slider { background: var(--blue); border-color: var(--blue); }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(18px); background: #fff; }

/* ── Alerts ──────────────────────────────────────────────── */
.alert-predixafy { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: var(--radius-md); font-size: 0.875rem; border: 1px solid; margin-bottom: 16px; animation: slideDown 0.25s ease; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.alert-predixafy i { margin-top: 1px; flex-shrink: 0; }
.alert-success { background: var(--green-light); border-color: rgba(0,179,125,.25); color: #047857; }
.alert-danger   { background: var(--red-light);   border-color: rgba(244,63,94,.25); color: #be123c; }
.alert-warning  { background: var(--amber-light);  border-color: rgba(245,158,11,.25); color: #92400e; }
.alert-info     { background: var(--blue-light);   border-color: rgba(22,82,240,.25); color: var(--blue); }
.alert-predixafy .alert-close { margin-left: auto; background: none; border: none; color: currentColor; cursor: pointer; opacity: 0.6; font-size: 0.95rem; padding: 0; flex-shrink: 0; }
.alert-predixafy .alert-close:hover { opacity: 1; }

/* ── Tabs ────────────────────────────────────────────────── */
.tabs-predixafy { display: flex; gap: 2px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 3px; width: fit-content; }
.tab-btn { padding: 6px 16px; border-radius: 4px; font-size: 0.84rem; font-weight: 500; border: none; background: none; color: var(--text-muted); cursor: pointer; transition: all var(--transition); white-space: nowrap; }
.tab-btn.active { background: var(--bg-card); color: var(--text-primary); font-weight: 600; box-shadow: var(--shadow-sm); }
.tab-btn:hover:not(.active) { color: var(--text-secondary); }
.tab-content-predixafy { display: none; }
.tab-content-predixafy.active { display: block; animation: fadeIn 0.15s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Table ───────────────────────────────────────────────── */
.table-predixafy { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table-predixafy th { padding: 10px 14px; font-size: 0.73rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.table-predixafy td { padding: 12px 14px; color: var(--text-secondary); border-bottom: 1px solid var(--border-subtle); vertical-align: middle; }
.table-predixafy tr:last-child td { border-bottom: none; }
.table-predixafy tr:hover td { background: var(--bg-elevated); color: var(--text-primary); }

/* ── Toasts ──────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast-predixafy { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); font-size: 0.875rem; color: var(--text-primary); pointer-events: all; animation: toastIn 0.25s cubic-bezier(0.34,1.56,0.64,1); min-width: 260px; max-width: 360px; }
@keyframes toastIn { from { opacity: 0; transform: translateX(80px) scale(0.95); } to { opacity: 1; transform: translateX(0) scale(1); } }
.toast-predixafy.removing { animation: toastOut 0.2s ease forwards; }
@keyframes toastOut { to { opacity: 0; transform: translateX(80px); } }
.toast-icon { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.78rem; flex-shrink: 0; }
.toast-success .toast-icon { background: var(--green-light); color: var(--green); }
.toast-error   .toast-icon { background: var(--red-light);   color: var(--red); }
.toast-warning .toast-icon { background: var(--amber-light); color: var(--amber); }
.toast-info    .toast-icon { background: var(--blue-light);  color: var(--blue); }
.toast-predixafy .toast-close { margin-left: auto; background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.8rem; flex-shrink: 0; }

/* ── Modal ───────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: all var(--transition); backdrop-filter: blur(2px); }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-predixafy { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); width: 100%; max-width: 480px; box-shadow: var(--shadow-lg); transform: scale(0.96) translateY(12px); transition: transform var(--transition); }
.modal-overlay.open .modal-predixafy { transform: scale(1) translateY(0); }
.modal-header-predixafy { padding: 20px 20px 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.modal-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--text-primary); }
.modal-close-btn { width: 28px; height: 28px; border-radius: var(--radius-sm); background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; font-size: 0.8rem; transition: all var(--transition); }
.modal-close-btn:hover { color: var(--text-primary); border-color: var(--border-bright); }
.modal-body-predixafy { padding: 0 20px 20px; }
.modal-footer-predixafy { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; }

/* ── Page header, Spinner, Footer, Utility ───────────────── */
.page-header { padding: 28px 0 22px; border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.page-header h1 { margin-bottom: 4px; }
.page-header p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }
.spinner-predixafy { width: 18px; height: 18px; border: 2px solid var(--border); border-top-color: var(--blue); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.footer-predixafy { background: var(--bg-card); border-top: 1px solid var(--border); padding: 48px 0 24px; margin-top: 60px; }
.footer-brand p { font-size: 0.84rem; color: var(--text-muted); max-width: 240px; line-height: 1.6; margin-top: 10px; }
.footer-heading { font-family: var(--font-display); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 0.84rem; color: var(--text-secondary); text-decoration: none; transition: color var(--transition); }
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: 0.78rem; color: var(--text-muted); margin: 0; }
.footer-social { display: flex; gap: 6px; }
.footer-social a { width: 30px; height: 30px; border-radius: var(--radius-sm); background: var(--bg-elevated); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.8rem; transition: all var(--transition); }
.footer-social a:hover { color: var(--blue); border-color: rgba(22,82,240,.3); background: var(--blue-light); }
.divider { height: 1px; background: var(--border); margin: 20px 0; }
.empty-state { text-align: center; padding: 56px 20px; color: var(--text-muted); }
.empty-state i { font-size: 2.2rem; margin-bottom: 14px; display: block; opacity: 0.25; color: var(--text-muted); }
.empty-state h3 { font-size: 0.95rem; color: var(--text-secondary); font-weight: 600; }
.empty-state p  { font-size: 0.84rem; margin-top: 5px; }
.num    { font-family: var(--font-mono); }
.num-lg { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 600; }
.num-xl { font-family: var(--font-mono); font-size: 2.2rem; font-weight: 600; letter-spacing: -0.02em; }
.glow-cyan, .glow-green, .glow-amber, .glow-red { /* intentional no-op */ }

/* ── Animations ──────────────────────────────────────────── */
.fade-in-up { animation: fadeInUp 0.4s ease forwards; opacity: 0; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.stagger > * { opacity: 0; animation: fadeInUp 0.35s ease forwards; }
.stagger > *:nth-child(1) { animation-delay: 0.04s; }
.stagger > *:nth-child(2) { animation-delay: 0.08s; }
.stagger > *:nth-child(3) { animation-delay: 0.12s; }
.stagger > *:nth-child(4) { animation-delay: 0.16s; }
.stagger > *:nth-child(5) { animation-delay: 0.20s; }
.stagger > *:nth-child(6) { animation-delay: 0.24s; }
.stagger > *:nth-child(7) { animation-delay: 0.28s; }
.stagger > *:nth-child(8) { animation-delay: 0.32s; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 992px) {
  .nav-links { display: none; }
  .navbar-toggler-predixafy { display: flex; }
  .nav-links.mobile-open { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 10px; gap: 2px; z-index: 999; box-shadow: var(--shadow-md); }
}
@media (max-width: 768px) {
  .container-predixafy { padding: 0 14px; }
  .page-header { padding: 20px 0 16px; }
  .footer-predixafy { padding: 32px 0 20px; }
  .wallet-badge span { display: none; }
  .brand-text { font-size: 1rem; }
}
@media (min-width: 992px) {
  #mobile-login-btn { display: none !important; }
}

@media (max-width: 576px) {
  .nav-right .btn-nav-login { display: none; }
  .btn-nav-login.d-lg-none { display: inline-block !important; }
  .lang-toggle { display: none; }
}

/* ── SIDEBAR NAV ─────────────────────────────────────────── */
body.nav-sidebar {
  display: flex;
  flex-direction: row;
}

body.nav-sidebar .stats-ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 32px;
}

body.nav-sidebar .navbar-predixafy {
  display: none;
}

body.nav-sidebar #sidebar-nav {
  display: flex !important;
}

body.nav-sidebar .page-wrapper {
  margin-left: 220px;
  margin-top: 32px;
  width: 100%;
}

#sidebar-nav {
  display: none;
  position: fixed;
  top: 32px;
  left: 0;
  bottom: 0;
  width: 220px;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  flex-direction: column;
  padding: 16px 0;
  z-index: 100;
  overflow-y: auto;
}

#sidebar-nav .sidebar-brand {
  padding: 0 16px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

#sidebar-nav .sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.15s;
}

#sidebar-nav .sidebar-link:hover,
#sidebar-nav .sidebar-link.active {
  background: var(--blue-glow);
  color: var(--blue);
}

#sidebar-nav .sidebar-link i {
  font-size: 1rem;
  width: 20px;
}

@media (max-width: 991px) {
  body.nav-sidebar #sidebar-nav { display: none !important; }
  body.nav-sidebar .navbar-predixafy { display: flex !important; }
  body.nav-sidebar .page-wrapper { margin-left: 0; }
}

/* ── Admin Tables ─────────────────────────────────────────── */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.admin-table thead th {
  padding: 10px 16px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.admin-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.admin-table tbody tr:last-child {
  border-bottom: none;
}
.admin-table tbody tr:hover {
  background: var(--bg-elevated);
}
.admin-table tbody td {
  padding: 10px 16px;
  color: var(--text-primary);
  vertical-align: middle;
}
.admin-table .td-muted {
  color: var(--text-muted);
  font-size: 0.82rem;
}
.admin-table .td-mono {
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

/* ── Responsive 2-column grid ──────────────────────────── */
.responsive-2col {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 768px) {
  .responsive-2col {
    grid-template-columns: 1fr !important;
  }
}
