/* ============================================================
   BrasilSMM - Main Stylesheet
   Tema: iPhone / Brasil Neon (Verde, Azul, Branco)
   ============================================================ */

:root {
  /* Cores Brasil Neon */
  --green:       #00e676;
  --green-dark:  #00c864;
  --green-glow:  rgba(0, 230, 118, 0.3);
  --blue:        #00b4ff;
  --blue-dark:   #0090d4;
  --blue-glow:   rgba(0, 180, 255, 0.3);
  --white:       #ffffff;
  --yellow:      #ffd600;

  /* Background Dark */
  --bg-primary:  #0a0a1a;
  --bg-card:     #111128;
  --bg-card2:    #161630;
  --bg-input:    #1a1a35;
  --bg-hover:    #1e1e3f;
  --border:      rgba(255,255,255,0.08);
  --border-neon: rgba(0,230,118,0.3);

  /* Texto */
  --text-primary:   #f0f0ff;
  --text-secondary: #a0a0c0;
  --text-muted:     #606080;

  /* Gradientes */
  --grad-green:  linear-gradient(135deg, #00e676, #00b4ff);
  --grad-blue:   linear-gradient(135deg, #00b4ff, #0050ff);
  --grad-brasil: linear-gradient(135deg, #00e676 0%, #00b4ff 50%, #ffffff 100%);
  --grad-card:   linear-gradient(135deg, #111128, #161630);

  /* Sombras */
  --shadow-green: 0 0 20px rgba(0,230,118,0.3);
  --shadow-blue:  0 0 20px rgba(0,180,255,0.3);
  --shadow-card:  0 4px 24px rgba(0,0,0,0.4);

  /* Bordas */
  --radius:    16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  /* Sidebar */
  --sidebar-w: 260px;
  --topbar-h:  64px;
  --bottom-h:  70px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green); }
img { max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

/* ===== LAYOUT ===== */
.main-wrapper {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  transition: margin .3s;
}
.page-content {
  padding: 24px;
  padding-bottom: calc(var(--bottom-h) + 24px);
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo {
  width: 44px; height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--green);
  box-shadow: var(--shadow-green);
}
.sidebar-close { display: none; color: var(--text-secondary); font-size: 18px; margin-left: auto; }

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-card2);
  margin: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.user-avatar {
  width: 40px; height: 40px;
  background: var(--grad-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #000;
  flex-shrink: 0;
}
.user-info { display: flex; flex-direction: column; min-width: 0; }
.user-name { font-size: 14px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-balance { font-size: 12px; color: var(--green); font-weight: 500; }

.sidebar-nav { padding: 8px; flex: 1; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all .2s;
  margin-bottom: 2px;
}
.nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-item.active {
  background: linear-gradient(135deg, rgba(0,230,118,0.15), rgba(0,180,255,0.15));
  color: var(--green);
  border: 1px solid rgba(0,230,118,0.2);
}
.nav-item i { width: 20px; text-align: center; font-size: 15px; }
.nav-divider { height: 1px; background: var(--border); margin: 8px 0; }
.nav-admin { color: var(--yellow) !important; }
.nav-logout { color: #ff4d6d !important; }
.nav-logout:hover { background: rgba(255,77,109,0.1) !important; }

/* ===== TOPBAR ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--topbar-h);
  background: rgba(10,10,26,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
}
.menu-btn {
  display: none;
  color: var(--text-primary);
  font-size: 20px;
  padding: 8px;
}
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  background: var(--grad-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.topbar-logo { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.topbar-balance {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card2);
  border: 1px solid var(--border-neon);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
}
.btn-deposit-top {
  width: 34px; height: 34px;
  background: var(--grad-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-green);
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bottom-h);
  background: rgba(17,17,40,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  z-index: 200;
  padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav { display: none; }
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 12px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  border-radius: 12px;
  transition: all .2s;
  flex: 1;
}
.bottom-nav-item i { font-size: 20px; }
.bottom-nav-item.active { color: var(--green); }
.bottom-nav-item.active i { filter: drop-shadow(0 0 6px var(--green)); }

/* ===== OVERLAY ===== */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 999;
  backdrop-filter: blur(4px);
}

/* ===== FLASH MESSAGES ===== */
.flash-message {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  margin: 0 24px 0;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  animation: slideDown .3s ease;
}
.flash-success { background: rgba(0,230,118,0.15); border: 1px solid var(--green); color: var(--green); }
.flash-error   { background: rgba(255,77,109,0.15); border: 1px solid #ff4d6d; color: #ff4d6d; }
.flash-info    { background: rgba(0,180,255,0.15); border: 1px solid var(--blue); color: var(--blue); }
.flash-message button { margin-left: auto; color: inherit; opacity: .7; }

/* ===== ALERTS ===== */
.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}
.alert-success { background: rgba(0,230,118,0.12); border: 1px solid rgba(0,230,118,0.4); color: var(--green); }
.alert-error   { background: rgba(255,77,109,0.12); border: 1px solid rgba(255,77,109,0.4); color: #ff4d6d; }
.alert-info    { background: rgba(0,180,255,0.12); border: 1px solid rgba(0,180,255,0.4); color: var(--blue); }

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-title i { color: var(--green); }

/* ===== PAGE HEADER ===== */
.page-header {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.page-title {
  font-size: 24px;
  font-weight: 800;
  background: var(--grad-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-title i { -webkit-text-fill-color: var(--green); }
.page-subtitle { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 16px; }
.form-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.form-label i { color: var(--blue); font-size: 12px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 14px;
  transition: all .2s;
  outline: none;
  -webkit-appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
  background: var(--bg-card2);
}
.form-input::placeholder { color: var(--text-muted); }
.form-select { cursor: pointer; }
.form-textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-secondary); }
.form-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--green); }

.input-password { position: relative; }
.input-password .form-input { padding-right: 48px; }
.toggle-password {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  transition: color .2s;
}
.toggle-password:hover { color: var(--blue); }

.input-currency { position: relative; }
.currency-prefix {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
}
.input-currency .form-input { padding-left: 40px; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grad-green);
  color: #000;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  transition: all .2s;
  box-shadow: var(--shadow-green);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 30px rgba(0,230,118,0.5);
  color: #000;
}
.btn-primary:active { transform: translateY(0); }
.btn-full { width: 100%; justify-content: center; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  transition: all .2s;
}
.btn-outline:hover { background: rgba(0,230,118,0.1); color: var(--green); }
.btn-outline-sm { padding: 6px 14px; font-size: 12px; }

.btn-sm {
  padding: 7px 14px;
  font-size: 12px;
  border-radius: 8px;
}
.btn-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all .2s;
  background: var(--bg-input);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-icon:hover { background: var(--bg-hover); color: var(--text-primary); }
.btn-edit:hover    { border-color: var(--blue); color: var(--blue); }
.btn-success:hover { border-color: var(--green); color: var(--green); }
.btn-warning:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-danger:hover  { border-color: #ff4d6d; color: #ff4d6d; }

/* ===== STATUS BADGES ===== */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.status-paid       { background: rgba(0,230,118,0.15); color: var(--green); border: 1px solid rgba(0,230,118,0.3); }
.status-processing { background: rgba(0,180,255,0.15); color: var(--blue); border: 1px solid rgba(0,180,255,0.3); }
.status-pending    { background: rgba(255,214,0,0.15); color: var(--yellow); border: 1px solid rgba(255,214,0,0.3); }
.status-canceled   { background: rgba(255,77,109,0.15); color: #ff4d6d; border: 1px solid rgba(255,77,109,0.3); }
.status-refund     { background: rgba(156,39,176,0.15); color: #ce93d8; border: 1px solid rgba(156,39,176,0.3); }

/* ===== STATS GRID ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stats-2 { grid-template-columns: repeat(2, 1fr); }
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all .2s;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
}
.stat-balance::before { background: var(--green); }
.stat-orders::before  { background: var(--blue); }
.stat-active::before  { background: var(--yellow); }
.stat-completed::before { background: #00e5ff; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }

.stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.stat-balance .stat-icon   { background: rgba(0,230,118,0.15); color: var(--green); }
.stat-orders .stat-icon    { background: rgba(0,180,255,0.15); color: var(--blue); }
.stat-active .stat-icon    { background: rgba(255,214,0,0.15); color: var(--yellow); }
.stat-completed .stat-icon { background: rgba(0,229,255,0.15); color: #00e5ff; }

.stat-content { display: flex; flex-direction: column; min-width: 0; }
.stat-label { font-size: 12px; color: var(--text-secondary); font-weight: 500; }
.stat-value { font-size: 22px; font-weight: 800; color: var(--text-primary); white-space: nowrap; }
.stat-action {
  margin-left: auto;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 12px;
  transition: all .2s;
  flex-shrink: 0;
}
.stat-action:hover { background: var(--green); color: #000; }

/* ===== TABLES ===== */
.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th {
  background: var(--bg-card2);
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-hover); }
.action-btns { display: flex; gap: 6px; align-items: center; }
.order-id { font-weight: 700; color: var(--blue); font-size: 12px; }
.svc-cell { display: flex; flex-direction: column; }
.svc-cell small { color: var(--text-muted); font-size: 11px; }
.link-truncate { color: var(--blue); font-size: 12px; }
.ref-code { font-size: 11px; background: var(--bg-input); padding: 2px 6px; border-radius: 4px; color: var(--text-secondary); }

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.page-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  transition: all .2s;
}
.page-btn:hover, .page-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: #000;
}

/* ===== FILTER BAR ===== */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.filter-btn {
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all .2s;
}
.filter-btn:hover, .filter-btn.active {
  background: rgba(0,230,118,0.15);
  border-color: var(--green);
  color: var(--green);
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  max-height: 500px;
  overflow-y: auto;
  padding: 4px;
  margin-bottom: 20px;
}
.service-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  cursor: pointer;
  transition: all .2s;
}
.service-card:hover { border-color: var(--blue); transform: translateY(-1px); }
.service-card.selected { border-color: var(--green); background: rgba(0,230,118,0.08); box-shadow: var(--shadow-green); }
.svc-header { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.svc-id { font-size: 10px; color: var(--text-muted); background: var(--bg-input); padding: 2px 6px; border-radius: 4px; }
.svc-badge { font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 600; }
.badge-refill { background: rgba(0,230,118,0.15); color: var(--green); }
.badge-cancel { background: rgba(255,77,109,0.15); color: #ff4d6d; }
.svc-name { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; line-height: 1.4; }
.svc-category { font-size: 11px; color: var(--blue); margin-bottom: 8px; }
.svc-details { display: flex; gap: 12px; font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }
.svc-price { text-align: right; }
.price-per-k { font-size: 13px; font-weight: 700; color: var(--green); }

/* ===== SELECTED SERVICE PANEL ===== */
.selected-service-panel {
  background: var(--bg-card2);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 16px;
}
.selected-service-info { margin-bottom: 16px; }
.selected-service-info h4 { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.selected-cat { font-size: 12px; color: var(--blue); }
.quantity-range { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.price-preview {
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
}
.price-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 14px; }
.price-row:not(:last-child) { border-bottom: 1px solid var(--border); }
.price-highlight { font-size: 18px; font-weight: 800; color: var(--green); }

.btn-order { font-size: 16px; padding: 16px; }

/* ===== BALANCE BAR ===== */
.balance-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 20px;
}
.balance-info { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-secondary); }
.balance-info strong { color: var(--green); font-size: 16px; }

/* ===== DASHBOARD ===== */
.welcome-section { display: flex; align-items: center; gap: 16px; }
.user-avatar-lg {
  width: 56px; height: 56px;
  background: var(--grad-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #000;
  box-shadow: var(--shadow-green);
  flex-shrink: 0;
}
.welcome-title { font-size: 22px; font-weight: 800; color: var(--text-primary); }
.welcome-sub { font-size: 13px; color: var(--text-secondary); }

.quick-actions { margin-bottom: 24px; }
.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title i { color: var(--green); }
.qa-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.qa-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
}
.qa-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); color: var(--text-primary); }
.qa-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.qa-new-order .qa-icon { background: rgba(0,230,118,0.15); color: var(--green); }
.qa-deposit .qa-icon   { background: rgba(0,180,255,0.15); color: var(--blue); }
.qa-orders .qa-icon    { background: rgba(255,214,0,0.15); color: var(--yellow); }
.qa-support .qa-icon   { background: rgba(255,77,109,0.15); color: #ff4d6d; }
.qa-new-order:hover { border-color: var(--green); }
.qa-deposit:hover   { border-color: var(--blue); }

.dashboard-section { margin-bottom: 24px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.link-see-all { font-size: 12px; color: var(--blue); font-weight: 600; }

.mini-orders-list { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.mini-order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  transition: background .2s;
}
.mini-order-item:last-child { border-bottom: none; }
.mini-order-item:hover { background: var(--bg-hover); }
.moi-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.moi-id { font-size: 11px; font-weight: 700; color: var(--blue); white-space: nowrap; }
.moi-info { display: flex; flex-direction: column; min-width: 0; }
.moi-info strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.moi-info small { font-size: 11px; color: var(--text-muted); }
.moi-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.moi-price { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.price-green { color: var(--green) !important; }
.price-red   { color: #ff4d6d !important; }

.tx-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.tx-in  { background: rgba(0,230,118,0.15); color: var(--green); }
.tx-out { background: rgba(255,77,109,0.15); color: #ff4d6d; }

/* ===== DEPOSIT ===== */
.balance-display-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(0,230,118,0.1), rgba(0,180,255,0.1));
  border: 1px solid var(--border-neon);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.balance-icon { font-size: 32px; color: var(--green); }
.balance-text { display: flex; flex-direction: column; }
.balance-text span { font-size: 12px; color: var(--text-secondary); }
.balance-text strong { font-size: 28px; font-weight: 800; color: var(--green); }

.preset-values { display: flex; flex-wrap: wrap; gap: 8px; }
.preset-btn {
  padding: 8px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  transition: all .2s;
}
.preset-btn:hover, .preset-btn.active {
  background: rgba(0,230,118,0.15);
  border-color: var(--green);
  color: var(--green);
}

.deposit-summary {
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
}
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; color: var(--text-secondary); }
.summary-row.highlight strong { color: var(--green); font-size: 16px; }

.pix-info-box { display: flex; justify-content: center; gap: 24px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.pix-info-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-secondary); }
.text-green { color: var(--green); }
.text-blue  { color: var(--blue); }
.text-yellow{ color: var(--yellow); }

/* ===== PIX SUCCESS ===== */
.pix-success-card {
  background: var(--bg-card);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
}
.pix-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.pix-icon { width: 56px; height: 56px; background: rgba(0,230,118,0.15); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--green); }
.pix-amount { font-size: 20px; font-weight: 800; color: var(--green); }

.pix-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.pix-tab {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.pix-tab.active { background: rgba(0,230,118,0.15); border-color: var(--green); color: var(--green); }

.qr-container { text-align: center; padding: 20px; }
.qr-image { width: 220px; height: 220px; border-radius: var(--radius); border: 4px solid var(--green); padding: 8px; background: #fff; box-shadow: var(--shadow-green); }
.qr-hint { font-size: 13px; color: var(--text-muted); margin-top: 12px; }

.copy-paste-box { display: flex; flex-direction: column; gap: 12px; }
.copy-paste-code {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  color: var(--text-secondary);
  font-size: 11px;
  font-family: monospace;
  resize: none;
  height: 80px;
  word-break: break-all;
}
.btn-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--grad-green);
  color: #000;
  font-weight: 700;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  transition: all .2s;
}
.btn-copy:hover { opacity: .9; }

.pix-instructions { background: var(--bg-input); border-radius: var(--radius-sm); padding: 16px; margin: 16px 0; }
.pix-instructions h4 { font-size: 13px; font-weight: 700; color: var(--blue); margin-bottom: 10px; }
.pix-instructions ol { padding-left: 20px; }
.pix-instructions li { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }

.pix-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--yellow);
  margin-bottom: 16px;
}
.pix-status-check { margin-bottom: 16px; }
.status-checking { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.status-paid { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--green); font-weight: 600; }
.pix-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== ORDERS MOBILE ===== */
.order-card-mobile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}
.ocm-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ocm-service { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.ocm-details { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.ocm-link { font-size: 12px; color: var(--blue); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.ocm-actions { display: flex; gap: 8px; }

/* ===== EMPTY STATES ===== */
.empty-state-full {
  text-align: center;
  padding: 60px 20px;
}
.empty-icon { font-size: 64px; color: var(--text-muted); margin-bottom: 16px; }
.empty-state-full h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.empty-state-full p { color: var(--text-secondary); margin-bottom: 20px; }
.empty-mini { display: flex; align-items: center; gap: 12px; padding: 20px; color: var(--text-muted); font-size: 14px; }
.empty-mini i { font-size: 24px; }
.empty-state { grid-column: 1/-1; text-align: center; padding: 40px; color: var(--text-muted); }
.empty-state i { font-size: 40px; margin-bottom: 12px; display: block; }

/* ===== PROFILE ===== */
.profile-card {
  background: linear-gradient(135deg, rgba(0,230,118,0.08), rgba(0,180,255,0.08));
  border: 1px solid var(--border-neon);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}
.profile-avatar-wrap { display: flex; align-items: center; gap: 20px; }
.profile-avatar {
  width: 72px; height: 72px;
  background: var(--grad-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: #000;
  box-shadow: var(--shadow-green);
  flex-shrink: 0;
}
.profile-meta { display: flex; flex-direction: column; gap: 4px; }
.profile-meta h3 { font-size: 20px; font-weight: 700; }
.profile-role { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 20px; }
.role-admin { background: rgba(255,214,0,0.15); color: var(--yellow); }
.role-user  { background: rgba(0,180,255,0.15); color: var(--blue); }
.profile-since { font-size: 12px; color: var(--text-muted); }

.profile-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.ptab {
  flex: 1;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.ptab.active { background: rgba(0,230,118,0.15); border-color: var(--green); color: var(--green); }

/* ===== SUPPORT ===== */
.support-channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.channel-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all .2s;
  font-size: 13px;
}
.channel-card div { display: flex; flex-direction: column; }
.channel-card strong { font-size: 14px; font-weight: 700; }
.channel-card span { font-size: 11px; color: var(--text-muted); }
.channel-card i { font-size: 28px; }
.channel-whatsapp { border-color: rgba(37,211,102,0.3); }
.channel-whatsapp i { color: #25d366; }
.channel-telegram i { color: #0088cc; }
.channel-ticket i { color: var(--yellow); }
.channel-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }

.ticket-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}
.ticket-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.ticket-id { font-size: 11px; color: var(--blue); font-weight: 700; }
.ticket-subject { font-size: 14px; font-weight: 600; flex: 1; }
.ticket-message { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.ticket-date { font-size: 11px; color: var(--text-muted); }

/* ===== MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}
.modal-box {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn .3s cubic-bezier(.34,1.56,.64,1);
}
.modal-sm { max-width: 360px; }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.modal-header h3 i { color: var(--green); }
.modal-header button { color: var(--text-muted); font-size: 16px; }
.modal-body { padding: 20px 24px; }

/* ===== ORDER SUCCESS ===== */
.order-success-card {
  background: linear-gradient(135deg, rgba(0,230,118,0.08), rgba(0,180,255,0.08));
  border: 1px solid var(--border-neon);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  margin-bottom: 20px;
}
.success-icon { font-size: 48px; color: var(--green); margin-bottom: 12px; }
.order-success-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 16px; }
.order-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; text-align: left; }
.detail-item { background: var(--bg-input); border-radius: var(--radius-sm); padding: 12px; }
.detail-item span { font-size: 11px; color: var(--text-muted); display: block; }
.detail-item strong { font-size: 14px; color: var(--text-primary); }

/* ===== TRANSACTIONS ===== */
.tx-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.tx-deposit { background: rgba(0,230,118,0.15); color: var(--green); }
.tx-debit   { background: rgba(255,77,109,0.15); color: #ff4d6d; }

/* ===== LINK NEON ===== */
.link-neon { color: var(--green); font-weight: 600; }
.link-neon:hover { color: var(--blue); }

/* ===== NOTIFICATIONS ===== */
.notif-badge-wrap { position: relative; }
.btn-notif {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.notif-count {
  position: absolute;
  top: -4px; right: -4px;
  background: #ff4d6d;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.notif-panel {
  position: fixed;
  top: 70px; right: 20px;
  width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius);
  z-index: 500;
  box-shadow: var(--shadow-card);
  max-height: 400px;
  overflow-y: auto;
}
.notif-header { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--border); }
.notif-item { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.notif-item.unread { background: rgba(0,230,118,0.04); }
.notif-icon { width: 36px; height: 36px; border-radius: 50%; background: rgba(0,230,118,0.15); color: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notif-content strong { font-size: 13px; display: block; }
.notif-content p { font-size: 12px; color: var(--text-secondary); }
.notif-content small { font-size: 11px; color: var(--text-muted); }

/* ===== STATUS DETAIL ===== */
.status-detail { background: var(--bg-input); border-radius: var(--radius-sm); padding: 16px; }
.sd-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.sd-row:last-child { border-bottom: none; }

/* ===== LOADING ===== */
.loading-spinner { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 20px; color: var(--text-muted); }

/* ===== ANIMATIONS ===== */
@keyframes slideDown { from { transform: translateY(-10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes modalIn { from { transform: scale(.9) translateY(20px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }
@keyframes glow { 0%,100% { box-shadow: 0 0 10px var(--green-glow); } 50% { box-shadow: 0 0 30px var(--green-glow); } }

/* ===== RESPONSIVE ===== */
.desktop-only { display: block; }
.mobile-only  { display: none; }

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

@media (max-width: 768px) {
  .main-wrapper { margin-left: 0; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .nav-overlay.show { display: block; }
  .sidebar-close { display: flex; }
  .menu-btn { display: flex; }
  .topbar-brand span { display: none; }
  .bottom-nav { display: flex; align-items: center; }
  .page-content { padding: 16px; padding-bottom: calc(var(--bottom-h) + 16px); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .qa-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .desktop-only { display: none; }
  .mobile-only  { display: block; }
  .support-channels { grid-template-columns: 1fr; }
  .profile-tabs { flex-direction: column; }
  .order-details-grid { grid-template-columns: 1fr; }
  .pix-actions { flex-direction: column; }
  .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-value { font-size: 18px; }
  .page-title { font-size: 20px; }
  .qa-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-bar { gap: 6px; }
  .filter-btn { padding: 6px 12px; font-size: 11px; }
  .topbar-balance span { display: none; }
}

/* ===== SAFE AREA ===== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .bottom-nav { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .page-content { padding-bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom) + 16px); }
}

/* ===== ORDER FORM CARD ===== */
.order-form-card { padding: 20px; }

/* ===== DEPOSIT CARD ===== */
.deposit-card { max-width: 560px; }

/* ===== BTN PIX ===== */
.btn-pix { background: linear-gradient(135deg, #00e676, #00b4ff); font-size: 16px; padding: 16px; }

/* ===== BALANCE DISPLAY ===== */
.balance-display-card i.fas { font-size: 32px; }

/* ===== SYNC INFO ===== */
.sync-info-card .btn-lg { margin-top: 8px; }

/* ===== FORM TEXTAREA ===== */
.form-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 14px;
  transition: all .2s;
  outline: none;
  resize: vertical;
  min-height: 100px;
}
.form-textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
}
.form-textarea::placeholder { color: var(--text-muted); }

/* ===== ADMIN NAV OVERLAY ===== */
.admin-nav-overlay.show { display: block; }

/* ===== MISC ===== */
code { font-family: monospace; font-size: 12px; }
strong { font-weight: 700; }
