
/* ─── Oculta logo-text até o JS aplicar as configurações do painel admin ─── */
/* Evita flash do nome padrão "RobuxStation" antes das configs carregarem     */
.logo-text, .login-logo-text, .sb-logo-text {
  visibility: hidden;
}
.site-logo-img:not([src]),
.site-logo-img[src=""] {
  display: none;
}

/* ─── NAVBAR AUTH (v2 backend) ─── */
.btn-icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.55); cursor: pointer; transition: all 0.2s;
  text-decoration: none; flex-shrink: 0;
}
.btn-icon:hover { background: rgba(255,255,255,0.09); color: #fff; border-color: rgba(255,255,255,0.15); }

.nav-auth-wrap { position: relative; }
.nav-user-btn {
  display: flex; align-items: center; gap: 9px;
  background: rgba(205,0,240,0.08); border: 1px solid rgba(205,0,240,0.2);
  border-radius: 99px; padding: 6px 12px 6px 6px;
  font-size: 14px; font-weight: 500; color: #fff; cursor: pointer; transition: all 0.2s;
}
.nav-user-btn:hover, .nav-user-btn.active { background: rgba(205,0,240,0.15); border-color: rgba(205,0,240,0.4); }
.nav-user-btn img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.nav-chevron { transition: transform 0.2s; flex-shrink: 0; opacity: 0.6; }
.nav-user-btn.active .nav-chevron { transform: rotate(180deg); }

.nav-user-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: #111; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; min-width: 210px; padding: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8); display: none; z-index: 200;
}
.nav-user-dropdown.open { display: block; }

.nav-drop-info {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 4px;
}
.nav-drop-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.nav-drop-name { font-size: 13px; font-weight: 600; color: #fff; line-height: 1.3; }
.nav-drop-email { font-size: 11px; color: rgba(255,255,255,0.35); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }

.nav-user-dropdown a, .nav-user-dropdown button {
  display: flex; align-items: center; gap: 9px;
  width: 100%; padding: 9px 10px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: #a1a1aa; text-align: left;
  transition: all 0.2s; background: none; border: none; cursor: pointer; font-family: inherit;
  text-decoration: none;
}
.nav-user-dropdown a:hover, .nav-user-dropdown button:hover { background: rgba(255,255,255,0.05); color: #fff; }
.nav-user-dropdown a:hover .nav-drop-icon, .nav-user-dropdown button:hover .nav-drop-icon { opacity: 1; }
.nav-drop-icon { opacity: 0.5; flex-shrink: 0; transition: opacity 0.2s; }
.nav-drop-sair { color: #ef4444 !important; }
.nav-drop-sair:hover { background: rgba(239,68,68,0.08) !important; color: #ef4444 !important; }
.nav-drop-sair .nav-drop-icon { opacity: 0.7; }
.nav-user-dropdown .dropdown-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 4px 0; }

/* ─── NOTIFICATIONS DROPDOWN ─── */
.notif-wrap { position: relative; }
.notif-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: #111; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; width: 300px; padding: 0;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8); display: none; z-index: 200;
  overflow: hidden;
  animation: dropIn .18s ease;
}
.notif-dropdown.open { display: flex; flex-direction: column; }
@keyframes dropIn { from { opacity:0; transform:translateY(-6px) scale(.98); } to { opacity:1; transform:translateY(0) scale(1); } }
.notif-head {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 14px 10px;
  font-size: 13px; font-weight: 700; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.notif-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 20px; text-align: center;
}
.notif-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 14px; text-decoration: none; transition: background .15s;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.notif-item:hover { background: rgba(255,255,255,.04); }
.notif-item-icon {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  background: rgba(205,0,240,.1); border: 1px solid rgba(205,0,240,.2);
  display: flex; align-items: center; justify-content: center;
}
.notif-footer {
  display: block; text-align: center; padding: 10px 14px;
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,.4);
  text-decoration: none; border-top: 1px solid rgba(255,255,255,.06);
  transition: color .2s;
}
.notif-footer:hover { color: #fff; }

/* ─── TOAST ─── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  background: #0A0A0A; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.7);
  min-width: 260px; max-width: 360px; animation: slideIn 0.3s ease; font-size: 14px; color: #fff;
}
.toast-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* ─── LOGIN PAGE v2 ─── */
.login-page { min-height: 100vh; background: #000; display: flex; align-items: center; justify-content: center; padding: 60px 24px; position: relative; }
.login-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(205,0,240,0.2) 0%, transparent 70%); pointer-events: none; }
.login-card { background: #0A0A0A; border: 1px solid rgba(255,255,255,0.08); border-radius: 24px; padding: 40px; width: 100%; max-width: 440px; position: relative; z-index: 2; box-shadow: 0 40px 100px rgba(0,0,0,0.5); }
.login-logo { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 32px; }
.login-logo img { width: 40px; height: 40px; object-fit: contain; }
.login-card h1 { font-size: 24px; font-weight: 700; color: #fff; text-align: center; margin-bottom: 8px; }
.login-card .subtitle { font-size: 14px; color: rgba(255,255,255,0.4); text-align: center; margin-bottom: 32px; }
.login-error-box { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2); border-radius: 12px; padding: 13px 16px; font-size: 13px; color: #ef4444; margin-bottom: 24px; display: none; }
.login-btn-oauth {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 14px 20px; border-radius: 12px; font-size: 14px; font-weight: 600;
  margin-bottom: 12px; transition: all 0.25s; border: 1px solid transparent; cursor: pointer; text-decoration: none;
}
.login-btn-discord { background: #5865F2; color: #fff; }
.login-btn-discord:hover { background: #4752c4; box-shadow: 0 0 30px rgba(88,101,242,0.4); transform: translateY(-1px); }
.login-btn-google { background: rgba(255,255,255,0.04); color: #fff; border-color: rgba(255,255,255,0.1); }
.login-btn-google:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); transform: translateY(-1px); }
.login-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; }
.login-divider hr { flex: 1; border: none; border-top: 1px solid rgba(255,255,255,0.07); }
.login-divider span { font-size: 12px; color: rgba(255,255,255,0.25); font-weight: 500; white-space: nowrap; }
.login-footer-text { text-align: center; font-size: 12px; color: rgba(255,255,255,0.25); margin-top: 24px; line-height: 1.5; }
.login-footer-text a { color: rgba(255,255,255,0.45); }

/* ─── WIZARD (v2 backend) ─── */
.wizard-page { min-height: 100vh; background: #000; }
.wizard-body { padding: 40px 24px 80px; max-width: 680px; margin: 0 auto; }
.wizard-card { background: #0A0A0A; border: 1px solid rgba(255,255,255,0.08); border-radius: 24px; overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,0.5); }
.wizard-head { padding: 28px 32px 24px; border-bottom: 1px solid rgba(255,255,255,0.06); background: #050505; }
.wizard-head-top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.wizard-back { width: 34px; height: 34px; border-radius: 99px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); color: #a1a1aa; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: all 0.2s; }
.wizard-back:hover { color: #fff; border-color: rgba(205,0,240,0.4); }
.wizard-back.hidden { display: none; }
.wizard-head-text h2 { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 3px; }
.wizard-head-text p { font-size: 13px; color: rgba(255,255,255,0.4); }
.wizard-progress { display: flex; gap: 6px; }
.wizard-step { flex: 1; text-align: center; font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 4px; border-radius: 6px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); color: rgba(255,255,255,0.3); transition: all 0.3s; }
.wizard-step.active { background: rgba(205,0,240,0.12); border-color: rgba(205,0,240,0.3); color: #CD00F0; }
.wizard-step.done { background: rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.25); color: #22c55e; }
.wizard-content { padding: 32px; }
.wizard-footer { padding: 0 32px 28px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.step-title { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.step-sub { font-size: 13px; color: rgba(255,255,255,0.4); margin-bottom: 24px; line-height: 1.6; }
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.method-card { background: rgba(255,255,255,0.02); border: 2px solid rgba(255,255,255,0.07); border-radius: 16px; padding: 22px; cursor: pointer; transition: all 0.25s; position: relative; }
.method-card:hover:not(.disabled) { border-color: rgba(205,0,240,0.5); background: rgba(205,0,240,0.06); }
.method-card.selected { border-color: #CD00F0; background: rgba(205,0,240,0.08); }
.method-card.disabled { opacity: 0.4; cursor: not-allowed; }
.method-card .rec { position: absolute; top: 12px; right: 12px; background: #CD00F0; color: #fff; font-size: 9px; font-weight: 800; padding: 3px 9px; border-radius: 99px; text-transform: uppercase; letter-spacing: 0.06em; }
.method-card .method-icon { font-size: 26px; margin-bottom: 10px; }
.method-card h3 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 5px; }
.method-card p { font-size: 12px; color: rgba(255,255,255,0.4); line-height: 1.5; }
.pkg-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-bottom: 20px; }
.pkg-card { background: rgba(255,255,255,0.02); border: 2px solid rgba(255,255,255,0.07); border-radius: 16px; padding: 18px 20px; cursor: pointer; transition: all 0.25s; position: relative; }
.pkg-card:hover { border-color: rgba(205,0,240,0.4); background: rgba(205,0,240,0.05); }
.pkg-card.selected { border-color: #CD00F0; background: rgba(205,0,240,0.08); }
.pkg-badge { position: absolute; top: 10px; right: 10px; background: #CD00F0; color: #fff; font-size: 9px; font-weight: 800; padding: 2px 8px; border-radius: 99px; text-transform: uppercase; }
.pkg-robux { font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 3px; }
.pkg-unit { font-size: 11px; color: rgba(255,255,255,0.35); margin-bottom: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.pkg-price { font-size: 1rem; font-weight: 700; color: #e566ff; }
.order-summary { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; padding: 16px 20px; margin-top: 14px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,0.45); padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.summary-row:last-child { border-bottom: none; color: #fff; font-weight: 700; font-size: 14px; }
.nick-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.4); margin-bottom: 8px; display: block; }
.nick-wrap { display: flex; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; overflow: hidden; transition: border-color 0.2s; }
.nick-wrap:focus-within { border-color: rgba(205,0,240,0.5); }
.nick-icon { width: 46px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.3); flex-shrink: 0; }
.nick-input { flex: 1; padding: 13px 0; background: none; border: none; color: #fff; font-size: 14px; outline: none; font-family: inherit; }
.nick-input::placeholder { color: rgba(255,255,255,0.2); }
.nick-search { width: 48px; background: #CD00F0; border: none; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: filter 0.2s; flex-shrink: 0; }
.nick-search:hover { filter: brightness(1.1); }
.nick-hint { font-size: 12px; color: rgba(255,255,255,0.3); margin-top: 10px; display: flex; align-items: center; gap: 6px; }
.nick-error { font-size: 13px; color: #ef4444; margin-top: 10px; display: none; }
.nick-loading { margin-top: 12px; text-align: center; color: rgba(255,255,255,0.4); font-size: 13px; display: none; }
.confirm-card { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.07); border-radius: 16px; padding: 24px; display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.confirm-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid #CD00F0; flex-shrink: 0; }
.confirm-name { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.confirm-handle { font-size: 13px; color: rgba(255,255,255,0.4); margin-bottom: 5px; }
.confirm-id { font-size: 11px; color: rgba(255,255,255,0.3); font-family: monospace; }
.pay-methods { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-bottom: 20px; }
.pay-method { background: rgba(255,255,255,0.02); border: 2px solid rgba(255,255,255,0.07); border-radius: 16px; padding: 18px; cursor: pointer; text-align: center; transition: all 0.2s; }
.pay-method:hover:not(.disabled) { border-color: rgba(205,0,240,0.4); }
.pay-method.selected { border-color: #CD00F0; background: rgba(205,0,240,0.08); }
.pay-method.disabled { opacity: 0.4; cursor: not-allowed; }
.pay-method .pay-icon { font-size: 24px; margin-bottom: 8px; }
.pay-method h4 { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.pay-method span { font-size: 11px; color: rgba(255,255,255,0.3); }
.pix-box { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.07); border-radius: 20px; padding: 28px; text-align: center; }
.pix-qr { width: 170px; height: 170px; background: #fff; border-radius: 12px; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pix-qr img { width: 100%; height: 100%; object-fit: contain; }
.pix-code-wrap { display: flex; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; overflow: hidden; margin: 14px 0; }
.pix-code-text { flex: 1; padding: 11px 14px; font-size: 11px; font-family: monospace; color: rgba(255,255,255,0.4); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pix-copy { padding: 11px 16px; background: #CD00F0; border: none; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; transition: filter 0.2s; flex-shrink: 0; font-family: inherit; }
.pix-copy:hover { filter: brightness(1.1); }
.pix-steps { text-align: left; margin-top: 18px; }
.pix-step { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.pix-step-num { width: 22px; height: 22px; background: #CD00F0; color: #fff; border-radius: 50%; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.pix-step p { font-size: 12px; color: rgba(255,255,255,0.4); line-height: 1.5; }
.btn-wiz-primary { display: inline-flex; align-items: center; gap: 8px; background: #CD00F0; color: #fff; border: none; border-radius: 12px; padding: 12px 24px; font-size: 14px; font-weight: 700; cursor: pointer; transition: background 0.2s, transform 0.15s; font-family: inherit; }
.btn-wiz-primary:hover { background: #a800c4; transform: translateY(-1px); }
.btn-wiz-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-wiz-ghost { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 12px 24px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.btn-wiz-ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }
.btn-success { background: #22c55e; color: #fff; border: none; border-radius: 12px; padding: 12px 24px; font-size: 14px; font-weight: 700; cursor: pointer; transition: background 0.2s; font-family: inherit; }
.btn-success:hover { background: #16a34a; }

/* ─── PRODUTOS PAGE (v2) ─── */
.page-hero { background: #000; padding: 60px 24px; text-align: center; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(205,0,240,0.18) 0%, transparent 70%); pointer-events: none; }
.page-hero h1 { font-size: clamp(28px,5vw,52px); font-weight: 700; letter-spacing: -1px; margin-bottom: 12px; position: relative; }
.page-hero p { font-size: 16px; color: rgba(255,255,255,0.45); position: relative; }
.produtos-page { padding: 60px 24px 80px; max-width: 1280px; margin: 0 auto; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-top: 0; }
.product-img { width: 100%; height: 140px; background: linear-gradient(135deg, rgba(205,0,240,0.12), rgba(10,10,10,1)); display: flex; align-items: center; justify-content: center; color: #CD00F0; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 40px; }
.product-body { padding: 20px; }
.product-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: rgba(205,0,240,0.1); border: 1px solid rgba(205,0,240,0.2); color: #e566ff; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.product-name { font-size: 17px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.product-desc { font-size: 13px; color: rgba(255,255,255,0.35); line-height: 1.6; margin-bottom: 16px; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: 20px; font-weight: 700; color: #fff; }
.product-price .curr { font-size: 13px; color: #71717a; font-weight: 400; }
.btn-product { background: rgba(205,0,240,0.12); border: 1px solid rgba(205,0,240,0.2); color: #e566ff; border-radius: 10px; padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.2s; text-decoration: none; display: inline-block; }
.btn-product:hover { background: rgba(205,0,240,0.22); }

/* ─── ADMIN PANEL ─── */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; background: #050505; }
.admin-sidebar { background: #0A0A0A; border-right: 1px solid rgba(255,255,255,0.06); padding: 24px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.admin-logo { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 28px; padding: 0 10px; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.admin-nav-section { font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.25); padding: 0 10px; margin: 16px 0 6px; }
.admin-nav-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.4); transition: all 0.2s; cursor: pointer; background: none; border: none; text-align: left; font-family: inherit; }
.admin-nav-item:hover { background: rgba(255,255,255,0.04); color: #fff; }
.admin-nav-item.active { background: rgba(205,0,240,0.12); color: #CD00F0; }
.admin-nav-icon { font-size: 16px; flex-shrink: 0; }
.admin-user-info { display: flex; align-items: center; gap: 10px; padding: 14px 10px; border-top: 1px solid rgba(255,255,255,0.06); margin-top: auto; }
.admin-user-info .user-name { font-size: 13px; font-weight: 600; color: #fff; }
.admin-user-info .user-role { font-size: 11px; color: #CD00F0; }
.admin-main { display: flex; flex-direction: column; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 28px; border-bottom: 1px solid rgba(255,255,255,0.06); background: #0A0A0A; }
.admin-topbar h2 { font-size: 1rem; font-weight: 700; color: #fff; }
.admin-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.admin-section-header h3 { font-size: 1rem; font-weight: 700; color: #fff; }
.stats-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #0A0A0A; border: 1px solid rgba(255,255,255,0.06); border-radius: 16px; padding: 22px; }
.stat-card-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 10px; }
.stat-card-value { font-size: 2rem; font-weight: 800; letter-spacing: -1px; color: #fff; }
.stat-card-sub { font-size: 12px; color: rgba(255,255,255,0.25); margin-top: 5px; }
.table-wrap { background: #0A0A0A; border: 1px solid rgba(255,255,255,0.06); border-radius: 16px; overflow: hidden; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table-wrap table th { background: #050505; padding: 11px 16px; text-align: left; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.3); border-bottom: 1px solid rgba(255,255,255,0.05); }
.table-wrap table td { padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,0.04); color: rgba(255,255,255,0.6); }
.table-wrap table tr:last-child td { border-bottom: none; }
.table-wrap table tr:hover td { background: rgba(255,255,255,0.02); }
.filter-bar-admin { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.filter-bar-admin input, .filter-bar-admin select { padding: 9px 14px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; color: #fff; font-size: 13px; outline: none; font-family: inherit; }
.filter-bar-admin input:focus, .filter-bar-admin select:focus { border-color: rgba(205,0,240,0.4); }
.form-control { width: 100%; padding: 10px 13px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; color: #fff; font-size: 13px; outline: none; transition: border-color 0.2s; font-family: inherit; }
.form-control:focus { border-color: rgba(205,0,240,0.4); }
.form-control::placeholder { color: rgba(255,255,255,0.2); }
.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.form-group label { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.5); }
.form-group:last-child { margin-bottom: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: rgba(255,255,255,0.6); }
.form-check input { width: 16px; height: 16px; accent-color: #CD00F0; }
.color-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-bottom: 24px; }
.color-row { background: #0A0A0A; border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; padding: 14px; }
.color-row label { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.4); display: block; margin-bottom: 10px; }
.color-row-inputs { display: flex; align-items: center; gap: 10px; }
.color-swatch { width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0; cursor: pointer; position: relative; overflow: hidden; border: 2px solid rgba(255,255,255,0.1); }
.color-swatch input[type="color"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: none; }
.color-hex { flex: 1; padding: 8px 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; color: #fff; font-size: 12px; font-family: monospace; outline: none; }
.color-hex:focus { border-color: rgba(205,0,240,0.4); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 600; }
.badge-pending { background: rgba(245,158,11,0.15); color: #f59e0b; }
.badge-processing, .badge-paid { background: rgba(99,102,241,0.15); color: #818cf8; }
.badge-completed, .badge-delivered { background: rgba(34,197,94,0.1); color: #22c55e; }
.badge-cancelled, .badge-danger { background: rgba(239,68,68,0.1); color: #ef4444; }
.badge-admin { background: rgba(205,0,240,0.15); color: #e566ff; }
.badge-user { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.4); }
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); z-index: 500; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay.open { display: flex; }
.modal { background: #0A0A0A; border: 1px solid rgba(255,255,255,0.08); border-radius: 20px; padding: 32px; max-width: 500px; width: 100%; box-shadow: 0 40px 100px rgba(0,0,0,0.8); max-height: 90vh; overflow-y: auto; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-title { font-size: 1rem; font-weight: 700; color: #fff; }
.modal-close { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.4); font-size: 18px; cursor: pointer; border: none; transition: all 0.2s; font-family: inherit; }
.modal-close:hover { background: rgba(239,68,68,0.15); color: #ef4444; }
.pagination { display: flex; align-items: center; gap: 6px; padding: 16px; border-top: 1px solid rgba(255,255,255,0.05); }
.page-btn { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); cursor: pointer; transition: all 0.2s; font-family: inherit; }
.page-btn:hover { border-color: rgba(205,0,240,0.3); color: #fff; }
.page-btn.active { background: #CD00F0; color: #fff; border-color: #CD00F0; }
.btn-admin-primary { display: inline-flex; align-items: center; gap: 8px; background: #CD00F0; color: #fff; border: none; border-radius: 10px; padding: 10px 20px; font-size: 13px; font-weight: 700; cursor: pointer; transition: background 0.2s; font-family: inherit; }
.btn-admin-primary:hover { background: #a800c4; }
.btn-admin-ghost { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 10px 20px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.btn-admin-ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }
.btn-admin-danger { display: inline-flex; align-items: center; gap: 8px; background: rgba(239,68,68,0.1); color: #ef4444; border: 1px solid rgba(239,68,68,0.2); border-radius: 10px; padding: 10px 20px; font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.btn-admin-danger:hover { background: rgba(239,68,68,0.2); }
.btn-admin-sm { padding: 7px 14px !important; font-size: 12px !important; }
/* ─── MOBILE SIDEBAR TOGGLE ─── */
.admin-mobile-toggle {
  display: none; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6); cursor: pointer; flex-shrink: 0;
}
.admin-sidebar-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  z-index: 299; display: none; backdrop-filter: blur(4px);
}
.admin-sidebar-overlay.open { display: block; }

@media (max-width: 900px) {
  .admin-mobile-toggle { display: flex; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: fixed; left: -260px; top: 0; bottom: 0;
    width: 240px; z-index: 300; transition: left 0.28s cubic-bezier(.4,0,.2,1);
    display: flex !important;
  }
  .admin-sidebar.open { left: 0; box-shadow: 20px 0 60px rgba(0,0,0,0.8); }
  .stats-cards { grid-template-columns: 1fr 1fr !important; }
  #admin-content { padding: 16px !important; }
  .color-grid { grid-template-columns: 1fr !important; }
  .form-row { grid-template-columns: 1fr !important; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .admin-section-header { flex-wrap: wrap; gap: 10px; }
  .admin-section-header > div { gap: 6px !important; }
}
@media (max-width: 500px) {
  .stats-cards { grid-template-columns: 1fr !important; }
  .modal { padding: 20px 16px; }
}

/* ─── CONTENT LAYOUT (sidebar + form) ─── */
.content-layout {
  display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: start;
}
.content-nav {
  background: #0A0A0A; border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; padding: 8px; display: flex; flex-direction: column; gap: 2px;
  position: sticky; top: 20px;
}
.content-nav-item {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 9px 12px; border-radius: 9px; font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.45); background: none; border: none;
  cursor: pointer; transition: all 0.18s; font-family: inherit; text-align: left;
}
.content-nav-item:hover { background: rgba(255,255,255,0.05); color: #fff; }
.content-nav-item.active { background: rgba(205,0,240,0.12); color: #CD00F0; }
.cnt-icon { font-size: 15px; flex-shrink: 0; }
.cnt-badge {
  margin-left: auto; font-size: 10px; font-weight: 700;
  background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.3);
  border-radius: 99px; padding: 1px 7px; flex-shrink: 0;
}
.content-nav-item.active .cnt-badge { background: rgba(205,0,240,0.2); color: #CD00F0; }
.content-form {
  background: #0A0A0A; border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; padding: 24px 28px;
}
.content-group-title {
  font-size: 15px; font-weight: 700; color: #fff;
  margin-bottom: 22px; padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
@media (max-width: 900px) {
  .content-layout { grid-template-columns: 1fr; }
  .content-nav { flex-direction: row; flex-wrap: wrap; position: static; }
  .content-nav-item { flex: 0 0 auto; }
  .cnt-badge { display: none; }
  .content-form { padding: 18px 16px; }
}

/* ─── FIELD HINT ─── */
.field-hint {
  display: block; font-size: 11px; color: rgba(255,255,255,0.28);
  margin-bottom: 6px; margin-top: -2px; line-height: 1.4;
}

/* ─── IMAGE FIELD ─── */
.image-field-wrap { display: flex; align-items: center; gap: 10px; }
.image-field-wrap input { flex: 1; min-width: 0; }
.img-thumb {
  width: 48px; height: 48px; object-fit: contain;
  border-radius: 8px; border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03); flex-shrink: 0;
}

/* ─── ADMIN BTN OVERRIDES (normaliza .btn.btn-* dentro do painel) ─── */
.admin-layout .btn, .modal .btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 10px; padding: 10px 20px; font-size: 13px;
  font-weight: 600; cursor: pointer; transition: all 0.2s;
  font-family: inherit; border: none; line-height: 1; text-decoration: none;
}
.admin-layout .btn-primary, .modal .btn-primary { background: #CD00F0; color: #fff; }
.admin-layout .btn-primary:hover, .modal .btn-primary:hover { background: #a800c4; }
.admin-layout .btn-ghost, .modal .btn-ghost { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.08); }
.admin-layout .btn-ghost:hover, .modal .btn-ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }
.admin-layout .btn-danger, .modal .btn-danger { background: rgba(239,68,68,0.1); color: #ef4444; border: 1px solid rgba(239,68,68,0.2); }
.admin-layout .btn-danger:hover, .modal .btn-danger:hover { background: rgba(239,68,68,0.2); }
.admin-layout .btn-sm, .modal .btn-sm { padding: 7px 14px !important; font-size: 12px !important; }

/* ─── FILTER BAR override para admin ─── */
.admin-layout .filter-bar {
  display: flex; gap: 10px; align-items: center; margin-bottom: 16px;
  flex-wrap: wrap; background: none; border: none; padding: 0;
  overflow: visible; white-space: normal;
}
.admin-layout .filter-bar input,
.admin-layout .filter-bar select {
  padding: 9px 14px; background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 10px;
  color: #fff; font-size: 13px; outline: none; font-family: inherit;
}
.admin-layout .filter-bar input:focus,
.admin-layout .filter-bar select:focus { border-color: rgba(205,0,240,0.4); }

/* ─── NAV SAIR (sidebar bottom link) ─── */
.admin-nav-sair {
  margin-top: 8px; color: rgba(239,68,68,0.6) !important;
  border-top: 1px solid rgba(255,255,255,0.05); padding-top: 16px !important;
}
.admin-nav-sair:hover { color: #ef4444 !important; background: rgba(239,68,68,0.07) !important; }

/* ─── SITE CONFIG LAYOUT (accordion + live preview) ─── */
.siteconfig-layout {
  display: grid; grid-template-columns: 1fr 420px; gap: 24px; align-items: start;
}
.siteconfig-left { min-width: 0; }
.siteconfig-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; gap: 16px; flex-wrap: wrap;
}
.siteconfig-title { font-size: 18px; font-weight: 700; color: #fff; }
.siteconfig-desc  { font-size: 13px; color: rgba(255,255,255,0.35); margin-top: 2px; }

/* ─── ACCORDION ─── */
.accordion-list { display: flex; flex-direction: column; gap: 8px; }
.accordion-item {
  background: #0A0A0A; border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; overflow: hidden;
}
.accordion-head {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 14px 18px; background: none; border: none;
  color: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: background 0.15s; text-align: left;
}
.accordion-head:hover { background: rgba(255,255,255,0.03); }
.accordion-icon { font-size: 16px; flex-shrink: 0; }
.accordion-label { flex: 1; }
.accordion-chevron {
  flex-shrink: 0; opacity: 0.4; transition: transform 0.25s;
}
.accordion-item.open .accordion-chevron { transform: rotate(180deg); }
.accordion-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s cubic-bezier(.4,0,.2,1), padding 0.2s;
  padding: 0 18px;
}
.accordion-item.open .accordion-body {
  max-height: 2000px; padding: 4px 18px 20px;
}
.acc-live-badge {
  font-size: 9px; font-weight: 800; letter-spacing: .1em;
  background: rgba(34,197,94,0.15); color: #22c55e;
  border: 1px solid rgba(34,197,94,0.25); border-radius: 99px;
  padding: 2px 7px; flex-shrink: 0;
}

/* ─── COLOR FIELD ─── */
.color-field-row { display: flex; align-items: center; gap: 10px; }
.color-field-row .color-swatch {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.12); cursor: pointer; position: relative; overflow: hidden;
}
.color-field-row .color-swatch input[type="color"] {
  position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px);
  opacity: 0; cursor: pointer;
}
.color-field-row .color-hex { flex: 1; }

/* ─── PREVIEW PANEL ─── */
.siteconfig-right {
  position: sticky; top: 20px;
  background: #0A0A0A; border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; overflow: hidden;
}
.preview-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.45);
}
.preview-zoom-label { font-size: 11px; font-family: monospace; color: rgba(255,255,255,0.3); }
.preview-wrap {
  position: relative; overflow: hidden;
  height: 500px; background: #000;
}
.preview-iframe {
  border: none; pointer-events: none;
  transform-origin: top left;
}

@media (max-width: 1200px) {
  .siteconfig-layout { grid-template-columns: 1fr; }
  .siteconfig-right { position: static; }
  .preview-wrap { height: 300px; }
}
@media (max-width: 900px) {
  .siteconfig-layout { gap: 16px; }
  #admin-content { padding: 16px !important; }
}
