/* 
 * PREMIUM GLOBAL CSS SYSTEM (COTOzen)
 * Design Style: Modern Premium Slate Blue, Minimalism, Glassmorphism & Active Micro-animations
 */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Color System */
  --primary-color: #0f2c59;       /* Deep Slate Blue (Sự sang trọng, cao quý) */
  --primary-light: #1b427b;
  --accent-color: #ff6b35;        /* Warm Orange Accent (Điểm nhấn ấm áp, năng động) */
  --accent-hover: #e55a24;
  --bg-color: #ffffff;
  --bg-soft: #f8fafc;             /* Mượt mà tinh tế */
  --text-dark: #0f172a;           /* Chữ tối rõ nét */
  --text-muted: #64748b;          /* Chữ nhạt thông số */
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  
  /* Typography */
  --font-family: 'Be Vietnam Pro', sans-serif;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  
  /* Design Tokens */
  --shadow-sm: 0 1px 3px rgba(15, 44, 89, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 44, 89, 0.08), 0 2px 4px -1px rgba(15, 44, 89, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 44, 89, 0.1), 0 4px 6px -2px rgba(15, 44, 89, 0.05);
  --shadow-premium: 0 20px 40px -10px rgba(15, 44, 89, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

/* Reset Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-dark);
  font-weight: 400;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  outline: none;
  border: 1px solid var(--border-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary-color);
  line-height: 1.25;
}

/* Base Containers */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
}
.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 44, 89, 0.2);
}

.btn-accent {
  background-color: var(--accent-color);
  color: #fff;
  border: none;
}
.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}
.btn-outline:hover {
  background-color: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
}

/* Global Header (Mega Menu giống coto.vn) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.header-top {
  background-color: var(--primary-color);
  color: #fff;
  padding: 8px 0;
  font-size: 13px;
}
.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-top-info {
  display: flex;
  gap: 20px;
}
.header-top-info span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-main {
  padding: 16px 0;
}
.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Brand Left, Center Navigation Layout Styles */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  width: 100%;
  gap: 24px;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
  transition: var(--transition-fast);
}

.logo-brand:hover {
  transform: translateY(-1px);
}

.brand-icon {
  height: 44px; /* Kích thước logo tối ưu */
  width: auto;
  object-fit: contain;
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--primary-color);
  line-height: 1;
  display: flex;
  align-items: center;
}

.brand-text span {
  color: var(--accent-color);
}

.nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.main-nav {
  display: flex;
  list-style: none;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 16px;
  color: var(--primary-color);
  padding: 8px 0;
  display: block;
}

.nav-link:hover, .nav-item.active .nav-link {
  color: var(--accent-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition);
}

.nav-item:hover .nav-link::after {
  width: 100%;
}

/* Mega menu đa cấp */
.dropdown-menu {
  display: block !important; /* Ghi đè display: none của Bootstrap để cho phép hover và animation hoạt động */
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: #fff;
  min-width: 240px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 16px 0;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  list-style: none;
  z-index: 1010;
  border: 1px solid var(--border-color);
}
.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-item a {
  display: block;
  padding: 10px 24px;
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 500;
}
.dropdown-item a:hover {
  background-color: var(--bg-soft);
  color: var(--accent-color);
  padding-left: 30px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-search {
  position: relative;
  width: 220px;
}
.header-search input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border-radius: var(--radius-full);
  font-size: 14px;
  background-color: var(--bg-soft);
  transition: var(--transition);
}
.header-search input:focus {
  width: 280px;
  border-color: var(--primary-color);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(15, 44, 89, 0.1);
}
.header-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.action-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  background-color: var(--bg-soft);
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.action-btn:hover {
  background-color: var(--primary-color);
  color: #fff;
  transform: scale(1.05);
}
.action-btn .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--accent-color);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Premium Hero Slider */
.hero-slider {
  position: relative;
  height: 640px;
  background-color: var(--primary-color);
  overflow: hidden;
}
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}
.slide.active {
  opacity: 1;
  visibility: visible;
}
.slide-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide-bg::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, var(--primary-color) 0%, rgba(15, 44, 89, 0.8) 40%, rgba(15, 44, 89, 0) 100%);
}
.slide-bg img {
  width: 80%;
  max-height: 85%;
  object-fit: contain;
  filter: drop-shadow(0 25px 50px rgba(0,0,0,0.3));
  transform: translate(20px, 0);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.slide.active .slide-bg img {
  transform: translate(0, 0);
}
.slide-content {
  position: relative;
  z-index: 10;
  color: #fff;
  width: 50%;
  padding-right: 60px;
}
.slide-subtitle {
  font-family: var(--font-heading);
  color: var(--accent-color);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: inline-block;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}
.slide-title, .hero-title {
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 24px;
  color: #fff;
  line-height: 1.1;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}
.slide-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  max-width: 500px;
  transform: translateY(40px);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.6s;
}
.slide-actions {
  transform: translateY(50px);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.8s;
}
.slide.active .slide-subtitle,
.slide.active .slide-title,
.slide.active .slide-desc,
.slide.active .slide-actions {
  transform: translateY(0);
  opacity: 1;
}

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 40px;
  left: 24px;
  z-index: 20;
  display: flex;
  gap: 12px;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background-color: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: var(--transition);
}
.dot.active {
  background-color: var(--accent-color);
  width: 32px;
}

/* Featured Categories */
.section {
  padding: 48px 0;
}
.section-bg-soft {
  background-color: var(--bg-soft);
}
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 32px auto;
}
.section-header .subtitle {
  color: var(--accent-color);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: block;
}
.section-header .title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
}
.section-header .desc {
  color: var(--text-muted);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
.category-card {
  background-color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  cursor: pointer;
}
.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-premium);
  border-color: var(--primary-color);
}
.category-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background-color: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  color: var(--primary-color);
  font-size: 28px;
  transition: var(--transition);
}
.category-card:hover .category-icon {
  background-color: var(--primary-color);
  color: #fff;
}
.category-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
}

/* Premium Product Card */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.product-card {
  background-color: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
}
.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--accent-color);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  z-index: 10;
}
.product-img {
  position: relative;
  padding-top: 100%; /* Square aspect ratio */
  background-color: var(--bg-soft);
  overflow: hidden;
}
.product-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
  transition: transform 0.6s ease;
}
.product-card:hover .product-img img {
  transform: scale(1.08);
}
.product-actions {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  opacity: 0;
  transition: var(--transition);
  z-index: 20;
}
.product-card:hover .product-actions {
  bottom: 16px;
  opacity: 1;
}
.product-action-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: #fff;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition-fast);
}
.product-action-btn:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.product-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-code {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.product-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
  margin-bottom: 12px;
  height: 42px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.product-name:hover {
  color: var(--accent-color);
}
.product-prices {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.price-current {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-color);
}
.price-old {
  font-size: 14px;
  text-decoration: line-through;
  color: var(--text-muted);
}

/* Premium Collection Showcase block */
.collection-banner {
  background-color: var(--primary-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 40px 0;
  box-shadow: var(--shadow-lg);
}
.collection-banner-row {
  display: flex;
  align-items: center;
}
.collection-banner-content {
  width: 50%;
  padding: 80px 60px;
  color: #fff;
}
.collection-banner-img {
  width: 50%;
  height: 480px;
  background-size: cover;
  background-position: center;
}

/* Blog News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.news-card {
  background-color: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.news-img {
  position: relative;
  padding-top: 60%;
  overflow: hidden;
}
.news-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.news-card:hover .news-img img {
  transform: scale(1.06);
}
.news-content {
  padding: 24px;
}
.news-date {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.news-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
}
.news-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 8px;
}
.news-card:hover .news-link {
  color: var(--accent-color);
}

/* Site Footer */
.site-footer {
  background-color: var(--primary-color);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-logo {
  color: #fff;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 24px;
}
.footer-logo span {
  color: var(--accent-color);
}
.footer-text {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.footer-title {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}
.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  font-size: 14px;
}
.footer-links a:hover {
  color: #fff;
  padding-left: 6px;
}
.footer-contact {
  list-style: none;
  font-size: 14px;
}
.footer-contact li {
  margin-bottom: 16px;
  display: flex;
  gap: 12px;
}
.footer-contact i {
  color: var(--accent-color);
  font-size: 16px;
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
}

/* Skeleton Loading (Premium UX) */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 16px;
  margin-bottom: 10px;
}
.skeleton-img {
  width: 100%;
  height: 200px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
}

/* Custom Toast Notification System */
.toast-container {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.toast {
  min-width: 320px;
  background-color: #fff;
  box-shadow: 0 10px 30px rgba(15, 44, 89, 0.15);
  border-radius: var(--radius-md);
  border-left: 5px solid var(--primary-color);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: auto;
}
.toast.show {
  transform: translateX(0);
}
.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--danger); }
.toast-warning { border-left-color: var(--warning); }
.toast-icon {
  font-size: 20px;
}
.toast-success .toast-icon { color: var(--success); }
.toast-error .toast-icon { color: var(--danger); }
.toast-warning .toast-icon { color: var(--warning); }
.toast-body {
  flex-grow: 1;
}
.toast-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}
.toast-message {
  font-size: 13px;
  color: var(--text-muted);
}
.toast-close {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 2fr 1.1fr 1.2fr 1.7fr;
    gap: 24px;
  }
  .hero-slider {
    height: 520px;
  }
  .slide-bg {
    width: 50%;
  }
  .slide-content {
    width: 60%;
  }
  .slide-title {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .header-top, .main-nav, .header-search {
    display: none;
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }
  .hero-slider {
    height: 480px;
  }
  .slide-bg {
    display: none;
  }
  .slide-content {
    width: 100%;
    padding-right: 24px;
  }
  .slide-title {
    font-size: 32px;
  }
  .collection-banner-row {
    flex-direction: column;
  }
  .collection-banner-content {
    width: 100%;
    padding: 40px 24px;
  }
  .collection-banner-img {
    width: 100%;
    height: 300px;
  }
}

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .section {
    padding: 48px 0;
  }
  .section-header .title {
    font-size: 28px;
  }
}

/* Custom Confirm Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 44, 89, 0.4);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal-box {
  position: relative;
  width: 90%;
  max-width: 420px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(15, 44, 89, 0.15);
  max-height: 85vh;
  overflow: hidden;
  border: 1px solid var(--border-color);
  animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes pulseDanger {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.2); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

