/* ============================================================
   NariTales India — Components (Luxury Dark Theme)
   Buttons, cards, badges, forms, modals, toasts, skeleton, tabs
   ============================================================ */

/* ---------- BUTTON SYSTEM ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-full);
  background-color: transparent;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: all var(--duration-fast) var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled,
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Primary Button - Gold Gradient */
.btn--primary {
  background: var(--gradient-gold);
  color: var(--text-inverse);
  box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-gold-strong);
  color: var(--text-inverse);
}

/* Secondary Button - Glass Effect */
.btn--secondary {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn--secondary:hover {
  background: var(--glass-bg-strong);
  border-color: var(--brand-gold-muted);
  color: var(--brand-gold);
}

/* Outline Button */
.btn--outline {
  background: transparent;
  color: var(--brand-gold);
  border: 1.5px solid var(--brand-gold);
}

.btn--outline:hover {
  background: var(--brand-gold);
  color: var(--text-inverse);
}

/* Ghost Button */
.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: none;
}

.btn--ghost:hover {
  background: var(--glass-bg);
  color: var(--brand-gold);
}

/* Danger Button */
.btn--danger {
  background: var(--color-error);
  color: #fff;
}

.btn--danger:hover {
  background: #c05050;
  color: #fff;
}

/* Success Button */
.btn--success {
  background: var(--color-success);
  color: #fff;
}

/* Size Variants */
.btn--sm {
  min-height: 36px;
  padding: 8px 16px;
  font-size: 0.8rem;
  border-radius: var(--radius-lg);
}

.btn--lg {
  min-height: 56px;
  padding: 18px 36px;
  font-size: 1rem;
  border-radius: var(--radius-full);
}

.btn--block {
  width: 100%;
}

.btn--icon {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
}

/* Text Button */
.btn-text {
  background: none;
  border: none;
  color: var(--brand-gold);
  font-weight: 500;
  cursor: pointer;
  padding: 8px 12px;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-out);
}

.btn-text:hover {
  background: var(--glass-bg);
  color: var(--brand-gold-light);
}

/* Link Button */
.btn-link {
  background: none;
  border: none;
  color: var(--brand-gold);
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  text-decoration: underline;
  font-size: 0.875rem;
}

.btn-link.btn-danger {
  color: var(--color-error);
}

/* Legacy Button Class Aliases (for backward compatibility) */
.btn-primary {
  background: var(--gradient-gold);
  color: var(--text-inverse);
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-gold-strong);
  color: var(--text-inverse);
}

.btn-secondary {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}
.btn-secondary:hover {
  background: var(--glass-bg-strong);
  border-color: var(--brand-gold-muted);
  color: var(--brand-gold);
}

.btn-outline {
  background: transparent;
  color: var(--brand-gold);
  border: 1.5px solid var(--brand-gold);
}
.btn-outline:hover {
  background: var(--brand-gold);
  color: var(--text-inverse);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: none;
}
.btn-ghost:hover {
  background: var(--glass-bg);
  color: var(--brand-gold);
}

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

.btn-success {
  background: var(--color-success);
  color: #fff;
}

/* Legacy Button Size Aliases */
.btn-sm {
  min-height: 36px;
  padding: 8px 16px;
  font-size: 0.8rem;
  border-radius: var(--radius-lg);
}

.btn-lg {
  min-height: 56px;
  padding: 18px 36px;
  font-size: 1rem;
  border-radius: var(--radius-full);
}

.btn-block {
  width: 100%;
}

.btn-icon {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
}

/* Legacy Button Classes */
.btn-add-cart-sml,
.btn-add-cart-full {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 10px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  flex: 1;
  transition: all var(--duration-fast) var(--ease-out);
}

.btn-add-cart-sml:hover,
.btn-add-cart-full:hover {
  background: var(--gradient-gold);
  border-color: transparent;
  color: var(--text-inverse);
  box-shadow: var(--shadow-glow);
}

.btn-buy-now-sml {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 10px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--gradient-gold);
  color: var(--text-inverse);
  cursor: pointer;
  flex: 1;
  transition: all var(--duration-fast) var(--ease-out);
  box-shadow: var(--shadow-glow);
}

.btn-buy-now-sml:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-gold-strong);
}

.btn-add-cart-full {
  min-height: 48px;
  padding: 12px 20px;
  font-size: 0.9rem;
  flex: 1;
}

.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-out-of-stock {
  background: var(--surface-sunken) !important;
  border-color: var(--border-subtle) !important;
  color: var(--text-tertiary) !important;
  box-shadow: none !important;
}

/* ---------- CARDS ---------- */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-md);
  transition: all var(--duration-base) var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-gold-muted);
}

/* ---------- BADGES ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  border: 1px solid var(--glass-border);
}

.badge--primary {
  background: var(--gradient-gold);
  color: var(--text-inverse);
  border: none;
}

.badge--gold {
  background: var(--gradient-gold);
  color: var(--text-inverse);
  border: none;
}

.badge--success {
  background: var(--color-success);
  color: #fff;
}

.badge--warning {
  background: var(--color-warning);
  color: #fff;
}

.badge--error {
  background: var(--color-error);
  color: #fff;
}

.badge--info {
  background: var(--color-info);
  color: #fff;
}

/* Product Badges */
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  background: var(--gradient-gold);
  color: var(--text-inverse);
  box-shadow: var(--shadow-md);
}

.product-badge.badge-new {
  background: linear-gradient(135deg, var(--color-success), #3a9b6d);
}

.product-badge.badge-bestseller {
  background: var(--gradient-gold);
}

.product-badge.badge-oos {
  background: var(--color-error);
}

/* Gallery Badge */
.gallery-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  background: var(--gradient-gold);
  color: var(--text-inverse);
  box-shadow: var(--shadow-md);
}

.gallery-badge.badge-new {
  background: linear-gradient(135deg, var(--color-success), #3a9b6d);
}

/* Cart Badge */
.cart-badge,
.bottom-nav-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-inverse);
  background: var(--gradient-gold);
  border-radius: var(--radius-full);
  border: 2px solid var(--surface-base);
  box-shadow: var(--shadow-sm);
}

.bottom-nav-badge {
  top: -4px;
  right: -4px;
  border-color: var(--glass-bg-strong);
}

.item-qty-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-inverse);
  background: var(--gradient-gold);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

/* ---------- FORMS ---------- */
.form-group,
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label,
.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-grid .form-field.full,
.form-field--full {
  grid-column: 1 / -1;
}

.form-field.half {
  grid-column: span 1;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon i,
.input-with-icon svg {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--brand-gold);
  pointer-events: none;
}

.input-with-icon input {
  padding-left: 44px;
}

.input-with-icon .password-toggle {
  left: auto;
  right: 14px;
  pointer-events: auto;
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-out);
}

.input-with-icon .password-toggle:hover {
  color: var(--brand-gold-light);
}

/* Filter Checkbox */
.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
}

.filter-checkbox:hover {
  background: var(--glass-bg);
}

.filter-checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.filter-checkbox .checkmark {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--surface-raised);
  position: relative;
  transition: all var(--duration-fast) var(--ease-out);
}

.filter-checkbox input:checked + .checkmark {
  background: var(--gradient-gold);
  border-color: transparent;
}

.filter-checkbox input:checked + .checkmark::after {
  content: '';
  width: 6px;
  height: 10px;
  border: solid var(--text-inverse);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.filter-checkbox .filter-label {
  font-size: 0.9rem;
  color: var(--text-primary);
}

/* Custom Checkbox */
.checkbox-custom,
.terms-checkbox .checkmark {
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--duration-fast) var(--ease-out);
}

input[type="checkbox"]:checked + .checkbox-custom,
input[type="checkbox"]:checked + .checkmark {
  background: var(--gradient-gold);
  border-color: transparent;
}

input[type="checkbox"]:checked + .checkbox-custom::after,
input[type="checkbox"]:checked + .checkmark::after {
  content: '';
  width: 6px;
  height: 10px;
  border: solid var(--text-inverse);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

/* ---------- MODALS ---------- */
.auth-modal-overlay,
.admin-modal-overlay,
.filter-overlay,
#loadingOverlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 8, 16, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-base) var(--ease-out),
              visibility var(--duration-base) var(--ease-out);
}

.auth-modal-overlay.active,
.admin-modal-overlay.active,
.filter-overlay.active,
#loadingOverlay {
  opacity: 1;
  visibility: visible;
}

#loadingOverlay {
  z-index: var(--z-toast);
  display: none;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-dark);
  color: var(--text-primary);
}

#loadingOverlay[style*="flex"],
#loadingOverlay[style*="block"] {
  display: flex !important;
}

.auth-modal,
.admin-modal {
  position: relative;
  background: var(--bg-dark);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: 32px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95) translateY(20px);
  transition: transform var(--duration-base) var(--ease-spring);
}

.auth-modal-overlay.active .auth-modal,
.admin-modal-overlay.active .admin-modal {
  transform: scale(1) translateY(0);
}

.modal-close-btn,
.admin-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.modal-close-btn:hover,
.admin-modal-close:hover {
  background: var(--glass-bg);
  color: var(--brand-gold);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.modal-text {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* ---------- TOASTS ---------- */
.toast-container {
  position: fixed;
  top: 80px;
  right: 16px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  background: var(--bg-dark);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--brand-gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  min-width: 300px;
  color: var(--text-primary);
}

.toast.toast-success {
  border-left-color: var(--color-success);
}

.toast.toast-error {
  border-left-color: var(--color-error);
}

.toast.toast-warning {
  border-left-color: var(--color-warning);
}

.toast.toast-info {
  border-left-color: var(--color-info);
}

.toast i,
.toast svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--brand-gold);
}

.toast.toast-success i,
.toast.toast-success svg {
  color: var(--color-success);
}

.toast.toast-error i,
.toast.toast-error svg {
  color: var(--color-error);
}

.toast.toast-warning i,
.toast.toast-warning svg {
  color: var(--color-warning);
}

.toast.toast-info i,
.toast.toast-info svg {
  color: var(--color-info);
}

.toast-body {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2px;
  color: var(--text-primary);
}

.toast-message {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  transition: all var(--duration-fast) var(--ease-out);
}

.toast-close:hover {
  background: var(--glass-bg);
  color: var(--text-primary);
}

/* Toast Animation States */
.toast {
  opacity: 0;
  transform: translateX(120%);
  transition: opacity var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
}

.toast.toast-visible {
  opacity: 1;
  transform: translateX(0);
}

.toast.toast-leaving {
  opacity: 0;
  transform: translateX(120%);
}

/* ---------- TABS ---------- */
.tab-nav {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 28px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tab-nav::-webkit-scrollbar { display: none; }

.tab-nav-btn {
  padding: 14px 20px;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-tertiary);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: all var(--duration-fast) var(--ease-out);
}

.tab-nav-btn::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--brand-gold);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transition: transform var(--duration-base) var(--ease-out);
}

.tab-nav-btn:hover {
  color: var(--text-primary);
}

.tab-nav-btn.active {
  color: var(--brand-gold);
}

.tab-nav-btn.active::after {
  transform: scaleX(1);
}

.tab-content-panel {
  display: none;
  animation: fade-in var(--duration-base) var(--ease-out);
}

.tab-content-panel.active {
  display: block;
}

.tab-content-inner {
  padding: 4px 0;
}

/* ---------- TABLES ---------- */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--glass-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.table th,
.table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.9rem;
}

.table th {
  font-weight: 600;
  color: var(--brand-gold);
  background: var(--glass-bg-strong);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.table tbody tr {
  transition: background var(--duration-fast) var(--ease-out);
}

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

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

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--glass-border);
}

.specs-table td {
  padding: 14px 8px;
}

.spec-label {
  color: var(--text-tertiary);
  font-weight: 500;
  width: 40%;
}

.spec-value {
  color: var(--text-primary);
  font-weight: 500;
}

/* ---------- ALERTS ---------- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  margin-bottom: 20px;
}

.alert i,
.alert svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.alert--success {
  background: rgba(76, 175, 130, 0.1);
  border-color: rgba(76, 175, 130, 0.3);
  color: var(--color-success);
}

.alert--error {
  background: rgba(224, 104, 104, 0.1);
  border-color: rgba(224, 104, 104, 0.3);
  color: var(--color-error);
}

.alert--warning {
  background: rgba(229, 168, 72, 0.1);
  border-color: rgba(229, 168, 72, 0.3);
  color: var(--color-warning);
}

.alert--info {
  background: rgba(91, 164, 212, 0.1);
  border-color: rgba(91, 164, 212, 0.3);
  color: var(--color-info);
}

.alert-message {
  flex: 1;
  color: var(--text-primary);
  font-size: 0.9rem;
}

/* ---------- CHIPS ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.chip:hover {
  border-color: var(--brand-gold);
  color: var(--brand-gold);
}

.chip.active {
  background: var(--gradient-gold);
  color: var(--text-inverse);
  border-color: transparent;
}

/* ---------- STAR RATING ---------- */
.rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--brand-gold);
}

.rating-stars i,
.rating-stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.star-btn {
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--text-tertiary);
  transition: color var(--duration-fast) var(--ease-out);
}

.star-btn.filled,
.star-btn:hover {
  color: var(--brand-gold);
}

.star-btn svg {
  width: 26px;
  height: 26px;
}

.star-filled {
  fill: var(--brand-gold);
  color: var(--brand-gold);
}

/* ---------- SKELETON LOADING ---------- */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--skeleton-base);
  border-radius: var(--radius-md);
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--skeleton-shimmer);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-line {
  height: 14px;
  background: var(--skeleton-base);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}

.skeleton-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--skeleton-shimmer);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-btn {
  height: 38px;
  background: var(--skeleton-base);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.skeleton-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--skeleton-shimmer);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

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

/* ---------- EMPTY STATES ---------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
}

.empty-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.empty-icon i,
.empty-icon svg {
  width: 36px;
  height: 36px;
  color: var(--text-tertiary);
}

.empty-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.empty-text {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 360px;
  margin-bottom: 24px;
}

/* ---------- LOADING SPINNER ---------- */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--glass-border);
  border-top-color: var(--brand-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ---------- FADE IN ANIMATION ---------- */
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ---------- LIFT EFFECT ---------- */
.lift {
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}

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

.lift-sm:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ---------- PRESS EFFECT ---------- */
.press:active {
  transform: scale(0.96);
}

/* ---------- PULSE GLOW ---------- */
.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(246, 226, 166, 0.4);
  }
  50% {
    box-shadow: 0 0 20px 10px rgba(246, 226, 166, 0);
  }
}
