@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  --primary: #1e3a8a;
  /* Deep Royal Blue */
  --primary-dark: #0f172a;
  /* Slate 900 */
  --primary-light: #3b82f6;
  /* Blue 500 */
  --accent: #e11d48;
  /* Crimson/Rose */
  --accent-light: #fb7185;
  /* Rose 400 */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --surface: #ffffff;
  --surface-alt: #e2e8f0;
  --card-border: #cbd5e1;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-on-primary: #ffffff;
  --shadow: rgba(15, 23, 42, 0.06);
  --shadow-lg: rgba(15, 23, 42, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.4);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --nav-height: 80px;
}

[data-theme="dark"] {
  --primary: #3b82f6;
  --primary-dark: #1d4ed8;
  --primary-light: #60a5fa;
  --accent: #f43f5e;
  --accent-light: #fb7185;
  --bg: #030712;
  /* Very dark gray, almost black */
  --bg-alt: #0f172a;
  --surface: #111827;
  --surface-alt: #1e293b;
  --card-border: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-on-primary: #ffffff;
  --shadow: rgba(0, 0, 0, 0.4);
  --shadow-lg: rgba(0, 0, 0, 0.6);
  --glass-bg: rgba(15, 23, 42, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#landing-sections,
.dashboard {
  flex: 1;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit
}

ul,
ol {
  list-style: none
}

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

button,
input,
select,
textarea {
  font: inherit;
  border: none;
  outline: none;
  background: none
}

button {
  cursor: pointer
}

/* ===== UTILITIES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px
}

.section {
  padding: 100px 0
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px
}

.gradient-text {
  color: var(--accent);
  -webkit-text-fill-color: var(--accent)
}

.hidden {
  display: none !important
}

#user-menu.hidden {
  display: none !important
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0)
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: all var(--transition)
}

.navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px var(--shadow)
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px
}

.nav-brand img {
  height: 44px;
  width: auto
}

.nav-brand span {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-on-primary)
}

.navbar.scrolled .nav-brand span {
  color: var(--text-primary)
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: .9rem;
  color: rgba(255, 255, 255, .85);
  transition: all var(--transition)
}

.navbar.scrolled .nav-links a {
  color: var(--text-secondary)
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: rgba(255, 109, 0, .08)
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-primary);
  transition: all var(--transition);
  font-size: 1.2rem
}

.navbar.scrolled .theme-toggle {
  color: var(--text-primary)
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, .15)
}

.navbar.scrolled .theme-toggle:hover {
  background: var(--bg-alt)
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-on-primary);
  transition: all var(--transition);
  border-radius: 2px
}

.navbar.scrolled .hamburger span {
  background: var(--text-primary)
}

.navbar.menu-open {
  background: var(--surface) !important;
  border-bottom: 1px solid var(--card-border)
}

.navbar.menu-open .nav-brand span,
.navbar.menu-open .theme-toggle {
  color: var(--text-primary) !important
}

.navbar.menu-open .hamburger span {
  background: var(--text-primary) !important
}

.navbar.menu-open .btn-ghost {
  color: var(--text-primary) !important;
  background: rgba(0, 0, 0, 0.05) !important
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden
}

.btn-primary {
  background: var(--primary);
  color: var(--text-on-primary);
  box-shadow: 0 4px 15px rgba(13, 71, 161, .3)
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(13, 71, 161, .4)
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 109, 0, .3)
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 109, 0, .4)
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, .4);
  color: #fff;
  backdrop-filter: blur(10px)
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .15);
  border-color: #fff
}

.btn-ghost {
  color: var(--primary);
  background: rgba(13, 71, 161, .08)
}

.btn-ghost:hover {
  background: rgba(13, 71, 161, .15)
}

.navbar:not(.scrolled) .btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, .15)
}

.navbar:not(.scrolled) .btn-ghost:hover {
  background: rgba(255, 255, 255, .25)
}

.btn-sm {
  padding: 8px 18px;
  font-size: .85rem
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem
}

.btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none !important
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(rgba(10, 22, 40, 0.78), rgba(10, 22, 40, 0.88)), url('../assets/images/hero_taekwondo.png') no-repeat center center / cover;
}

[data-theme="dark"] .hero {
  background: linear-gradient(rgba(6, 13, 27, 0.85), rgba(6, 13, 27, 0.94)), url('../assets/images/hero_taekwondo.png') no-repeat center center / cover;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.2) 0%, transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(244, 63, 94, 0.15) 0%, transparent 50%);
  opacity: 0.85;
}

.hero-content {
  text-align: center;
  z-index: 2;
  padding: 0 20px;
  margin-top: 40px;
}

.hero-logo {
  width: 160px;
  height: auto;
  margin: 0 auto 24px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .4));
  animation: float 4s ease-in-out infinite
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-15px)
  }
}

.hero h1 {
  font-size: 4rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
  line-height: 1.1;
}

.hero h1 .accent {
  color: #f43f5e;
  -webkit-text-fill-color: #f43f5e;
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, .75);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.08);
  filter: blur(80px);
  z-index: 1;
  animation: floatOrbit 18s ease-in-out infinite alternate;
}

.hero-shape-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  right: -150px;
  background: rgba(225, 29, 72, 0.15);
  animation-duration: 22s;
}

.hero-shape-2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -100px;
  animation-duration: 18s;
  animation-delay: -4s;
}

.hero-shape-3 {
  width: 300px;
  height: 300px;
  top: 40%;
  left: 20%;
  animation-duration: 26s;
  animation-delay: -8s;
}

@keyframes floatOrbit {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(40px, -40px) scale(1.1);
  }

  100% {
    transform: translate(-30px, 30px) scale(0.95);
  }
}

/* ===== CARDS ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition)
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow-lg)
}

.card-body {
  padding: 24px
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px
}

.card-text {
  color: var(--text-secondary);
  font-size: .9rem;
  line-height: 1.6
}

.card-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  background: rgba(255, 109, 0, .12);
  color: var(--accent)
}

/* ===== GLASS CARD ===== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition)
}

/* ===== GRID ===== */
.grid {
  display: grid;
  gap: 24px
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr)
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr)
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr)
}

/* ===== FEATURES / ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center
}

.about-text h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px
}

.about-text p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px
}

.feature-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-sm);
  transition: background var(--transition)
}

.feature-item:hover {
  background: var(--surface-alt)
}

.feature-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: var(--primary);
  color: #fff
}

.feature-item h4 {
  font-weight: 600;
  margin-bottom: 4px
}

.feature-item p {
  font-size: .85rem;
  color: var(--text-secondary)
}

/* ===== INFO TILES ===== */
.info-tile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  transition: all var(--transition)
}

.info-tile:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px var(--shadow)
}

.info-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 71, 161, .08);
  color: var(--primary);
  font-size: 1.2rem
}

.info-tile h4 {
  font-weight: 600;
  font-size: .95rem
}

.info-tile p {
  font-size: .85rem;
  color: var(--text-secondary);
  margin-top: 2px
}

/* ===== TRAINERS ===== */
.trainer-card .card-img {
  height: 260px
}

.trainer-card .card-body {
  text-align: center
}

/* ===== SCHEDULE ===== */
.schedule-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px
}

.schedule-nav button {
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all var(--transition)
}

.schedule-label {
  font-weight: 700;
  min-width: 250px;
  text-align: center
}

.day-group {
  margin-bottom: 24px
}

.day-group h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  padding: 8px 0;
  border-bottom: 2px solid var(--card-border);
  margin-bottom: 12px
}

.schedule-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  transition: all var(--transition)
}

.schedule-item:hover {
  border-color: var(--primary);
  transform: translateX(4px)
}

.schedule-time {
  font-weight: 600;
  color: var(--primary);
  min-width: 120px
}

.schedule-group {
  font-weight: 500
}

.schedule-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600
}

.status-active {
  background: rgba(46, 125, 50, .1);
  color: var(--success)
}

.status-cancelled {
  background: rgba(198, 40, 40, .1);
  color: var(--error)
}

/* ===== PRODUCTS ===== */
.product-card {
  width: 100%;
}

.product-card .card-img {
  height: 320px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.product-card .card-body {
  padding: 12px 14px;
}

.product-card .card-title {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.product-card .card-text {
  font-size: 0.82rem;
  margin-bottom: 4px;
}

.product-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
  margin-top: 4px
}

/* ===== ACHIEVEMENTS ===== */
.achievement-card {
  text-align: center;
  padding: 32px 24px
}

.achievement-icon {
  font-size: 3rem;
  margin-bottom: 16px
}

.achievement-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary)
}

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease
}

.gallery-item:hover img {
  transform: scale(1.05)
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  opacity: 0;
  transition: opacity var(--transition)
}

.gallery-item:hover::after {
  opacity: 1
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px
}

/* ===== FORMS ===== */
.form-group {
  position: relative
}

.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-secondary)
}

/* Form element styling */
.form-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 2px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: .95rem;
  transition: all var(--transition)
}

.form-group.has-icon .form-input {
  padding-left: 44px
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(13, 71, 161, .1)
}

.form-input.error {
  border-color: var(--error)
}

.form-group.has-icon .form-icon {
  position: absolute;
  left: 14px;
  bottom: 14px;
  color: var(--text-secondary);
  font-size: 1.1rem;
  pointer-events: none
}

.form-error {
  font-size: .8rem;
  color: var(--error);
  margin-top: 4px;
  display: none
}

.form-group.has-error .form-error {
  display: block
}

.form-row {
  display: flex;
  gap: 12px
}

.form-row .form-group {
  flex: 1
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  color: var(--text-secondary)
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary)
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition)
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible
}

.modal {
  background: var(--surface);
  border-radius: var(--radius);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(.9) translateY(20px);
  transition: transform var(--transition);
  padding: 0
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0)
}

.modal-header {
  padding: 28px 32px 0;
  text-align: center
}

.modal-header img {
  height: 80px;
  margin: 0 auto 16px
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700
}

.modal-header p {
  color: var(--text-secondary);
  font-size: .9rem;
  margin-top: 4px
}

.modal-body {
  padding: 24px 32px
}

.modal-footer {
  padding: 0 32px 28px;
  text-align: center
}

.modal-footer p {
  font-size: .9rem;
  color: var(--text-secondary)
}

.modal-footer a {
  color: var(--primary);
  font-weight: 600;
  cursor: pointer
}

.modal-footer a:hover {
  text-decoration: underline
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
  font-size: 1.2rem
}

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

/* ===== DASHBOARD ===== */
.dashboard {
  padding-top: calc(var(--nav-height) + 32px);
  min-height: 100vh
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px
}

.dash-welcome h2 {
  font-size: 1.8rem;
  font-weight: 700
}

.dash-welcome p {
  color: var(--text-secondary)
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px
}

.dash-stat {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition)
}

.dash-stat:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px var(--shadow)
}

.dash-stat .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 1.2rem
}

.dash-stat .stat-value {
  font-size: 1.6rem;
  font-weight: 800
}

.dash-stat .stat-label {
  font-size: .85rem;
  color: var(--text-secondary);
  margin-top: 4px
}

.announcement-list {
  display: flex;
  flex-direction: column;
  gap: 12px
}

.announcement-item {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary);
  transition: all var(--transition)
}

.announcement-item:hover {
  box-shadow: 0 4px 20px var(--shadow)
}

.announcement-item h4 {
  font-weight: 600;
  margin-bottom: 4px
}

.announcement-item p {
  color: var(--text-secondary);
  font-size: .9rem
}

.announcement-item .date {
  font-size: .8rem;
  color: var(--text-secondary);
  margin-top: 8px
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--card-border);
  box-shadow: 0 8px 30px var(--shadow-lg);
  min-width: 300px;
  max-width: 420px;
  transform: translateX(120%);
  transition: transform .4s ease;
  font-size: .9rem
}

.toast.show {
  transform: translateX(0)
}

.toast-success {
  border-left: 4px solid var(--success)
}

.toast-error {
  border-left: 4px solid var(--error)
}

.toast-warning {
  border-left: 4px solid var(--warning)
}

.toast-icon {
  font-size: 1.3rem
}

.toast-close {
  margin-left: auto;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 1.1rem
}

/* ===== SPINNER ===== */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, .3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  display: inline-block
}

.spinner-dark {
  border-color: rgba(13, 71, 161, .2);
  border-top-color: var(--primary)
}

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

.loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .8);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  z-index: 10
}

[data-theme="dark"] .loading-overlay {
  background: rgba(11, 17, 32, .8)
}

/* ===== FOOTER ===== */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, .8);
  padding: 60px 0 24px
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px
}

.footer-brand img {
  height: 60px;
  margin-bottom: 16px
}

.footer-brand p {
  font-size: .9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .6)
}

.footer h4 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff
}

.footer ul li {
  margin-bottom: 10px
}

.footer ul a {
  font-size: .9rem;
  color: rgba(255, 255, 255, .6);
  transition: color var(--transition)
}

.footer ul a:hover {
  color: var(--accent-light)
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
  color: rgba(255, 255, 255, .5)
}

/* ===== PHONE VERIFY SECTION ===== */
.phone-verify-group {
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  padding: 16px;
  border: 1px solid var(--card-border)
}

.phone-verify-group .form-row {
  margin-top: 12px
}

.verify-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 600;
  margin-top: 8px
}

.verify-status.verified {
  color: var(--success)
}

.verify-status.pending {
  color: var(--warning)
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: #0a1628;
  padding: 140px 0 80px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: background var(--transition);
}

[data-theme="dark"] .page-header {
  background: #060d1b;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(59, 130, 246, 0.12) 0%, transparent 70%),
    radial-gradient(circle at 20% 80%, rgba(244, 63, 94, 0.05) 0%, transparent 50%);
  opacity: 0.9;
  pointer-events: none;
}

.page-header h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
  position: relative;
  z-index: 2;
}

.page-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.15rem;
  position: relative;
  z-index: 2;
}

/* ===== ANIMATED WAVES ===== */
.animated-waves {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 120px;
  overflow: hidden;
  pointer-events: none;
  z-index: 10;
}

.animated-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: var(--bg);
  transition: background var(--transition);
  -webkit-mask-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"%3E%3Cpath d="M0,60 C300,120 300,120 600,60 C900,0 900,0 1200,60 L1200,120 L0,120 Z"/%3E%3C/svg%3E');
  mask-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"%3E%3Cpath d="M0,60 C300,120 300,120 600,60 C900,0 900,0 1200,60 L1200,120 L0,120 Z"/%3E%3C/svg%3E');
  -webkit-mask-size: 25% 100%;
  mask-size: 25% 100%;
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
}

.animated-wave-1 {
  animation: waveAnim 12s linear infinite;
  z-index: 10;
  background: linear-gradient(to bottom, transparent 5%, var(--bg) 95%) !important;
  opacity: 1 !important;
  height: 90px;
  bottom: 0;
}

.animated-wave-2 {
  animation: waveAnim 18s linear infinite;
  z-index: 9;
  background: linear-gradient(to bottom, transparent 15%, var(--bg) 100%) !important;
  opacity: 0.6;
  height: 105px;
  bottom: 0;
}

.animated-wave-3 {
  animation: waveAnim 24s linear infinite;
  z-index: 8;
  background: linear-gradient(to bottom, transparent 25%, var(--bg) 100%) !important;
  opacity: 0.3;
  height: 120px;
  bottom: 0;
}

@keyframes waveAnim {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-25%);
  }

  /* 25% of 200% width = exactly one mask-size period */
}

/* ===== FOOTER WAVE FIX ===== */
.footer .animated-waves {
  display: none !important;
}

/* ===== APP DOWNLOAD ===== */
.app-download {
  margin-top: 60px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-block;
  max-width: 600px;
}

.app-download h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.store-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all var(--transition);
}

.store-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.store-btn svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.store-text {
  text-align: left;
}

.store-text small {
  display: block;
  font-size: 0.7rem;
  opacity: 0.8;
}

.store-text strong {
  font-size: 1.1rem;
  display: block;
}

/* ===== VIDEO SECTION ===== */
.video-section {
  background: linear-gradient(to bottom, var(--bg) 0%, rgba(13, 71, 161, 0.15) 50%, var(--primary-dark) 100%);
  padding: 40px 0 60px;
  position: relative;
  transition: background var(--transition);
}

[data-theme="dark"] .video-section {
  background: linear-gradient(to bottom, var(--bg) 0%, rgba(13, 71, 161, 0.2) 100%);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.video-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow);
  border: 1px solid var(--card-border);
  transition: all var(--transition);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px var(--shadow-lg);
}

.video-placeholder {
  aspect-ratio: 16/9;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}

.play-btn {
  width: 60px;
  height: 60px;
  background: rgba(13, 71, 161, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  padding-left: 5px;
  transition: all var(--transition);
  backdrop-filter: blur(4px);
}

.video-placeholder:hover .play-btn {
  transform: scale(1.1);
  background: var(--accent);
}

/* ===== RESPONSIVE ===== */
@media(max-width:1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr)
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr
  }

  .about-grid {
    grid-template-columns: 1fr
  }

  .contact-grid {
    grid-template-columns: 1fr
  }

  .hero h1 {
    font-size: 2.4rem
  }

  .hero-stats {
    gap: 32px
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media(max-width:768px) {
  /* --- NAVBAR MOBIL --- */
  :root {
    --nav-height: 56px;
  }

  .navbar .container {
    padding: 0 12px;
  }

  .nav-brand img {
    height: 32px;
  }

  .nav-brand span {
    font-size: 0.9rem;
  }

  .nav-actions .btn-sm,
  .nav-actions .btn-accent {
    padding: 6px 12px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  /* --- HAMBURGER MENÜ — YARI SAYDAM OVERLAY --- */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 55%;
    max-width: 210px; /* Ekranın yarısından fazlasını kaplamaması için küçültüldü */
    height: 100vh;
    background: rgba(15, 23, 42, 0.35); /* Daha aydınlık, şeffaf koyu mavi/gri */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 70px 20px 24px;
    gap: 4px;
    transition: right var(--transition);
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    overflow-y: auto;
  }

  [data-theme="light"] .nav-links {
    background: rgba(255, 255, 255, 0.5); /* Işıltılı ve ferah */
  }

  .nav-links.open {
    right: 0;
  }

  /* Hamburger menü açıkken arka plan overlay */
  .nav-links.open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.15); /* GÖLGE ETKİSİ YARATAN KARARTMA %50'DEN %15'E İNDİRİLDİ */
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: -1;
  }

  .nav-links a {
    color: var(--text-primary) !important;
    padding: 14px 16px;
    width: 100%;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .hamburger {
    display: flex;
  }

  /* --- HERO MOBIL --- */
  .hero {
    min-height: auto;
    padding: 80px 0 50px;
  }

  .hero-content {
    margin-top: 10px;
    padding: 0 12px;
  }

  .hero-logo {
    width: 90px;
    margin-bottom: 16px;
  }

  .hero h1 {
    font-size: 1.7rem;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 24px;
    line-height: 1.6;
  }

  .hero-buttons .btn-lg {
    padding: 12px 28px;
    font-size: 0.95rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  /* --- APP DOWNLOAD MOBIL --- */
  .app-download {
    margin-top: 24px;
    margin-bottom: 20px;
    padding: 18px 16px;
  }

  .app-download h3 {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .app-download p {
    font-size: 0.82rem !important;
  }

  .store-buttons {
    gap: 10px;
  }

  .store-btn {
    padding: 8px 14px;
    gap: 8px;
  }

  .store-btn svg {
    width: 18px;
    height: 18px;
  }

  .store-text small {
    font-size: 0.6rem;
  }

  .store-text strong {
    font-size: 0.9rem;
  }

  /* --- DALGALAR MOBIL --- */
  .animated-waves {
    height: 45px;
  }

  .animated-wave {
    -webkit-mask-size: 50% 100%;
    mask-size: 50% 100%;
  }

  .animated-wave-1 {
    animation: waveAnimMobile 12s linear infinite;
    height: 30px;
    bottom: 0;
  }

  .animated-wave-2 {
    animation: waveAnimMobile 18s linear infinite;
    height: 38px;
    bottom: 0;
  }

  .animated-wave-3 {
    animation: waveAnimMobile 24s linear infinite;
    height: 45px;
    bottom: 0;
  }

  /* --- GRID MOBIL --- */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .video-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* --- SECTION / PAGE-HEADER MOBIL --- */
  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 32px;
  }

  .page-header {
    padding: 100px 0 50px;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .page-header p {
    font-size: 0.95rem;
  }

  /* --- DASHBOARD / ADMIN PANEL MOBIL --- */
  .dash-tabs {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  .dash-tab-btn {
    font-size: 0.75rem !important;
    padding: 6px 10px !important;
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
  }

  .admin-tab .card {
    padding: 14px !important;
  }

  .admin-tab table {
    font-size: 0.8rem;
  }

  .admin-tab th {
    padding: 10px 8px !important;
    font-size: 0.72rem;
  }

  .admin-tab td {
    padding: 10px 8px !important;
    font-size: 0.82rem;
  }

  #admin-product-form {
    padding: 14px !important;
  }

  #admin-product-form .form-row {
    flex-direction: column;
  }

  /* --- FORM MOBIL --- */
  .form-row {
    flex-direction: column;
  }

  .form-input {
    padding: 12px 14px;
    font-size: 0.9rem;
    min-height: 44px;
  }

  /* --- MODAL MOBIL --- */
  .modal {
    margin: 8px;
    max-height: 95vh;
  }

  .modal-header {
    padding: 20px 20px 0;
  }

  .modal-body {
    padding: 16px 20px;
  }

  .modal-footer {
    padding: 0 20px 20px;
  }

  /* --- FOOTER MOBIL --- */
  .footer {
    padding: 40px 0 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* --- SCHEDULE MOBIL --- */
  .schedule-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
  }

  .schedule-label {
    min-width: auto;
  }

  .schedule-time {
    font-size: 1rem !important;
  }

  /* --- TOAST MOBIL --- */
  .toast-container {
    top: 64px;
    right: 8px;
    left: 8px;
  }

  .toast {
    min-width: auto;
    max-width: 100%;
    font-size: 0.82rem;
    padding: 10px 14px;
  }

  /* --- AUTH SAYFASI MOBIL --- */
  .auth-glass {
    padding: 24px 18px !important;
    border-radius: 16px !important;
  }

  .auth-container {
    padding: 20px 12px !important;
  }

  .back-btn {
    top: 12px;
    left: 12px;
    font-size: 0.85rem;
    padding: 8px 14px;
  }

  /* --- CONTACT MOBIL --- */
  .info-tile {
    padding: 14px;
    gap: 12px;
  }

  .info-tile h4 {
    font-size: 0.88rem;
  }

  .info-tile p {
    font-size: 0.8rem;
  }

  /* --- PRODUCT CARD MOBIL --- */
  .product-card {
    max-width: 100%;
  }

  .product-card .card-img {
    height: 220px;
  }
}

@keyframes waveAnimMobile {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media(max-width:480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .hero-logo {
    width: 80px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-lg {
    width: 100%;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  /* Dashboard ek küçültme */
  .dash-tab-btn {
    font-size: 0.7rem !important;
    padding: 5px 8px !important;
  }

  .admin-tab th,
  .admin-tab td {
    padding: 8px 6px !important;
    font-size: 0.75rem;
  }
}

/* ===== PREMIUM DASHBOARD TABLES & LAYOUT ===== */
.admin-tab table {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--card-border);
  margin-top: 12px;
}

.admin-tab th {
  background: var(--surface-alt) !important;
  color: var(--text-primary) !important;
  font-weight: 700;
  padding: 16px 20px !important;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 2px solid var(--card-border) !important;
}

.admin-tab td {
  padding: 16px 20px !important;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--card-border);
  font-size: 0.95rem;
  background: var(--surface);
  transition: background 0.3s;
}

.admin-tab tr:last-child td {
  border-bottom: none;
}

.admin-tab tr:hover td {
  background: var(--bg-alt);
}

/* Light mod için genel okunabilirlik takviyeleri */
[data-theme="light"] .info-tile {
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .card {
  background: #ffffff;
}

[data-theme="light"] .btn-outline {
  border-color: var(--primary);
  color: var(--primary);
}

[data-theme="light"] .btn-outline:hover {
  background: rgba(30, 58, 138, 0.08);
}

/* Genel Giriş Yap Butonu Yeşil Renk Optimizasyonu (Tüm Temalar) */
.navbar.scrolled a[href="auth.html#login"],
.navbar.menu-open a[href="auth.html#login"] {
  background: rgba(16, 185, 129, 0.1) !important;
  color: var(--success) !important;
  border: none !important;
}

.navbar.scrolled a[href="auth.html#login"]:hover,
.navbar.menu-open a[href="auth.html#login"]:hover {
  background: rgba(16, 185, 129, 0.2) !important;
  color: var(--success) !important;
}

.navbar:not(.scrolled) a[href="auth.html#login"] {
  background: var(--success) !important;
  color: #fff !important;
  border: none !important;
}

.navbar:not(.scrolled) a[href="auth.html#login"]:hover {
  background: #059669 !important;
  color: #fff !important;
}

#login-form button[type="submit"],
.hero-buttons a[href="auth.html#login"] {
  background: var(--success) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
}

#login-form button[type="submit"]:hover,
.hero-buttons a[href="auth.html#login"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4) !important;
  background: #059669 !important;
}