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

/* --- Tokens --- */
:root {
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", Helvetica, Arial, sans-serif;
  --spring-easing: cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition: all 0.4s var(--spring-easing);

  --primary: #007AFF;
  --primary-hover: #0062cc;
  --primary-glow: rgba(0, 122, 255, 0.15);

  --bg-base: #F2F2F7;
  --bg-subtle: #E5E5EA;
  --bg-gradient: linear-gradient(180deg, #F2F2F7 0%, #FFFFFF 100%);

  --text: #1C1C1E;
  --text-secondary: #3A3A3C;
  --text-muted: #8E8E93;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-blur: blur(30px) saturate(180%);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);

  --card-bg: rgba(255, 255, 255, 0.85);
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --card-radius: 24px;

  --border: rgba(0, 0, 0, 0.08);
  --ring: rgba(0, 122, 255, 0.3);

  --btn-primary-bg: #007AFF;
  --btn-primary-text: #ffffff;
  --btn-outline-border: rgba(0, 122, 255, 0.3);
  --btn-outline-text: #007AFF;
  --btn-outline-hover-bg: rgba(0, 122, 255, 0.08);
  --btn-outline-hover-text: #007AFF;


  --hero-text: #ffffff;
  --hero-overlay: rgba(0, 0, 0, 0.2);

  --container-padding: 24px;
}



[data-theme="dark"] {
  --primary: #0A84FF;
  --primary-hover: #409CFF;
  --primary-glow: rgba(10, 132, 255, 0.2);

  --bg-base: #000000;
  --bg-subtle: #1C1C1E;
  --bg-gradient: linear-gradient(180deg, #000000 0%, #1C1C1E 100%);

  --text: #FFFFFF;
  --text-secondary: #D1D1D6;
  --text-muted: #98989D;

  --glass-bg: rgba(30, 30, 30, 0.70);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(30px) saturate(180%);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);

  --card-bg: rgba(28, 28, 30, 0.65);
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --card-radius: 24px;

  --border: rgba(255, 255, 255, 0.12);
  --ring: rgba(10, 132, 255, 0.3);

  --btn-primary-bg: #0A84FF;
  --btn-primary-text: #ffffff;
  --btn-outline-border: rgba(255, 255, 255, 0.2);
  --btn-outline-text: #0A84FF;
  --btn-outline-hover-bg: rgba(10, 132, 255, 0.15);
  --btn-outline-hover-text: #FFFFFF;

  --hero-text: #ffffff;
  --hero-overlay: rgba(0, 0, 0, 0.4);
}

/* --- Base --- */
*,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-stack);
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
  overflow-anchor: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

/* --- Utilities --- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.3), var(--glass-shadow);
}

.glass-accent {
  background: var(--bg-subtle);
  backdrop-filter: none;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}

.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-3 {
  margin-bottom: 3rem;
}

.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

.w-100 {
  width: 100%;
}

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



.logo-isa {
  height: 120px;
  filter: grayscale(1) brightness(0.5);
  opacity: 0.8;
  transition: var(--transition);
}

[data-theme="dark"] .logo-isa {
  filter: grayscale(1) invert(1) brightness(1.5);
  opacity: 0.9;
}

/* --- Typography --- */
h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}

p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 2rem;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.header.scrolled {
  padding: 0.75rem 2rem;
  background: rgba(255, 255, 255, 0.40);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

[data-theme="dark"] .header.scrolled {
  background: rgba(18, 18, 18, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-text,
.nav-toggle i {
  color: var(--text);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: color 0.3s ease;
}

[data-theme="dark"] .logo-text,
[data-theme="dark"] .nav-toggle i {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border);
}

.logo-text {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-toggle {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
}

/* --- Sidebar --- */
.sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  z-index: 1100;
  padding: 2rem;
  transition: var(--transition);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-left: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
}

.sidebar.active {
  right: 0;
}

.desktop-nav {
  display: none;
}

@media (min-width: 769px) {
  .nav-toggle {
    display: none;
  }

  .desktop-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
  }

  .desktop-nav a {
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    opacity: 0.8;
  }

  .desktop-nav a:hover {
    color: var(--primary);
    opacity: 1;
    transform: translateY(-1px);
  }

  .desktop-nav .btn-primary {
    color: var(--btn-primary-text) !important;
    opacity: 1;
  }

  .desktop-nav .btn-primary:hover {
    color: var(--btn-primary-text) !important;
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.4);
  }

  .header {
    padding: 1rem 4rem;
  }
}

.sidebar-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 2rem;
}

.close-sidebar {
  background: none;
  border: none;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
}

.lang-switcher {
  display: flex;
  background: var(--bg-subtle);
  border-radius: 9px;
  padding: 2px;
  gap: 0;
  border: none;
  margin-right: auto;
  position: relative;
  height: 32px;
}

.lang-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0 12px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s var(--spring-easing);
  opacity: 0.6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-weight: 500;
  -webkit-tap-highlight-color: transparent;
}

.lang-btn:hover {
  opacity: 1;
}

.lang-btn.active {
  background: var(--card-bg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 1px rgba(0, 0, 0, 0.05);
  opacity: 1;
  color: var(--text);
  font-weight: 600;
  border: none;
}

.sidebar-nav ul {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 0.5rem;
}

.sidebar-nav a {
  display: block;
  padding: 0.875rem 1rem;
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  transition: var(--transition);
}

.sidebar-nav a:hover {
  background: var(--primary-glow);
  transform: translateX(4px);
}

.sidebar-nav a.highlight {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.sidebar-nav a.highlight:hover {
  background: var(--primary-hover);
  transform: translateX(0) scale(1.02);
  box-shadow: 0 6px 16px rgba(0, 122, 255, 0.4);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.theme-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--primary-glow);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  background: var(--bg-subtle);
  transform: translateY(-2px);
}

.theme-toggle-btn i {
  font-size: 1.125rem;
  color: var(--primary);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.96);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  background: var(--text-muted);
  pointer-events: none;
}

.btn-primary:disabled {
  background: var(--btn-primary-bg);
  box-shadow: none;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.4);
}

.btn-primary:active {
  transform: scale(0.96) translateY(0);
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.2);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--btn-outline-border);
  color: var(--btn-outline-text);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: var(--btn-outline-hover-bg);
  color: var(--btn-outline-hover-text);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-outline:active {
  transform: scale(0.96);
}

/* --- Hero --- */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  position: relative;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: var(--hero-overlay);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.75rem, 10vw, 6rem);
  margin-bottom: 0.75rem;
  color: var(--hero-text);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.hero-logo {
  width: 120px;
  border-radius: 24px;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.hero .btn-primary {
  background: #ffffff;
  color: #111111;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.hero .btn-primary:hover {
  background: #f4f4f5;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
}

.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: #ffffff;
}

/* --- Layout --- */
main {
  padding-top: 100px;
  min-height: 100vh;
}

.landing-page main {
  padding-top: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* --- Forms --- */
.form-card {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2.5rem;
  border-radius: 32px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-left: 4px;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--bg-subtle);
  border: 1px solid transparent;
  border-radius: 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

input:not([type="checkbox"]):not([type="radio"])::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  outline: none;
  background: var(--bg-base);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

input[type="checkbox"],
input[type="radio"] {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  accent-color: var(--primary);
  cursor: pointer;
  vertical-align: middle;
}

input[type="checkbox"]:focus,
input[type="radio"]:focus {
  outline: 2px solid var(--primary-glow);
  outline-offset: 2px;
}

.error {
  color: #FF3B30;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  margin-left: 4px;
  font-weight: 500;
}

/* --- Dashboard --- */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

@media (max-width: 768px) {
  .dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-bottom: 6rem;
  }
}

/* --- Signature --- */
.signature-pad-container {
  border: 2px solid var(--border);
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  margin-bottom: 0.5rem;
}

[data-theme="dark"] .signature-pad-container {
  background: var(--bg-subtle);
}

canvas#signaturePad {
  width: 100%;
  height: 200px;
  display: block;
  cursor: crosshair;
}

.signature-footer {
  padding: 0.5rem;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

[data-theme="dark"] .signature-footer {
  background: rgba(255, 255, 255, 0.05);
}


/* --- Card Styles --- */
.card {
  padding: 2rem;
  border-radius: var(--card-radius);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  will-change: transform;
}


@media (hover: hover) {
  .card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-glow);
  }
}

.card:active {
  transform: scale(0.98);
}

.card i {
  font-size: 2.5rem;
  color: var(--text);
}

.card h3 {
  font-size: 1.25rem;
  margin: 0;
  color: var(--text);
}

.card p {
  color: var(--text-muted);
  flex-grow: 1;
  font-size: 0.9375rem;
}


/* --- Payment --- */
.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  display: inline-block;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.privacy-section input[type="checkbox"],
.privacy-section input[type="radio"] {
  margin-top: 0.25rem;
}

/* --- Accordion --- */
details[open] summary i {
  transform: rotate(90deg);
}

details summary {
  margin: 0;
  padding: 0.25rem 0.5rem;
  line-height: 1.2;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}

details summary i {
  font-size: 0.7rem;
  margin-right: 0.4rem;
}

details>div {
  font-size: 0.85rem;
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--border);
  line-height: 1.4;
}

details p {
  margin: 0.5rem 0;
}

/* --- Footer --- */
footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}

footer p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.welcome-banner {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  max-height: 600px;
  background-size: cover;
  background-position: center;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.welcome-content {
  position: relative;
  z-index: 2;
  color: #fff !important;
}

.welcome-content h1 {
  color: #ffffff;
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.5rem;
}

.welcome-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  font-weight: 500;
}

/* --- Animations --- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.7s ease forwards;
}


/* --- Page Content --- */
.page-content {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.content-section {
  margin-bottom: 3rem;
}

.content-section h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  margin-bottom: 1rem;
}

.content-section .subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  display: block;
}

.text-block {
  background: var(--glass-bg);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  margin-bottom: 2rem;
}

.privacy-text-block {
  background: var(--glass-bg);
  padding: 0.5rem;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  margin-bottom: 2rem;
}

.text-block p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* --- Discipline Grid --- */
.discipline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.discipline-card {
  background: var(--glass-bg);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  transition: var(--transition);
}

.discipline-card:hover {
  transform: translateY(-5px);
  background: var(--primary-glow);
  box-shadow: var(--card-shadow);
}

.discipline-card h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}

/* --- Text Pages Responsive --- */
@media (max-width: 768px) {
  .page-content {
    padding: 0;
  }

  .text-block {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .content-section h1 {
    font-size: 2.5rem;
  }

  .content-section .subtitle {
    margin-bottom: 2rem;
  }
}

/* --- Mobile Layout --- */
@media (max-width: 768px) {
  :root {
    --container-padding: 1.25rem;
  }

  .header {
    padding: 1rem;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .hero p {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .form-card {
    padding: 1.5rem;
    margin: 1rem auto;
    border-radius: 16px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.25rem;
  }

  .card {
    padding: 1.5rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    width: 100%;
    margin-bottom: 0.75rem;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
    padding: 0 2rem;
  }

  .form-grid {
    grid-template-columns: 1fr !important;
  }

  .hero-logo {
    width: 96px;
  }
}

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

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

  .hero-logo {
    width: 80px;
    border-radius: 18px;
  }
}

/* --- Book Section --- */
.book-container {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 1.5rem;
}

.book-image {
  flex: 0 0 200px;
}

.book-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.book-image img:hover {
  transform: scale(1.02);
}

.book-details {
  flex: 1;
}

.book-details h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.book-details .author {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1rem;
  display: block;
}

.book-actions {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.book-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

@media (max-width: 768px) {
  .book-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .book-actions {
    justify-content: center;
  }
}

/* --- Overlays --- */
.fixed-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -9;
  background: rgba(0, 0, 0, 0.13);
  backdrop-filter: blur(0px);
  pointer-events: none;

}

/* --- Alerts --- */
.alert-warning {
  font-size: 0.8rem;
  padding: 0.8rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  font-weight: 500;
  color: #c2410c;
  border: 1px solid #ffedd5;
}


[data-theme="dark"] .alert-warning {
  background-color: rgba(67, 20, 7, 0.4);
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.2);
}

/* --- Dashboard Card Base --- */
.dashboard-grid .card {
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: none;
  color: #ffffff;
  border-radius: 28px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;

  align-items: flex-start;
  text-align: left;
}

.dashboard-grid .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -2;
  transition: transform 0.5s ease;
}

.dashboard-grid .card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
  z-index: -1;
  transition: background 0.3s ease;
}

.dashboard-grid .card:hover::before {
  transform: scale(1.05);
}

.dashboard-grid .card:hover::after {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.dashboard-grid .card h3,
.dashboard-grid .card p {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.dashboard-grid .card i {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  backdrop-filter: blur(5px);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  padding: 12px;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-grid .card .btn {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(5px);
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

.dashboard-grid .card .btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* --- Card Backgrounds --- */
/* 1. Slackline */
.dashboard-grid .card:nth-child(1)::before {
  background-image: url('https://images.unsplash.com/photo-1754847654457-6160f070d47b?q=80&w=600&auto=format&fit=crop');
}

/* 2. Chi Siamo */
.dashboard-grid .card:nth-child(2)::before {
  background-image: url('https://images.unsplash.com/photo-1760982665294-cd22b2bfb15d?q=80&w=600&auto=format&fit=crop');
}

/* 3. Corsi */
.dashboard-grid .card:nth-child(3)::before {
  background-image: url('https://images.unsplash.com/photo-1754847537377-8bbe7570e56c?q=80&w=600&auto=format&fit=crop');
}

/* 4. Foto & Video */
.dashboard-grid .card:nth-child(4)::before {
  background-image: url('https://images.unsplash.com/photo-1760982665211-5ba2f07cdd73?q=80&w=600&auto=format&fit=crop');
}

/* 5. Eventi */
.dashboard-grid .card:nth-child(5)::before {
  background-image: url('https://images.unsplash.com/photo-1760982665375-d06315cda251?q=80&w=600&auto=format&fit=crop');
}

/* 6. Contatti */
.dashboard-grid .card:nth-child(6)::before {
  background-image: url('https://images.unsplash.com/photo-1754847673883-91899af00edb?q=80&w=600&auto=format&fit=crop');
}

/* 7. Tesseramento */
.dashboard-grid .card:nth-child(7)::before {
  background-image: url('https://images.unsplash.com/photo-1754847682917-545beea4863c?q=80&w=1200&auto=format&fit=crop');
  background-position: center 30%;
}

.welcome-banner {
  background: transparent !important;
  height: auto !important;
  min-height: auto !important;
  padding: 6rem 1rem 2rem 1rem;
  margin-bottom: 1rem;
}

.welcome-content h1 {
  font-weight: 800;
}

/* --- Shine Effect --- */
@keyframes shiny-sweep {
  0% {
    left: -100%;
    opacity: 0;
  }

  5% {
    opacity: 0.5;
  }

  100% {
    left: 200%;
    opacity: 0;
  }
}

.shiny-card {
  position: relative;
  overflow: hidden;
}

.shiny-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right,
      transparent 0%,
      rgba(255, 255, 255, 0.4) 50%,
      transparent 100%);
  transform: skewX(-25deg);
  pointer-events: none;
  z-index: 2;
}

.shiny-card.shine-active::before {
  animation: shiny-sweep 2.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}