/* Booming Tech - Enterprise IT Services Style */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #133c8a;
  --primary-dark: #0a2644;
  --secondary: #f5f5f5;
  --text: #333;
  --text-light: #666;
  --white: #fff;
  --border: #e0e0e0;
  --success: #2e7d32;
  --warning: #f57c00;
  --bg: #f5f8fa;
  --light-bg: #f8f9fa;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

/* Header */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-bar {
  background: var(--primary);
  color: var(--white);
  padding: 6px 0;
  font-size: 12px;
}

.top-bar .container {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}

.top-bar a {
  color: var(--white);
  text-decoration: none;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
}

.nav-center {
  display: flex;
  justify-content: center;
}

.nav-right {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: bold;
  font-size: 18px;
}

.logo-text {
  font-size: 22px;
  font-weight: 600;
  color: var(--primary);
}

/* Ribbon Bar for Admin - Apple style */
.ribbon-bar {
  height: 3px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.9) 0%,
    rgba(200,200,200,0.3) 50%,
    rgba(100,100,100,0.2) 100%
  );
  border-bottom: 1px solid rgba(0,0,0,0.15);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15), 0 4px 8px rgba(0,0,0,0.1);
  position: relative;
  z-index: 10;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s;
  position: relative;
  padding: 5px 0;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: var(--primary);
}

.toggle-icon {
  font-size: 12px;
  font-weight: bold;
  margin-left: 4px;
  transition: transform 0.3s;
}

.nav-item.open .toggle-icon {
  transform: rotate(45deg);
}

/* Header right section for logout */
.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.header-right .logout-btn {
  padding: 8px 16px;
  background: var(--secondary);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s;
}

.header-right .logout-btn:hover {
  background: var(--border);
}

/* Submenu block - collapsible with animation */
.nav-submenu-block {
  background: var(--light-bg);
  border-bottom: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

.nav-submenu-block.open {
  max-height: 200px;
  opacity: 1;
}

.nav-submenu-block ul {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  justify-content: center;
}

.nav-submenu-block a {
  display: inline-block;
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s;
  /* Apple emboss effect */
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

.nav-submenu-block a:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(19,60,138,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
  text-shadow: none;
}

.nav-submenu-block a.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.nav-submenu a::after {
  display: none;
}

/* Homepage Header */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.header-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: bold;
  font-size: 16px;
}

.header-logo-text {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
}

.header-nav {
  display: flex;
  gap: 30px;
}

.header-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-cart {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-cart:hover {
  color: var(--primary);
}

.header-cart .cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--primary);
  color: var(--white);
  font-size: 10px;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-login {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 16px;
  border: 1px solid var(--primary);
  border-radius: 4px;
  transition: all 0.2s;
}

.header-login:hover {
  background: var(--primary);
  color: var(--white);
}

.nav-actions {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border: none;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-small {
  padding: 6px 14px;
  font-size: 13px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 60px 0;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-content {
  flex: 1;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.hero .btn-primary {
  background: var(--white);
  color: var(--primary);
}

.hero .btn-primary:hover {
  background: var(--secondary);
}

.hero .btn-outline {
  border-color: var(--white);
  color: var(--white);
}

.hero .btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.price-tier {
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
  color: var(--primary);
  margin: 4px 8px 4px 0;
  padding: 4px 12px;
  background: rgba(19, 60, 138, 0.08);
  border-radius: 4px;
}

.product-card-price .price-tier:first-child {
  font-size: 20px;
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.section-title {
  font-size: 28px;
  color: var(--text);
  margin-bottom: 10px;
}

.section-subtitle {
  color: var(--text-light);
  margin-bottom: 30px;
}

/* Products Table */
.products-section {
  margin-bottom: 60px;
}

/* Product Grid - 3 columns */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Product Card - Image Background + Content Below */
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: 0 12px 32px rgba(19, 60, 138, 0.12);
  transform: translateY(-4px);
}

.product-card-bg {
  width: 100%;
  height: 160px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  background-color: #f1f5f9;
  background-image: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.product-card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.product-card-title a {
  color: inherit;
  text-decoration: none;
}

.product-card-title a:hover {
  color: var(--primary);
}

.product-card-category {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.product-card-features {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.6;
  flex: 1;
}

.product-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  gap: 12px;
}

.product-card-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.product-card-price .price-duration {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
}

.product-card-pricing {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.price-tier-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 6px;
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.price-tier-item:hover {
  border-color: var(--primary);
  background: rgba(19, 60, 138, 0.05);
}

.price-tier-item.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.price-tier-item.active .price-tier-price {
  color: #fff;
}

.price-tier-label {
  font-size: 11px;
  color: var(--text-light);
}

.price-tier-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

.product-card-btn {
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.product-card-btn:hover {
  background: var(--primary-dark);
}

.product-card h3 a:hover {
  text-decoration: underline !important;
  color: var(--primary) !important;
}

.product-header {
  background: var(--secondary);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.product-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 24px;
}

.product-title h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.product-title span {
  font-size: 13px;
  color: var(--text-light);
}

.product-body {
  padding: 20px;
}

.product-description {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 15px;
  min-height: 60px;
  line-height: 1.6;
}

.product-description p { margin: 0 0 10px 0; }
.product-description ul, .product-description ol { margin: 0 0 10px 0; padding-left: 20px; }
.product-description img { max-width: 100%; height: auto; border-radius: 4px; margin: 10px 0; }

.product-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary);
}

.product-price span {
  font-size: 14px;
  font-weight: normal;
  color: var(--text-light);
}

/* Features Section */
.features-section {
  background: var(--white);
  padding: 60px 0;
  margin: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.feature-item {
  text-align: center;
  padding: 30px 20px;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.feature-item:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(19, 60, 138, 0.1);
  transform: translateY(-5px);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--white);
  font-size: 24px;
}

.feature-item h4 {
  margin-bottom: 10px;
  color: var(--text);
}

.feature-item p {
  font-size: 14px;
  color: var(--text-light);
}

/* Footer */
footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 40px 0 20px;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  margin-bottom: 15px;
}

.footer-brand p {
  font-size: 14px;
  opacity: 0.8;
}

.footer-col h4 {
  margin-bottom: 20px;
  font-size: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-col a:hover {
  opacity: 1;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  opacity: 0.7;
}

.footer-contact {
  display: flex;
  gap: 20px;
}

.footer-contact a {
  color: inherit;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

/* Admin Styles */
.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.admin-header h1 {
  font-size: 32px;
}

.admin-actions {
  display: flex;
  gap: 12px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--border);
}

.admin-table th,
.admin-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  background: var(--secondary);
  font-weight: 600;
  font-size: 15px;
}

.admin-table tr:hover {
  background: var(--secondary);
}

.table-actions {
  display: flex;
  gap: 8px;
}

.btn-edit {
  background: var(--warning);
  color: var(--white);
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

.btn-delete {
  background: #d32f2f;
  color: var(--white);
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

.btn-edit:hover {
  background: #e65100;
}

.btn-delete:hover {
  background: #b71c1c;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--white);
  border-radius: 8px;
  padding: 30px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.modal-header h2 {
  font-size: 22px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 25px;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.badge-featured {
  background: #e3f2fd;
  color: var(--primary);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.empty-state h3 {
  margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-card {
    width: 100%;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  nav ul {
    display: none;
  }

  .nav-actions {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .admin-table {
    font-size: 13px;
  }

  .admin-table th,
  .admin-table td {
    padding: 10px 8px;
  }
}

/* Banner Scroll Styles */
.banners-scroll-wrapper {
  overflow: hidden;
  position: relative;
}

.banners-scroll-wrapper::before,
.banners-scroll-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}

.banners-scroll-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #f8f9fa, transparent);
}

.banners-scroll-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #f8f9fa, transparent);
}

.banners-track {
  display: flex;
  gap: 20px;
  animation: bannerScroll 30s linear infinite;
  width: max-content;
}

.banners-track:hover {
  animation-play-state: paused;
}

@keyframes bannerScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.banner-scroll-card {
  flex-shrink: 0;
  width: 350px;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner-scroll-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.banner-scroll-img {
  height: 160px;
  background: linear-gradient(135deg, #e8ecf1 0%, #d1d5db 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.banner-scroll-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-scroll-content {
  padding: 20px;
}

.banner-scroll-content h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text);
}

.banner-scroll-content p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.5;
}

.banner-scroll-btn {
  display: inline-block;
  padding: 8px 20px;
  background: var(--primary);
  color: var(--white);
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}

.banner-scroll-btn:hover {
  background: var(--primary-dark);
}

/* Cart Button */
.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 20px;
  margin-right: 15px;
  cursor: pointer;
}

.cart-btn #cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  background: #d32f2f;
  color: white;
  border-radius: 50%;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* Cart Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: flex-start;
  justify-content: flex-end;
}

.modal.active {
  display: flex;
}

.cart-modal-content {
  background: var(--white);
  width: 400px;
  max-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.cart-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.cart-modal-header h3 {
  font-size: 18px;
}

.cart-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-light);
}

.cart-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cart-item {
  display: flex;
  align-items: center;
  padding: 15px;
  background: var(--secondary);
  border-radius: 8px;
}

.cart-item-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-right: 15px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 600;
  margin-bottom: 5px;
}

.cart-item-meta {
  font-size: 12px;
  color: var(--text-light);
}

.cart-item-price {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 5px;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-control button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.quantity-control button:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.quantity-control span {
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #d32f2f;
  font-size: 12px;
  cursor: pointer;
}

.cart-item-remove:hover {
  text-decoration: underline;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
}

.cart-total {
  font-size: 18px;
  margin-bottom: 15px;
}

.cart-total span {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary);
}

.cart-footer .btn {
  width: 100%;
  text-align: center;
}

/* Add to Cart Button */
.btn-add-cart {
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-add-cart:hover {
  background: var(--primary);
  color: white;
}

/* Duration Selector */
.duration-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.duration-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.duration-btn:hover {
  border-color: var(--primary);
}

.duration-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.duration-price {
  font-weight: bold;
  color: var(--primary);
  margin-left: 5px;
}

/* ============ Admin Sidebar Layout ============ */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

/* 侧边栏 - Light Clean Design */
.admin-sidebar {
  width: 260px;
  min-width: 260px;
  background: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(0,0,0,0.06);
  box-shadow: 2px 0 8px rgba(0,0,0,0.02);
}

/* 侧边栏 Logo 区 */
.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  position: relative;
}

.sidebar-header .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.sidebar-header .logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(59,130,246,0.3);
  transition: all 0.2s ease;
}

.sidebar-header .logo:hover .logo-icon {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59,130,246,0.4);
}

.sidebar-header .logo-text {
  color: #1e293b;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
}

/* 侧边栏导航 */
.sidebar-nav {
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1;
}

.sidebar-nav > ul {
  list-style: none;
  padding: 0 8px;
  margin: 0;
  display: flex;
  flex-direction: column;
  width: calc(100% - 16px);
}

.sidebar-nav > ul > li {
  margin: 1px 0;
  display: block;
  width: 100%;
  position: relative;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  color: #475569;
  text-decoration: none;
  transition: all 0.15s ease;
  font-size: 14px;
  position: relative;
}

.sidebar-nav a span {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 当前激活项 */
.sidebar-nav a.active {
  background: linear-gradient(90deg, #3b82f6 0%, #6366f1 100%);
  color: #fff;
  font-weight: 500;
  margin: 0 6px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(59,130,246,0.25);
}

/* 子菜单 */
.sidebar-nav .has-submenu > a {
  justify-content: space-between;
}

.sidebar-nav .has-submenu > a::after {
  content: '';
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform 0.2s ease;
}

.sidebar-nav .has-submenu > a.open::after {
  transform: rotate(180deg);
}

.sidebar-submenu {
  display: none;
  padding: 4px 0;
}

.sidebar-submenu.open {
  display: block;
  animation: slideDown 0.15s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sidebar-submenu a {
  padding: 6px 16px 6px 36px;
  font-size: 13px;
  color: #64748b;
  transition: all 0.15s ease;
}

.sidebar-submenu a:hover {
  color: #3b82f6;
  background: #f8fafc;
}

.sidebar-submenu a.active {
  color: #3b82f6;
  font-weight: 500;
}

/* 侧边栏底部 */
.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(0,0,0,0.04);
  margin-top: auto;
}

.sidebar-footer .logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: #fef2f2;
  color: #dc2626;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 14px;
}

.sidebar-footer .logout-btn::before {
  content: '←';
  font-size: 14px;
}

.sidebar-footer .logout-btn:hover {
  background: #dc2626;
  color: #fff;
  transform: translateX(2px);
}
  color: white;
  border-color: transparent;
  transform: translateX(4px);
}

/* 主内容区 */
.admin-main {
  margin-left: 260px;
  flex: 1;
  padding: 40px 48px;
  min-width: 0;
  background: var(--bg);
  font-size: 15px;
  line-height: 1.6;
}

/* 页面标题区域 */
.admin-main > h1:first-child {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.admin-main > p[style*="color: var(--text-light)"] {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 32px;
}

/* 响应式 */
@media (max-width: 1024px) {
  .admin-sidebar {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
  }
  .admin-main {
    margin-left: 220px;
    padding: 32px 36px;
  }
}

@media (max-width: 768px) {
  .admin-sidebar {
    width: 72px;
    min-width: 72px;
    max-width: 72px;
  }
  .admin-main {
    margin-left: 72px;
    padding: 24px 20px;
  }
  .sidebar-header {
    padding: 20px 12px;
  }
  .sidebar-header .logo-text,
  .sidebar-nav a span,
  .sidebar-nav .has-submenu > a::after,
  .sidebar-submenu {
    display: none;
  }
  .sidebar-header .logo-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto;
    border-radius: 14px;
  }
  .sidebar-nav a {
    justify-content: center;
    padding: 16px 8px;
  }
  .sidebar-footer {
    padding: 16px 8px;
  }
  .sidebar-footer .logout-btn {
    padding: 12px 8px;
    font-size: 11px;
    border-radius: 8px;
  }
  .sidebar-footer .logout-btn::before {
    display: none;
  }
}

/* =====================
   Admin Component Styles
   ===================== */

/* Form Cards */
.form-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
  transition: box-shadow 0.25s ease;
}

.form-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
}

.form-section {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.form-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.section-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* Form Elements */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  font-size: 15px;
  background: var(--white);
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

.form-group small {
  display: block;
  margin-top: 8px;
  color: var(--text-light);
  font-size: 13px;
  line-height: 1.5;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.45);
}

.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.45);
}

.btn-back,
.btn-outline {
  background: var(--secondary);
  color: var(--text);
  border: 1px solid rgba(0,0,0,0.08);
}

.btn-back:hover,
.btn-outline:hover {
  background: var(--border);
  transform: translateY(-1px);
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

/* Message Alerts */
.message {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 14px;
  display: none;
  animation: slideDown 0.3s ease-out;
}

.message.success {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  color: #065f46;
  border: 1px solid #a7f3d0;
  display: block;
}

.message.error {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  color: #991b1b;
  border: 1px solid #fecaca;
  display: block;
}

/* Admin Tables */
.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.admin-table th {
  background: var(--secondary);
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
}

.admin-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: rgba(59, 130, 246, 0.02);
}

/* Stats Cards */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.stat-item {
  background: var(--white);
  padding: 24px;
  border-radius: 14px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  transition: all 0.25s ease;
}

.stat-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.stat-value {
  font-size: 36px;
  font-weight: 700;
  color: #3b82f6;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Search Input */
.search-input {
  position: relative;
  margin-bottom: 20px;
}

.search-input input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  background: var(--white);
  transition: all 0.2s ease;
}

.search-input input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.search-input::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath stroke-linecap='round' d='M21 21l-4.35-4.35'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.pagination button {
  padding: 10px 16px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.pagination button:hover {
  background: var(--secondary);
  border-color: var(--text-light);
}

.pagination button.active {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

/* ============================================
   Global Animation Classes
   ============================================ */

/* 滚动触发入场 - 基础 */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 交错 stagger 延迟变量 */
.stagger-1 { --delay: 0ms; }
.stagger-2 { --delay: 100ms; }
.stagger-3 { --delay: 200ms; }
.stagger-4 { --delay: 300ms; }
.stagger-5 { --delay: 400ms; }
.stagger-6 { --delay: 500ms; }
.stagger-7 { --delay: 600ms; }
.stagger-8 { --delay: 700ms; }
.stagger-9 { --delay: 800ms; }

/* 弹性曲线 */
.elastic-transition {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 按钮点击弹性 */
.btn:active, .btn-elastic:active {
  transform: scale(0.95);
}

/* 发光边框效果 */
.glow-hover {
  transition: box-shadow 0.4s ease;
}

.glow-hover:hover {
  box-shadow: 0 8px 30px rgba(var(--primary-rgb, 19, 60, 138), 0.25),
              0 0 0 1px var(--primary, #133c8a);
}
