:root {
 --green: #4ADE80;
    --blue: #60A5FA;
    --red: #F87171;
  --sidebar-w: 260px;
  --topbar-h: 64px;
}
a { text-decoration: none; }
/* ===== PUBLIC NAVBAR (guests) ===== */
.pub-navbar {
  background: rgba(10,12,16,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
  position: sticky; top: 0; z-index: 1000;
}

.pub-navbar .navbar-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 1.5rem;
  color: var(--white) !important; letter-spacing: -0.5px;
}

.pub-navbar .navbar-brand span { color: var(--gold); }

.pub-navbar #currentSel .nav-link { color: var(--white) !important; }

.pub-navbar .navbar-toggler-icon { color: var(--white); }

/* ===== SIDEBAR (members) ===== */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--dark-2);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  z-index: 1100;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* sidebar brand */
.sidebar-brand {
  padding: 9px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}

.sidebar-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 1.35rem;
  color: var(--white); letter-spacing: -0.5px;
}

.sidebar-logo span { color: var(--gold); }

.sidebar-close {
  display: none;
  background: none; border: none;
  color: var(--text-muted); cursor: pointer;
  font-size: 1.3rem; padding: 0;
  transition: color 0.2s ease;
}

.sidebar-close:hover { color: var(--white); }

/* user info */
.sidebar-user {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 0.8rem;
  flex-shrink: 0;
}

.sidebar-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1rem; flex-shrink: 0;
}

.sidebar-username {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem; font-weight: 700;
  color: var(--white); line-height: 1.2;
}

.sidebar-role {
  font-size: 0.7rem; color: var(--text-muted);
}

.sidebar-status {
  margin-left: auto;
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 0 2px rgba(74,222,128,0.2);
  flex-shrink: 0;
}

/* nav sections */
.sidebar-nav { flex: 1; padding: 1rem 0; }

.sidebar-section-label {
  font-size: 0.62rem; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--text-muted);
  padding: 0 1.5rem; margin: 0.75rem 0 0.4rem;
}

.sidebar-nav a,
.sidebar-nav .s-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 1.5rem;
  font-size: 0.87rem; color: var(--text-muted);
  transition: all 0.2s ease;
  cursor: pointer; border: none; background: none;
  width: 100%; text-align: left;
  position: relative;
}

.sidebar-nav a:hover,
.sidebar-nav .s-link:hover {
  color: var(--white);
  background: rgba(201,168,76,0.06);
}

.sidebar-nav a.active,
.sidebar-nav .s-link.active {
  color: var(--gold-light);
  background: rgba(201,168,76,0.1);
}

.sidebar-nav a.active::before {
  content: '';
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 60%; border-radius: 0 3px 3px 0;
  background: var(--gold);
}

.sidebar-nav a i,
.sidebar-nav .s-link i {
  font-size: 1.05rem; flex-shrink: 0; width: 20px;
}

/* dropdown inside sidebar */
.s-dropdown { display: none; flex-direction: column; }
.s-dropdown.open { display: flex; }

.s-dropdown a {
  padding-left: 3.5rem !important;
  font-size: 0.82rem !important;
}

.s-dropdown-toggle .s-caret {
  margin-left: auto;
  font-size: 0.8rem;
  transition: transform 0.25s ease;
}

.s-dropdown-toggle.open .s-caret { transform: rotate(180deg); }

/* sidebar footer */
.sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-footer a {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.83rem; color: var(--text-muted);
  transition: color 0.2s ease;
}

.sidebar-footer a:hover { color: #F87171; }

/* ===== TOPBAR (members) ===== */
.member-topbar {
  position: fixed;
  top: 0; left: var(--sidebar-w);
  right: 0; height: var(--topbar-h);
  background: rgba(10,12,16,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 1.5rem;
  z-index: 1000;
  gap: 1rem;
  transition: left 0.3s ease;
}

.topbar-hamburger {
  display: none;
  background: none; border: none;
  color: var(--text-muted); cursor: pointer;
  font-size: 1.4rem; padding: 0;
  transition: color 0.2s ease;
}

.topbar-hamburger:hover { color: var(--white); }

.topbar-page-title {
  font-family: 'Syne', sans-serif;
  font-size: 1rem; font-weight: 700;
  color: var(--white);
}

.topbar-right {
  margin-left: auto;
  display: flex; align-items: center; gap: 1rem;
}

.topbar-earnings {
  display: flex; align-items: center; gap: 0.5rem;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 8px; padding: 0.4rem 0.9rem;
  font-size: 0.8rem; font-weight: 600;
  color: var(--gold-light);
}

.topbar-earnings i { font-size: 0.9rem; }

.topbar-notif {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--dark-3);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); cursor: pointer;
  font-size: 1rem; transition: all 0.2s ease;
  position: relative;
}

.topbar-notif:hover { border-color: var(--gold); color: var(--gold); }

.notif-dot {
  position: absolute; top: 6px; right: 6px;
  width: 6px; height: 6px; border-radius: 50%;
  background: #F87171;
}

/* ===== MAIN CONTENT (members) ===== */
.member-page-wrap {
  margin-left: var(--sidebar-w);
  margin-top: var(--topbar-h);
  min-height: calc(100vh - var(--topbar-h));
  padding: 2rem;
  transition: margin-left 0.3s ease;
}

/* ===== OVERLAY ===== */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 1050;
  backdrop-filter: blur(3px);
}

.sidebar-overlay.show { display: block; }

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: block; }

  .member-topbar { left: 0; }
  .topbar-hamburger { display: flex; align-items: center; }
  .member-page-wrap { margin-left: 0; }
}

@media (max-width: 576px) {
  .member-page-wrap { padding: 1rem; }
  .topbar-earnings span { display: none; }
}


/*----------------------------------------------------------------*/


  /* ===== WELCOME BAR ===== */
  .dash-welcome {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 1rem;
    margin-bottom: 1.8rem;
    animation: fadeUp 0.5s ease both;
  }

  @keyframes fadeUp {
    from { opacity:0; transform:translateY(16px); }
    to   { opacity:1; transform:translateY(0); }
  }

  .dash-welcome-text h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem; font-weight: 800;
    color: var(--white); letter-spacing: -0.5px;
    margin: 0;
  }

  .dash-welcome-text h2 span { color: var(--gold); }

  .dash-welcome-text p {
    font-size: 0.83rem; color: var(--text-muted);
    margin: 0.2rem 0 0;
  }

  .dash-welcome-meta {
    display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  }

  .meta-pill {
    display: flex; align-items: center; gap: 6px;
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: 8px; padding: 0.4rem 0.9rem;
    font-size: 0.8rem; color: var(--text-muted);
  }

  .meta-pill strong { color: var(--gold); }
  .meta-pill i { font-size: 0.9rem; color: var(--gold); }

  /* ===== KPI CARDS ===== */
  .kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem; margin-bottom: 1.8rem;
  }

  @media (max-width: 1024px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 540px)  { .kpi-grid { grid-template-columns: 1fr 1fr; } }

  .kpi-card {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: 14px; padding: 1.3rem 1.4rem;
    position: relative; overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeUp 0.5s ease both;
  }

  .kpi-card:nth-child(1){animation-delay:0.05s}
  .kpi-card:nth-child(2){animation-delay:0.1s}
  .kpi-card:nth-child(3){animation-delay:0.15s}
  .kpi-card:nth-child(4){animation-delay:0.2s}

  .kpi-card::before {
    content: '';
    position: absolute; top: -20px; right: -20px;
    width: 80px; height: 80px; border-radius: 50%;
    background: radial-gradient(circle, rgba(201,168,76,0.07) 0%, transparent 70%);
    pointer-events: none;
  }

  .kpi-card:hover {
    border-color: rgba(201,168,76,0.3);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  }

  .kpi-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 0.8rem; }

  .kpi-icon {
    width: 38px; height: 38px; border-radius: 9px;
    background: rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.18);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold); font-size: 1.1rem;
  }

  .kpi-badge {
    font-size: 0.68rem; font-weight: 600; padding: 3px 8px;
    border-radius: 100px; display: flex; align-items: center; gap: 3px;
  }

  .kpi-badge.up   { background: rgba(74,222,128,0.1); color: var(--green); }
  .kpi-badge.down { background: rgba(248,113,113,0.1); color: var(--red); }
  .kpi-badge.neu  { background: rgba(96,165,250,0.1); color: var(--blue); }

  .kpi-val {
    font-family: 'Syne', sans-serif; font-size: 1.7rem;
    font-weight: 800; color: var(--white); letter-spacing: -1px;
    line-height: 1;
  }

  .kpi-val small { font-size: 1rem; font-weight: 600; }

  .kpi-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 3px; }

  /* ===== MAIN DASHBOARD GRID ===== */
  .dash-main-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
  }

  @media (max-width: 1100px) { .dash-main-grid { grid-template-columns: 1fr; } }

  /* ===== PANEL CARD ===== */
  .dash-panel {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: 16px; overflow: hidden;
    animation: fadeUp 0.5s ease 0.25s both;
  }

  .dash-panel-head {
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    gap: 0.75rem;
  }

  .dash-panel-head-left { display: flex; align-items: center; gap: 0.65rem; }

  .dash-panel-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.18);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold); font-size: 0.9rem; flex-shrink: 0;
  }

  .dash-panel-title {
    font-family: 'Syne', sans-serif; font-size: 0.9rem;
    font-weight: 700; color: var(--white); margin: 0;
  }

  .dash-panel-sub { font-size: 0.72rem; color: var(--text-muted); }

  .dash-panel-body { padding: 0; }

  /* ===== PERFORMANCE TABLE ===== */
  .perf-table { width: 100%; border-collapse: collapse; }

  .perf-table thead th {
    padding: 0.6rem 1.2rem;
    font-size: 0.68rem; text-transform: uppercase;
    letter-spacing: 1px; color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    font-weight: 500; background: var(--dark-3);
    white-space: nowrap;
  }

  .perf-table thead th:first-child { border-radius: 0; }

  .perf-table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.15s ease;
  }

  .perf-table tbody tr:last-child { border-bottom: none; }
  .perf-table tbody tr:hover { background: rgba(201,168,76,0.04); }

  .perf-table tbody td {
    padding: 0.75rem 1.2rem;
    font-size: 0.84rem; color: var(--text-light);
    white-space: nowrap;
  }

  .perf-table tbody td:first-child {
    font-family: 'Syne', sans-serif; font-weight: 700;
    color: var(--gold-light); font-size: 0.78rem;
    text-transform: uppercase; letter-spacing: 0.5px;
  }

  .perf-val-green { color: var(--green); font-weight: 600; }
  .perf-val-gold  { color: var(--gold);  font-weight: 600; }

  /* ===== GRAPH PANEL ===== */
  .graph-wrap {
    padding: 1.2rem 1.5rem;
  }

  .graph-wrap iframe {
    width: 100%; height: 260px; border: 0; border-radius: 10px;
    background: var(--dark-3);
  }

  /* ===== RIGHT PANEL (mini stats + latest offers) ===== */
  .right-col { display: flex; flex-direction: column; gap: 1.2rem; }

  /* earnings summary */
  .earn-summary {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: 16px; overflow: hidden;
    animation: fadeUp 0.5s ease 0.3s both;
  }

  .earn-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.8rem 1.3rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.83rem;
    transition: background 0.15s ease;
  }

  .earn-row:last-child { border-bottom: none; }
  .earn-row:hover { background: rgba(201,168,76,0.04); }

  .earn-row-label { color: var(--text-muted); display: flex; align-items: center; gap: 0.5rem; }
  .earn-row-label i { font-size: 0.85rem; color: var(--gold); }
  .earn-row-val { font-family: 'Syne', sans-serif; font-weight: 700; color: var(--white); }
  .earn-row-val.gold { color: var(--gold); }

  /* ===== LATEST OFFERS TABLE ===== */
  .offers-table { width: 100%; border-collapse: collapse; }

  .offers-table thead th {
    padding: 0.55rem 1.2rem;
    font-size: 0.67rem; text-transform: uppercase;
    letter-spacing: 1px; color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    font-weight: 500; background: var(--dark-3);
    white-space: nowrap;
  }

  .offers-table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.15s ease;
  }

  .offers-table tbody tr:last-child { border-bottom: none; }
  .offers-table tbody tr:hover { background: rgba(201,168,76,0.04); }

  .offers-table tbody td {
    padding: 0.7rem 1.2rem;
    font-size: 0.82rem; color: var(--text-light);
  }

  .offer-name-cell {
    display: flex; align-items: center; gap: 0.5rem;
    max-width: 220px;
  }

  .offer-name-cell img { width: 16px; height: 12px; border-radius: 2px; flex-shrink: 0; }

  .offer-name-cell span {
    overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; max-width: 180px;
  }

  .payout-badge {
    display: inline-block;
    background: rgba(74,222,128,0.1);
    border: 1px solid rgba(74,222,128,0.2);
    color: var(--green);
    font-size: 0.75rem; font-weight: 700;
    padding: 2px 8px; border-radius: 6px;
  }

  .epc-badge {
    font-size: 0.78rem; color: var(--blue);
    font-weight: 600;
  }

  .date-badge {
    font-size: 0.75rem; color: var(--text-muted);
  }

  .no-offers-msg {
    padding: 2rem; text-align: center;
    font-size: 0.85rem; color: var(--text-muted);
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  }

  .no-offers-msg i { font-size: 2rem; color: rgba(201,168,76,0.2); }

  /* ===== SECTION DIVIDER ===== */
  .dash-section-label {
    font-size: 0.7rem; text-transform: uppercase;
    letter-spacing: 1.5px; color: var(--text-muted);
    margin-bottom: 0.9rem; display: flex; align-items: center; gap: 0.5rem;
  }

  .dash-section-label::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
  }
  
 /* PAGE HEADER */
  .camp-header {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 1rem;
    margin-bottom: 1.8rem;
    animation: fadeUp 0.4s ease both;
  }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .camp-title-group h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem; font-weight: 800;
    color: var(--white); letter-spacing: -0.5px; margin: 0;
  }

  .camp-title-group h2 span { color: var(--gold); }
  .camp-title-group p { font-size: 0.8rem; color: var(--text-muted); margin-top: 3px; }

  .live-counters { display: flex; gap: 0.75rem; flex-wrap: wrap; }

  .counter-pill {
    display: flex; align-items: center; gap: 6px;
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: 8px; padding: 0.4rem 0.9rem;
    font-size: 0.78rem; color: var(--text-muted);
  }

  .counter-pill i { color: var(--gold); font-size: 0.85rem; }
  .counter-pill strong { color: var(--gold); }

  /* MAIN PANEL */
  .camp-panel {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: 16px; overflow: hidden;
    animation: fadeUp 0.4s ease 0.1s both;
  }

  .camp-panel-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 0.75rem;
  }

  .camp-panel-head-left { display: flex; align-items: center; gap: 0.65rem; }

  .camp-panel-icon {
    width: 34px; height: 34px; border-radius: 8px;
    background: rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.18);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold); font-size: 1rem;
  }

  .camp-panel-title { font-size: 0.92rem; font-weight: 700; color: var(--white); }
  .camp-panel-sub   { font-size: 0.72rem; color: var(--text-muted); margin-top: 1px; }

  .camp-panel-body { padding: 1.4rem 1.5rem; }

  /* ALERT MESSAGES */
  .msg-error, .msg-success {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.75rem 1.1rem; border-radius: 10px;
    font-size: 0.83rem; margin-bottom: 1.2rem;
  }

  .msg-error {
    background: rgba(248,113,113,0.1);
    border: 1px solid rgba(248,113,113,0.25);
    color: var(--red);
  }

  .msg-success {
    background: rgba(74,222,128,0.1);
    border: 1px solid rgba(74,222,128,0.25);
    color: var(--green);
  }

  /* FILTER ROW */
  .filter-row {
    display: flex; align-items: center; gap: 1rem;
    flex-wrap: wrap; margin-bottom: 1.4rem;
  }

  .filter-row label {
    font-size: 0.8rem; color: var(--text-muted); white-space: nowrap;
  }

  .filter-row select {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: 9px; padding: 0.45rem 2rem 0.45rem 0.9rem;
    color: var(--text-light); font-size: 0.82rem;
    outline: none; cursor: pointer;
    transition: border-color 0.2s;
    min-width: 200px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238892A4' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
  }

  .filter-row select:hover,
  .filter-row select:focus { border-color: rgba(201,168,76,0.4); }

  /* DATATABLE CONTROLS */
  .dt-controls {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem;
  }

  .dt-show {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.8rem; color: var(--text-muted);
  }

  .dt-show select {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: 7px; padding: 0.3rem 0.6rem;
    color: var(--text-light); font-size: 0.8rem; outline: none;
  }

  .dt-search {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.8rem; color: var(--text-muted);
  }

  .dt-search input {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: 7px; padding: 0.35rem 0.75rem;
    color: var(--text-light); font-size: 0.8rem;
    outline: none; width: 200px;
    transition: border-color 0.2s;
  }

  .dt-search input:focus { border-color: rgba(201,168,76,0.4); }

  /* OFFERS TABLE */
  .offers-wrap { overflow-x: auto; }

  table#offersTable {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
  }

  table#offersTable thead th {
    padding: 0.6rem 1.1rem;
    font-size: 0.68rem; text-transform: uppercase;
    letter-spacing: 1px; color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    background: var(--dark-3);
    font-weight: 500; white-space: nowrap;
    text-align: left;
  }

  table#offersTable tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.15s;
  }

  table#offersTable tbody tr:last-child { border-bottom: none; }
  table#offersTable tbody tr:hover { background: rgba(201,168,76,0.04); }

  table#offersTable tbody td {
    padding: 0.75rem 1.1rem;
    background: #0a0b10;
    font-size: 0.83rem; color: var(--text-light);
    white-space: nowrap; vertical-align: middle;
  }

  .active-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(74,222,128,0.15);
    margin: 0 auto;
  }

  .id-badge { font-size: 0.72rem; color: var(--text-muted); font-family: monospace; }

  .flag-cell { display: flex; align-items: center; gap: 8px; }
  .flag-cell img { width: 20px; height: 14px; border-radius: 3px; flex-shrink: 0; }

  .offer-name {
    font-weight: 600; color: var(--white);
    max-width: 200px; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap;
    display: block;
  }

  .payout-badge {
    display: inline-flex; align-items: center;
    background: rgba(74,222,128,0.1);
    border: 1px solid rgba(74,222,128,0.2);
    color: var(--green);
    font-size: 0.75rem; font-weight: 700;
    padding: 3px 9px; border-radius: 6px;
  }

  .conv-val { color: var(--gold); font-weight: 600; font-size: 0.82rem; }
  .epc-val  { color: var(--blue); font-weight: 600; font-size: 0.82rem; }

  .cat-badge {
    display: inline-block;
    background: rgba(96,165,250,0.08);
    border: 1px solid rgba(96,165,250,0.18);
    color: var(--blue);
    font-size: 0.72rem; padding: 2px 8px; border-radius: 6px;
  }

  .btn-promo {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.25);
    color: var(--gold);
    font-size: 0.75rem; font-weight: 600;
    padding: 5px 12px; border-radius: 7px;
    cursor: pointer; transition: all 0.2s; text-decoration: none;
  }

  .btn-promo:hover {
    background: rgba(201,168,76,0.2);
    border-color: rgba(201,168,76,0.4);
    color: var(--gold-light);
  }

  /* DT FOOTER */
  .dt-footer {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 0.75rem;
    margin-top: 1rem; padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.78rem; color: var(--text-muted);
  }

  .dt-pages { display: flex; gap: 4px; }

  .dt-pages .paginate_button {
    background: var(--dark-3) !important;
    border: 1px solid var(--border) !important;
    border-radius: 6px !important; padding: 4px 10px !important;
    color: var(--text-muted) !important; font-size: 0.78rem !important;
    cursor: pointer; transition: all 0.15s;
  }

  .dt-pages .paginate_button:hover,
  .dt-pages .paginate_button.current {
    background: rgba(201,168,76,0.1) !important;
    border-color: rgba(201,168,76,0.3) !important;
    color: var(--gold) !important;
  }

  /* OVERRIDE dataTables default styles */
  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter { float: none; margin: 0; }

  .dataTables_wrapper .dataTables_info { float: none; font-size: 0.78rem; color: var(--text-muted); }

  .dataTables_wrapper .dataTables_paginate { float: none; }

  .dataTables_wrapper .dataTables_paginate .paginate_button {
    background: var(--dark-3) !important;
    border: 1px solid var(--border) !important;
    border-radius: 6px !important;
    color: var(--text-muted) !important;
    padding: 4px 10px !important;
    font-size: 0.78rem !important;
    margin: 0 2px;
    transition: all 0.15s;
  }

  .dataTables_wrapper .dataTables_paginate .paginate_button:hover,
  .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: rgba(201,168,76,0.1) !important;
    border-color: rgba(201,168,76,0.3) !important;
    color: var(--gold) !important;
  }

  /* NO OFFERS */
  .no-offers-msg {
    display: flex; flex-direction: column;
    align-items: center; gap: 0.5rem;
    padding: 3rem 1rem;
    font-size: 0.85rem; color: var(--text-muted);
    text-align: center;
  }

  .no-offers-msg i { font-size: 2.5rem; color: rgba(201,168,76,0.2); }

  @media (max-width: 600px) {
    .camp-panel-body { padding: 1rem; }
    .dt-controls { flex-direction: column; align-items: flex-start; }
    .dt-search input { width: 100%; }
  }
  
 /* ===== CREATE CAMPAIGN — PAGE SPECIFIC STYLES ONLY ===== */

.cc-wrap {
  animation: ccFadeUp 0.5s ease both;
}

@keyframes ccFadeUp {
  from { opacity:0; transform:translateY(18px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ===== PAGE HEADING ===== */
.cc-page-head {
  display: flex; align-items: flex-start;
  justify-content: space-between; flex-wrap: wrap;
  gap: 1rem; margin-bottom: 2rem;
}

.cc-page-head-left {}

.cc-page-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: 100px; padding: 4px 13px;
  font-size: 0.7rem; font-weight: 500;
  color: var(--gold-light); letter-spacing: 0.5px;
  margin-bottom: 0.6rem;
}

.cc-badge-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold);
  animation: ccDot 2s ease infinite;
}

@keyframes ccDot {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.4; transform:scale(1.5); }
}

.cc-page-head h1 {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem; font-weight: 800;
  color: var(--white); letter-spacing: -0.5px; margin: 0;
}

.cc-page-head p {
  font-size: 0.85rem; color: var(--text-muted);
  margin: 0.3rem 0 0; line-height: 1.6;
}

/* ===== ALERT ===== */
.cc-alert {
  display: flex; align-items: flex-start; gap: 0.65rem;
  padding: 0.85rem 1.1rem; border-radius: 11px;
  font-size: 0.84rem; margin-bottom: 1.5rem;
}

.cc-alert.error {
  background: rgba(248,113,113,0.09);
  border: 1px solid rgba(248,113,113,0.24);
  color: #F87171;
}

.cc-alert.success {
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.22);
  color: #4ADE80;
}

.cc-alert i { font-size: 1.05rem; flex-shrink:0; margin-top:1px; }

/* ===== FORM CARD ===== */
.cc-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 18px; overflow: hidden;
  position: relative;
}

.cc-card::before {
  content: '';
  position: absolute; top:-50px; right:-50px;
  width:180px; height:180px; border-radius:50%;
  background: radial-gradient(circle, rgba(201,168,76,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.cc-card-head {
  padding: 1.2rem 1.8rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 0.75rem;
}

.cc-card-head-icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1rem; flex-shrink:0;
}

.cc-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.92rem; font-weight: 700; color: var(--white); margin:0;
}

.cc-card-sub { font-size: 0.72rem; color: var(--text-muted); }

.cc-card-body { padding: 1.8rem; }

/* ===== FIELD ===== */
.cc-field { margin-bottom: 1.3rem; }

.cc-label {
  display: block;
  font-size: 0.73rem; font-weight: 500;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.8px; margin-bottom: 0.45rem;
  transition: color 0.2s ease;
}

.cc-field:focus-within .cc-label { color: var(--gold); }

.cc-input-wrap { position: relative; display: flex; align-items: center; }

.cc-input-icon {
  position: absolute; left: 13px;
  color: var(--text-muted); font-size: 0.95rem;
  pointer-events: none; transition: color 0.2s ease; z-index: 2;
}

.cc-input-wrap:focus-within .cc-input-icon { color: var(--gold); }

.cc-input,
.cc-textarea,
.cc-select {
  width: 100%;
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem; color: var(--white);
  outline: none; transition: all 0.2s ease;
  -webkit-appearance: none; appearance: none;
}

.cc-textarea {
  resize: vertical; min-height: 90px; line-height: 1.6;
}

.cc-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238892A4' 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: 2rem;
}

.cc-select[multiple] {
  background-image: none; padding: 0.5rem 0.75rem;
  height: 180px;
}

.cc-select option { background: var(--dark-3); color: var(--white); padding: 4px 0; }

.cc-input::placeholder, .cc-textarea::placeholder { color: rgba(136,146,164,0.5); }

.cc-input:focus, .cc-textarea:focus, .cc-select:focus {
  border-color: rgba(201,168,76,0.4);
  background: var(--dark-4);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.07);
}

/* hint text */
.cc-hint {
  font-size: 0.72rem; color: var(--text-muted);
  margin-top: 0.35rem; padding-left: 2px; line-height: 1.5;
}

/* row 2-col */
.cc-row-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}

@media (max-width: 640px) { .cc-row-2 { grid-template-columns: 1fr; } }

/* ===== DIVIDER ===== */
.cc-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 1.5rem 0;
}

.cc-section-label {
  font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--text-muted);
  margin-bottom: 1.1rem;
  display: flex; align-items: center; gap: 0.5rem;
}

.cc-section-label::after {
  content: ''; flex:1; height:1px; background: var(--border);
}

/* ===== UA CHECKBOXES ===== */
.cc-ua-grid {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
}

.cc-ua-item { position: relative; }

.cc-ua-item input[type="checkbox"] {
  position: absolute; opacity: 0; width: 0; height: 0;
}

.cc-ua-label {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 9px;
  font-size: 0.83rem; color: var(--text-muted);
  cursor: pointer; user-select: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cc-ua-label i { font-size: 1rem; }

.cc-ua-item input:checked + .cc-ua-label {
  background: rgba(201,168,76,0.1);
  border-color: rgba(201,168,76,0.35);
  color: var(--gold-light);
}

.cc-ua-label:hover {
  border-color: rgba(201,168,76,0.25);
  color: var(--text-light);
}

/* ===== SUBMIT AREA ===== */
.cc-submit-area {
  padding: 1.3rem 1.8rem;
  border-top: 1px solid var(--border);
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  background: rgba(201,168,76,0.02);
}

.cc-submit-note {
  font-size: 0.8rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 0.4rem;
}

.cc-submit-note i { color: var(--gold); }

.cc-btn-submit {
  background: var(--gold); color: var(--dark);
  border: none; border-radius: 10px;
  padding: 0.85rem 2.2rem;
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 0.93rem; cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex; align-items: center; gap: 8px;
}

.cc-btn-submit:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(201,168,76,0.3);
}

.cc-btn-submit:disabled {
  opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none;
}

/* loading spinner */
.cc-spinner {
  display: none; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(10,12,16,0.3);
  border-top-color: var(--dark);
  animation: ccSpin 0.7s linear infinite;
}

@keyframes ccSpin { to { transform: rotate(360deg); } }
.cc-btn-submit.loading .cc-spinner { display: block; }
.cc-btn-submit.loading .cc-btn-text { opacity: 0.6; } 
  
  
/* ===== SHARED MEMBER PAGES CSS — member-pages.css ===== */
/* Include this in header or inline — uses existing CSS vars from header */

/* PAGE HEADER */
.mp-head {
  display: flex; align-items: flex-start;
  justify-content: space-between; flex-wrap: wrap;
  gap: 1rem; margin-bottom: 2rem;
  animation: mpFadeUp 0.45s ease both;
}

@keyframes mpFadeUp {
  from { opacity:0; transform:translateY(16px); }
  to   { opacity:1; transform:translateY(0); }
}

.mp-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: 100px; padding: 4px 13px;
  font-size: 0.7rem; font-weight: 500;
  color: var(--gold-light); letter-spacing: 0.5px; margin-bottom: 0.5rem;
}

.mp-badge-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); animation: mpDot 2s ease infinite;
}

@keyframes mpDot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(1.5)} }

.mp-head h1 {
  font-family: 'Syne', sans-serif;
  font-size: 1.55rem; font-weight: 800;
  color: var(--white); letter-spacing: -0.5px; margin: 0;
}

.mp-head p { font-size: 0.84rem; color: var(--text-muted); margin: 0.25rem 0 0; line-height: 1.6; }

/* ACTION LINK */
.mp-action-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.82rem; color: var(--text-muted);
  background: var(--dark-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.5rem 1rem;
  transition: all 0.2s ease; text-decoration: none;
}
.mp-action-link:hover { color: var(--gold); border-color: rgba(201,168,76,0.3); }

/* ALERT */
.mp-alert {
  display: flex; align-items: flex-start; gap: 0.65rem;
  padding: 0.85rem 1.1rem; border-radius: 11px;
  font-size: 0.84rem; margin-bottom: 1.5rem;
  animation: mpFadeUp 0.4s ease both;
}
.mp-alert.error   { background:rgba(248,113,113,0.09); border:1px solid rgba(248,113,113,0.24); color:#F87171; }
.mp-alert.success { background:rgba(74,222,128,0.08);  border:1px solid rgba(74,222,128,0.22);  color:#4ADE80; }
.mp-alert.info    { background:rgba(96,165,250,0.08);  border:1px solid rgba(96,165,250,0.22);  color:#93C5FD; }
.mp-alert.warning { background:rgba(251,191,36,0.08);  border:1px solid rgba(251,191,36,0.22);  color:#FCD34D; }
.mp-alert i { font-size:1.05rem; flex-shrink:0; margin-top:1px; }
.mp-alert p { margin: 0.3rem 0 0; font-size: 0.81rem; line-height: 1.65; }
.mp-alert code {
    word-break: break-all;
  background: rgba(255,255,255,0.08); border-radius: 4px;
  padding: 1px 6px; font-size: 0.8rem; font-family: monospace;
}

/* CARD */
.mp-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  position: relative; margin-bottom: 1.2rem;
  animation: mpFadeUp 0.45s ease both;
}
.mp-card::before {
  content: ''; position: absolute; top:-40px; right:-40px;
  width:160px; height:160px; border-radius:50%;
  background:radial-gradient(circle,rgba(201,168,76,0.06) 0%,transparent 70%);
  pointer-events:none;
}
.mp-card-head {
  padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.mp-card-head-left { display:flex; align-items:center; gap:0.7rem; }
.mp-card-icon {
  width:34px; height:34px; border-radius:8px;
  background:rgba(201,168,76,0.1); border:1px solid rgba(201,168,76,0.2);
  display:flex; align-items:center; justify-content:center;
  color:var(--gold); font-size:0.95rem; flex-shrink:0;
}
.mp-card-title { font-family:'Syne',sans-serif; font-size:0.9rem; font-weight:700; color:var(--white); margin:0; }
.mp-card-sub { font-size:0.72rem; color:var(--text-muted); }
.mp-card-body { padding:1.5rem; }

/* FORM FIELD */
.mp-field { margin-bottom:1.2rem; }
.mp-label {
  display:block; font-size:0.72rem; font-weight:500;
  color:var(--text-muted); text-transform:uppercase;
  letter-spacing:0.8px; margin-bottom:0.42rem; transition:color 0.2s ease;
}
.mp-field:focus-within .mp-label { color:var(--gold); }
.mp-input-wrap { position:relative; display:flex; align-items:center; }
.mp-input-icon {
  position:absolute; left:12px; color:var(--text-muted);
  font-size:0.9rem; pointer-events:none; transition:color 0.2s ease; z-index:2;
}
.mp-input-wrap:focus-within .mp-input-icon { color:var(--gold); }
.mp-input, .mp-select, .mp-textarea {
  width:100%; background:var(--dark-3);
  border:1px solid rgba(255,255,255,0.06);
  border-radius:9px; padding:0.7rem 1rem 0.7rem 2.5rem;
  font-family:'DM Sans',sans-serif; font-size:0.875rem; color:var(--white);
  outline:none; transition:all 0.2s ease; -webkit-appearance:none; appearance:none;
}
.mp-input.no-icon, .mp-select.no-icon { padding-left: 1rem; }
.mp-textarea { resize:vertical; min-height:85px; line-height:1.6; }
.mp-select {
  cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238892A4' 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:2rem;
}
.mp-select option { background:var(--dark-3); color:var(--white); }
.mp-input::placeholder, .mp-textarea::placeholder { color:rgba(136,146,164,0.5); }
.mp-input:focus,.mp-select:focus,.mp-textarea:focus {
  border-color:rgba(201,168,76,0.4); background:var(--dark-4);
  box-shadow:0 0 0 3px rgba(201,168,76,0.07);
}
.mp-hint { font-size:0.71rem; color:var(--text-muted); margin-top:0.3rem; padding-left:2px; line-height:1.5; }
.mp-row-2 { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
@media(max-width:640px){ .mp-row-2 { grid-template-columns:1fr; } }
.mp-divider { height:1px; background:linear-gradient(90deg,transparent,var(--border),transparent); margin:1.3rem 0; }
.mp-section-label {
  font-size:0.68rem; text-transform:uppercase; letter-spacing:1.5px;
  color:var(--text-muted); margin-bottom:1rem;
  display:flex; align-items:center; gap:0.5rem;
}
.mp-section-label::after { content:''; flex:1; height:1px; background:var(--border); }

/* COPY FIELD */
.mp-copy-row { display:flex; gap:0.5rem; align-items:stretch; }
.mp-copy-row .mp-input { border-radius:9px 0 0 9px; }
.mp-copy-btn {
  background:rgba(201,168,76,0.1); border:1px solid rgba(201,168,76,0.2);
  border-left:0; border-radius:0 9px 9px 0; padding:0 1rem;
  color:var(--gold); font-size:0.82rem; cursor:pointer; white-space:nowrap;
  font-family:'DM Sans',sans-serif; font-weight:500;
  transition:all 0.2s ease; display:flex; align-items:center; gap:5px;
}
.mp-copy-btn:hover { background:rgba(201,168,76,0.18); }
.mp-dl-btn {
  background:var(--dark-3); border:1px solid var(--border);
  border-radius:9px; padding:0.7rem 1.1rem;
  color:var(--text-light); font-size:0.82rem; cursor:pointer;
  font-family:'DM Sans',sans-serif; font-weight:500;
  transition:all 0.2s ease; display:inline-flex; align-items:center; gap:5px;
  white-space:nowrap; text-decoration:none;
}
.mp-dl-btn:hover { border-color:var(--gold); color:var(--gold); }

/* SUBMIT BUTTON */
.mp-submit {
  background:var(--gold); color:var(--dark); border:none;
  border-radius:9px; padding:0.75rem 1.8rem;
  font-family:'Syne',sans-serif; font-weight:700; font-size:0.9rem;
  cursor:pointer; transition:all 0.25s ease;
  display:inline-flex; align-items:center; gap:7px;
}
.mp-submit:hover { background:var(--gold-light); transform:translateY(-1px); box-shadow:0 6px 18px rgba(201,168,76,0.28); }
.mp-submit-ghost {
  background:transparent; color:var(--text-muted);
  border:1px solid var(--border); border-radius:9px;
  padding:0.75rem 1.4rem; font-family:'DM Sans',sans-serif;
  font-size:0.85rem; cursor:pointer; transition:all 0.2s ease;
  display:inline-flex; align-items:center; gap:6px;
}
.mp-submit-ghost:hover { border-color:var(--gold); color:var(--gold); }
.mp-submit-area {
  padding:1.2rem 1.5rem; border-top:1px solid var(--border);
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:0.75rem; background:rgba(201,168,76,0.02);
}
.mp-submit-note { font-size:0.79rem; color:var(--text-muted); display:flex; align-items:center; gap:0.4rem; }
.mp-submit-note i { color:var(--gold); }

/* TABLE */
.mp-table { width:100%; border-collapse:collapse; }
.mp-table thead th {
  padding:0.6rem 1.1rem; font-size:0.67rem;
  text-transform:uppercase; letter-spacing:1px; color:var(--text-muted);
  border-bottom:1px solid var(--border); font-weight:500;
  background:var(--dark-3); white-space:nowrap;
}
.mp-table tbody tr { border-bottom:1px solid rgba(255,255,255,0.04); transition:background 0.15s ease; }
.mp-table tbody tr:last-child { border-bottom:none; }
.mp-table tbody tr:hover { background:rgba(201,168,76,0.04); }
.mp-table tbody td { padding:0.7rem 1.1rem; font-size:0.83rem; color:var(--text-light); }

/* STATUS BADGE */
.status-pill {
  display:inline-flex; align-items:center; gap:4px;
  font-size:0.72rem; font-weight:600; padding:3px 9px; border-radius:100px;
}
.status-active  { background:rgba(74,222,128,0.1);  border:1px solid rgba(74,222,128,0.2);  color:#4ADE80; }
.status-pending { background:rgba(251,191,36,0.1);  border:1px solid rgba(251,191,36,0.2);  color:#FCD34D; }
.status-paused  { background:rgba(248,113,113,0.1); border:1px solid rgba(248,113,113,0.2); color:#F87171; }

/* RADIO CUSTOM */
.mp-radio-group { display:flex; flex-direction:column; gap:0.6rem; }
.mp-radio-item { position:relative; }
.mp-radio-item input[type="radio"] { position:absolute; opacity:0; width:0; height:0; }
.mp-radio-label {
  display:flex; align-items:flex-start; gap:0.75rem;
  padding:0.7rem 1rem; background:var(--dark-3);
  border:1px solid rgba(255,255,255,0.06); border-radius:9px;
  font-size:0.85rem; color:var(--text-muted); cursor:pointer;
  transition:all 0.2s ease; line-height:1.4;
}
.mp-radio-dot {
  width:16px; height:16px; border-radius:50%;
  border:2px solid rgba(255,255,255,0.2);
  flex-shrink:0; margin-top:2px; transition:all 0.2s ease;
  display:flex; align-items:center; justify-content:center;
}
.mp-radio-item input:checked + .mp-radio-label {
  background:rgba(201,168,76,0.08); border-color:rgba(201,168,76,0.3); color:var(--gold-light);
}
.mp-radio-item input:checked + .mp-radio-label .mp-radio-dot {
  border-color:var(--gold); background:var(--gold);
  box-shadow:0 0 0 3px rgba(201,168,76,0.15);
}

/* CHECKBOX */
.mp-chk-row { display:flex; align-items:center; gap:0.7rem; }
.mp-chk { width:16px; height:16px; accent-color:var(--gold); cursor:pointer; }
.mp-chk-label { font-size:0.85rem; color:var(--text-muted); cursor:pointer; }

/* TABS */
.mp-tabs { display:flex; gap:0.4rem; flex-wrap:wrap; margin-bottom:1.5rem; }
.mp-tab {
  padding:0.55rem 1.2rem; border-radius:8px; font-size:0.83rem; font-weight:500;
  color:var(--text-muted); background:var(--dark-3); border:1px solid var(--border);
  cursor:pointer; transition:all 0.2s ease;
}
.mp-tab.active, .mp-tab:hover { background:rgba(201,168,76,0.1); border-color:rgba(201,168,76,0.3); color:var(--gold-light); }

/* GW LOCKER LIST */
.gw-item {
  display:flex; align-items:center; justify-content:space-between;
  padding:0.9rem 1.3rem; border-bottom:1px solid rgba(255,255,255,0.04);
  transition:background 0.15s ease; gap:1rem; flex-wrap:wrap;
}
.gw-item:last-child { border-bottom:none; }
.gw-item:hover { background:rgba(201,168,76,0.04); }
.gw-radio-name { display:flex; align-items:center; gap:0.7rem; font-size:0.85rem; color:var(--text-light); }
.gw-radio-name input[type="radio"] { accent-color:var(--gold); width:15px; height:15px; }
.gw-earn { font-size:0.8rem; font-weight:700; color:var(--gold); }
.gw-date { font-size:0.72rem; color:var(--text-muted); }

/* ACTION BUTTONS ROW */
.gw-actions { display:flex; gap:0.5rem; flex-wrap:wrap; }
.gw-action-btn {
  padding:0.42rem 0.9rem; border-radius:7px; font-size:0.78rem; font-weight:500;
  border:1px solid var(--border); background:var(--dark-3); color:var(--text-muted);
  cursor:pointer; transition:all 0.2s ease; display:inline-flex; align-items:center; gap:5px;
}
.gw-action-btn:hover { border-color:rgba(201,168,76,0.3); color:var(--gold-light); }
.gw-action-btn.danger:hover { border-color:rgba(248,113,113,0.3); color:#F87171; }

/* PAGING */
.mp-paging {
  display:flex; align-items:center; justify-content:space-between;
  padding:1rem 1.3rem; border-top:1px solid var(--border);
  font-size:0.8rem; color:var(--text-muted);
}
.mp-paging a { color:var(--gold); text-decoration:none; display:inline-flex; align-items:center; gap:3px; }
.mp-paging a:hover { color:var(--gold-light); }

/* COLOR PICKER WRAP */
.mp-color-row { display:flex; align-items:center; gap:0.6rem; }
.mp-color-preview {
  width:36px; height:36px; border-radius:7px;
  border:1px solid var(--border); cursor:pointer; flex-shrink:0;
}

/* SIZE ROW */
.mp-size-row { display:flex; align-items:center; gap:0.6rem; flex-wrap:wrap; }
.mp-size-row .mp-input { width:100px; }
.mp-size-label { font-size:0.8rem; color:var(--text-muted); white-space:nowrap; }

/* UNLOCK ROW */
.mp-unlock-row { display:flex; align-items:center; gap:0.6rem; flex-wrap:wrap; }
.mp-unlock-row .mp-input { width:90px; }

/* ===== DATE FILTER BAR — shared by reports, subid, country, reversed ===== */
.rpt-filter-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.4rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: mpFadeUp 0.4s ease both;
}

.rpt-filter-label {
  font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text-muted);
  white-space: nowrap; display: flex; align-items: center; gap: 5px;
}

.rpt-filter-input {
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem; color: var(--white);
  outline: none; transition: all 0.2s ease;
  width: 130px;
}

.rpt-filter-input:focus {
  border-color: rgba(201,168,76,0.4);
  background: var(--dark-4);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.07);
}

.rpt-search-btn {
  background: var(--gold); color: var(--dark); border: none;
  border-radius: 8px; padding: 0.55rem 1.3rem;
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 0.85rem; cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.rpt-search-btn:hover { background: var(--gold-light); transform: translateY(-1px); }

.rpt-date-range {
  font-size: 0.8rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 6px;
  padding: 0.5rem 0.9rem;
  background: var(--dark-3); border: 1px solid var(--border);
  border-radius: 8px;
}
.rpt-date-range i { color: var(--gold); }

/* ===== CHART WRAPPER ===== */
.rpt-chart-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  margin-bottom: 1.2rem;
  animation: mpFadeUp 0.45s ease 0.05s both;
}
.rpt-chart-head {
  padding: 0.9rem 1.4rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 0.65rem;
}
.rpt-chart-icon {
  width: 32px; height: 32px; border-radius: 7px;
  background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 0.9rem;
}
.rpt-chart-title {
  font-family: 'Syne', sans-serif; font-size: 0.88rem;
  font-weight: 700; color: var(--white);
}
.rpt-chart-body { padding: 1rem 1.2rem; }

/* ===== TABLE CARD ===== */
.rpt-table-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  animation: mpFadeUp 0.45s ease 0.1s both;
}
.rpt-table-card .mp-card-head { padding: 0.9rem 1.4rem; }

/* DataTable overrides to match dark theme */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
  background: var(--dark-3) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 7px !important;
  color: var(--white) !important;
  padding: 0.3rem 0.6rem !important;
  font-family: 'DM Sans', sans-serif !important;
  outline: none !important;
}
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  font-size: 0.8rem !important; color: var(--text-muted) !important;
  padding: 0.7rem 1.2rem !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
  background: var(--dark-3) !important; border: 1px solid var(--border) !important;
  border-radius: 6px !important; color: var(--text-muted) !important;
  margin: 0 2px !important; padding: 3px 10px !important; font-size: 0.78rem !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: rgba(201,168,76,0.15) !important;
  border-color: rgba(201,168,76,0.3) !important;
  color: var(--gold-light) !important;
}

table.dataTable thead th {
  background: var(--dark-3) !important;
  color: var(--text-muted) !important;
  font-size: 0.68rem !important; font-weight: 500 !important;
  text-transform: uppercase !important; letter-spacing: 0.8px !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 0.6rem 1rem !important; white-space: nowrap !important;
}
table.dataTable thead th.sorting_asc::after  { content: ' ↑'; color: var(--gold); }
table.dataTable thead th.sorting_desc::after { content: ' ↓'; color: var(--gold); }
table.dataTable tbody td {
  padding: 0.65rem 1rem !important;
  font-size: 0.83rem !important; color: var(--text-light) !important;
  border-bottom: 1px solid rgba(255,255,255,0.04) !important;
}
table.dataTable tbody tr:hover td { background: rgba(201,168,76,0.04) !important; }
table.dataTable tfoot th {
  background: rgba(201,168,76,0.04) !important;
  border-top: 1px solid var(--border) !important;
  font-family: 'Syne', sans-serif !important; font-weight: 700 !important;
  font-size: 0.78rem !important; color: var(--gold-light) !important;
  padding: 0.65rem 1rem !important;
}
table.dataTable {
    border:none !important;
    
}

/* ===== RESPONSIVE TABLES — MOBILE ===== */

/* Scrollable wrapper — sab tables ke liye */
.perf-table-wrap,
.rpt-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Mobile pe table hide, card layout show */
.perf-mobile { display: none; }

@media (max-width: 600px) {
  /* Table hide karo */
  .perf-table-wrap { display: none; }

  /* Mobile card show karo */
  .perf-mobile { display: block; }

  /* Each period = ek card */
  .perf-m-card {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 12px 16px;
  }
  .perf-m-card:last-child { border-bottom: none; }

  /* Period label */
  .perf-m-period {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--gold);
    margin-bottom: 10px;
  }

  /* 3-column mini stat grid */
  .perf-m-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
  }

  .perf-m-cell {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
  }

  .perf-m-label {
    font-size: 0.62rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
  }

  .perf-m-val {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white);
    font-family: 'Syne', sans-serif;
  }

  .perf-m-val.green { color: #4ADE80; }
  .perf-m-val.gold  { color: var(--gold); }

  /* KPI grid 2 column on mobile */
  .kpi-grid { grid-template-columns: 1fr 1fr !important; }

  /* Main dashboard grid single col */
  .dash-main-grid { grid-template-columns: 1fr !important; }

  /* Member page wrap padding */
  .member-page-wrap { padding: 1rem !important; }

  /* Filter bar wrap */
  .rpt-filter-card { flex-direction: column; align-items: flex-start; }
  .rpt-filter-input { width: 100% !important; }
  .rpt-search-btn   { width: 100%; justify-content: center; }
}



