/* ===========================
   Global Reset & Base Styles
   =========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: #ffffff;
  color: #111827;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: #111827;
}

a {
  color: #4f46e5;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===========================
   Sidebar
   =========================== */
.sidebar {
  width: 250px;
  background: #0f172a;
  color: #f9fafb;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}
.sidebar a {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: inherit;
  transition: background 0.3s;
}
.sidebar a:hover {
  background: rgba(255,255,255,0.1);
}

/* ===========================
   Badges
   =========================== */
.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #4f46e5;
  color: #fff;
}

/* ===========================
   Buttons
   =========================== */
.btn {
  font-size: 1.2rem;
  padding: 1rem 2.5rem;
  border: none;
  outline: none;
  border-radius: 0.4rem;
  cursor: pointer;
  text-transform: uppercase;
  background-color: rgb(14, 14, 26);
  color: rgb(234, 234, 234);
  font-weight: 700;
  transition: 0.6s;
  box-shadow: 0px 0px 60px #1f4c65;
  -webkit-box-reflect: below 10px linear-gradient(to bottom, rgba(0,0,0,0.0), rgba(0,0,0,0.4));
}
.btn:active { transform: scale(0.92); }
.btn:hover {
  background: linear-gradient(270deg, rgba(2, 29, 78, 0.681) 0%, rgba(31, 215, 232, 0.873) 60%);
  color: rgb(4, 4, 38);
}

/* Circular gradient button */
.btn-circle {
  padding: 1.25rem;
  border-radius: 50%;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(to top right, rgba(0,0,0,0.6), rgba(0,0,0,0.4));
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: all 0.3s ease-out;
  position: relative;
  overflow: hidden;
}
.btn-circle:hover {
  transform: scale(1.1) rotate(3deg);
  border-color: rgba(255,255,255,0.3);
}
.btn-circle:active { transform: scale(0.95) rotate(0); }
.btn-circle::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.7s ease-out;
}
.btn-circle:hover::before { transform: translateX(100%); }

/* Icon button */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  border-radius: 50%;
  background: #1f2937;
  color: #fff;
  transition: transform 0.2s, background 0.3s;
}
.icon-btn:hover {
  transform: scale(1.1);
  background: #4f46e5;
}

/* ===========================
   Cards
   =========================== */
.card {
  width: 190px;
  height: 254px;
  border-radius: 30px;
  background: #e0e0e0;
  box-shadow: 15px 15px 30px #bebebe,
              -15px -15px 30px #ffffff;
}
.profile-card {
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 1.5rem;
  text-align: center;
}
.profile-card.vip { border: 2px solid gold; }

/* ===========================
   Forms
   =========================== */
input, textarea, select {
  font: inherit;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 0.5rem;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 2px rgba(79,70,229,0.3);
}

/* Custom checkbox */
.container {
  position: relative;
  cursor: pointer;
  font-size: 17px;
  width: 2em;
  height: 2em;
  user-select: none;
  border: 5px solid white;
  display: block;
}
.container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.checkmark {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.checkmark:after {
  content: '';
  position: absolute;
  top: 25%; left: 25%;
  background-color: white;
  width: 50%; height: 50%;
  transform: scale(0);
  transition: .1s ease;
}
.container input:checked ~ .checkmark:after { transform: scale(1); }

/* ===========================
   Gradients
   =========================== */
.bg-gradient-indigo {
  background: linear-gradient(to right, #4f46e5, #6366f1);
}
.bg-gradient-pink {
  background: linear-gradient(to right, #ec4899, #f472b6);
}

/* ===========================
   Ripple Effect
   =========================== */
.ripple {
  position: relative;
  overflow: hidden;
}
.ripple::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  width: 100%; height: 100%;
  top: 0; left: 0;
  transform: scale(0);
  opacity: 0;
  transition: transform 0.6s, opacity 0.6s;
}
.ripple:active::after {
  transform: scale(2);
  opacity: 1;
}

/* ===========================
   Morph Menu
   =========================== */
.morph-menu { transition: all 0.3s ease; }
.morph-menu.open { transform: scale(1.05); }



/* ===========================
   Pricing Cards
   =========================== */
.pricing-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 1.5rem;
  overflow: hidden;
}
.pricing-card-header { padding: 2rem; }
.pricing-card h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #374151;
}
.pricing-card p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}
.pricing-card-price {
  margin-top: 1.5rem;
  font-size: 2.5rem;
  font-weight: 300;
  color: #000;
}
.pricing-card-footer { padding: 1.5rem; }
.pricing-card .btn-buy {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background: #000;
  color: #fff;
  border: 2px solid #000;
  transition: all 0.3s ease;
  text-decoration: none;
}
.pricing-card .btn-buy:hover {
  background: transparent;
  color: #000;
}

/* ===========================
   Dark Mode Variant
   =========================== */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #0f0f17;
    color: #e5e7eb;
  }

  h1, h2, h3, h4, h5, h6 {
    color: #f9fafb;
  }

  a {
    color: #93c5fd;
  }
  a:hover {
    color: #bfdbfe;
  }

  .btn {
    background-color: #1e293b;
    color: #f9fafb;
    box-shadow: 0px 0px 40px #0ea5e9;
  }
  .btn:hover {
    background: linear-gradient(270deg, rgba(59, 130, 246, 0.7) 0%, rgba(14, 165, 233, 0.9) 60%);
    color: #0f172a;
  }

  .card {
    background: #1e293b;
    box-shadow: 10px 10px 20px #0f172a,
                -10px -10px 20px #334155;
  }

  .profile-card, .vip-card {
    background: #1e293b;
    box-shadow: 0 4px 12px rgba(255,255,255,0.1);
  }

  .pricing-card {
    background: #1e293b;
  }
  .pricing-card h2 { color: #f9fafb; }
  .pricing-card p { color: #cbd5e1; }
  .pricing-card-price { color: #f9fafb; }

  .pricing-card .btn-buy {
    background: #f9fafb;
    color: #0f172a;
    border-color: #f9fafb;
  }
  .pricing-card .btn-buy:hover {
    background: transparent;
    color: #f9fafb;
    border-color: #f9fafb;
  }
}

/* ===========================
   Accessibility & Focus States
   =========================== */
:focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

/* ===========================
   Reduced Motion Support
   =========================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===========================
   Utility Classes
   =========================== */
.text-center { text-align: center; }
.flex { display: flex; }
.grid { display: grid; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.p-4 { padding: 1rem; }

/* ===========================
   Scrollbar Styling
   =========================== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-thumb {
  background: #4f46e5;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #6366f1;
}

/* ===========================
   Aspect Ratio Utilities
   =========================== */
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-video { aspect-ratio: 16 / 9; }
