/* ============================================
   ACCOUNT PAGE CINEMATIC STYLES
   Premium Travel User Portal
   ============================================ */

/* ============================================
   CSS VARIABLES & THEME
   ============================================ */

:root {
  /* Core Colors */
  --radius: 0.625rem;
  --background: #f8f9fc;
  --foreground: #1a1a2e;
  --card: #ffffff;
  --card-foreground: #1a1a2e;
  --primary: #5b5fc7;
  --primary-foreground: #ffffff;
  --secondary: #f1f3f9;
  --muted: #f1f3f9;
  --muted-foreground: #6b7280;
  --accent: #e8e9fd;
  --border: #e5e7eb;
  --ring: #5b5fc7;
  
  /* Account Page Theme Variables */
  --account-gradient-start: #5b5fc7;
  --account-gradient-end: #8b5cf6;
  --account-accent: #5b5fc7;
  --account-accent-light: #e8e9fd;
  --account-success: #10b981;
  --account-warning: #f59e0b;
  --account-info: #3b82f6;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

.dark {
  --background: #0f0f1a;
  --foreground: #f8f9fc;
  --card: #1a1a2e;
  --card-foreground: #f8f9fc;
  --primary: #7c7ff0;
  --primary-foreground: #0f0f1a;
  --secondary: #252540;
  --muted: #252540;
  --muted-foreground: #9ca3af;
  --accent: #2d2d50;
  --border: #2d2d50;
  
  --account-gradient-start: #7c7ff0;
  --account-gradient-end: #a78bfa;
}

/* ============================================
   BASE STYLES
   ============================================ */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   ACCOUNT LAYOUT
   ============================================ */

.account-cinematic {
  min-height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fc 0%, #f0f1fa 100%);
}

.dark .account-cinematic {
  background: linear-gradient(135deg, #0f0f1a 0%, #0a0a15 100%);
}

.account-layout {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 100vh;
}

@media (min-width: 1024px) {
  .account-layout {
    flex-direction: row;
  }
}

.account-sidebar {
  width: 100%;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
}

.dark .account-sidebar {
  background: rgba(26, 26, 46, 0.8);
}

@media (min-width: 1024px) {
  .account-sidebar {
    width: 18rem;
    max-width: 20rem;
  }
}

.account-content {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
}

@media (min-width: 768px) {
  .account-content {
    padding: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .account-content {
    padding: 2rem;
  }
}

/* ============================================
   ACCOUNT MENU NAVIGATION
   ============================================ */

.account-menu {
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
}

.account-menu-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 500;
}

.account-menu-item:hover {
  background: var(--accent);
  color: var(--foreground);
  transform: translateX(4px);
}

.account-menu-item.active {
  background: linear-gradient(to right, rgba(91, 95, 199, 0.1), rgba(91, 95, 199, 0.05));
  color: var(--primary);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.account-menu-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 2rem;
  border-radius: 0 4px 4px 0;
  background: var(--primary);
}

.account-menu-item .menu-icon {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.account-menu-item:hover .menu-icon {
  transform: scale(1.1);
}

.account-menu-item .menu-text {
  flex: 1;
}

.account-menu-item .menu-badge {
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 9999px;
  background: rgba(91, 95, 199, 0.1);
  color: var(--primary);
  font-weight: 600;
}

/* ============================================
   KPI CARDS
   ============================================ */

.kpi-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  transition: all 0.5s ease;
}

.kpi-card:hover {
  box-shadow: var(--shadow-lg), 0 0 20px rgba(91, 95, 199, 0.1);
  border-color: rgba(91, 95, 199, 0.3);
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  opacity: 0.1;
  transform: translateY(-50%) translateX(50%);
  background: var(--account-gradient-start);
  filter: blur(20px);
  transition: opacity 0.5s ease;
}

.kpi-card:hover::before {
  opacity: 0.2;
}

.kpi-card .kpi-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--account-gradient-start), var(--account-gradient-end));
  color: white;
  box-shadow: var(--shadow-lg);
}

.kpi-card .kpi-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.kpi-card .kpi-value {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, var(--account-gradient-start), var(--account-gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.kpi-card .kpi-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

.kpi-card .kpi-trend {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.kpi-card .kpi-trend.positive {
  color: var(--account-success);
}

.kpi-card .kpi-trend.negative {
  color: #ef4444;
}

.kpi-card .kpi-trend svg {
  width: 0.875rem;
  height: 0.875rem;
}

/* ============================================
   ACCOUNT DASHBOARD
   ============================================ */

.account-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dashboard-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .dashboard-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.dashboard-greeting {
  font-size: 1.5rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .dashboard-greeting {
    font-size: 1.875rem;
  }
}

.dashboard-greeting span {
  background: linear-gradient(135deg, var(--account-gradient-start), var(--account-gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   ORDERS SECTION
   ============================================ */

.account-orders {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.orders-table-wrapper {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
}

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

.orders-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.orders-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
  vertical-align: middle;
}

.orders-table tbody tr {
  transition: background-color 0.2s ease;
}

.orders-table tbody tr:hover {
  background: var(--accent);
}

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

.order-row {
  opacity: 0;
  transform: translateY(1rem);
  animation: fadeSlideUp 0.5s ease forwards;
}

.order-row:nth-child(1) { animation-delay: 0.1s; }
.order-row:nth-child(2) { animation-delay: 0.2s; }
.order-row:nth-child(3) { animation-delay: 0.3s; }
.order-row:nth-child(4) { animation-delay: 0.4s; }

/* Order Status */
.order-status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.order-status svg {
  width: 0.875rem;
  height: 0.875rem;
}

.order-status.completed {
  background: #dcfce7;
  color: #15803d;
}

.dark .order-status.completed {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.order-status.processing {
  background: #dbeafe;
  color: #1d4ed8;
}

.dark .order-status.processing {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.order-status.pending {
  background: #fef3c7;
  color: #b45309;
}

.dark .order-status.pending {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.order-status.cancelled {
  background: #fee2e2;
  color: #b91c1c;
}

.dark .order-status.cancelled {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

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

.order-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.order-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.order-modal-content {
  position: relative;
  width: 100%;
  max-width: 42rem;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 1rem;
  background: var(--card);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.order-modal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.dark .order-modal-header {
  background: rgba(26, 26, 46, 0.95);
}

.order-modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ============================================
   ORDER TIMELINE
   ============================================ */

.order-timeline {
  position: relative;
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.order-timeline::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--border);
  border-radius: 9999px;
}

.timeline-step {
  position: relative;
}

.timeline-step::before {
  content: '';
  position: absolute;
  left: -1.25rem;
  top: 0.25rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--card);
  transition: all 0.5s ease;
}

.timeline-step.completed::before {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(91, 95, 199, 0.2);
}

.timeline-step.active::before {
  border-color: var(--primary);
  animation: pulse 2s ease-in-out infinite;
}

.timeline-step .timeline-content {
  background: var(--muted);
  border-radius: 0.5rem;
  padding: 1rem;
}

.timeline-step .timeline-title {
  font-weight: 600;
  font-size: 0.875rem;
}

.timeline-step .timeline-date {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

/* ============================================
   ADDRESS MANAGEMENT
   ============================================ */

.account-addresses {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .account-addresses {
    grid-template-columns: repeat(2, 1fr);
  }
}

.address-card {
  position: relative;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.address-card:hover {
  border-color: rgba(91, 95, 199, 0.3);
  box-shadow: var(--shadow-lg);
}

.address-card .address-type {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.address-card .address-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.875rem;
}

.address-card .address-content .name {
  font-weight: 600;
}

.address-card .address-content .text-muted {
  color: var(--muted-foreground);
}

/* ============================================
   FLOATING LABEL FORM
   ============================================ */

.floating-label-group {
  position: relative;
}

.floating-label-group input,
.floating-label-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  padding-top: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--muted);
  font-size: 0.875rem;
  transition: all 0.3s ease;
  outline: none;
}

.floating-label-group input:focus,
.floating-label-group textarea:focus {
  background: var(--card);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91, 95, 199, 0.2);
}

.floating-label-group label {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: all 0.3s ease;
  pointer-events: none;
}

.floating-label-group input:focus ~ label,
.floating-label-group input:not(:placeholder-shown) ~ label,
.floating-label-group textarea:focus ~ label,
.floating-label-group textarea:not(:placeholder-shown) ~ label {
  transform: translateY(-0.25rem);
  color: var(--primary);
}

/* Focus Glow Effect */
.focus-glow {
  position: relative;
}

.focus-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  box-shadow: 0 0 20px var(--account-accent);
}

.focus-glow:focus-within::after {
  opacity: 0.3;
}

/* ============================================
   ACCOUNT DETAILS FORM
   ============================================ */

.account-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-section {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-validation {
  font-size: 0.75rem;
  margin-top: 0.25rem;
  transition: all 0.3s ease;
}

.form-validation.error {
  color: #ef4444;
  animation: shake 0.3s ease-in-out;
}

.form-validation.success {
  color: var(--account-success);
}

/* ============================================
   TRAVEL WISHLIST
   ============================================ */

.travel-wishlist {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .travel-wishlist {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .travel-wishlist {
    grid-template-columns: repeat(3, 1fr);
  }
}

.wishlist-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  transition: all 0.5s ease;
}

.wishlist-card:hover {
  box-shadow: var(--shadow-xl), 0 0 30px rgba(91, 95, 199, 0.1);
}

.wishlist-card .wishlist-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.wishlist-card .wishlist-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.wishlist-card:hover .wishlist-image img {
  transform: scale(1.1);
}

.wishlist-card .wishlist-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent, transparent);
}

.wishlist-card .wishlist-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wishlist-card .wishlist-destination {
  font-weight: 600;
  font-size: 1.125rem;
}

.wishlist-card .wishlist-price {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--primary), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wishlist-card .wishlist-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* ============================================
   MAGNETIC BUTTON
   ============================================ */

.btn-magnetic {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 500;
  overflow: hidden;
  transition: all 0.3s ease;
  background: linear-gradient(to right, var(--primary), #7c3aed);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
}

.btn-magnetic:hover {
  box-shadow: var(--shadow-lg), 0 0 20px rgba(91, 95, 199, 0.3);
  transform: scale(1.02);
}

.btn-magnetic:active {
  transform: scale(0.98);
}

.btn-magnetic:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-magnetic::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-magnetic:hover::before {
  opacity: 1;
}

.btn-magnetic-outline {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 500;
  overflow: hidden;
  transition: all 0.3s ease;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  cursor: pointer;
  font-size: 0.875rem;
}

.btn-magnetic-outline:hover {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-lg), 0 0 20px rgba(91, 95, 199, 0.2);
}

/* ============================================
   3D CARD EFFECT
   ============================================ */

.card-3d {
  position: relative;
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
}

@media (min-width: 1024px) {
  .card-3d:hover {
    transform: rotateY(var(--rotate-y, 0deg)) rotateX(var(--rotate-x, 0deg));
  }
}

/* ============================================
   NOTIFICATION TOASTS
   ============================================ */

.account-notifications {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.notification-toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(10px);
  min-width: 18rem;
  animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.notification-toast.success {
  border-color: rgba(16, 185, 129, 0.3);
  background: #f0fdf4;
}

.dark .notification-toast.success {
  background: rgba(16, 185, 129, 0.1);
}

.notification-toast.error {
  border-color: rgba(239, 68, 68, 0.3);
  background: #fef2f2;
}

.dark .notification-toast.error {
  background: rgba(239, 68, 68, 0.1);
}

.notification-toast.info {
  border-color: rgba(59, 130, 246, 0.3);
  background: #eff6ff;
}

.dark .notification-toast.info {
  background: rgba(59, 130, 246, 0.1);
}

.notification-toast .toast-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.notification-toast .toast-content {
  flex: 1;
}

.notification-toast .toast-title {
  font-weight: 500;
  font-size: 0.875rem;
}

.notification-toast .toast-message {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.125rem;
}

/* ============================================
   ANIMATION CLASSES
   ============================================ */

.anim-fade-up {
  opacity: 0;
  transform: translateY(2rem);
  animation: fadeSlideUp 0.6s ease forwards;
}

.anim-fade-in {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

.anim-scale-in {
  opacity: 0;
  transform: scale(0.95);
  animation: scaleIn 0.4s ease forwards;
}

.anim-stagger > * {
  opacity: 0;
  transform: translateY(1rem);
  animation: fadeSlideUp 0.5s ease forwards;
}

.anim-stagger > *:nth-child(1) { animation-delay: 0.1s; }
.anim-stagger > *:nth-child(2) { animation-delay: 0.2s; }
.anim-stagger > *:nth-child(3) { animation-delay: 0.3s; }
.anim-stagger > *:nth-child(4) { animation-delay: 0.4s; }
.anim-stagger > *:nth-child(5) { animation-delay: 0.5s; }
.anim-stagger > *:nth-child(6) { animation-delay: 0.6s; }

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(91, 95, 199, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(91, 95, 199, 0);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.section-subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

/* ============================================
   ACTION BUTTONS
   ============================================ */

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.action-btn svg {
  width: 0.875rem;
  height: 0.875rem;
}

.action-btn-primary {
  background: rgba(91, 95, 199, 0.1);
  color: var(--primary);
}

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

.action-btn-secondary {
  background: var(--muted);
  color: var(--muted-foreground);
}

.action-btn-secondary:hover {
  background: var(--border);
}

/* ============================================
   PROFILE AVATAR
   ============================================ */

.profile-avatar {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 4px rgba(91, 95, 199, 0.2);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-lg {
  width: 3rem;
  height: 3rem;
}

/* ============================================
   GRADIENT TEXT
   ============================================ */

.gradient-text {
  background: linear-gradient(135deg, var(--account-gradient-start), var(--account-gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   HOVER GLOW
   ============================================ */

.hover-glow {
  position: relative;
}

.hover-glow::before {
  content: '';
  position: absolute;
  inset: -0.25rem;
  border-radius: 1.5rem;
  opacity: 0;
  transition: opacity 0.5s ease;
  background: linear-gradient(135deg, var(--account-gradient-start), var(--account-gradient-end));
  filter: blur(20px);
  z-index: -1;
}

.hover-glow:hover::before {
  opacity: 0.15;
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  text-align: center;
}

.empty-state-icon {
  width: 4rem;
  height: 4rem;
  color: var(--muted-foreground);
  opacity: 0.3;
  margin-bottom: 1rem;
}

.empty-state-title {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.empty-state-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  max-width: 20rem;
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE
   ============================================ */

@media (max-width: 1023px) {
  .account-sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    border-top: 1px solid var(--border);
    border-right: none;
  }
  
  .account-menu {
    flex-direction: row;
    justify-content: space-around;
    padding: 0.5rem;
  }
  
  .account-menu-item {
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
  }
  
  .account-menu-item .menu-text {
    font-size: 0.625rem;
  }
  
  .account-menu-item.active::before {
    display: none;
  }
  
  .account-content {
    padding-bottom: 5rem;
  }
}

@media (max-width: 639px) {
  .kpi-card {
    padding: 1rem;
  }
  
  .kpi-card .kpi-value {
    font-size: 1.5rem;
  }
  
  .account-menu-item .menu-text {
    display: none;
  }
  
  .account-menu-item .menu-icon {
    width: 1.5rem;
    height: 1.5rem;
  }
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */

.account-content::-webkit-scrollbar {
  width: 6px;
}

.account-content::-webkit-scrollbar-track {
  background: transparent;
}

.account-content::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 9999px;
}

.account-content::-webkit-scrollbar-thumb:hover {
  background: var(--muted-foreground);
}

/* ============================================
   MOBILE NAV DROPDOWN
   ============================================ */

.mobile-nav-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem;
}

.dark .mobile-nav-header {
  background: rgba(26, 26, 46, 0.95);
}

.mobile-nav-trigger {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  text-align: left;
  font-weight: 500;
  cursor: pointer;
}

.mobile-nav-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  overflow: hidden;
}

/* ============================================
   UTILITIES
   ============================================ */

.hidden { display: none !important; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--muted-foreground); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
