/* ==================================================
   🚀 STEAMSLOT MODERN SMM PANEL v2.0
   직관적이고 깔끔한 SMM 패널 테마
================================================== */

/* ─────────────────────────────────────────────────
   [1] CSS VARIABLES (Design Tokens)
   ───────────────────────────────────────────────── */
:root {
  /* ═══ 🎨 BRAND COLORS ═══ */
  --primary: #6366F1;
  --primary-light: #818CF8;
  --primary-dark: #4F46E5;
  --primary-glow: rgba(99, 102, 241, 0.15);
  
  --secondary: #10B981;
  --secondary-light: #34D399;
  --secondary-dark: #059669;
  
  --accent: #F59E0B;
  --accent-light: #FBBF24;
  --accent-dark: #D97706;
  
  /* ═══ 🌙 NEUTRAL COLORS ═══ */
  --bg-dark: #0F172A;
  --bg-card: #1E293B;
  --bg-hover: #334155;
  --bg-input: #1E293B;
  --bg-light: #F8FAFC;
  --bg-surface: #FFFFFF;
  
  --text-white: #F8FAFC;
  --text-light: #E2E8F0;
  --text-muted: #94A3B8;
  --text-dark: #64748B;
  --text-darker: #1E293B;
  
  --border-light: rgba(255, 255, 255, 0.1);
  --border-dark: #334155;
  
  /* ═══ 📊 STATUS COLORS ═══ */
  --success: #10B981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --warning: #F59E0B;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --error: #EF4444;
  --error-bg: rgba(239, 68, 68, 0.1);
  --info: #3B82F6;
  --info-bg: rgba(59, 130, 246, 0.1);
  --pending: #8B5CF6;
  --pending-bg: rgba(139, 92, 246, 0.1);
  
  /* ═══ 📐 SPACING ═══ */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  
  /* ═══ 🔲 BORDER RADIUS ═══ */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  /* ═══ 🌫️ SHADOWS ═══ */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.25);
  --shadow-glow-success: 0 0 20px rgba(16, 185, 129, 0.25);
  
  /* ═══ ⚡ TRANSITIONS ═══ */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* ═══ 📝 TYPOGRAPHY ═══ */
  --font-sans: 'Inter', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
}

/* ─────────────────────────────────────────────────
   [2] FONT IMPORTS
   ───────────────────────────────────────────────── */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ─────────────────────────────────────────────────
   [3] BASE STYLES
   ───────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-darker);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* ─────────────────────────────────────────────────
   [4] NAVBAR - 상단 네비게이션
   ───────────────────────────────────────────────── */
.navbar {
  background: var(--bg-dark);
  border: none;
  border-radius: 0;
  margin-bottom: 0;
  min-height: 64px;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-default {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #162032 100%);
  border-bottom: 1px solid var(--border-light);
}

.navbar-default .navbar-brand {
  color: var(--text-white);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--text-xl);
  padding: var(--space-4) var(--space-5);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.navbar-default .navbar-brand:hover {
  color: var(--primary-light);
  transform: translateY(-1px);
}

.navbar-default .navbar-brand img {
  height: 32px;
  width: auto;
  border-radius: var(--radius-sm);
}

.navbar-default .navbar-nav > li > a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: var(--text-sm);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  margin: var(--space-1);
  transition: all var(--transition-fast);
  position: relative;
}

.navbar-default .navbar-nav > li > a:hover {
  color: var(--text-white);
  background: var(--bg-hover);
}

.navbar-default .navbar-nav > li > a:focus {
  background: transparent;
}

.navbar-default .navbar-nav > li.active > a,
.navbar-default .navbar-nav > li.active > a:hover,
.navbar-default .navbar-nav > li.active > a:focus {
  color: var(--primary-light);
  background: var(--primary-glow);
}

.navbar-default .navbar-nav > li.active > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

/* Navbar Right Icons */
.navbar-nav.navbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.navbar-nav.navbar-right > li > a {
  padding: var(--space-3);
  border-radius: var(--radius-md);
}

.navbar-nav.navbar-right .badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--error);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

/* ─────────────────────────────────────────────────
   [5] DROPDOWN MENUS
   ───────────────────────────────────────────────── */
.dropdown-menu {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-2);
  min-width: 200px;
  margin-top: var(--space-2);
}

.dropdown-menu > li > a {
  color: var(--text-light);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  transition: all var(--transition-fast);
}

.dropdown-menu > li > a:hover {
  background: var(--bg-hover);
  color: var(--text-white);
}

.dropdown-menu > li > a i,
.dropdown-menu > li > a .fa {
  width: 18px;
  opacity: 0.7;
}

.dropdown-menu .divider {
  background: var(--border-dark);
  margin: var(--space-2) 0;
}

/* ─────────────────────────────────────────────────
   [6] MAIN CONTENT AREA
   ───────────────────────────────────────────────── */
.container-fluid {
  padding: var(--space-6);
  max-width: 1600px;
  margin: 0 auto;
}

.main-content {
  min-height: calc(100vh - 64px);
}

/* Page Header */
.page-header {
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.page-header h1,
.page-header .page-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-darker);
  margin-bottom: var(--space-2);
}

.page-header .page-subtitle {
  font-size: var(--text-base);
  color: var(--text-dark);
}

/* ─────────────────────────────────────────────────
   [7] CARDS & PANELS
   ───────────────────────────────────────────────── */
.panel {
  background: var(--bg-surface);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-6);
  transition: all var(--transition-normal);
}

.panel:hover {
  box-shadow: var(--shadow-md);
}

.panel-default {
  border-color: rgba(0, 0, 0, 0.06);
}

.panel-heading {
  background: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.panel-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-darker);
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.panel-body {
  padding: var(--space-6);
}

.panel-footer {
  background: var(--bg-light);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: var(--space-4) var(--space-6);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Card Variants */
.card {
  background: var(--bg-surface);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition-normal);
}

.card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────────────
   [8] BUTTONS
   ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.5;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Primary Button */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
  color: white;
}

.btn-primary:active {
  transform: translateY(0);
}

/* Success Button */
.btn-success {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  color: white;
  border-color: var(--secondary);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-success:hover {
  background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
  color: white;
}

/* Warning Button */
.btn-warning {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
  border-color: var(--accent);
}

.btn-warning:hover {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  transform: translateY(-2px);
  color: white;
}

/* Danger Button */
.btn-danger {
  background: linear-gradient(135deg, var(--error) 0%, #DC2626 100%);
  color: white;
  border-color: var(--error);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #F87171 0%, var(--error) 100%);
  transform: translateY(-2px);
  color: white;
}

/* Default/Secondary Button */
.btn-default {
  background: var(--bg-light);
  color: var(--text-darker);
  border-color: rgba(0, 0, 0, 0.1);
}

.btn-default:hover {
  background: var(--bg-surface);
  border-color: var(--primary);
  color: var(--primary);
}

/* Outline Buttons */
.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: white;
}

/* Button Sizes */
.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn-xs {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
}

/* Button Groups */
.btn-group .btn {
  border-radius: 0;
}

.btn-group .btn:first-child {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.btn-group .btn:last-child {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* ─────────────────────────────────────────────────
   [9] FORM ELEMENTS
   ───────────────────────────────────────────────── */
.form-group {
  margin-bottom: var(--space-5);
}

.form-group label,
.control-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: var(--space-2);
}

.form-control {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--text-darker);
  background: var(--bg-surface);
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control:disabled {
  background: var(--bg-light);
  cursor: not-allowed;
  opacity: 0.6;
}

/* Select */
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  background-size: 18px;
  padding-right: var(--space-10);
}

/* Textarea */
textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Input Group */
.input-group {
  display: flex;
  align-items: stretch;
}

.input-group .form-control {
  flex: 1;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.input-group-addon,
.input-group-btn .btn {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.input-group-addon {
  display: flex;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-light);
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-left: none;
  color: var(--text-dark);
  font-size: var(--text-sm);
}

/* Checkbox & Radio */
.checkbox,
.radio {
  margin-bottom: var(--space-3);
}

.checkbox label,
.radio label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  font-weight: 400;
}

.checkbox input[type="checkbox"],
.radio input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Help Text */
.help-block {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-2);
}

/* Validation States */
.has-error .form-control {
  border-color: var(--error);
}

.has-error .form-control:focus {
  box-shadow: 0 0 0 4px var(--error-bg);
}

.has-error .help-block,
.has-error .control-label {
  color: var(--error);
}

.has-success .form-control {
  border-color: var(--success);
}

.has-success .form-control:focus {
  box-shadow: 0 0 0 4px var(--success-bg);
}

/* ─────────────────────────────────────────────────
   [10] TABLES
   ───────────────────────────────────────────────── */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.table thead th {
  background: var(--bg-light);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
  border-bottom: 2px solid rgba(0, 0, 0, 0.06);
  white-space: nowrap;
}

.table thead th:first-child {
  border-radius: var(--radius-lg) 0 0 0;
}

.table thead th:last-child {
  border-radius: 0 var(--radius-lg) 0 0;
}

.table tbody td {
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  color: var(--text-darker);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  vertical-align: middle;
}

.table tbody tr {
  transition: all var(--transition-fast);
}

.table tbody tr:hover {
  background: var(--bg-light);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table tbody tr:last-child td:first-child {
  border-radius: 0 0 0 var(--radius-lg);
}

.table tbody tr:last-child td:last-child {
  border-radius: 0 0 var(--radius-lg) 0;
}

/* Striped Table */
.table-striped tbody tr:nth-child(odd) {
  background: rgba(0, 0, 0, 0.01);
}

.table-striped tbody tr:nth-child(odd):hover {
  background: var(--bg-light);
}

/* Bordered Table */
.table-bordered {
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.table-bordered th,
.table-bordered td {
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Responsive Table */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.table-responsive .table {
  margin-bottom: 0;
}

/* ─────────────────────────────────────────────────
   [11] STATUS BADGES & LABELS
   ───────────────────────────────────────────────── */
.label,
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.label-default,
.badge-default {
  background: var(--bg-light);
  color: var(--text-dark);
}

.label-primary,
.badge-primary {
  background: var(--primary-glow);
  color: var(--primary);
}

.label-success,
.badge-success {
  background: var(--success-bg);
  color: var(--success);
}

.label-warning,
.badge-warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.label-danger,
.badge-danger {
  background: var(--error-bg);
  color: var(--error);
}

.label-info,
.badge-info {
  background: var(--info-bg);
  color: var(--info);
}

/* Status dot */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: var(--space-2);
}

.status-dot.active {
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.status-dot.pending {
  background: var(--warning);
  box-shadow: 0 0 8px var(--warning);
}

.status-dot.error {
  background: var(--error);
  box-shadow: 0 0 8px var(--error);
}

/* ─────────────────────────────────────────────────
   [12] ALERTS & NOTIFICATIONS
   ───────────────────────────────────────────────── */
.alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
  border: none;
  font-size: var(--text-sm);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.alert-success {
  background: var(--success-bg);
  color: var(--secondary-dark);
  border-left: 4px solid var(--success);
}

.alert-info {
  background: var(--info-bg);
  color: #1E40AF;
  border-left: 4px solid var(--info);
}

.alert-warning {
  background: var(--warning-bg);
  color: var(--accent-dark);
  border-left: 4px solid var(--warning);
}

.alert-danger {
  background: var(--error-bg);
  color: #B91C1C;
  border-left: 4px solid var(--error);
}

.alert .close {
  margin-left: auto;
  opacity: 0.5;
  font-size: var(--text-lg);
  line-height: 1;
  transition: opacity var(--transition-fast);
}

.alert .close:hover {
  opacity: 1;
}

/* ─────────────────────────────────────────────────
   [13] PAGINATION
   ───────────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: var(--space-1);
  list-style: none;
  margin: var(--space-6) 0;
  padding: 0;
}

.pagination > li > a,
.pagination > li > span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-dark);
  background: var(--bg-surface);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.pagination > li > a:hover {
  background: var(--bg-light);
  border-color: var(--primary);
  color: var(--primary);
}

.pagination > .active > a,
.pagination > .active > a:hover,
.pagination > .active > span {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.pagination > .disabled > a,
.pagination > .disabled > span {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ─────────────────────────────────────────────────
   [14] MODALS
   ───────────────────────────────────────────────── */
.modal-content {
  background: var(--bg-surface);
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.modal-header {
  background: var(--bg-light);
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-darker);
  margin: 0;
}

.modal-header .close {
  font-size: var(--text-2xl);
  color: var(--text-muted);
  opacity: 0.7;
  transition: all var(--transition-fast);
  padding: 0;
  background: none;
  border: none;
}

.modal-header .close:hover {
  opacity: 1;
  color: var(--text-darker);
}

.modal-body {
  padding: var(--space-6);
}

.modal-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
}

.modal-backdrop.in {
  opacity: 0.6;
  background: var(--bg-dark);
}

/* ─────────────────────────────────────────────────
   [15] SERVICE LIST (Public Services Page)
   ───────────────────────────────────────────────── */
.services-container {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.services-header {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1a2744 100%);
  padding: var(--space-4) var(--space-6);
  display: grid;
  grid-template-columns: 60px 2fr 1fr 1fr 1fr 2fr;
  gap: var(--space-4);
  align-items: center;
}

.services-header > div {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.service-row {
  display: grid;
  grid-template-columns: 60px 2fr 1fr 1fr 1fr 2fr;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  align-items: start;
  transition: all var(--transition-fast);
}

.service-row:hover {
  background: var(--bg-light);
}

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

.service-id {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
}

.service-name {
  font-weight: 600;
  color: var(--text-darker);
  margin-bottom: var(--space-2);
  font-size: var(--text-base);
}

.service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.service-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  color: var(--text-dark);
}

.service-tag i {
  font-size: 10px;
}

.service-price {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--primary);
}

.service-description {
  font-size: var(--text-sm);
  color: var(--text-dark);
  line-height: 1.6;
}

.service-description .note {
  margin-top: var(--space-3);
  padding: var(--space-3);
  background: var(--warning-bg);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
}

/* ─────────────────────────────────────────────────
   [16] ORDER FORM
   ───────────────────────────────────────────────── */
.order-form-container {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  margin: 0 auto;
}

.order-form-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-darker);
  margin-bottom: var(--space-6);
  text-align: center;
}

.order-summary {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-top: var(--space-6);
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--text-dark);
}

.order-summary-row.total {
  border-top: 2px solid rgba(0, 0, 0, 0.06);
  margin-top: var(--space-3);
  padding-top: var(--space-4);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-darker);
}

.order-summary-row.total .value {
  color: var(--primary);
  font-size: var(--text-2xl);
}

/* ─────────────────────────────────────────────────
   [17] STATS CARDS (Dashboard)
   ───────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-card.success::before {
  background: var(--success);
}

.stat-card.warning::before {
  background: var(--warning);
}

.stat-card.danger::before {
  background: var(--error);
}

.stat-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  font-size: var(--text-xl);
}

.stat-icon.primary {
  background: var(--primary-glow);
  color: var(--primary);
}

.stat-icon.success {
  background: var(--success-bg);
  color: var(--success);
}

.stat-icon.warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.stat-icon.danger {
  background: var(--error-bg);
  color: var(--error);
}

.stat-value {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-darker);
  line-height: 1.2;
  margin-bottom: var(--space-1);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
}

.stat-change {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  margin-top: var(--space-3);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
}

.stat-change.positive {
  background: var(--success-bg);
  color: var(--success);
}

.stat-change.negative {
  background: var(--error-bg);
  color: var(--error);
}

/* ─────────────────────────────────────────────────
   [18] SEARCH & FILTERS
   ───────────────────────────────────────────────── */
.search-box {
  position: relative;
  max-width: 400px;
}

.search-box input {
  width: 100%;
  padding: var(--space-3) var(--space-4) var(--space-3) var(--space-10);
  background: var(--bg-surface);
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.search-box .search-icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-6);
}

.filter-btn {
  padding: var(--space-2) var(--space-4);
  background: var(--bg-surface);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--text-dark);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ─────────────────────────────────────────────────
   [19] FOOTER
   ───────────────────────────────────────────────── */
.footer {
  background: var(--bg-light);
  padding: var(--space-6) 0;
  margin-top: auto;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--text-darker);
}

.footer-logo img {
  height: 24px;
}

.footer-links {
  display: flex;
  gap: var(--space-6);
}

.footer-links a {
  color: var(--text-dark);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-copyright {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ─────────────────────────────────────────────────
   [20] UTILITY CLASSES
   ───────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--error) !important; }
.text-muted { color: var(--text-muted) !important; }

.bg-primary { background-color: var(--primary) !important; }
.bg-success { background-color: var(--success) !important; }
.bg-warning { background-color: var(--warning) !important; }
.bg-danger { background-color: var(--error) !important; }

.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: var(--space-2) !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mt-6 { margin-top: var(--space-6) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: var(--space-2) !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mb-6 { margin-bottom: var(--space-6) !important; }

.p-0 { padding: 0 !important; }
.p-4 { padding: var(--space-4) !important; }
.p-6 { padding: var(--space-6) !important; }

.d-flex { display: flex !important; }
.d-block { display: block !important; }
.d-none { display: none !important; }

.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

.w-100 { width: 100% !important; }
.rounded { border-radius: var(--radius-md) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.shadow { box-shadow: var(--shadow-md) !important; }

/* ─────────────────────────────────────────────────
   [21] ANIMATIONS
   ───────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-fadeIn { animation: fadeIn 0.3s ease-out; }
.animate-slideIn { animation: slideInLeft 0.3s ease-out; }
.animate-pulse { animation: pulse 2s infinite; }
.animate-spin { animation: spin 1s linear infinite; }

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.04) 0%,
    rgba(0, 0, 0, 0.08) 50%,
    rgba(0, 0, 0, 0.04) 100%
  );
  background-size: 200% 100%;
  animation: skeleton 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─────────────────────────────────────────────────
   [22] RESPONSIVE DESIGN
   ───────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .services-header,
  .service-row {
    grid-template-columns: 50px 2fr 1fr 1fr 1fr 1.5fr;
  }
}

@media (max-width: 992px) {
  .container-fluid {
    padding: var(--space-4);
  }
  
  .services-header,
  .service-row {
    grid-template-columns: 1fr 1fr;
  }
  
  .service-description {
    grid-column: 1 / -1;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar-default .navbar-nav {
    background: var(--bg-card);
    margin: 0 calc(var(--space-4) * -1);
    padding: var(--space-3);
    border-top: 1px solid var(--border-dark);
  }
  
  .navbar-default .navbar-nav > li > a {
    padding: var(--space-3) var(--space-4);
    margin: var(--space-1) 0;
  }
  
  .services-header {
    display: none;
  }
  
  .service-row {
    grid-template-columns: 1fr;
    gap: var(--space-3);
    padding: var(--space-5);
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .container-fluid {
    padding: var(--space-3);
  }
  
  .panel-body {
    padding: var(--space-4);
  }
  
  .order-form-container {
    padding: var(--space-5);
  }
  
  .btn-group {
    flex-direction: column;
  }
  
  .btn-group .btn {
    border-radius: var(--radius-md);
    margin-bottom: var(--space-2);
  }
}

/* ─────────────────────────────────────────────────
   [23] DARK MODE SUPPORT (Optional)
   ───────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  body.auto-dark {
    --bg-light: #0F172A;
    --bg-surface: #1E293B;
    --text-darker: #F8FAFC;
    --text-dark: #E2E8F0;
    --text-muted: #94A3B8;
  }
}

/* Manual Dark Mode Toggle */
body.dark-mode {
  --bg-light: #0F172A;
  --bg-surface: #1E293B;
  --bg-hover: #334155;
  --text-darker: #F8FAFC;
  --text-dark: #E2E8F0;
  --text-muted: #94A3B8;
  --border-dark: rgba(255, 255, 255, 0.1);
}

body.dark-mode .panel,
body.dark-mode .card,
body.dark-mode .table,
body.dark-mode .form-control,
body.dark-mode .modal-content {
  background: var(--bg-surface);
  border-color: var(--border-dark);
}

body.dark-mode .form-control {
  color: var(--text-light);
}

body.dark-mode .table thead th {
  background: var(--bg-dark);
}

/* ─────────────────────────────────────────────────
   [24] PRINT STYLES
   ───────────────────────────────────────────────── */
@media print {
  .navbar,
  .footer,
  .btn,
  .pagination {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .panel,
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* ─────────────────────────────────────────────────
   [25] CUSTOM SCROLLBAR
   ───────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-dark);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--text-muted) var(--bg-light);
}

/* ═══════════════════════════════════════════════════
   END OF STEAMSLOT MODERN SMM PANEL STYLES v2.0
   ═══════════════════════════════════════════════════ */