/* =============================================
   อาภรณ์แก้ว — Main Stylesheet
   Premium Thai-Traditional Aesthetic
   Mobile-First Responsive Design
   ============================================= */

/* === CSS Custom Properties === */
:root {
  /* Primary: Deep Purple-Gold Thai Theme */
  --primary-50: #f5f0ff;
  --primary-100: #ede5ff;
  --primary-200: #ddd0ff;
  --primary-300: #c4abff;
  --primary-400: #a87bff;
  --primary-500: #8b4ffc;
  --primary-600: #7c2df4;
  --primary-700: #6c1de0;
  --primary-800: #5a18bb;
  --primary-900: #4a1599;

  /* Gold Accent */
  --gold-50: #fff9eb;
  --gold-100: #ffefc6;
  --gold-200: #ffe099;
  --gold-300: #ffc94d;
  --gold-400: #ffb524;
  --gold-500: #f99307;
  --gold-600: #dd6d02;
  --gold-700: #b74b06;

  /* Status Colors */
  --success: #10b981;
  --success-bg: #d1fae5;
  --warning: #f59e0b;
  --warning-bg: #fef3c7;
  --danger: #ef4444;
  --danger-bg: #fee2e2;
  --info: #3b82f6;
  --info-bg: #dbeafe;

  /* Neutrals */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);

  /* Spacing */
  --container-padding: 16px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Prompt', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  background-attachment: fixed;
  color: var(--gray-800);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img { max-width: 100%; }

/* === Container === */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* === Glass Card === */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
}

.glass-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* === App Header === */
.app-header {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.app-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 2rem;
  line-height: 1;
}

.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  font-size: 1.2rem;
  color: white;
  transition: var(--transition);
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-2px);
}

.site-title {
  color: white;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.2;
}

.site-subtitle {
  color: var(--gold-400);
  font-size: 0.75rem;
  font-weight: 300;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-name {
  color: var(--gold-300);
  font-size: 0.85rem;
  font-weight: 400;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Prompt', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: var(--transition);
}

.btn:hover::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  color: white;
  box-shadow: 0 4px 16px rgba(107, 29, 224, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(107, 29, 224, 0.4);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger), #dc2626);
  color: white;
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #059669);
  color: white;
}

.btn-loader {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* === Main Content === */
.main-content {
  padding: 24px 0;
  min-height: calc(100vh - 140px);
}

/* === Login Section === */
.login-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 40px 0;
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 40px 32px;
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  display: block;
}

.login-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.login-header p {
  color: var(--gray-500);
  font-size: 0.9rem;
}

.login-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}

.admin-link {
  color: var(--primary-600);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

.admin-link:hover {
  color: var(--primary-800);
}

/* === Form === */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: 'Prompt', sans-serif;
  font-size: 0.95rem;
  color: var(--gray-800);
  background: white;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(139, 79, 252, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.form-actions .btn-outline {
  color: var(--gray-600);
  border-color: var(--gray-300);
}

.form-actions .btn-outline:hover {
  background: var(--gray-100);
}

/* === Menu Section === */
.menu-section {
  animation: slideUp 0.6s ease-out;
}

.welcome-banner {
  padding: 28px 24px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(139, 79, 252, 0.1), rgba(249, 147, 7, 0.1));
}

.welcome-text h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gray-900);
}

.welcome-text p {
  color: var(--gray-500);
  font-size: 0.9rem;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.menu-card {
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.menu-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-300);
  box-shadow: 0 12px 40px rgba(139, 79, 252, 0.15);
}

.menu-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.menu-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.menu-card p {
  font-size: 0.78rem;
  color: var(--gray-500);
  line-height: 1.4;
}

/* Info Banner */
.info-banner {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, rgba(249, 147, 7, 0.08), rgba(139, 79, 252, 0.08));
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.info-icon {
  font-size: 1.8rem;
}

.info-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-800);
}

.info-item span {
  font-size: 0.78rem;
  color: var(--gray-500);
}

.info-divider {
  width: 1px;
  height: 40px;
  background: var(--gray-200);
}

/* === Borrow Page === */
.borrow-step { margin-bottom: 24px; }

.step-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.step-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-900);
}

.step-header p {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* Suits Grid */
.suits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.suit-card {
  padding: 20px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.suit-card:hover {
  border-color: var(--primary-300);
  transform: translateY(-2px);
}

.suit-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.suit-emoji {
  font-size: 2rem;
}

.suit-code {
  font-size: 0.75rem;
  color: var(--primary-600);
  font-weight: 600;
  background: var(--primary-50);
  padding: 2px 8px;
  border-radius: 20px;
}

.suit-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
}

.suit-card p {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-bottom: 12px;
}

.suit-sizes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.size-tag {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid var(--gray-200);
  background: white;
  color: var(--gray-700);
}

.size-tag:hover {
  border-color: var(--primary-400);
  color: var(--primary-600);
}

.size-tag.selected {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  color: white;
  border-color: var(--primary-500);
}

.size-tag.out-of-stock {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

.size-qty {
  font-size: 0.65rem;
  opacity: 0.7;
}

/* Selected Suit Info */
.selected-suit {
  padding: 20px 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(139, 79, 252, 0.05), rgba(249, 147, 7, 0.05));
}

/* Deposit Options */
.deposit-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.deposit-option {
  cursor: pointer;
}

.deposit-option input { display: none; }

.deposit-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: var(--transition);
  background: white;
}

.deposit-option input:checked + .deposit-card {
  border-color: var(--primary-500);
  background: var(--primary-50);
  box-shadow: 0 0 0 4px rgba(139, 79, 252, 0.08);
}

.deposit-icon {
  font-size: 2rem;
}

.deposit-card strong {
  display: block;
  font-size: 0.9rem;
  color: var(--gray-800);
}

.deposit-amount {
  display: block;
  font-size: 0.85rem;
  color: var(--primary-600);
  font-weight: 600;
}

.deposit-card small {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 2px;
}

/* Borrow Form */
.borrow-form {
  padding: 28px 24px;
}

/* === Search Section === */
.search-section {
  padding: 32px 24px;
  margin-bottom: 24px;
}

.search-section h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.search-section p {
  color: var(--gray-500);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.search-form {
  width: 100%;
}

.search-input-group {
  display: flex;
  gap: 12px;
}

.search-input-group input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: 'Prompt', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.search-input-group input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(139, 79, 252, 0.1);
}

/* === Section Title === */
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-title h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
}

.badge {
  background: var(--primary-500);
  color: white;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* === Borrow List (Return page) === */
.borrow-item {
  padding: 20px 24px;
  margin-bottom: 12px;
  animation: slideUp 0.4s ease-out;
}

.borrow-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.borrow-item-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
}

.borrow-item-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.borrow-detail {
  font-size: 0.82rem;
}

.borrow-detail .label {
  color: var(--gray-400);
  font-size: 0.72rem;
  display: block;
}

.borrow-detail .value {
  color: var(--gray-800);
  font-weight: 500;
}

.deposit-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.deposit-badge.cash {
  background: var(--gold-100);
  color: var(--gold-700);
}

.deposit-badge.id-card {
  background: var(--info-bg);
  color: var(--info);
}

/* === Status === */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-borrowed {
  background: var(--warning-bg);
  color: var(--warning);
}

.status-returned {
  background: var(--success-bg);
  color: var(--success);
}

.status-overdue {
  background: var(--danger-bg);
  color: var(--danger);
}

/* === Condition Options (Return) === */
.condition-options {
  display: flex;
  gap: 12px;
}

.condition-option {
  cursor: pointer;
  flex: 1;
}

.condition-option input { display: none; }

.condition-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: var(--transition);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
}

.condition-card span:first-child {
  font-size: 1.5rem;
}

.condition-option input:checked + .condition-card {
  border-color: var(--primary-500);
  background: var(--primary-50);
}

/* === Data Table === */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table thead {
  background: var(--gray-50);
}

.data-table th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  border-bottom: 2px solid var(--gray-200);
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}

.data-table tbody tr {
  transition: var(--transition);
}

.data-table tbody tr:hover {
  background: var(--gray-50);
}

.history-table-wrapper {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  overflow-x: auto;
}

/* Mobile: Hide table, show cards */
.history-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-card {
  padding: 16px 20px;
}

.history-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.history-card-header strong {
  color: var(--primary-600);
  font-size: 0.85rem;
}

.history-card-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  font-size: 0.8rem;
}

.history-card-details .label {
  color: var(--gray-400);
  font-size: 0.7rem;
}

/* === Modal === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  width: 100%;
  max-width: 480px;
  padding: 36px 28px;
  text-align: center;
  animation: scaleIn 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-lg {
  max-width: 600px;
  text-align: left;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
}

.modal-card h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.modal-card p {
  color: var(--gray-500);
  font-size: 0.9rem;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--gray-100);
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--gray-200);
}

.ref-code {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  color: white;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 20px 0;
}

.modal-note {
  font-size: 0.82rem;
  color: var(--gray-400);
  margin-bottom: 24px;
}

.modal-actions {
  margin-top: 20px;
}

/* === Loading === */
.loading-spinner {
  text-align: center;
  padding: 60px 20px;
  color: white;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--primary-400);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

.loading-cell {
  text-align: center;
  padding: 40px !important;
}

.loading-cell .spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--primary-500);
}

.loading-cell p {
  color: var(--gray-400);
  font-size: 0.85rem;
}

/* === Toast === */
.toast-container {
  position: fixed;
  top: 80px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-family: 'Prompt', sans-serif;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  animation: slideInRight 0.4s ease, fadeOut 0.4s ease 3s forwards;
  max-width: 360px;
}

.toast-success {
  background: var(--success);
  color: white;
}

.toast-error {
  background: var(--danger);
  color: white;
}

.toast-info {
  background: var(--info);
  color: white;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* === Footer === */
.app-footer {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(20px);
  padding: 20px 0;
  text-align: center;
  color: var(--gray-400);
  font-size: 0.78rem;
  margin-top: 40px;
}

/* === Empty State === */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-400);
}

.empty-state span {
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
}

.empty-state p {
  font-size: 0.9rem;
}

/* =============================================
   Responsive Breakpoints
   ============================================= */

/* Mobile - default */
@media (max-width: 767px) {
  .history-table-wrapper { display: none; }
  .history-cards { display: flex; }
  .info-banner { flex-direction: column; gap: 12px; }
  .info-divider { width: 100%; height: 1px; }
  .deposit-options { grid-template-columns: 1fr; }
}

/* Tablet */
@media (min-width: 768px) {
  :root {
    --container-padding: 24px;
  }

  .container { max-width: 720px; }

  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .suits-grid {
    grid-template-columns: 1fr 1fr;
  }

  .deposit-options {
    grid-template-columns: 1fr 1fr;
  }

  .history-table-wrapper { display: block; }
  .history-cards { display: none; }
}

/* Desktop */
@media (min-width: 1024px) {
  .container { max-width: 1100px; }

  .menu-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .suits-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .login-section {
    min-height: 70vh;
  }
}
