/* ======================================
   MOTOSTORE CASHBACK - CSS PRINCIPAL
   ====================================== */

/* ===== LOGIN SCREEN ===== */
.login-screen {
  position: fixed; inset: 0;
  background: var(--bg, #0f172a);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000;
  min-height: 100vh;
  padding: 20px;
}
.login-bg {
  position: absolute; inset: 0; overflow: hidden;
  pointer-events: none;
}
.bg-circle {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.12;
}
.bc1 {
  width: 500px; height: 500px;
  background: #f97316;
  top: -150px; left: -100px;
  animation: floatCircle 8s ease-in-out infinite;
}
.bc2 {
  width: 400px; height: 400px;
  background: #3b82f6;
  bottom: -100px; right: -80px;
  animation: floatCircle 10s ease-in-out infinite reverse;
}
.bc3 {
  width: 300px; height: 300px;
  background: #a855f7;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  animation: floatCircle 12s ease-in-out infinite;
}
@keyframes floatCircle {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(20px, -20px); }
  66% { transform: translate(-15px, 15px); }
}
.bc3 { animation: floatCircleCenter 12s ease-in-out infinite; }
@keyframes floatCircleCenter {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% + 30px)); }
}

.login-box {
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(51, 65, 85, 0.8);
  border-radius: 24px;
  padding: 48px 44px;
  width: 100%; max-width: 420px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
  position: relative; z-index: 1;
  animation: loginBoxIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes loginBoxIn {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.login-logo {
  text-align: center; margin-bottom: 36px;
}
.login-logo-img {
  width: 200px; height: auto;
  margin: 0 auto 16px;
  display: block;
  animation: iconPop 0.6s 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
  filter: drop-shadow(0 4px 20px rgba(249,115,22,0.25));
}
.login-logo-img img {
  width: 100%; height: auto; object-fit: contain;
  border-radius: 12px;
}
@keyframes iconPop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.login-subtitle {
  font-size: 0.82rem; color: #94a3b8; font-weight: 500;
  letter-spacing: 0.3px;
  display: block; margin-top: 4px;
}

.login-form { display: flex; flex-direction: column; gap: 18px; }

.login-form-group { display: flex; flex-direction: column; gap: 7px; }
.login-form-group label {
  font-size: 0.78rem; font-weight: 700;
  color: #94a3b8; text-transform: uppercase; letter-spacing: 0.6px;
  display: flex; align-items: center; gap: 6px;
}
.login-form-group label i { color: #f97316; }
.login-form-group input {
  width: 100%; padding: 12px 16px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid #334155;
  border-radius: 10px; color: #f1f5f9;
  font-size: 0.95rem; outline: none;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.login-form-group input:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249,115,22,0.18);
}
.login-form-group input::placeholder { color: #475569; }

.login-pass-wrap { position: relative; }
.login-pass-wrap input { padding-right: 44px; }
.toggle-pass {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: #64748b; font-size: 0.9rem;
  transition: color 0.2s;
  background: none; border: none; cursor: pointer;
}
.toggle-pass:hover { color: #f97316; }

.login-error {
  display: flex; align-items: center; gap: 8px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 8px; padding: 10px 14px;
  color: #fca5a5; font-size: 0.85rem;
  animation: shake 0.4s ease;
}
.login-error i { flex-shrink: 0; }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-8px); }
  40%      { transform: translateX(8px); }
  60%      { transform: translateX(-5px); }
  80%      { transform: translateX(5px); }
}

.login-btn {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff; border: none; border-radius: 10px;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 6px 20px rgba(249,115,22,0.3);
  transition: all 0.2s;
  margin-top: 4px;
}
.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(249,115,22,0.4);
}
.login-btn:active { transform: translateY(0); }
.login-btn:disabled {
  opacity: 0.7; cursor: not-allowed; transform: none;
}

.login-footer {
  text-align: center; margin-top: 28px;
  font-size: 0.72rem; color: #475569;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.login-footer i { color: #22c55e; }

/* ===== LOGGED USER (SIDEBAR FOOTER) ===== */
.logged-user {
  display: flex; align-items: center; gap: 10px;
  background: rgba(249,115,22,0.07);
  border: 1px solid rgba(249,115,22,0.15);
  border-radius: 10px; padding: 10px 12px;
  margin-bottom: 10px;
}
.logged-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #ea580c);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem; flex-shrink: 0;
}
.logged-info { flex: 1; min-width: 0; }
.logged-name {
  display: block; font-size: 0.8rem; font-weight: 700; color: #f1f5f9;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.logged-role {
  display: block; font-size: 0.68rem; font-weight: 500;
  margin-top: 1px;
}
.logged-role.admin { color: #f97316; }
.logged-role.user  { color: #3b82f6; }
.logout-btn {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(239,68,68,0.1); color: #ef4444;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; flex-shrink: 0;
  transition: all 0.2s; border: none; cursor: pointer;
}
.logout-btn:hover { background: rgba(239,68,68,0.25); transform: scale(1.1); }

/* ===== TOPBAR USER ===== */
.topbar-user {
  display: flex; align-items: center; gap: 8px;
  background: rgba(51,65,85,0.5); border: 1px solid #334155;
  border-radius: 10px; padding: 6px 12px;
}
.topbar-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #ea580c);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 800; color: #fff; flex-shrink: 0;
}
.topbar-user-info { display: flex; flex-direction: column; }
.topbar-username { font-size: 0.78rem; font-weight: 700; color: #f1f5f9; line-height: 1.2; }
.topbar-userrole { font-size: 0.65rem; color: #64748b; }

/* ===== NAV ADMIN ONLY (hidden for user role) ===== */
.nav-admin-only { display: none; }
.is-admin .nav-admin-only { display: flex; }
.sidebar.is-admin .nav-admin-only { display: flex; }
div.nav-admin-only { display: none; }
.sidebar.is-admin div.nav-admin-only { display: block; }



:root {
  --primary: #f97316;
  --primary-dark: #ea580c;
  --primary-light: #fed7aa;
  --blue: #3b82f6;
  --blue-dark: #2563eb;
  --green: #22c55e;
  --green-dark: #16a34a;
  --purple: #a855f7;
  --red: #ef4444;
  --orange: #f97316;

  --bg: #0f172a;
  --bg2: #1e293b;
  --bg3: #334155;
  --surface: #1e293b;
  --surface2: #263548;
  --border: #334155;
  --border2: #475569;

  --text: #f1f5f9;
  --text2: #94a3b8;
  --text3: #64748b;

  --sidebar-w: 260px;
  --topbar-h: 64px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
  --transition: 0.2s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}
a { text-decoration: none; cursor: pointer; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select { font-family: inherit; }

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

/* ===== APP LOADER ===== */
.app-loader {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}
.loader-content {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.loader-logo-img {
  width: 180px; height: auto;
  display: block;
  animation: pulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(249,115,22,0.3));
}
.loader-logo-img img {
  width: 100%; height: auto; object-fit: contain;
  border-radius: 10px;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 40px rgba(249,115,22,0.4); }
  50% { transform: scale(1.05); box-shadow: 0 0 60px rgba(249,115,22,0.6); }
}
.loader-bar {
  width: 200px; height: 4px;
  background: var(--bg3);
  border-radius: 2px; overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 2px;
  animation: loading 1.5s ease-in-out infinite;
}
@keyframes loading {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 100%; }
}
.loader-content p { color: var(--text2); font-size: 0.875rem; }

/* ===== APP LAYOUT ===== */
.app { display: flex; min-height: 100vh; }
.overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); z-index: 100;
}
.overlay.active { display: block; }

/* ===== SIDEBAR ===== */
.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: fixed; left: 0; top: 0; bottom: 0;
  z-index: 200;
  transition: transform var(--transition);
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  height: 40px; width: auto;
  display: flex; align-items: center;
  flex-shrink: 0;
}
.brand-logo img {
  height: 40px; width: auto; object-fit: contain;
  border-radius: 6px;
  filter: drop-shadow(0 2px 6px rgba(249,115,22,0.2));
}
.brand-text { display: flex; flex-direction: column; }
.sidebar-tag {
  font-size: 0.62rem; font-weight: 700;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  text-transform: uppercase; letter-spacing: 0.8px;
  white-space: nowrap;
}
.sidebar-close {
  display: none; width: 32px; height: 32px;
  background: var(--bg3); border-radius: 8px;
  color: var(--text2); font-size: 0.875rem;
  align-items: center; justify-content: center;
}

.sidebar-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }
.nav-section-label {
  font-size: 0.65rem; font-weight: 600;
  color: var(--text3); text-transform: uppercase; letter-spacing: 1px;
  padding: 8px 12px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text2);
  font-size: 0.9rem; font-weight: 500;
  transition: all var(--transition);
  margin-bottom: 2px;
}
.nav-item i { width: 18px; text-align: center; }
.nav-item:hover { background: var(--bg3); color: var(--text); }
.nav-item.active {
  background: linear-gradient(135deg, rgba(249,115,22,0.2), rgba(234,88,12,0.1));
  color: var(--primary);
  border: 1px solid rgba(249,115,22,0.2);
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}
.api-status {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.75rem; color: var(--text2);
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text3);
  transition: background 0.3s;
}
.status-dot.online { background: var(--green); box-shadow: 0 0 6px rgba(34,197,94,0.5); }
.status-dot.offline { background: var(--red); }

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex; flex-direction: column;
  min-height: 100vh;
}

/* ===== TOPBAR ===== */
.topbar {
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.menu-btn {
  display: none; width: 36px; height: 36px;
  background: var(--bg3); border-radius: 8px;
  color: var(--text2); font-size: 1rem;
  align-items: center; justify-content: center;
}
.page-title { font-size: 1.1rem; font-weight: 600; color: var(--text); }
.topbar-right { display: flex; align-items: center; gap: 12px; }

.enterprise-selector {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg3); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 8px;
  color: var(--text2); font-size: 0.8rem;
}
.enterprise-selector select {
  background: none; border: none; outline: none;
  color: var(--text); font-size: 0.8rem; cursor: pointer;
  max-width: 180px;
}
.enterprise-selector select option { background: var(--bg2); }

.cashback-badge {
  display: flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, rgba(249,115,22,0.2), rgba(234,88,12,0.1));
  border: 1px solid rgba(249,115,22,0.3);
  color: var(--primary);
  padding: 6px 12px; border-radius: 20px;
  font-size: 0.8rem; font-weight: 600;
}

/* ===== PAGES ===== */
.pages { flex: 1; padding: 24px; overflow-y: auto; }
.page { display: none; animation: fadeIn 0.3s ease; }
.page.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.page-header { margin-bottom: 24px; }
.page-header h1 { font-size: 1.6rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.page-header p { color: var(--text2); font-size: 0.9rem; }

/* ===== STATS GRID ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex; align-items: center; gap: 16px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.stat-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.stat-blue .stat-icon { background: rgba(59,130,246,0.15); color: var(--blue); }
.stat-green .stat-icon { background: rgba(34,197,94,0.15); color: var(--green); }
.stat-orange .stat-icon { background: rgba(249,115,22,0.15); color: var(--orange); }
.stat-purple .stat-icon { background: rgba(168,85,247,0.15); color: var(--purple); }

.stat-info { display: flex; flex-direction: column; gap: 2px; }
.stat-label { font-size: 0.75rem; color: var(--text3); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-value { font-size: 1.4rem; font-weight: 700; color: var(--text); }
.stat-sub { font-size: 0.7rem; color: var(--text3); }

/* ===== CARDS ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.card-header h3 {
  font-size: 0.95rem; font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.card-header h3 i { color: var(--primary); }
.btn-text {
  background: none; border: none; color: var(--primary);
  font-size: 0.8rem; font-weight: 500; cursor: pointer;
  transition: opacity var(--transition);
}
.btn-text:hover { opacity: 0.7; }
.btn-icon {
  width: 32px; height: 32px;
  background: var(--bg3); border-radius: 8px;
  color: var(--text2); font-size: 0.875rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.btn-icon:hover { background: var(--border2); color: var(--text); }

/* ===== DASHBOARD GRID ===== */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
}

/* ===== TRANSACTIONS LIST ===== */
.transactions-list { padding: 8px 0; }
.transaction-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px;
  transition: background var(--transition);
  border-bottom: 1px solid rgba(51,65,85,0.5);
}
.transaction-item:last-child { border-bottom: none; }
.transaction-item:hover { background: rgba(255,255,255,0.02); }
.tx-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.tx-icon.credit { background: rgba(34,197,94,0.15); color: var(--green); }
.tx-icon.debit { background: rgba(249,115,22,0.15); color: var(--orange); }
.tx-info { flex: 1; min-width: 0; }
.tx-name { font-size: 0.875rem; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-doc { font-size: 0.75rem; color: var(--text3); }
.tx-date { font-size: 0.7rem; color: var(--text3); text-align: right; }
.tx-amount { text-align: right; flex-shrink: 0; }
.tx-amount.credit { color: var(--green); font-weight: 600; font-size: 0.9rem; }
.tx-amount.debit { color: var(--orange); font-weight: 600; font-size: 0.9rem; }
.tx-sale-amount { font-size: 0.7rem; color: var(--text3); text-align: right; }

/* ===== HOW IT WORKS ===== */
.how-it-works { padding: 16px 20px; }
.step {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 18px;
}
.step-num {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-size: 0.85rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-text strong { font-size: 0.875rem; color: var(--text); display: block; margin-bottom: 2px; }
.step-text p { font-size: 0.78rem; color: var(--text2); }
.cashback-formula {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--bg3); border-radius: 10px;
  padding: 12px 16px; margin-top: 8px;
  font-size: 0.9rem; font-weight: 600;
}
.formula-op { color: var(--text3); }
.formula-pct { color: var(--orange); font-size: 1.1rem; }
.formula-result { color: var(--green); }

/* ===== EMPTY STATE ===== */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  padding: 40px 20px; gap: 12px;
}
.empty-state i { font-size: 2.5rem; color: var(--text3); }
.empty-state p { color: var(--text2); font-size: 0.875rem; }

/* ===== LOADING STATE ===== */
.loading-state {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 40px;
  color: var(--text2); font-size: 0.875rem;
}

/* ===== FORM LAYOUT ===== */
.form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-card .form-body { padding: 20px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 0.8rem; font-weight: 600;
  color: var(--text2); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px;
}
.form-group input, .form-group select {
  width: 100%; padding: 10px 14px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: 0.9rem; outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus, .form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
}
.form-group input::placeholder { color: var(--text3); }

.input-group { display: flex; gap: 8px; }
.input-group input { flex: 1; }
.btn-search {
  padding: 10px 14px;
  background: var(--primary); border-radius: var(--radius-sm);
  color: #fff; font-size: 0.9rem;
  transition: background var(--transition);
}
.btn-search:hover { background: var(--primary-dark); }

.input-currency { position: relative; }
.currency-prefix {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text2); font-weight: 600; font-size: 0.9rem;
}
.input-currency input { padding-left: 32px; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 600;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(249,115,22,0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(249,115,22,0.35);
}
.btn-primary:active { transform: translateY(0); }
.btn-block { width: 100%; justify-content: center; }
.btn-large { padding: 14px 24px; font-size: 1rem; }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-redeem-confirm {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  box-shadow: 0 4px 12px rgba(168,85,247,0.25);
}
.btn-redeem-confirm:hover { box-shadow: 0 6px 20px rgba(168,85,247,0.35); }

/* ===== CUSTOMER FOUND ===== */
.customer-found, .customer-not-found {
  margin-top: 4px;
  animation: fadeIn 0.3s ease;
}
.customer-card-mini {
  display: flex; align-items: center; gap: 12px;
  background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.2);
  border-radius: 10px; padding: 12px 16px;
}
.customer-avatar {
  width: 42px; height: 42px;
  background: rgba(59,130,246,0.15); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-size: 1.1rem; flex-shrink: 0;
}
.customer-info { flex: 1; }
.customer-name { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text); }
.customer-doc { display: block; font-size: 0.75rem; color: var(--text3); }
.customer-balance-label { display: block; font-size: 0.75rem; color: var(--text2); margin-top: 2px; }
.balance-green { color: var(--green); }
.customer-check { color: var(--green); font-size: 1.3rem; }

.customer-not-found {
  display: flex; align-items: center; gap: 10px;
  background: rgba(249,115,22,0.08); border: 1px solid rgba(249,115,22,0.2);
  border-radius: 10px; padding: 12px 16px;
  color: var(--orange); font-size: 0.875rem;
}

/* ===== CASHBACK PREVIEW ===== */
.cashback-preview {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px; margin-bottom: 18px;
}
.preview-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.875rem; color: var(--text2);
  padding: 4px 0;
}
.preview-cashback { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 10px; }
.preview-cashback span { color: var(--text); font-weight: 500; }
.text-green { color: var(--green) !important; }
.text-blue { color: var(--blue) !important; }
.text-orange { color: var(--orange) !important; }

/* ===== SUCCESS CARDS ===== */
.sale-success, .redeem-success {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 500; animation: fadeIn 0.3s ease;
}
.success-content {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 20px; padding: 40px;
  text-align: center; min-width: 320px; max-width: 400px;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.success-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(34,197,94,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: var(--green);
  margin: 0 auto 20px;
  animation: pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.success-icon-orange { background: rgba(249,115,22,0.15); color: var(--orange); }
@keyframes pop {
  from { transform: scale(0); }
  to { transform: scale(1); }
}
.success-content h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 20px; }
.success-details {
  background: var(--bg3); border-radius: 10px;
  padding: 16px; margin-bottom: 24px;
}
.success-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}
.success-row:last-child { border-bottom: none; }
.success-row span { color: var(--text2); }
.success-cashback-row strong { font-size: 1.1rem; }

/* ===== CONSULT PAGE ===== */
.search-card { padding: 0; }
.search-hero {
  display: flex; flex-direction: column; align-items: center;
  padding: 40px 20px; gap: 12px;
  text-align: center;
}
.search-hero i { font-size: 2.5rem; color: var(--primary); }
.search-hero h3 { font-size: 1.1rem; font-weight: 600; }
.search-bar {
  display: flex; gap: 10px; width: 100%; max-width: 500px;
  margin-top: 8px;
}
.search-bar input {
  flex: 1; padding: 12px 16px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: 0.9rem; outline: none;
}
.search-bar input:focus { border-color: var(--primary); }

/* ===== CUSTOMER PROFILE ===== */
.customer-profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden; margin-bottom: 16px;
}
.profile-header {
  display: flex; align-items: center; gap: 20px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(249,115,22,0.1), rgba(59,130,246,0.05));
  border-bottom: 1px solid var(--border);
}
.profile-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--blue));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: #fff; flex-shrink: 0;
}
.profile-info { flex: 1; }
.profile-info h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.profile-info p { font-size: 0.8rem; color: var(--text2); }
.profile-balance-box { text-align: center; }
.profile-balance-box span { display: block; font-size: 0.7rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; }
.profile-balance-box strong {
  display: block; font-size: 1.8rem; font-weight: 700;
  color: var(--green); margin: 4px 0;
}
.btn-redeem-inline {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #fff; border-radius: 6px; font-size: 0.75rem; font-weight: 600;
  transition: all var(--transition);
}
.btn-redeem-inline:hover { opacity: 0.85; transform: translateY(-1px); }

.profile-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}
.profile-stat {
  display: flex; flex-direction: column; align-items: center;
  padding: 16px; gap: 4px;
  border-right: 1px solid var(--border);
}
.profile-stat:last-child { border-right: none; }
.profile-stat i { color: var(--primary); font-size: 1.1rem; }
.profile-stat span { font-size: 1rem; font-weight: 600; color: var(--text); }
.profile-stat label { font-size: 0.7rem; color: var(--text3); }

/* ===== REDEEM PAGE ===== */
.balance-display {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(135deg, rgba(34,197,94,0.1), rgba(59,130,246,0.05));
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 12px; padding: 16px;
}
.balance-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(34,197,94,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--green); font-size: 1.4rem;
}
.balance-label { display: block; font-size: 0.7rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; }
.balance-value { display: block; font-size: 1.6rem; font-weight: 700; color: var(--green); }
.balance-customer { display: block; font-size: 0.8rem; color: var(--text2); margin-top: 2px; }
.hint-text { font-size: 0.75rem; color: var(--text3); display: block; margin-top: 4px; }
.error-msg {
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5; border-radius: 8px; padding: 10px 14px;
  font-size: 0.875rem; margin-bottom: 16px;
}

/* ===== HISTORY ===== */
.history-filters { display: flex; gap: 10px; flex: 1; }
.filter-input {
  flex: 1; padding: 7px 12px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: 0.8rem;
  outline: none;
}
.filter-select {
  padding: 7px 12px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: 0.8rem;
  outline: none; cursor: pointer;
}
.pagination {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px; border-top: 1px solid var(--border);
}
.page-btn {
  padding: 6px 12px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 6px; color: var(--text2); font-size: 0.8rem;
  transition: all var(--transition);
}
.page-btn:hover, .page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== ENTERPRISES GRID ===== */
.enterprises-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.enterprise-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  transition: all var(--transition);
  cursor: pointer;
}
.enterprise-card:hover {
  border-color: var(--primary); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249,115,22,0.15);
}
.enterprise-card.active-enterprise {
  border-color: var(--primary);
  background: rgba(249,115,22,0.05);
}
.ent-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ent-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(249,115,22,0.2), rgba(234,88,12,0.1));
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 1.2rem;
}
.ent-name { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.ent-code { font-size: 0.7rem; color: var(--text3); }
.ent-cnpj { font-size: 0.75rem; color: var(--text2); }
.ent-active-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(34,197,94,0.15); color: var(--green);
  padding: 2px 8px; border-radius: 10px; font-size: 0.7rem; font-weight: 600;
  margin-top: 8px;
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 9999;
}
.toast {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  min-width: 280px; max-width: 380px;
  animation: toastIn 0.3s ease;
  transition: all 0.3s ease;
}
@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.toast.success { border-left: 3px solid var(--green); }
.toast.error { border-left: 3px solid var(--red); }
.toast.info { border-left: 3px solid var(--blue); }
.toast.warning { border-left: 3px solid var(--orange); }
.toast-icon { font-size: 1.2rem; }
.toast.success .toast-icon { color: var(--green); }
.toast.error .toast-icon { color: var(--red); }
.toast.info .toast-icon { color: var(--blue); }
.toast.warning .toast-icon { color: var(--orange); }
.toast-text { flex: 1; }
.toast-title { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.toast-msg { font-size: 0.75rem; color: var(--text2); margin-top: 2px; }

/* ===== INPUT WITH ICON ===== */
.input-with-icon {
  position: relative;
}
.input-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text3); font-size: 0.85rem; pointer-events: none;
}
.input-with-icon input {
  padding-left: 34px;
}

/* ===== SELECT WITH ICON ===== */
.select-with-icon {
  position: relative;
}
.select-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--primary); font-size: 0.85rem; pointer-events: none;
  z-index: 1;
}
.select-with-icon select {
  width: 100%; padding: 10px 14px 10px 34px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: 0.9rem; outline: none; cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.select-with-icon select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
}
.select-with-icon select option { background: var(--bg2); }

.enterprise-selected-badge {
  display: flex; align-items: center; gap: 8px;
  margin-top: 8px;
  background: rgba(249,115,22,0.1); border: 1px solid rgba(249,115,22,0.25);
  border-radius: 8px; padding: 8px 12px;
  color: var(--primary); font-size: 0.8rem; font-weight: 500;
  animation: fadeIn 0.3s ease;
}
.enterprise-selected-badge i { flex-shrink: 0; }

/* ===== SALE SUMMARY ===== */
.sale-summary {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
  animation: fadeIn 0.3s ease;
}
.summary-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; color: var(--text2);
  text-transform: uppercase; letter-spacing: 0.6px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.summary-title i { color: var(--primary); }
.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(51,65,85,0.4);
}
.summary-row:last-child { border-bottom: none; }
.summary-row span { color: var(--text2); display: flex; align-items: center; gap: 6px; }
.summary-row span i { color: var(--text3); font-size: 0.75rem; }
.summary-row strong { color: var(--text); max-width: 200px; text-align: right; font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.summary-cashback-highlight {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px dashed var(--primary) !important;
  border-bottom: none !important;
}
.summary-cashback-highlight span { color: var(--text); font-weight: 600; }
.summary-cashback-highlight strong { font-size: 1.05rem !important; }

/* ===== REDEEM SUCCESS BUTTONS ===== */
.redeem-success-btns {
  display: flex; flex-direction: column; gap: 10px;
  width: 100%; margin-top: 4px;
}
.redeem-success-btns .btn-primary { width: 100%; justify-content: center; }
.btn-print {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px 24px;
  background: #1e293b; border: 1px solid #334155;
  color: #94a3b8; border-radius: var(--radius-sm);
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}
.btn-print:hover { background: #334155; color: #f1f5f9; border-color: #475569; }
.btn-print i { color: #3b82f6; }

/* ===== DANGER ZONE ===== */
.import-danger-zone {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(239,68,68,0.06); border: 1px solid rgba(239,68,68,0.2);
  border-radius: 10px; padding: 14px 20px; margin: 16px 20px 0;
  flex-wrap: wrap;
}
.danger-info { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.danger-info > i { font-size: 1.3rem; color: #ef4444; flex-shrink: 0; }
.danger-info strong { display: block; font-size: 0.875rem; color: #f1f5f9; margin-bottom: 2px; }
.danger-info p { font-size: 0.75rem; color: #94a3b8; margin: 0; }
.btn-danger {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.35);
  color: #ef4444; border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 700; cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s; white-space: nowrap;
}
.btn-danger:hover { background: rgba(239,68,68,0.28); border-color: #ef4444; }

/* ===== CONFIRM MODAL ===== */
.confirm-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.75);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; animation: fadeIn 0.2s ease;
}
.confirm-box {
  background: #1e293b; border: 1px solid #334155;
  border-radius: 18px; padding: 36px 32px;
  text-align: center; max-width: 380px; width: 90%;
  animation: slideUp 0.25s ease;
}
.confirm-box .confirm-icon { font-size: 3rem; color: #ef4444; margin-bottom: 14px; }
.confirm-box h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.confirm-box p { font-size: 0.85rem; color: #94a3b8; margin-bottom: 24px; line-height: 1.5; }
.confirm-btns { display: flex; gap: 10px; justify-content: center; }
.confirm-btns .btn-secondary { flex: 1; justify-content: center; }
.confirm-btns .btn-danger { flex: 1; justify-content: center; }

/* ===== IMPORT CSV ===== */
.import-step { animation: fadeIn 0.3s ease; }

.import-upload-area {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; padding: 48px 24px;
  border: 2px dashed var(--border2);
  border-radius: var(--radius); margin: 16px 20px;
  text-align: center; cursor: pointer;
  transition: all var(--transition);
}
.import-upload-area:hover, .import-upload-area.drag-over {
  border-color: var(--primary);
  background: rgba(249,115,22,0.04);
}
.import-upload-area.drag-over { transform: scale(1.01); }
.upload-icon { font-size: 3rem; color: var(--primary); margin-bottom: 4px; }
.import-upload-area h3 { font-size: 1.1rem; font-weight: 600; color: var(--text); }
.import-upload-area p { font-size: 0.85rem; color: var(--text2); }
.import-upload-area code {
  background: var(--bg3); padding: 2px 8px; border-radius: 4px;
  font-size: 0.8rem; color: var(--primary);
}

.import-format-info {
  padding: 16px 20px; border-top: 1px solid var(--border);
}
.format-title {
  font-size: 0.78rem; font-weight: 700; color: var(--text2);
  text-transform: uppercase; letter-spacing: 0.5px;
  display: flex; align-items: center; gap: 6px; margin-bottom: 12px;
}
.format-title i { color: var(--blue); }
.format-cols { display: flex; flex-wrap: wrap; gap: 10px; }
.format-col {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: var(--text2);
}
.col-badge {
  background: rgba(59,130,246,0.15); color: var(--blue);
  padding: 2px 8px; border-radius: 4px;
  font-size: 0.72rem; font-weight: 700; white-space: nowrap;
}

/* Preview header */
.import-preview-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 16px;
}
.preview-stats {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.prev-stat {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 16px; min-width: 130px;
}
.prev-stat i { font-size: 1.3rem; color: var(--text3); }
.prev-stat.valid i { color: var(--green); }
.prev-stat.invalid i { color: var(--red); }
.prev-stat.cashback i { color: var(--primary); }
.prev-stat div { display: flex; flex-direction: column; }
.prev-stat strong { font-size: 1rem; font-weight: 700; color: var(--text); }
.prev-stat span { font-size: 0.7rem; color: var(--text3); }
.preview-actions { display: flex; gap: 10px; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text2); border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 600;
  transition: all var(--transition);
}
.btn-secondary:hover { background: var(--border2); color: var(--text); }
.preview-count-badge {
  background: var(--bg3); color: var(--text3);
  padding: 1px 8px; border-radius: 10px;
  font-size: 0.72rem; font-weight: 600; margin-left: 6px;
}

/* Import table */
.import-table-wrap {
  overflow-x: auto; max-height: 420px; overflow-y: auto;
}
.import-table {
  width: 100%; border-collapse: collapse; font-size: 0.82rem;
}
.import-table th {
  position: sticky; top: 0; z-index: 2;
  background: var(--bg2); color: var(--text2);
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border);
}
.import-table td {
  padding: 9px 14px; border-bottom: 1px solid rgba(51,65,85,0.4);
  color: var(--text2); vertical-align: middle;
}
.import-table tr:hover td { background: rgba(255,255,255,0.02); }
.import-table tr.row-invalid td { background: rgba(239,68,68,0.04); }
.import-table tr.row-invalid { opacity: 0.8; }
.row-num { color: var(--text3); font-size: 0.7rem; }
.row-cpf { font-family: monospace; font-size: 0.8rem; color: var(--text); }
.row-name { color: var(--text); font-weight: 500; max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-value { color: var(--green); font-weight: 600; }
.row-cashback { color: var(--primary); font-weight: 700; }
.row-loja { font-size: 0.75rem; color: var(--text2); max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-status { white-space: nowrap; }
.status-ok {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(34,197,94,0.12); color: var(--green);
  padding: 2px 8px; border-radius: 10px; font-size: 0.7rem; font-weight: 600;
}
.status-warn {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(249,115,22,0.12); color: var(--orange);
  padding: 2px 8px; border-radius: 10px; font-size: 0.7rem; font-weight: 600;
}
.status-err {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(239,68,68,0.12); color: var(--red);
  padding: 2px 8px; border-radius: 10px; font-size: 0.7rem; font-weight: 600;
}

/* Progress card */
.import-progress-card {
  text-align: center; padding: 60px 40px;
}
.import-progress-icon {
  font-size: 3rem; color: var(--primary); margin-bottom: 20px;
}
.import-progress-card h2 { font-size: 1.4rem; margin-bottom: 8px; }
.import-progress-card p { color: var(--text2); margin-bottom: 24px; }
.import-progress-bar-wrap {
  width: 100%; height: 12px;
  background: var(--bg3); border-radius: 6px; overflow: hidden;
  margin: 16px auto; max-width: 500px;
}
.import-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 6px;
  transition: width 0.3s ease;
}
.import-progress-nums { font-size: 0.85rem; color: var(--text2); margin-top: 8px; }
.import-progress-nums span { font-weight: 700; color: var(--text); }
.import-sub-info {
  font-size: 0.78rem; color: var(--text3); margin-top: 8px;
  min-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 400px; margin-left: auto; margin-right: auto;
}

/* Done card */
.import-done-card { text-align: center; padding: 50px 40px; }
.import-done-icon {
  font-size: 4rem; color: var(--green); margin-bottom: 16px;
  animation: pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.import-done-card h2 { font-size: 1.6rem; margin-bottom: 24px; }
.import-done-stats {
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
  background: var(--bg3); border-radius: 14px; padding: 20px; margin-bottom: 8px;
}
.done-stat {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.done-stat i { font-size: 1.5rem; }
.done-stat strong { font-size: 1.4rem; font-weight: 800; color: var(--text); }
.done-stat span { font-size: 0.72rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; }

/* ===== EXPIRY BADGES ===== */
.expiry-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 600;
  margin-top: 4px;
}
.profile-expiry-badge {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 8px;
  font-size: 0.78rem; font-weight: 500;
  margin-top: 8px;
}
.tx-icon.expired { background: rgba(239,68,68,0.12); color: #ef4444; }
.tx-amount.expired { color: #ef4444; font-weight: 600; font-size: 0.9rem; }
.tx-expired-badge {
  display: inline-block;
  background: rgba(239,68,68,0.15); color: #ef4444;
  padding: 1px 6px; border-radius: 4px;
  font-size: 0.65rem; font-weight: 700;
  margin-left: 4px; vertical-align: middle;
}
.success-expiry-row { border-top: 1px dashed rgba(249,115,22,0.4) !important; margin-top: 4px; padding-top: 10px !important; }
.success-expiry-row span { color: #f97316; font-weight: 500; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-close { display: flex; }
  .menu-btn { display: flex; }
  .main-content { margin-left: 0; }
  .form-layout { grid-template-columns: 1fr; }
  .profile-header { flex-wrap: wrap; }
  .topbar { padding: 0 16px; }
  .topbar-right .enterprise-selector { display: none; }
  .pages { padding: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .profile-stats { grid-template-columns: 1fr; }
  .profile-stat { border-right: none; border-bottom: 1px solid var(--border); }
}
