/* ==================================================== */
/* FALL SPAM OTP — MAIN STYLESHEET (FULL)               */
/* ==================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
  -webkit-user-select: none;
  user-select: none;
}

button, input, textarea, select { font-family: inherit; font-size: inherit; outline: none; border: none; background: none; color: inherit; }
button { cursor: pointer; transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
button:active { transform: scale(0.96); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }

/* ================ VARIABEL TEMA ================ */
body.theme-default {
  --bg-primary: #F0F4FF; --bg-secondary: #E4ECFF; --bg-card: #FFFFFF; --bg-card-hover: #F7FAFF;
  --bg-input: #F5F8FF; --text-primary: #0A1F44; --text-secondary: #4A5A7A; --text-tertiary: #8896B3;
  --primary: #0066FF; --primary-hover: #0052CC; --primary-soft: rgba(0, 102, 255, 0.1); --primary-glow: rgba(0, 102, 255, 0.35);
  --success: #00C853; --success-soft: rgba(0, 200, 83, 0.1);
  --danger: #FF3B3B; --danger-soft: rgba(255, 59, 59, 0.1);
  --warning: #FFB300; --warning-soft: rgba(255, 179, 0, 0.1);
  --border: #D6E0F5; --border-light: #E8EFFF;
  --shadow-sm: 0 1px 3px rgba(10, 31, 68, 0.06); --shadow-md: 0 4px 12px rgba(10, 31, 68, 0.08);
  --shadow-lg: 0 10px 30px rgba(10, 31, 68, 0.12); --shadow-primary: 0 8px 30px rgba(0, 102, 255, 0.25);
  --orb-1: rgba(0, 102, 255, 0.15); --orb-2: rgba(100, 150, 255, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.7); --glass-border: rgba(255, 255, 255, 0.9);
}

body.theme-dark {
  --bg-primary: #0A0A1F; --bg-secondary: #0F0F2A; --bg-card: #14143A; --bg-card-hover: #1A1A4A;
  --bg-input: #1A1A3F; --text-primary: #FFFFFF; --text-secondary: #A8B2D9; --text-tertiary: #6B75A3;
  --primary: #4A7DFF; --primary-hover: #6B95FF; --primary-soft: rgba(74, 125, 255, 0.15); --primary-glow: rgba(74, 125, 255, 0.45);
  --success: #00E676; --success-soft: rgba(0, 230, 118, 0.15);
  --danger: #FF5252; --danger-soft: rgba(255, 82, 82, 0.15);
  --warning: #FFC107; --warning-soft: rgba(255, 193, 7, 0.15);
  --border: #252550; --border-light: #1F1F45;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3); --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5); --shadow-primary: 0 8px 30px rgba(74, 125, 255, 0.4);
  --orb-1: rgba(74, 125, 255, 0.2); --orb-2: rgba(150, 100, 255, 0.15);
  --glass-bg: rgba(20, 20, 58, 0.7); --glass-border: rgba(74, 125, 255, 0.2);
}

body.theme-light {
  --bg-primary: #FFFFFF; --bg-secondary: #F8FAFF; --bg-card: #FFFFFF; --bg-card-hover: #F5F8FF;
  --bg-input: #F5F8FF; --text-primary: #1A2332; --text-secondary: #5A6478; --text-tertiary: #9AA3B8;
  --primary: #0066FF; --primary-hover: #0052CC; --primary-soft: rgba(0, 102, 255, 0.08); --primary-glow: rgba(0, 102, 255, 0.25);
  --success: #00A844; --success-soft: rgba(0, 168, 68, 0.1);
  --danger: #E63946; --danger-soft: rgba(230, 57, 70, 0.1);
  --warning: #F4A100; --warning-soft: rgba(244, 161, 0, 0.1);
  --border: #E4E8F0; --border-light: #F0F3FA;
  --shadow-sm: 0 1px 3px rgba(26, 35, 50, 0.04); --shadow-md: 0 4px 12px rgba(26, 35, 50, 0.06);
  --shadow-lg: 0 10px 30px rgba(26, 35, 50, 0.08); --shadow-primary: 0 8px 30px rgba(0, 102, 255, 0.2);
  --orb-1: rgba(0, 102, 255, 0.08); --orb-2: rgba(100, 150, 255, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.85); --glass-border: rgba(255, 255, 255, 0.95);
}

/* ================ BACKGROUND ================ */
.bg-video { position: fixed; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0.25; }
body.theme-dark .bg-video { opacity: 0.35; }
body.theme-light .bg-video { opacity: 0.15; }
.bg-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 20% 20%, var(--orb-1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, var(--orb-2) 0%, transparent 50%); }

/* ================ INTRO ================ */
.intro-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #000; z-index: 99999; display: flex; justify-content: center; align-items: center; transition: opacity 0.8s; }
.intro-overlay.fade-out { opacity: 0; pointer-events: none; }
.intro-video { width: 100%; height: 100%; object-fit: contain; }
.skip-intro-btn { position: absolute; top: 20px; right: 20px; padding: 10px 20px; background: rgba(0, 102, 255, 0.9); color: #fff; font-weight: 700; font-size: 12px; letter-spacing: 2px; border-radius: 30px; z-index: 10; backdrop-filter: blur(10px); }
.skip-intro-btn:hover { background: #0052CC; transform: scale(1.05); }
.intro-progress { position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background: rgba(255, 255, 255, 0.1); }
.intro-progress-fill { height: 100%; background: linear-gradient(90deg, #0066FF, #4A7DFF); width: 0%; transition: width 0.3s linear; }

/* ================ AUDIO (SWIPE) ================ */
.audio-control {
  position: fixed; top: 15px; left: 15px; display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 30px; backdrop-filter: blur(20px); z-index: 1000; box-shadow: var(--shadow-md);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}
.audio-control.hidden-slide { transform: translateX(-120%); opacity: 0; pointer-events: none; }
.audio-handle {
  position: fixed; top: 50%; left: 0; transform: translateY(-50%);
  width: 14px; height: 60px; background: var(--primary);
  border-radius: 0 10px 10px 0; z-index: 1001; cursor: pointer;
  opacity: 0.4; transition: opacity 0.3s, width 0.3s;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 15px var(--primary-glow);
}
.audio-handle:hover { opacity: 0.9; width: 20px; }
.audio-handle::after { content: ''; width: 2px; height: 20px; background: rgba(255, 255, 255, 0.7); border-radius: 2px; }
body[data-page="login"] .audio-control, body[data-page="login"] .audio-handle,
body[data-page="banned"] .audio-control, body[data-page="banned"] .audio-handle { display: none !important; }
.audio-btn { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary); border-radius: 50%; }
.audio-btn:hover { background: var(--primary); color: #fff; }
.audio-volume { width: 70px; height: 4px; background: var(--border); border-radius: 2px; -webkit-appearance: none; appearance: none; }
.audio-volume::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; background: var(--primary); border-radius: 50%; cursor: pointer; }
.audio-volume::-moz-range-thumb { width: 14px; height: 14px; background: var(--primary); border-radius: 50%; cursor: pointer; border: none; }

/* ================ PAGE SYSTEM ================ */
.page { display: none !important; min-height: 100vh; animation: pageIn 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.page.active { display: block !important; }
@keyframes pageIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
#pageLogin.active { display: flex !important; align-items: center; justify-content: center; padding: 80px 20px 40px; }

/* ================ LOGIN ================ */
.login-container { width: 100%; max-width: 420px; animation: fadeInUp 0.6s; }
.login-logo { text-align: center; margin-bottom: 30px; }
.glitch-title {
  font-size: 2.4rem; font-weight: 900; letter-spacing: 3px;
  color: var(--text-primary); display: inline-block; margin-bottom: 8px;
  animation: glitchSlow 4s infinite;
}
@keyframes glitchSlow {
  0%, 100% { text-shadow: 0 0 10px var(--primary); transform: translate(0); }
  20% { text-shadow: -2px 0 var(--danger), 2px 0 var(--primary); transform: translate(-1px, 0.5px); }
  40% { text-shadow: 2px 0 var(--danger), -2px 0 var(--primary); transform: translate(1px, -0.5px); }
  60% { text-shadow: -1px 0 var(--primary), 1px 0 var(--danger); }
  80% { text-shadow: 1px 0 var(--primary), -1px 0 var(--danger); }
}
.login-subtitle { font-size: 12px; color: var(--text-tertiary); letter-spacing: 1px; }
.login-box { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 24px; padding: 32px 26px; backdrop-filter: blur(30px); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.login-header { text-align: center; margin-bottom: 24px; }
.login-header h2 { font-size: 22px; font-weight: 800; letter-spacing: 4px; color: var(--primary); margin-bottom: 4px; }
.login-header p { font-size: 12px; color: var(--text-tertiary); }

.input-group { margin-bottom: 18px; }
.input-group label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--text-secondary); margin-bottom: 6px; text-transform: uppercase; }
.input-group input, .input-group textarea, .input-group select {
  width: 100%; padding: 14px 16px;
  background: var(--bg-input); border: 2px solid var(--border);
  border-radius: 14px; color: var(--text-primary);
  font-size: 14px; font-weight: 500; transition: all 0.25s;
}
.input-group input:focus, .input-group textarea:focus, .input-group select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); background: var(--bg-card);
}
.input-group input::placeholder, .input-group textarea::placeholder { color: var(--text-tertiary); }
.input-group textarea { min-height: 100px; resize: vertical; font-family: inherit; }
.input-password { position: relative; }
.input-password input { padding-right: 48px; }
.toggle-password { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--text-tertiary); }
.toggle-password:hover { color: var(--primary); background: var(--primary-soft); }

.btn-primary {
  width: 100%; padding: 15px 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff; font-weight: 700; font-size: 14px; letter-spacing: 2px;
  border-radius: 14px; box-shadow: var(--shadow-primary);
  position: relative; overflow: hidden;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px var(--primary-glow); }
.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.btn-secondary {
  width: 100%; padding: 15px 20px;
  background: var(--bg-input); color: var(--text-primary);
  font-weight: 700; font-size: 14px; letter-spacing: 2px;
  border-radius: 14px; border: 2px solid var(--border);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-loading { display: inline-block; animation: pulse 1s infinite; }

.login-footer { text-align: center; margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--border); }
.login-footer p { font-size: 12px; color: var(--text-tertiary); margin-bottom: 4px; }
.link-dev { color: var(--primary); font-weight: 700; cursor: pointer; }
.link-dev:hover { text-decoration: underline; }
.server-status { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 5px 14px; background: var(--success-soft); border: 1px solid var(--success); border-radius: 20px; font-size: 11px; font-weight: 700; color: var(--success); }
.server-status.offline { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.status-dot { width: 7px; height: 7px; background: currentColor; border-radius: 50%; box-shadow: 0 0 8px currentColor; animation: pulse 1.5s infinite; }
.login-info-footer { text-align: center; margin-top: 25px; font-size: 11px; color: var(--text-tertiary); letter-spacing: 1px; }
.brand { color: var(--primary); font-weight: 800; }

/* ================ HEADER ================ */
.app-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
}
.header-left, .header-right { display: flex; align-items: center; gap: 10px; }
.app-logo { font-size: 14px; font-weight: 900; letter-spacing: 2px; color: var(--primary); }
.icon-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 12px; color: var(--text-secondary); position: relative; }
.icon-btn:hover { background: var(--primary-soft); color: var(--primary); }
.notif-badge {
  position: absolute; top: 4px; right: 4px;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--danger); color: #fff;
  font-size: 10px; font-weight: 800; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  animation: pulse 1.5s infinite;
}
.header-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--primary);
  cursor: pointer; background: var(--primary-soft);
}

/* ================ MAIN ================ */
.app-main { padding: 16px; padding-bottom: 130px; max-width: 500px; margin: 0 auto; }

/* ================ FEATURE ================ */
.feature-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0 16px; margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.feature-header h2 { flex: 1; font-size: 16px; font-weight: 800; letter-spacing: 1.5px; color: var(--primary); }
.feature-back {
  padding: 8px 14px; background: var(--primary-soft);
  color: var(--primary); border-radius: 10px;
  font-weight: 700; font-size: 12px;
}
.feature-back:hover { background: var(--primary); color: #fff; }

.card { padding: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.card-title { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; color: var(--primary); text-transform: uppercase; margin-bottom: 14px; }
.log-box {
  font-family: 'Courier New', monospace;
  font-size: 12px; max-height: 300px; min-height: 100px;
  overflow-y: auto; background: rgba(0, 0, 0, 0.3);
  padding: 12px; border-radius: 10px;
  color: #00ff88; line-height: 1.6;
  white-space: pre-wrap; word-break: break-word;
}

/* ================ WELCOME ================ */
.welcome-card {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px; background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  border-radius: 20px; color: #fff; margin-bottom: 16px;
  box-shadow: var(--shadow-primary);
}
.welcome-text h2 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.welcome-text p { font-size: 11px; opacity: 0.85; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; }
.welcome-clock { text-align: right; }
.clock-digital { font-size: 22px; font-weight: 900; font-family: 'Courier New', monospace; letter-spacing: 1px; }
.clock-date { font-size: 10px; opacity: 0.85; margin-top: 2px; }

/* ================ STATS ================ */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.stat-card {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.stat-card:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: var(--shadow-md); }
.stat-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary);
  border-radius: 12px;
}
.stat-info { flex: 1; min-width: 0; }
.stat-label { font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--text-tertiary); text-transform: uppercase; margin-bottom: 2px; }
.stat-value { font-size: 20px; font-weight: 900; color: var(--primary); line-height: 1.1; }

/* ================ INFO ================ */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.info-card { padding: 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-sm); }
.info-card-wide { grid-column: 1 / -1; }
.info-label { font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--text-tertiary); text-transform: uppercase; margin-bottom: 6px; }
.info-value { font-size: 15px; font-weight: 800; color: var(--text-primary); }
.info-value.status-online { color: var(--success); }
.info-value.status-offline { color: var(--danger); }
.info-sub { font-size: 11px; color: var(--text-tertiary); }
.top-spammer { list-style: none; padding: 0; }
.top-spammer li { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13px; border-bottom: 1px solid var(--border-light); }
.top-spammer li:last-child { border-bottom: none; }
.top-spammer li .rank {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary);
  font-size: 11px; font-weight: 800; border-radius: 50%;
  flex-shrink: 0;
}
.top-spammer li .uname { flex: 1; font-weight: 700; }
.top-spammer li .count { font-size: 11px; font-weight: 700; color: var(--primary); }
.top-spammer .loading-item { justify-content: center; color: var(--text-tertiary); font-style: italic; }
.dev-card { padding: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; text-align: center; }
.dev-label { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: var(--text-tertiary); text-transform: uppercase; margin-bottom: 6px; }
.dev-value { font-size: 16px; font-weight: 800; color: var(--primary); margin-bottom: 12px; }
.dev-link {
  display: inline-block; padding: 10px 24px;
  background: var(--primary-soft); color: var(--primary);
  border: 1.5px solid var(--primary); border-radius: 30px;
  font-size: 12px; font-weight: 700;
}
.dev-link:hover { background: var(--primary); color: #fff; }

/* ================ SIDE MENU ================ */
.side-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px); z-index: 1400; }
.side-menu {
  position: fixed; top: 0; left: -340px;
  width: 320px; max-width: 88vw; height: 100%;
  background: var(--bg-card); border-right: 1px solid var(--border);
  z-index: 1500; display: flex; flex-direction: column;
  transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.3);
}
.side-menu.open { left: 0; }
.side-menu-header {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 18px; border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--primary-soft), transparent);
  position: relative;
}
.side-avatar {
  width: 54px; height: 54px; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--primary);
  flex-shrink: 0; background: var(--primary-soft);
}
.side-user-info { flex: 1; min-width: 0; }
.side-username-row { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
#sideUsername { font-size: 15px; font-weight: 800; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.verified-badge {
  padding: 2px 7px; background: linear-gradient(135deg, #0066FF, #4A7DFF);
  color: #fff; font-size: 8px; font-weight: 800; border-radius: 8px;
}
.side-role-badge {
  display: inline-block; padding: 3px 10px;
  font-size: 9px; font-weight: 800; letter-spacing: 1.5px;
  border-radius: 10px; text-transform: uppercase;
}
.role-member { background: linear-gradient(135deg, #8896B3, #A8B2D9); color: #fff; }
.role-reseller { background: linear-gradient(135deg, #0088FF, #00AAFF); color: #fff; }
.role-developer { background: linear-gradient(135deg, #FFB300, #FF8800); color: #fff; box-shadow: 0 0 15px rgba(255,179,0,0.4); }
.side-close-btn {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--primary-soft);
  color: var(--primary); font-weight: 700; font-size: 12px;
}
.side-close-btn:hover { background: var(--danger-soft); color: var(--danger); }
.side-menu-nav { flex: 1; overflow-y: auto; padding: 12px 10px 20px; }
.side-menu-section {
  padding: 14px 12px 6px;
  font-size: 10px; font-weight: 800; letter-spacing: 2px;
  color: var(--text-tertiary); text-transform: uppercase;
}
.side-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px;
  color: var(--text-secondary); font-size: 13px; font-weight: 600;
  margin-bottom: 2px; transition: 0.25s;
}
.side-link:hover { background: var(--primary-soft); color: var(--primary); transform: translateX(4px); }
.side-link.active { background: linear-gradient(90deg, var(--primary), var(--primary-hover)); color: #fff; box-shadow: 0 4px 15px var(--primary-glow); }
.side-link svg { flex-shrink: 0; }
.side-logout { color: var(--danger); margin-top: 10px; border-top: 1px solid var(--border-light); padding-top: 16px; }
.side-logout:hover { background: var(--danger-soft); color: var(--danger); }
.badge {
  margin-left: auto; min-width: 20px; height: 20px;
  padding: 0 6px; background: var(--danger); color: #fff;
  font-size: 10px; font-weight: 800; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  animation: pulse 1.5s infinite;
}

/* ================ CS ================ */
.cs-button {
  position: fixed; bottom: 100px; right: 18px;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff; border-radius: 50%;
  box-shadow: 0 8px 30px var(--primary-glow);
  z-index: 500; animation: pulse 2s infinite;
}
.cs-button:hover { transform: scale(1.1); }
.cs-pulse { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--primary); animation: csPulse 2s infinite; pointer-events: none; }
@keyframes csPulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.cs-popup {
  position: fixed; bottom: 170px; right: 18px;
  width: calc(100% - 36px); max-width: 340px; height: 420px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; box-shadow: var(--shadow-lg);
  z-index: 600; display: flex; flex-direction: column; overflow: hidden;
  animation: slideUpPop 0.35s;
}
@keyframes slideUpPop { from { opacity: 0; transform: translateY(30px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
.cs-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: linear-gradient(135deg, var(--primary), var(--primary-hover)); color: #fff; }
.cs-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.cs-status-dot { width: 8px; height: 8px; background: var(--success); border-radius: 50%; box-shadow: 0 0 8px var(--success); }
.cs-close-btn { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, 0.2); color: #fff; font-weight: 700; font-size: 12px; }
.cs-messages { flex: 1; padding: 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.cs-msg { padding: 10px 14px; border-radius: 14px; font-size: 13px; line-height: 1.5; max-width: 85%; word-wrap: break-word; }
.cs-msg.cs-bot { background: var(--bg-input); color: var(--text-primary); align-self: flex-start; border-bottom-left-radius: 4px; }
.cs-msg.cs-user { background: linear-gradient(135deg, var(--primary), var(--primary-hover)); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.cs-input-row { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.cs-input { flex: 1; padding: 10px 14px; background: var(--bg-input); border: 1px solid var(--border); border-radius: 20px; font-size: 13px; color: var(--text-primary); }
.cs-send-btn { width: 40px; height: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; border-radius: 50%; }

/* ================ DYNAMIC ISLAND ================ */
.dynamic-island {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px;
  padding: 8px 10px; background: rgba(20, 20, 30, 0.9);
  border: 1px solid rgba(74, 125, 255, 0.35);
  border-radius: 40px; backdrop-filter: blur(30px);
  box-shadow: 0 0 30px var(--primary-glow);
  z-index: 500; max-width: calc(100% - 24px);
  animation: islandFloat 3.5s ease-in-out infinite;
}
@keyframes islandFloat { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-4px); } }
.island-item {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: rgba(255, 255, 255, 0.7);
  transition: 0.3s;
}
.island-item:hover { color: #fff; background: rgba(74, 125, 255, 0.2); transform: scale(1.08); }
.island-item.active { color: #fff; background: var(--primary); box-shadow: 0 0 20px var(--primary-glow); }
.island-ai { background: linear-gradient(135deg, #FF6B6B, #FF0080); color: #fff; }
.island-ai:hover { background: linear-gradient(135deg, #FF0080, #FF6B6B); box-shadow: 0 0 25px rgba(255, 0, 128, 0.5); }
.island-nav { display: flex; align-items: center; gap: 4px; }

/* ================ AI PANEL ================ */
.ai-panel {
  position: fixed; bottom: 75px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 24px); max-width: 460px; height: 70vh; max-height: 540px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 24px; box-shadow: var(--shadow-lg);
  z-index: 550; display: flex; flex-direction: column; overflow: hidden;
  animation: slideUpPanel 0.4s;
}
@keyframes slideUpPanel { from { opacity: 0; transform: translateX(-50%) translateY(100%); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.ai-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: linear-gradient(135deg, #FF6B6B, #FF0080); color: #fff; }
.ai-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: 1.5px; }
.ai-dot { width: 8px; height: 8px; background: #fff; border-radius: 50%; box-shadow: 0 0 10px #fff; animation: pulse 1.5s infinite; }
.ai-close-btn { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, 0.2); color: #fff; font-weight: 700; font-size: 12px; }
.ai-messages { flex: 1; padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.ai-message { display: flex; animation: fadeInUp 0.3s ease; }
.ai-message-user { justify-content: flex-end; }
.ai-message-bot { justify-content: flex-start; }
.ai-message-content { max-width: 80%; padding: 12px 16px; border-radius: 16px; font-size: 13px; line-height: 1.6; word-wrap: break-word; }
.ai-message-user .ai-message-content { background: linear-gradient(135deg, var(--primary), var(--primary-hover)); color: #fff; border-bottom-right-radius: 4px; }
.ai-message-bot .ai-message-content { background: var(--bg-input); color: var(--text-primary); border-bottom-left-radius: 4px; }
.ai-input-row { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: var(--bg-card); }
.ai-input { flex: 1; padding: 12px 16px; background: var(--bg-input); border: 1px solid var(--border); border-radius: 24px; font-size: 13px; color: var(--text-primary); }
.ai-send-btn { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #FF6B6B, #FF0080); color: #fff; border-radius: 50%; }

/* ================ BANNED ================ */
.banned-container { min-height: 100vh; padding: 30px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; max-width: 460px; margin: 0 auto; }
.banned-icon { color: var(--danger); margin-bottom: 20px; animation: shake 0.6s ease; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.banned-title { font-size: 22px; font-weight: 900; letter-spacing: 3px; color: var(--danger); margin-bottom: 20px; }
.banned-reason-box { width: 100%; padding: 16px; background: var(--danger-soft); border: 1px solid var(--danger); border-radius: 14px; margin-bottom: 16px; text-align: left; }
.banned-label { font-size: 10px; font-weight: 800; letter-spacing: 1.5px; color: var(--danger); text-transform: uppercase; margin-bottom: 6px; }
.banned-reason { font-size: 14px; color: var(--text-primary); font-weight: 600; }
.banned-detail { width: 100%; padding: 14px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 24px; text-align: left; font-size: 12px; line-height: 1.8; }
.banding-subtitle { font-size: 15px; font-weight: 800; margin-bottom: 14px; color: var(--text-primary); }
.banding-form { width: 100%; text-align: left; }
.banding-status { width: 100%; padding: 14px; margin-top: 16px; border-radius: 14px; font-size: 13px; font-weight: 600; text-align: center; }
.banding-status.status-pending { background: var(--warning-soft); border: 1px solid var(--warning); color: var(--warning); }
.banding-status.status-accepted { background: var(--success-soft); border: 1px solid var(--success); color: var(--success); }
.banding-status.status-rejected { background: var(--danger-soft); border: 1px solid var(--danger); color: var(--danger); }

/* ================ TOAST ================ */
.toast {
  position: fixed; top: 70px; left: 50%; transform: translateX(-50%);
  max-width: calc(100% - 30px); padding: 12px 22px;
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow-lg);
  color: var(--text-primary); font-size: 13px; font-weight: 600;
  z-index: 10000; text-align: center;
  animation: toastIn 0.35s;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(-20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.toast.toast-success { border-color: var(--success); color: var(--success); }
.toast.toast-error { border-color: var(--danger); color: var(--danger); }
.toast.toast-info { border-color: var(--primary); color: var(--primary); }
.toast.toast-warning { border-color: var(--warning); color: var(--warning); }

/* ================ ANIMASI GLOBAL ================ */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.05); opacity: 0.85; } }

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

/* ================ FLOATING HIDE/SHOW ================ */
body[data-page="login"] .app-header,
body[data-page="login"] .dynamic-island,
body[data-page="login"] .cs-button,
body[data-page="login"] .cs-popup,
body[data-page="login"] .ai-panel,
body[data-page="login"] .side-menu,
body[data-page="login"] .side-menu-overlay,
body[data-page="login"] .welcome-card,
body[data-page="banned"] .app-header,
body[data-page="banned"] .dynamic-island,
body[data-page="banned"] .cs-button,
body[data-page="banned"] .cs-popup,
body[data-page="banned"] .ai-panel,
body[data-page="banned"] .side-menu,
body[data-page="banned"] .side-menu-overlay {
  display: none !important;
}

/* ==================================================== */
/* IG STORY BAR (DASHBOARD)                             */
/* ==================================================== */
.ig-story-bar {
  display: flex; gap: 14px; overflow-x: auto;
  padding: 8px 4px 16px; margin-bottom: 16px;
  scrollbar-width: none;
}
.ig-story-bar::-webkit-scrollbar { display: none; }
.ig-story-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer; flex-shrink: 0; width: 72px;
}
.ig-story-ring {
  width: 68px; height: 68px; border-radius: 50%; padding: 3px;
  background: linear-gradient(45deg, #F09433, #E6683C, #DC2743, #CC2366, #BC1888);
  background-size: 300% 300%;
  animation: igRing 3s linear infinite;
  position: relative;
}
.ig-story-ring.seen { background: var(--border); animation: none; }
.ig-story-ring img {
  width: 100%; height: 100%; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--bg-card);
}
.ig-story-ring-add {
  width: 68px; height: 68px; border-radius: 50%;
  border: 2px dashed var(--primary);
  background: var(--primary-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 26px; font-weight: 700;
}
.ig-story-name {
  font-size: 10px; color: var(--text-secondary);
  text-align: center; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; width: 100%; font-weight: 600;
}
@keyframes igRing { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }

/* ================ STORY VIEWER ================ */
.ig-story-viewer {
  position: fixed; inset: 0; background: #000; z-index: 999999;
  display: flex; flex-direction: column;
  animation: fadeIn 0.3s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.ig-story-progress {
  position: absolute; top: 12px; left: 12px; right: 12px;
  display: flex; gap: 3px; z-index: 10;
}
.ig-story-progress-item {
  flex: 1; height: 3px; background: rgba(255, 255, 255, 0.3);
  border-radius: 2px; overflow: hidden;
}
.ig-story-progress-fill { height: 100%; background: #fff; width: 0%; transition: width 0.1s linear; }
.ig-story-viewer-header {
  position: absolute; top: 30px; left: 16px; right: 16px;
  display: flex; align-items: center; gap: 10px; z-index: 10;
}
.ig-story-viewer-header img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; }
.ig-story-viewer-name { font-size: 13px; font-weight: 700; color: #fff; }
.ig-story-viewer-time { font-size: 10px; color: rgba(255, 255, 255, 0.7); }
.ig-story-viewer-close {
  background: transparent; color: #fff; font-size: 24px;
  width: 36px; height: 36px; margin-left: auto;
}
.ig-story-viewer-content {
  flex: 1; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.ig-story-viewer-content img,
.ig-story-viewer-content video {
  max-width: 100%; max-height: 100%; object-fit: contain;
}
.ig-story-nav-prev, .ig-story-nav-next {
  position: absolute; top: 0; bottom: 0; width: 30%;
  cursor: pointer; z-index: 5;
}
.ig-story-nav-prev { left: 0; }
.ig-story-nav-next { right: 0; }
.ig-story-caption {
  position: absolute; bottom: 40px; left: 20px; right: 20px;
  background: rgba(0, 0, 0, 0.6); color: #fff;
  padding: 12px 16px; border-radius: 12px;
  font-size: 13px; text-align: center;
  backdrop-filter: blur(10px); z-index: 8;
}

/* ==================================================== */
/* TIKTOK FEED                                          */
/* ==================================================== */
.tiktok-feed {
  height: calc(100vh - 140px); overflow-y: auto;
  scroll-snap-type: y mandatory; scrollbar-width: none;
  background: #000; border-radius: 16px;
}
.tiktok-feed::-webkit-scrollbar { display: none; }
.tiktok-slide {
  width: 100%; height: calc(100vh - 140px);
  scroll-snap-align: start; position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.tiktok-slide video {
  width: 100%; height: 100%; object-fit: cover; background: #000;
}
.tiktok-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, transparent 60%, rgba(0, 0, 0, 0.7) 100%);
}
.tiktok-info {
  position: absolute; left: 16px; right: 80px; bottom: 30px;
  color: #fff; z-index: 5;
}
.tiktok-username {
  font-size: 15px; font-weight: 800; margin-bottom: 6px;
  display: flex; align-items: center; gap: 6px;
}
.tiktok-verified { color: #4A7DFF; font-size: 14px; }
.tiktok-caption { font-size: 13px; line-height: 1.5; margin-bottom: 6px; }
.tiktok-sound { font-size: 11px; opacity: 0.85; }
.tiktok-actions {
  position: absolute; right: 12px; bottom: 30px;
  display: flex; flex-direction: column; gap: 20px; align-items: center;
  z-index: 5;
}
.tiktok-action {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: transparent; color: #fff; font-size: 28px;
}
.tiktok-count { font-size: 11px; font-weight: 700; }
.tiktok-upload-btn {
  position: fixed; bottom: 100px; right: 16px;
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #FF0080, #FF6B6B);
  color: #fff; border-radius: 50%;
  font-size: 28px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 30px rgba(255, 0, 128, 0.5);
  z-index: 500; animation: pulse 2s infinite;
}

/* ==================================================== */
/* IG PROFILE                                           */
/* ==================================================== */
.ig-profile-header {
  display: flex; align-items: center; gap: 20px;
  padding: 20px 0; margin-bottom: 16px;
}
.ig-profile-avatar {
  width: 90px; height: 90px; border-radius: 50%;
  border: 3px solid transparent;
  background: linear-gradient(45deg, #F09433, #E6683C, #DC2743, #CC2366, #BC1888) border-box;
  object-fit: cover; flex-shrink: 0;
}
.ig-profile-stats { flex: 1; display: flex; justify-content: space-around; }
.ig-stat { text-align: center; }
.ig-stat-value { font-size: 18px; font-weight: 900; color: var(--text-primary); }
.ig-stat-label { font-size: 11px; color: var(--text-tertiary); margin-top: 2px; }
.ig-profile-info { padding: 0 0 16px; }
.ig-profile-name {
  font-size: 16px; font-weight: 800; color: var(--text-primary);
  display: flex; align-items: center; gap: 6px; margin-bottom: 4px;
}
.ig-verified { color: #4A7DFF; font-size: 14px; }
.ig-profile-role {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--primary); margin-bottom: 8px;
}
.ig-profile-bio { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.ig-profile-telegram { font-size: 12px; color: var(--primary); margin-top: 6px; }
.ig-profile-actions { display: flex; gap: 10px; margin-bottom: 16px; }
.ig-btn-primary, .ig-btn-secondary {
  flex: 1; padding: 10px 16px; border-radius: 10px;
  font-size: 13px; font-weight: 700; transition: 0.25s;
}
.ig-btn-primary { background: var(--primary); color: #fff; }
.ig-btn-primary:hover { background: var(--primary-hover); box-shadow: 0 4px 20px var(--primary-glow); }
.ig-btn-secondary { background: var(--bg-input); color: var(--text-primary); border: 1px solid var(--border); }
.ig-btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.ig-tabs {
  display: flex; gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.ig-tab {
  flex: 1; padding: 12px; background: transparent;
  color: var(--text-tertiary); font-size: 13px; font-weight: 700;
  border-bottom: 2px solid transparent;
  text-transform: uppercase; letter-spacing: 1px;
}
.ig-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.ig-grid-empty {
  padding: 40px; text-align: center;
  color: var(--text-tertiary); font-size: 13px;
}
.ig-info-list, .ig-settings-list { display: flex; flex-direction: column; gap: 8px; }
.ig-info-row {
  display: flex; justify-content: space-between;
  padding: 12px 16px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 13px;
}
.ig-info-row span { color: var(--text-tertiary); }

/* ==================================================== */
/* QURAN                                                */
/* ==================================================== */
.quran-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 8px; border-bottom: 1px solid var(--border-light);
  cursor: pointer; transition: 0.2s;
}
.quran-item:hover { background: var(--bg-card-hover); padding-left: 14px; }
.quran-nomor {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary);
  font-weight: 800; font-size: 13px;
  border-radius: 10px;
}
.quran-info { flex: 1; min-width: 0; }
.quran-nama { font-weight: 700; font-size: 14px; color: var(--text-primary); }
.quran-arti { font-size: 11px; color: var(--text-tertiary); margin-top: 2px; }
.quran-arrow { color: var(--text-tertiary); font-size: 20px; }

.quran-detail {
  position: fixed; inset: 0; background: var(--bg-primary);
  z-index: 9999; overflow-y: auto;
  animation: pageIn 0.3s;
}
.quran-detail-header {
  position: sticky; top: 0;
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; background: var(--bg-card);
  border-bottom: 1px solid var(--border); z-index: 10;
}
.quran-detail-header button {
  padding: 8px 14px; background: var(--primary-soft);
  color: var(--primary); border-radius: 10px;
  font-weight: 700; font-size: 12px;
}
.quran-detail-header h2 { font-size: 16px; font-weight: 800; color: var(--primary); }
.quran-ayat-list { padding: 16px; max-width: 600px; margin: 0 auto; }
.quran-ayat {
  padding: 20px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 16px;
  margin-bottom: 12px;
}
.quran-ayat-nomor {
  display: inline-block; padding: 4px 10px;
  background: var(--primary); color: #fff;
  border-radius: 20px; font-size: 11px; font-weight: 800;
  margin-bottom: 12px;
}
.quran-ayat-arab {
  font-size: 22px; line-height: 2; text-align: right;
  color: var(--text-primary); font-family: 'Traditional Arabic', serif;
  margin-bottom: 12px;
}
.quran-ayat-latin {
  font-size: 13px; font-style: italic;
  color: var(--primary); margin-bottom: 8px;
}
.quran-ayat-arti {
  font-size: 13px; color: var(--text-secondary); line-height: 1.6;
}

/* ==================================================== */
/* DASHBOARD BANNER                                     */
/* ==================================================== */
.dash-banner {
  position: relative; border-radius: 16px;
  overflow: hidden; margin-bottom: 16px;
  background: #000; height: 160px;
}
.dash-banner video {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.7;
}
.dash-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.5), rgba(255, 0, 128, 0.5));
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 20px;
}
.dash-banner-text {
  font-size: 22px; font-weight: 900; color: #fff;
  letter-spacing: 3px; text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}
.dash-banner-sub {
  font-size: 11px; color: rgba(255, 255, 255, 0.9);
  letter-spacing: 2px; margin-top: 6px;
}
.dash-banner-mute {
  position: absolute; top: 10px; right: 10px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.5); color: #fff;
  font-size: 16px; backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

/* ==================================================== */
/* RESPONSIVE                                           */
/* ==================================================== */
@media (max-width: 480px) {
  .glitch-title { font-size: 1.8rem; letter-spacing: 2px; }
  .login-box { padding: 26px 20px; border-radius: 20px; }
  .stat-value { font-size: 18px; }
  .clock-digital { font-size: 18px; }
  .dynamic-island { padding: 6px 8px; gap: 3px; }
  .island-item { width: 38px; height: 38px; }
  .cs-popup { right: 12px; bottom: 160px; max-width: calc(100% - 24px); }
  .ai-panel { bottom: 68px; }
  .ig-profile-avatar { width: 72px; height: 72px; }
  .ig-story-ring { width: 60px; height: 60px; }
  .ig-story-ring-add { width: 60px; height: 60px; }
  .ig-story-item { width: 64px; }
}

@media (min-width: 768px) {
  .app-main { max-width: 600px; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ==================================================== */
/* ORDER UI + INBOX                                     */
/* ==================================================== */

.order-product-card {
  position: relative;
  padding: 18px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 16px;
  margin-bottom: 14px;
  transition: 0.3s;
  cursor: pointer;
}

.order-product-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--primary-glow);
}

.order-product-card.popular {
  border-color: var(--warning);
  box-shadow: 0 0 20px rgba(255, 179, 0, 0.3);
}

.order-popular-badge {
  position: absolute;
  top: -10px;
  right: 14px;
  padding: 4px 12px;
  background: linear-gradient(135deg, #FFB300, #FF8800);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(255, 179, 0, 0.5);
}

.order-product-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.order-product-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.order-product-price {
  font-size: 16px;
  font-weight: 900;
  color: var(--primary);
}

.order-product-specs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.order-product-specs span {
  padding: 4px 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  border-radius: 8px;
}

.order-product-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
}

.order-product-benefits li {
  padding: 4px 0;
  font-size: 12px;
  color: var(--text-secondary);
}

.order-product-benefits li::before {
  content: '✓ ';
  color: var(--success);
  font-weight: 800;
}

.order-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border-light);
}

.order-detail-row:last-child {
  border-bottom: none;
}

.order-detail-row span {
  color: var(--text-tertiary);
}

.order-detail-row b {
  color: var(--text-primary);
}

/* QRIS */
.qris-wrap {
  display: flex;
  justify-content: center;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  margin-bottom: 16px;
}

.qris-img {
  max-width: 260px;
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
}

.qris-timer {
  font-size: 20px;
  font-weight: 900;
  font-family: monospace;
  color: var(--warning);
  text-align: center;
  animation: pulse 1.5s infinite;
}

/* Status badge */
.order-status-pending,
.order-status-badge {
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-align: center;
}

.order-status-pending {
  background: var(--warning-soft);
  border: 1px solid var(--warning);
  color: var(--warning);
}

.order-status-badge {
  padding: 4px 10px;
  font-size: 10px;
}

.order-status-badge.status-pending {
  background: var(--warning-soft);
  color: var(--warning);
  border: 1px solid var(--warning);
}

.order-status-badge.status-paid {
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.order-status-badge.status-provisioned {
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid var(--success);
}

.order-status-badge.status-rejected {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid var(--danger);
}

/* INBOX */
.inbox-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: 0.25s;
}

.inbox-item:hover {
  border-color: var(--primary);
  transform: translateX(4px);
}

.inbox-item.unread {
  border-left: 4px solid var(--primary);
  background: var(--primary-soft);
}

.inbox-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border-radius: 12px;
  background: var(--bg-input);
}

.inbox-icon.inbox-success { background: var(--success-soft); }
.inbox-icon.inbox-error { background: var(--danger-soft); }
.inbox-icon.inbox-info { background: var(--primary-soft); }

.inbox-content {
  flex: 1;
  min-width: 0;
}

.inbox-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.inbox-msg {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 4px;
}

.inbox-time {
  font-size: 10px;
  color: var(--text-tertiary);
}

/* ==================================================== */
/* PRODUCT MANAGEMENT UI                                */
/* ==================================================== */

.product-manage-card {
  padding: 16px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 14px;
  margin-bottom: 12px;
  transition: 0.25s;
}

.product-manage-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.product-manage-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.product-manage-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.product-manage-spec {
  font-size: 11px;
  color: var(--text-tertiary);
  line-height: 1.6;
}

.product-popular-tag {
  padding: 3px 10px;
  background: linear-gradient(135deg, #FFB300, #FF8800);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(255, 179, 0, 0.5);
}

.product-manage-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--primary-soft);
  border-radius: 10px;
  margin-bottom: 12px;
}

.product-manage-price label {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 700;
  letter-spacing: 1px;
}

.product-manage-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pm-btn {
  flex: 1;
  min-width: 80px;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: 0.25s;
}

.pm-btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff;
}

.pm-btn-primary:hover {
  box-shadow: 0 0 20px var(--primary-glow);
  transform: translateY(-2px);
}

.pm-btn-warning {
  background: rgba(255, 179, 0, 0.15);
  color: var(--warning);
  border: 1px solid var(--warning);
}

.pm-btn-warning:hover {
  background: var(--warning);
  color: #fff;
}

.pm-btn-danger {
  background: rgba(255, 59, 59, 0.15);
  color: var(--danger);
  border: 1px solid var(--danger);
}

.pm-btn-danger:hover {
  background: var(--danger);
  color: #fff;
}

/* Admin buttons */
.admin-btn {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: 1px solid;
  background: transparent;
  transition: 0.2s;
}
.admin-btn:hover { transform: scale(1.05); }
.admin-btn-success { color: #00C853; border-color: #00C853; }
.admin-btn-success:hover { background: #00C853; color: #fff; }
.admin-btn-warning { color: #FFB300; border-color: #FFB300; }
.admin-btn-warning:hover { background: #FFB300; color: #000; }
.admin-btn-danger { color: #FF3B3B; border-color: #FF3B3B; }
.admin-btn-danger:hover { background: #FF3B3B; color: #fff; }
.admin-btn-info { color: #0066FF; border-color: #0066FF; }
.admin-btn-info:hover { background: #0066FF; color: #fff; }

.btn-danger {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #FF3B3B, #CC0000);
  color: #fff;
  font-weight: 700;
  letter-spacing: 2px;
  border-radius: 14px;
  border: none;
}
.btn-danger:hover {
  box-shadow: 0 0 25px rgba(255, 59, 59, 0.5);
}

/* Role buttons */
.role-btn {
  flex: 1;
  min-width: 90px;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 2px solid var(--border);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: 0.25s;
}

.role-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.role-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px var(--primary-glow);
  cursor: default;
}

.role-btn.active:hover {
  transform: none;
}

/* CS Quick Reply */
.cs-quick {
  padding: 8px 14px;
  background: var(--primary-soft);
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s;
}

.cs-quick:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* Filter buttons */
.filter-btn {
  padding: 8px 14px;
  background: var(--bg-input);
  border: 2px solid var(--border);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.25s;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 15px var(--primary-glow);
}