/* ==========================================
   Devix - Main Stylesheet
   RTL Persian - Brand Color: #ee273a
   ========================================== */

:root {
  --primary: #ee273a;
  --primary-dark: #c41f2e;
  --primary-light: #ff4d5e;
  --primary-bg: #fff5f6;
  --secondary: #1a1a2e;
  --accent: #16213e;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --success: #198754;
  --warning: #ffc107;
  --danger: #dc3545;
  --info: #0dcaf0;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
  --transition: all 0.2s ease;
  --font-family: 'Vazir', 'Tahoma', 'Arial', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  direction: rtl;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; color: var(--gray-900); }
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-muted { color: var(--gray-500) !important; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-fluid { width: 100%; padding: 0 1.5rem; }

/* ---- Flexbox Utilities ---- */
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.d-none { display: none; }
.d-block { display: block; }
.d-grid { display: grid; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-end { justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.flex-column { flex-direction: column; }
.flex-1 { flex: 1; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }

/* ---- Spacing ---- */
.m-0 { margin: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.me-1 { margin-left: 0.25rem; }
.me-2 { margin-left: 0.5rem; }
.ms-1 { margin-right: 0.25rem; }
.ms-2 { margin-right: 0.5rem; }
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }

/* ---- Card ---- */
.card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.card-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-body { padding: 1.5rem; }
.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-family);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}

.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); }

.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-primary:hover { background: var(--primary); color: var(--white); }

.btn-secondary {
  background: var(--gray-600);
  color: var(--white);
  border-color: var(--gray-600);
}
.btn-secondary:hover { background: var(--gray-700); }

.btn-success {
  background: var(--success);
  color: var(--white);
  border-color: var(--success);
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
  border-color: var(--danger);
}

.btn-warning {
  background: var(--warning);
  color: var(--gray-900);
  border-color: var(--warning);
}

.btn-light {
  background: var(--gray-100);
  color: var(--gray-700);
  border-color: var(--gray-200);
}
.btn-light:hover { background: var(--gray-200); }

.btn-sm { padding: 0.3rem 0.75rem; font-size: 0.8rem; }
.btn-lg { padding: 0.75rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---- Forms ---- */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--gray-700);
  font-size: 0.9rem;
}
.form-label .required { color: var(--primary); margin-right: 2px; }

.form-control {
  width: 100%;
  padding: 0.6rem 1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-family);
  color: var(--gray-800);
  background: var(--white);
  transition: var(--transition);
  direction: rtl;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(238, 39, 58, 0.12);
}
.form-control.is-invalid { border-color: var(--danger); }
.form-control::placeholder { color: var(--gray-400); }

textarea.form-control { resize: vertical; min-height: 100px; }

select.form-control { cursor: pointer; }

.form-error {
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.form-hint { color: var(--gray-500); font-size: 0.8rem; margin-top: 0.3rem; }

/* ---- Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-primary { background: var(--primary-bg); color: var(--primary); }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }

/* ---- Alerts ---- */
.alert {
  padding: 0.9rem 1.25rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
}
.alert-success { background: #d1fae5; border-color: #6ee7b7; color: #065f46; }
.alert-danger { background: #fee2e2; border-color: #fca5a5; color: #991b1b; }
.alert-warning { background: #fef3c7; border-color: #fcd34d; color: #92400e; }
.alert-info { background: #dbeafe; border-color: #93c5fd; color: #1e40af; }

/* ---- Table ---- */
.table-wrapper { overflow-x: auto; }

table.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
table.table th, table.table td {
  padding: 0.85rem 1rem;
  text-align: right;
  border-bottom: 1px solid var(--gray-200);
  white-space: nowrap;
}
table.table th {
  font-weight: 700;
  background: var(--gray-50);
  color: var(--gray-700);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
table.table tbody tr:hover { background: var(--gray-50); }
table.table tbody tr:last-child td { border-bottom: none; }

/* ---- Pagination ---- */
.pagination {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1.5px solid var(--gray-200);
  color: var(--gray-700);
  transition: var(--transition);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* ---- Empty State ---- */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray-500);
}
.empty-state svg { width: 80px; height: 80px; opacity: 0.3; margin-bottom: 1rem; }
.empty-state h3 { color: var(--gray-600); margin-bottom: 0.5rem; font-size: 1.1rem; }
.empty-state p { font-size: 0.9rem; margin-bottom: 1.5rem; }

/* ---- Loading Spinner ---- */
.spinner {
  width: 24px; height: 24px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Dashboard Layout ---- */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 260px;
  background: var(--secondary);
  color: var(--white);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-logo {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.sidebar-logo .logo-icon {
  width: 40px; height: 40px;
  background: var(--primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 900; color: white;
}
.sidebar-logo .logo-text { font-size: 1.1rem; font-weight: 700; color: white; }
.sidebar-logo .logo-sub { font-size: 0.7rem; color: rgba(255,255,255,.5); }

.sidebar-nav { flex: 1; padding: 1rem 0; overflow-y: auto; }

.nav-section { padding: 0.5rem 1rem 0.25rem; font-size: 0.7rem; font-weight: 700;
  color: rgba(255,255,255,.35); text-transform: uppercase; letter-spacing: 0.1em; }

.nav-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  color: rgba(255,255,255,.7);
  font-size: 0.9rem;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}
.nav-item:hover { background: rgba(255,255,255,.08); color: white; }
.nav-item.active {
  background: rgba(238, 39, 58, .2);
  color: var(--white);
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--primary);
  border-radius: 0 3px 3px 0;
}
.nav-item .nav-icon { width: 20px; text-align: center; font-size: 1rem; opacity: 0.7; }
.nav-item.active .nav-icon { opacity: 1; }

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,.1);
}

/* ---- Main Content ---- */
.main-content {
  margin-right: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.topbar-title { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); }

.topbar-user {
  display: flex; align-items: center; gap: 0.75rem;
  cursor: pointer;
}
.topbar-user .avatar {
  width: 36px; height: 36px;
  background: var(--primary-bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
}
.topbar-user .user-info { text-align: right; }
.topbar-user .user-name { font-size: 0.9rem; font-weight: 600; color: var(--gray-800); }
.topbar-user .user-role { font-size: 0.75rem; color: var(--gray-500); }

.page-content { padding: 2rem 1.5rem; flex: 1; }

/* ---- Stats Cards ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--border-radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.stat-icon.red { background: var(--primary-bg); color: var(--primary); }
.stat-icon.green { background: #d1fae5; color: #065f46; }
.stat-icon.blue { background: #dbeafe; color: #1e40af; }
.stat-icon.orange { background: #fef3c7; color: #92400e; }

.stat-value { font-size: 1.8rem; font-weight: 800; color: var(--gray-900); line-height: 1; }
.stat-label { font-size: 0.85rem; color: var(--gray-500); margin-top: 0.25rem; }

/* ---- Auth Pages ---- */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-xl);
}

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}
.auth-logo .logo-box {
  width: 60px; height: 60px;
  background: var(--primary);
  border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 900; color: white;
  margin-bottom: 0.75rem;
}
.auth-logo h1 { font-size: 1.4rem; color: var(--gray-900); }
.auth-logo p { font-size: 0.875rem; color: var(--gray-500); margin-top: 0.25rem; }

.otp-inputs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 1.5rem 0;
  flex-direction: row-reverse;
}
.otp-input {
  width: 48px; height: 56px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  border: 2px solid var(--gray-300);
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
  font-family: var(--font-family);
}
.otp-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(238,39,58,.12); outline: none; }

/* ---- Product Cards ---- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--border-radius);
  border: 1.5px solid var(--gray-200);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--primary); }

.product-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--primary-bg), #fff);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.product-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.product-card-title { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.5rem; }
.product-card-desc { font-size: 0.85rem; color: var(--gray-600); line-height: 1.6; flex: 1; }
.product-card-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--gray-100);
  display: flex; align-items: center; justify-content: space-between;
}
.product-price { font-size: 1.15rem; font-weight: 800; color: var(--primary); }
.product-price small { font-size: 0.75rem; font-weight: 400; color: var(--gray-500); }

/* ---- Service Status ---- */
.service-card {
  background: var(--white);
  border-radius: var(--border-radius);
  border: 1.5px solid var(--gray-200);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}
.service-card:hover { box-shadow: var(--shadow); }

.service-progress {
  flex: 1;
}
.progress-bar-wrap {
  background: var(--gray-100);
  border-radius: 20px;
  height: 8px;
  overflow: hidden;
  margin-top: 0.4rem;
}
.progress-bar {
  height: 100%;
  border-radius: 20px;
  background: var(--primary);
  transition: width 0.6s ease;
}
.progress-bar.warning { background: var(--warning); }
.progress-bar.danger { background: var(--danger); }
.progress-bar.success { background: var(--success); }

/* ---- Ticket ---- */
.ticket-item {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: 1rem 1.25rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.ticket-item:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }

.ticket-badge-priority {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ticket-badge-priority.low { background: var(--gray-400); }
.ticket-badge-priority.normal { background: var(--info); }
.ticket-badge-priority.high { background: var(--warning); }
.ticket-badge-priority.urgent { background: var(--danger); }

.ticket-message {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.ticket-message.staff { flex-direction: row-reverse; }
.ticket-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
  color: var(--gray-600);
  flex-shrink: 0;
}
.ticket-avatar.staff-avatar { background: var(--primary-bg); color: var(--primary); }
.ticket-bubble {
  background: var(--gray-100);
  border-radius: var(--border-radius-sm);
  padding: 0.75rem 1rem;
  max-width: 80%;
  font-size: 0.9rem;
  line-height: 1.6;
}
.ticket-bubble.staff-bubble {
  background: var(--primary-bg);
  color: var(--gray-800);
}

/* ---- Profile Steps ---- */
.steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2rem;
}
.step {
  display: flex; align-items: center; gap: 0.5rem;
  flex: 1;
}
.step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700;
  color: var(--gray-500);
  transition: var(--transition);
  flex-shrink: 0;
}
.step.active .step-num { background: var(--primary); border-color: var(--primary); color: white; }
.step.done .step-num { background: var(--success); border-color: var(--success); color: white; }
.step-line { flex: 1; height: 2px; background: var(--gray-200); }
.step.done .step-line { background: var(--success); }

/* ---- Account Type Cards ---- */
.type-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.type-card {
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.type-card:hover { border-color: var(--primary); }
.type-card input[type="radio"] { display: none; }
.type-card.selected { border-color: var(--primary); background: var(--primary-bg); }
.type-card .type-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.type-card .type-title { font-weight: 700; color: var(--gray-800); }
.type-card .type-desc { font-size: 0.8rem; color: var(--gray-500); margin-top: 0.25rem; }

/* ---- Mobile Hamburger ---- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-content {
    margin-right: 0;
  }
  .hamburger { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .type-cards { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 1.5rem; }
  .page-content { padding: 1rem; }
  .table-wrapper { overflow-x: auto; }
  .topbar-title { font-size: 0.95rem; }
  h1 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .otp-inputs { gap: 0.35rem; }
  .otp-input { width: 42px; height: 50px; font-size: 1.2rem; }
}

/* ---- Overlay ---- */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 99;
}
.overlay.show { display: block; }

/* ---- Toast / Notifications ---- */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toast {
  background: var(--gray-900);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  animation: slideInUp 0.3s ease;
  min-width: 280px;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
@keyframes slideInUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ---- Dropdown ---- */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  z-index: 200;
  display: none;
  overflow: hidden;
}
.dropdown-menu.show { display: block; }
.dropdown-item {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  color: var(--gray-700);
  transition: var(--transition);
  cursor: pointer;
}
.dropdown-item:hover { background: var(--gray-50); color: var(--gray-900); }
.dropdown-divider { height: 1px; background: var(--gray-200); margin: 0.25rem 0; }

/* ---- Warning Banner ---- */
.warning-banner {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: var(--border-radius-sm);
  padding: 0.75rem 1rem;
  display: flex; align-items: center; gap: 0.75rem;
  color: #92400e;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* ---- Utility ---- */
.w-100 { width: 100%; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.rounded { border-radius: var(--border-radius-sm); }
.rounded-lg { border-radius: var(--border-radius); }
.shadow { box-shadow: var(--shadow); }
.border { border: 1px solid var(--gray-200); }
.overflow-hidden { overflow: hidden; }
.cursor-pointer { cursor: pointer; }
.opacity-50 { opacity: 0.5; }
.position-relative { position: relative; }
.bg-white { background: var(--white); }
.bg-light { background: var(--gray-50); }
.bg-primary { background: var(--primary); }
