/* ========================================
   SPACE AQUECE ZAP - CSS Global
   ======================================== */

:root {
  --primary: #6c5ce7;
  --primary-dark: #5a4bd1;
  --primary-light: #a29bfe;
  --secondary: #00cec9;
  --secondary-dark: #00b5b0;
  --accent: #fd79a8;
  --success: #00b894;
  --warning: #fdcb6e;
  --danger: #e17055;
  --dark: #2d3436;
  --dark-light: #636e72;
  --gray: #b2bec3;
  --gray-light: #dfe6e9;
  --white: #ffffff;
  --bg: #0a0a1a;
  --bg-card: #12122a;
  --bg-input: #1a1a3e;
  --bg-sidebar: #0d0d22;
  --border: #2a2a5a;
  --text: #e0e0ff;
  --text-muted: #8888aa;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --radius: 12px;
  --radius-sm: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

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

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

/* ========================================
   LOGIN / REGISTRO
   ======================================== */

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 50%, #0a0a1a 100%);
  padding: 20px;
}

.auth-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
}

.auth-box .logo {
  text-align: center;
  margin-bottom: 30px;
}

.login-logo-img {
  width: 240px;
  height: auto;
  display: inline-block;
  margin-bottom: 8px;
}

.auth-box .logo p {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 2px;
  letter-spacing: 0.3px;
}

.auth-tabs {
  display: flex;
  margin-bottom: 25px;
  border-bottom: 2px solid var(--border);
}

.auth-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  color: var(--text-muted);
  font-weight: 600;
  transition: all 0.3s;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-size: 15px;
}

.auth-tab.active {
  color: var(--primary-light);
  border-bottom-color: var(--primary);
}

.auth-tab:hover {
  color: var(--primary-light);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  width: 100%;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #00a381);
  color: white;
}

.btn-success:hover {
  box-shadow: 0 4px 15px rgba(0, 184, 148, 0.4);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger), #d35400);
  color: white;
}

.btn-warning {
  background: linear-gradient(135deg, var(--warning), #e7b800);
  color: var(--dark);
}

.btn-secondary {
  background: var(--bg-input);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.error-msg {
  background: rgba(225, 112, 85, 0.15);
  color: var(--danger);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 15px;
  display: none;
  border: 1px solid rgba(225, 112, 85, 0.3);
}

.success-msg {
  background: rgba(0, 184, 148, 0.15);
  color: var(--success);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 15px;
  display: none;
  border: 1px solid rgba(0, 184, 148, 0.3);
}

/* ========================================
   LAYOUT DO PAINEL
   ======================================== */

.dashboard {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 270px;
  background: linear-gradient(180deg, #0d0d24 0%, #0a0a1a 100%);
  border-right: 1px solid var(--border);
  padding: 0;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sidebar-logo {
  padding: 20px 22px 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.sidebar-logo-img {
  width: 180px;
  height: auto;
  display: block;
  margin-bottom: 4px;
}

.sidebar-logo small {
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.sidebar-nav {
  flex: 1;
  padding: 8px 12px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 11px 14px;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.25s;
  gap: 12px;
  border-radius: 10px;
  margin-bottom: 2px;
  border-left: none;
}

.sidebar-nav a:hover {
  background: rgba(108, 92, 231, 0.08);
  color: var(--text);
}

.sidebar-nav a.active {
  background: rgba(108, 92, 231, 0.15);
  color: var(--primary-light);
  font-weight: 600;
}

.sidebar-nav a .icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.25s;
  flex-shrink: 0;
}

.sidebar-nav a .icon i {
  font-size: 17px;
}

.sidebar-nav a:hover .icon {
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-nav a.active .icon {
  background: rgba(108, 92, 231, 0.2);
}

/* Cores nos ícones da sidebar */
.sidebar-nav a:nth-child(1) .icon { color: #a29bfe; }
.sidebar-nav a:nth-child(2) .icon { color: #00cec9; }
.sidebar-nav a:nth-child(3) .icon { color: #fd79a8; }
.sidebar-nav a:nth-child(4) .icon { color: #fdcb6e; }
.sidebar-nav a:nth-child(5) .icon { color: #74b9ff; }
.sidebar-nav a:nth-child(6) .icon { color: #00b894; }
.sidebar-nav a:nth-child(7) .icon { color: #e17055; }
.sidebar-nav a.active .icon { color: var(--primary-light); }

.sidebar-footer {
  padding: 16px 22px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
}

.sidebar-footer .user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.sidebar-footer .user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
}

.sidebar-footer .user-name {
  font-size: 13px;
  font-weight: 600;
}

.sidebar-footer .user-email {
  font-size: 11px;
  color: var(--text-muted);
}

.sidebar-footer .btn-logout {
  width: 100%;
  padding: 8px;
  background: rgba(225, 112, 85, 0.15);
  color: var(--danger);
  border: 1px solid rgba(225, 112, 85, 0.3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s;
}

.sidebar-footer .btn-logout:hover {
  background: rgba(225, 112, 85, 0.3);
}

.main-content {
  margin-left: 270px;
  flex: 1;
  padding: 30px;
  min-height: 100vh;
}

/* ========================================
   CARDS E STATS
   ======================================== */

.page-header {
  margin-bottom: 25px;
}

.page-header-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.page-header-title > i {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.18), rgba(0, 206, 201, 0.10));
  color: var(--primary-light);
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1;
}

.page-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.page-header p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 6px;
  margin-left: 56px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 25px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.3s;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.stat-card .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: rgba(108, 92, 231, 0.15);
  color: var(--primary-light);
}

.stat-card .stat-icon i {
  font-size: 20px;
}

/* Cores individuais por posição */
.stat-card:nth-child(1) .stat-icon { background: rgba(108, 92, 231, 0.15); color: #a29bfe; }
.stat-card:nth-child(2) .stat-icon { background: rgba(0, 206, 201, 0.15); color: #00cec9; }
.stat-card:nth-child(3) .stat-icon { background: rgba(0, 184, 148, 0.15); color: #00b894; }
.stat-card:nth-child(4) .stat-icon { background: rgba(253, 121, 168, 0.15); color: #fd79a8; }
.stat-card:nth-child(5) .stat-icon { background: rgba(9, 132, 227, 0.12); color: #74b9ff; }
.stat-card:nth-child(6) .stat-icon { background: rgba(253, 203, 110, 0.15); color: #fdcb6e; }
.stat-card:nth-child(7) .stat-icon { background: rgba(225, 112, 85, 0.15); color: #e17055; }

.stat-card .stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.stat-card .stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

.card-header h2 {
  font-size: 18px;
  font-weight: 600;
}

/* ========================================
   TABELA
   ======================================== */

.table-container {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

table thead {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.08), rgba(0, 206, 201, 0.05));
}

table th {
  padding: 14px 18px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 2px solid rgba(108, 92, 231, 0.2);
  white-space: nowrap;
}

table td {
  padding: 13px 18px;
  text-align: left;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

table tbody tr {
  transition: background 0.2s;
}

table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}

table tbody tr:hover {
  background: rgba(108, 92, 231, 0.06);
}

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

/* ========================================
   BADGES / STATUS
   ======================================== */

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-active,
.badge-approved,
.badge-connected {
  background: rgba(0, 184, 148, 0.15);
  color: var(--success);
}

.badge-pending,
.badge-waiting {
  background: rgba(253, 203, 110, 0.15);
  color: var(--warning);
}

.badge-expired,
.badge-rejected,
.badge-disconnected,
.badge-failed {
  background: rgba(225, 112, 85, 0.15);
  color: var(--danger);
}

.badge-available {
  background: rgba(0, 206, 201, 0.15);
  color: var(--secondary);
}

.badge-in_use {
  background: rgba(108, 92, 231, 0.15);
  color: var(--primary-light);
}

/* ========================================
   SLOTS GRID
   ======================================== */

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.slot-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.3s;
}

.slot-card:hover {
  border-color: var(--primary);
}

.slot-card .slot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.slot-card .slot-phone {
  font-size: 16px;
  font-weight: 600;
}

.slot-card .slot-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 15px;
}

.slot-card .slot-info-item {
  display: flex;
  flex-direction: column;
}

.slot-card .slot-info-item span:first-child {
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
}

.slot-card .slot-info-item span:last-child {
  font-weight: 600;
  margin-top: 2px;
}

.slot-card .slot-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.slot-card .slot-actions .btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 12px;
}

/* ========================================
   QR CODE
   ======================================== */

.qr-container {
  text-align: center;
  padding: 20px;
}

.qr-container img {
  max-width: 256px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
}

.qr-container p {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 10px;
}

/* ========================================
   MODAL
   ======================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  width: 90%;
  max-width: 500px;
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-header h3 {
  font-size: 18px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text);
}

/* ========================================
   DEPÓSITO / PIX
   ======================================== */

.pix-info {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  margin: 15px 0;
}

.pix-info .pix-key {
  font-family: monospace;
  font-size: 14px;
  color: var(--secondary);
  word-break: break-all;
  margin-top: 8px;
}

.balance-display {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.balance-display .balance-label {
  font-size: 13px;
  opacity: 0.8;
}

.balance-display .balance-value {
  font-size: 32px;
  font-weight: 700;
  margin-top: 5px;
}

/* ========================================
   PRICING CARDS
   ======================================== */

.pricing-balance-bar {
  margin-bottom: 24px;
}

.pricing-balance-inner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(0, 206, 201, 0.1));
  border: 1px solid rgba(108, 92, 231, 0.3);
  border-radius: 50px;
  padding: 10px 24px;
  font-size: 15px;
  color: var(--text);
}

.pricing-balance-inner strong {
  color: var(--success);
  font-size: 17px;
}

.pricing-balance-icon {
  font-size: 20px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.pricing-card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(18, 18, 42, 0.8) 100%);
  border: 2px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(108, 92, 231, 0.2);
}

.pricing-card.selected {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(108, 92, 231, 0.12) 0%, rgba(108, 92, 231, 0.04) 100%);
  box-shadow: 0 0 0 1px var(--primary), 0 12px 40px rgba(108, 92, 231, 0.25);
  transform: translateY(-6px);
}

.pricing-card.selected .pricing-btn {
  background: var(--primary);
  color: white;
}

/* Popular card */
.pricing-popular {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(108, 92, 231, 0.08) 0%, var(--bg-card) 100%);
}

.pricing-popular::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* Badge */
.pricing-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 14px;
  border-radius: 0 0 8px 8px;
  z-index: 2;
  white-space: nowrap;
}

.pricing-badge-best {
  background: linear-gradient(135deg, var(--success), #00a381);
}

/* Card Header */
.pricing-card-header {
  text-align: center;
  padding: 28px 12px 8px;
}

.pricing-icon {
  margin-bottom: 6px;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(108, 92, 231, 0.12);
}

.pricing-icon i {
  font-size: 26px;
  color: var(--primary-light);
}

/* Cores por plano */
.pricing-card:nth-child(1) .pricing-icon { background: rgba(253, 203, 110, 0.15); }
.pricing-card:nth-child(1) .pricing-icon i { color: #fdcb6e; }
.pricing-card:nth-child(2) .pricing-icon { background: rgba(225, 112, 85, 0.15); }
.pricing-card:nth-child(2) .pricing-icon i { color: #e17055; }
.pricing-card:nth-child(3) .pricing-icon { background: rgba(108, 92, 231, 0.15); }
.pricing-card:nth-child(3) .pricing-icon i { color: #a29bfe; }
.pricing-card:nth-child(4) .pricing-icon { background: rgba(0, 206, 201, 0.15); }
.pricing-card:nth-child(4) .pricing-icon i { color: #00cec9; }
.pricing-card:nth-child(5) .pricing-icon { background: rgba(253, 121, 168, 0.15); }
.pricing-card:nth-child(5) .pricing-icon i { color: #fd79a8; }

.pricing-plan-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Card Body */
.pricing-card-body {
  text-align: center;
  padding: 8px 16px 16px;
  flex: 1;
}

.pricing-days {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pricing-days-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1;
}

.pricing-amount {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2px;
}

.pricing-cents {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-muted);
}

.pricing-per-day {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.pricing-features {
  list-style: none;
  text-align: left;
  padding: 0;
}

.pricing-features li {
  font-size: 12px;
  color: var(--text-muted);
  padding: 4px 0;
  padding-left: 18px;
  position: relative;
}

.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--success);
  border-bottom: 2px solid var(--success);
  transform: rotate(-45deg);
}

/* Card Footer */
.pricing-card-footer {
  padding: 0 16px 16px;
}

.pricing-btn {
  width: 100%;
  padding: 10px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.pricing-btn:hover {
  border-color: var(--primary);
  background: rgba(108, 92, 231, 0.1);
  color: var(--primary-light);
}

.pricing-btn-popular {
  border-color: var(--primary);
  background: rgba(108, 92, 231, 0.1);
  color: var(--primary-light);
}

/* Checkout button */
.pricing-checkout {
  text-align: center;
}

.btn-checkout {
  background: linear-gradient(135deg, var(--success), #00a381);
  color: white;
  border: none;
  border-radius: 14px;
  padding: 16px 48px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(0, 184, 148, 0.3);
  min-width: 280px;
}

.btn-checkout:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 184, 148, 0.4);
}

.btn-checkout:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.btn-checkout:active:not(:disabled) {
  transform: translateY(0);
}

/* ========================================
   LOADING
   ======================================== */

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  min-width: 300px;
  box-shadow: var(--shadow);
  animation: slideIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--danger); }
.toast-warning { border-left: 4px solid var(--warning); }
.toast-info { border-left: 4px solid var(--primary); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .sidebar {
    width: 70px;
    padding: 10px 0;
  }

  .sidebar-logo-img,
  .sidebar-logo small,
  .sidebar-nav a span:not(.icon),
  .sidebar-footer .user-info,
  .sidebar-footer .user-name,
  .sidebar-footer .user-email {
    display: none;
  }

  .sidebar-nav {
    padding: 8px 6px;
  }

  .sidebar-nav a .icon {
    width: 38px;
    height: 38px;
  }

  .sidebar-nav a {
    justify-content: center;
    padding: 12px;
  }

  .main-content {
    margin-left: 70px;
    padding: 15px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .slots-grid {
    grid-template-columns: 1fr;
  }
}
