:root {
    --bg-color: #0d0f1a;
    --text-color: #e0e0e0;
    --header-bg: rgba(13, 15, 26, 0.8);
    --popup-bg: #1e233a; 
    --card-bg: rgba(30, 35, 58, 0.5);
    --card-border: rgba(100, 110, 180, 0.3);
    --accent-color-1: #00f2fe;
    --accent-color-2: #c43ad6;
    --shadow-color: rgba(0, 242, 254, 0.2);
    --font-main: 'Roboto', sans-serif;
    --font-headings: 'Onest', sans-serif; 
}

[data-theme="light"] {
    --bg-color: #f5f6fa;
    --text-color: #2f3542;
    --header-bg: rgba(245, 246, 250, 0.85);
    --popup-bg: #ffffff; 
    --card-bg: #ffffff;
    --card-border: #dfe4ea;
    --accent-color-1: #3742fa;
    --accent-color-2: #ff4757;
    --shadow-color: rgba(47, 53, 66, 0.1);
}

/* Light theme specific overrides */
[data-theme="light"] .glass-footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .glass-footer h3,
[data-theme="light"] .glass-footer p,
[data-theme="light"] .glass-footer a {
    color: #333;
}

[data-theme="light"] .glass-footer a:hover {
    color: #667eea;
}

[data-theme="light"] #payment-modal .modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #333;
}

[data-theme="light"] .payment-system-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #333;
}

[data-theme="light"] .payment-system-card:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

[data-theme="light"] .payment-system-card.active {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
}

[data-theme="light"] #final-pay-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 1px solid rgba(102, 126, 234, 0.5);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

[data-theme="light"] #final-pay-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

[data-theme="light"] .modal-header,
[data-theme="light"] .modal-body,
[data-theme="light"] .modal-footer {
    color: #333;
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #333;
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus {
    background: rgba(255, 255, 255, 0.9);
    border-color: #667eea;
}

[data-theme="light"] #payment-identifier {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #333;
}

[data-theme="light"] #payment-identifier:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2), 0 8px 25px rgba(102, 126, 234, 0.15);
}

[data-theme="light"] #payment-identifier + label {
    color: #666;
    background: #f8f9fa;
    top: 50%;
    transform: translateY(-50%);
}

[data-theme="light"] .form-hint {
    color: #666;
}

/* Light theme for manual payment */
[data-theme="light"] .manual-payment-container {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .manual-payment-title {
    background: rgba(102, 126, 234, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: #667eea;
}

[data-theme="light"] .manual-payment-instructions p {
    color: #333;
    opacity: 0.85;
}

[data-theme="light"] .transaction-input,
[data-theme="light"] #paypal-transaction-id {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #333;
}

[data-theme="light"] .transaction-input:focus,
[data-theme="light"] #paypal-transaction-id:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

[data-theme="light"] .transaction-input::placeholder,
[data-theme="light"] #paypal-transaction-id::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .contact-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #333;
}

[data-theme="light"] .contact-card:hover {
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .form-submit-button {
    background: rgba(102, 126, 234, 0.9);
    color: white;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

[data-theme="light"] .form-submit-button:hover {
    background: rgba(102, 126, 234, 1);
    transform: translateY(-2px);
}

[data-theme="light"] .form-group label {
    color: #333;
}

[data-theme="light"] #form-status {
    color: #333;
}

/* Light theme footer overrides */
[data-theme="light"] .footer {
    background: #f8f9fa !important;
}

/* Общие стили для footer */
.footer {
    padding: 40px 0 20px;
    background: rgba(15, 15, 15, 0.9);
    color: #ccc;
    text-align: center;
    font-size: 0.9rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    opacity: 0.6;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: inherit;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer-legal a:hover {
    opacity: 1;
}

/* Стили для светлой темы */
[data-theme="light"] .footer {
    background: #f8f9fa !important;
    color: #333 !important;
}

[data-theme="light"] .footer-bottom {
    border-top-color: rgba(0, 0, 0, 0.1) !important;
}

@media (max-width: 768px) {
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
}

[data-theme="light"] .footer::before {
    background: radial-gradient(circle at 30% 20%, rgba(102, 126, 234, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(118, 75, 162, 0.05) 0%, transparent 50%) !important;
}

[data-theme="light"] .social-link {
    background: rgba(0, 0, 0, 0.03) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .social-link:hover {
    border-color: rgba(0, 0, 0, 0.2) !important;
}

[data-theme="light"] .footer-divider {
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent) !important;
}

[data-theme="light"] .modern-contact-section {
    background: #f8f9fa !important;
}

[data-theme="light"] .contact-form-card,
[data-theme="light"] .info-card {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .floating-input input,
[data-theme="light"] .floating-input textarea {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #333 !important;
}

[data-theme="light"] .floating-input label {
    color: #666 !important;
}

[data-theme="light"] .floating-input input:focus + label,
[data-theme="light"] .floating-input textarea:focus + label,
[data-theme="light"] .floating-input input:not(:placeholder-shown) + label,
[data-theme="light"] .floating-input textarea:not(:placeholder-shown) + label {
    color: var(--accent-color-1) !important;
}

.svg-icon {
    fill: var(--text-color);
    transition: fill 0.3s ease;
}

.modern-cta-btn:hover .svg-icon {
    fill: var(--bg-color);
}

[data-theme="light"] .modern-cta-btn.primary .svg-icon {
    fill: #fff;
}

[data-theme="light"] .modern-cta-btn.primary:hover .svg-icon {
    fill: var(--accent-color-1);
}

[data-theme="light"] .modern-cta-btn.secondary .svg-icon {
    fill: var(--text-color);
}

[data-theme="light"] .modern-cta-btn.secondary:hover .svg-icon {
    fill: var(--accent-color-1);
}

::selection {
  background-color: var(--accent-color-1);
  color: var(--bg-color);
  text-shadow: none;
}
::-moz-selection {
  background-color: var(--accent-color-1);
  color: var(--bg-color);
  text-shadow: none;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    cursor: url(/cursors/default.cur), auto;
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a, button, .course-card, .why-us-card, .tariff-card, .donation-card.clickable, .payment-system-card, .close-button, .lang-dropdown li {
    cursor: url(/cursors/pointer.cur), pointer;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* === HEADER === */
header { 
  position: fixed; 
  width: 100%; 
  top: 0; 
  z-index: 1000; 
  padding: 15px 0; 
  background: rgba(255, 255, 255, 0.1); 
  backdrop-filter: blur(20px); 
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2); 
  transition: all 0.3s ease; 
}
header.scrolled { 
  background: rgba(255, 255, 255, 0.15); 
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); 
}
header .container { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
}
.logo { 
  font-family: var(--font-headings); 
  font-size: 1.5rem; 
  color: var(--accent-color-1);
  text-decoration: none; 
  font-weight: 800; 
  transition: all 0.3s ease;
  position: relative;
}
.logo:hover {
  transform: scale(1.05);
}
header .desktop-nav { 
  display: flex; 
  gap: 30px; 
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 2px solid var(--card-border);
  border-radius: 50px;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.mobile-menu-toggle::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.mobile-menu-toggle:hover::before {
  left: 100%;
}

.mobile-menu-toggle:hover {
  background: var(--card-bg-hover);
  border-color: var(--accent-color-1);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--shadow-color);
}

.mobile-menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-color);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: center;
  margin: 3px 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu-toggle.active {
  background: linear-gradient(135deg, var(--accent-color-1), var(--accent-color-2));
  border-color: var(--accent-color-1);
  box-shadow: 0 0 20px rgba(55, 66, 250, 0.3);
}

.mobile-menu-toggle.active span:first-child {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

[data-theme="light"] .mobile-menu-toggle {
  background: var(--card-bg);
  border-color: var(--card-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .mobile-menu-toggle:hover {
  background: var(--card-bg-hover);
  border-color: var(--accent-color-1);
}

[data-theme="light"] .mobile-menu-toggle.active {
  background: linear-gradient(135deg, var(--accent-color-1), var(--accent-color-2));
  border-color: var(--accent-color-1);
  box-shadow: 0 0 20px rgba(55, 66, 250, 0.2);
}

/* Mobile navigation */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

[data-theme="light"] .mobile-nav {
  background: rgba(255, 255, 255, 0.95);
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  gap: 40px;
  padding: 80px 20px 20px;
}

.mobile-nav-content a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  transition: all 0.4s ease;
  position: relative;
  padding: 18px 35px;
  border-radius: 50px;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 2px solid var(--card-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .mobile-nav-content a {
  background: var(--card-bg);
  border-color: var(--card-border);
}

.mobile-nav-content a:hover {
  color: white;
  transform: translateY(-3px);
  background: linear-gradient(135deg, var(--accent-color-1), var(--accent-color-2));
  border-color: var(--accent-color-1);
  box-shadow: 0 10px 30px var(--shadow-color);
}

[data-theme="light"] .mobile-nav-content a:hover {
  color: white;
  background: linear-gradient(135deg, var(--accent-color-1), var(--accent-color-2));
  box-shadow: 0 10px 30px rgba(55, 66, 250, 0.2);
}

.mobile-nav-content a::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-color-1), var(--accent-color-2));
  transition: width 0.3s ease;
}

.mobile-nav-content a:hover::after {
  width: 100%;
}
header nav a { 
  color: var(--text-color); 
  text-decoration: none; 
  font-weight: 500; 
  transition: all 0.3s ease; 
  position: relative; 
}
header nav a:hover { 
  color: var(--accent-color-1); 
}
header nav a::after { 
  content: ''; 
  position: absolute; 
  bottom: -5px; 
  left: 0; 
  width: 0; 
  height: 2px; 
  background: linear-gradient(90deg, var(--accent-color-1), var(--accent-color-2)); 
  transition: width 0.3s ease; 
}
header nav a:hover::after { 
  width: 100%; 
}
.header-controls { 
  display: flex; 
  align-items: center; 
  gap: 15px; 
}
#theme-switcher { 
  background: none; 
  border: 1px solid var(--card-border); 
  border-radius: 50%; 
  width: 40px; 
  height: 40px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  transition: background-color 0.3s, border-color 0.3s; 
}
#theme-switcher:hover { 
  background-color: var(--card-bg); 
  border-color: var(--accent-color-1); 
}
#theme-switcher img { 
  width: 22px; 
  height: 22px; 
}
.language-switcher { 
  position: relative; 
}
.current-lang { 
  background: none; 
  border: 1px solid var(--card-border); 
  border-radius: 20px; 
  padding: 5px 12px; 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  color: var(--text-color); 
  font-family: var(--font-main); 
  font-weight: 700; 
}
.current-lang img { 
  width: 20px; 
  height: 20px; 
}
.lang-dropdown { 
  display: none; 
  position: absolute; 
  top: 120%; 
  right: 0; 
  background-color: var(--popup-bg); 
  border: 1px solid var(--card-border); 
  border-radius: 8px; 
  list-style: none; 
  padding: 5px; 
  box-shadow: 0 5px 15px var(--shadow-color); 
  min-width: 120px; 
  z-index: 1001; 
  opacity: 0; 
  transform: translateY(-10px); 
  visibility: hidden; 
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease; 
}
.language-switcher.is-active .lang-dropdown { 
  display: block; 
  opacity: 1; 
  transform: translateY(0); 
  visibility: visible; 
}
.lang-dropdown li { 
  padding: 8px 12px; 
  border-radius: 5px; 
  display: flex; 
  align-items: center; 
  gap: 10px; 
}
.lang-dropdown li:hover { 
  background-color: var(--accent-color-1); 
  color: var(--bg-color); 
}
[data-theme="light"] .lang-dropdown li:hover { 
  color: #fff; 
}
.lang-dropdown li img { 
  width: 20px; 
  height: 20px; 
}

/* === FOOTER === */
footer {
  padding: 3rem 1rem;
  background: rgba(245, 245, 245, 0.9);
  text-align: center;
  font-size: 0.9rem;
}
[data-theme="dark"] footer {
  background: rgba(15, 15, 15, 0.9);
  color: #ccc;
}
footer .footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 1rem;
}
footer .footer-links a {
  text-decoration: none;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.3s;
}
footer .footer-links a:hover {
  opacity: 1;
}
footer .footer-socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
footer .footer-socials img {
  width: 24px;
  height: 24px;
  opacity: 0.7;
  transition: opacity 0.3s, filter 0.3s;
}
footer .footer-socials a:hover img {
  opacity: 1;
}

/* Инверсия иконок для разных тем */
[data-theme="dark"] footer .footer-socials img {
  filter: invert(1) brightness(1.2);
}
[data-theme="light"] footer .footer-socials img {
  filter: invert(0) brightness(0.8);
}
footer .footer-copy {
  opacity: 0.6;
}

/* === СЕКЦИИ И ОБЩИЕ СТИЛИ === */
section { padding: 100px 0; }
.section-title { 
    font-family: var(--font-headings); 
    font-size: 3rem; 
    text-align: center; 
    margin-bottom: 60px; 
    font-weight: 900; 
    background: linear-gradient(135deg, var(--accent-color-1) 0%, var(--accent-color-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative; 
    letter-spacing: -0.02em;
}
.section-title::after { 
    content: ''; 
    position: absolute; 
    bottom: -15px; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 100px; 
    height: 5px; 
    background: linear-gradient(90deg, var(--accent-color-1), var(--accent-color-2)); 
    border-radius: 3px; 
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.5);
}
.section-subtitle { max-width: 600px; font-size: 1.1rem; opacity: 0.8; }
.details-button, .buy-button {
    display: inline-block;
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-family: var(--font-headings);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s ease; /* Немного замедлим для плавности */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-top: auto;
    background: linear-gradient(135deg, var(--accent-color-1), var(--accent-color-2));
    background-size: 200% auto; /* FIX: Увеличиваем размер фона градиента */
    color: white;
}
.buy-button:hover {
    background-position: right center; /* Плавное смещение градиента при наведении */
}
.details-button { 
    background: rgba(255, 255, 255, 0.1); 
    color: var(--text-color); 
    border: 1px solid rgba(255, 255, 255, 0.2); 
}
.details-button:hover { 
    background: rgba(255, 255, 255, 0.2); 
    transform: translateY(-2px); 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .buy-button { color: white; }

/* === HERO === */
/* === FIX: Hero Section Layout === */
.hero {
    min-height: 100vh; /* Более гибко, чем height */
    display: flex;
    flex-direction: column; /* Располагает элементы друг под другом */
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 120px 20px 40px; /* Отступ для хедера и снизу */
    box-sizing: border-box;
}
.hero-content {
    max-width: 900px;
    width: 100%;
}

.hero-content h1 { 
    font-family: var(--font-headings); 
    font-size: clamp(3rem, 6vw, 4.8rem); 
    line-height: 1.2; 
    margin-bottom: 25px; 
    font-weight: 900; 
    background: linear-gradient(135deg, var(--accent-color-1) 0%, var(--accent-color-2) 100%); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text; 
    max-width: 900px; 
    margin-left: auto; 
    margin-right: auto;
    letter-spacing: -0.02em;
    text-shadow: 0 0 30px rgba(0, 242, 254, 0.3);
}

.hero-content p { 
    font-size: 1.4rem; 
    max-width: 700px; 
    margin: 0 auto 20px; 
    opacity: 0.9;
    line-height: 1.6;
    font-weight: 300;
}

/* === Hero CTA Button === */
.hero-cta-button {
    display: inline-block;
    padding: 18px 40px;
    font-family: var(--font-headings);
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--accent-color-1), var(--accent-color-2));
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.2);
}
.hero-cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 242, 254, 0.3);
}
[data-theme="light"] .hero-cta-button {
    box-shadow: 0 10px 30px rgba(55, 66, 250, 0.25);
    color: white;
}
[data-theme="light"] .hero-cta-button:hover {
    box-shadow: 0 15px 40px rgba(55, 66, 250, 0.35);
}

/* === WHY US === */
.why-us-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
    max-width: 1200px; 
    margin: 0 auto; 
}
.why-us-card { 
    text-align: center; 
    padding: 30px; 
    background: rgba(255, 255, 255, 0.1); 
    border-radius: 20px; 
    border: 1px solid rgba(255, 255, 255, 0.2); 
    transition: all 0.3s ease; 
    flex-basis: 300px; 
    flex-grow: 1; 
    max-width: 380px; 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.why-us-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.why-us-card:hover::before {
    left: 100%;
}

.why-us-card:hover { 
    transform: translateY(-8px) scale(1.02); 
    border-color: rgba(255, 255, 255, 0.4); 
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2); 
    background: rgba(255, 255, 255, 0.18);
}

.why-us-card:active {
    transform: translateY(-5px) scale(1.01);
    transition: all 0.1s ease;
}
.why-us-card h3 { font-family: var(--font-headings); font-size: 1.5rem; margin-bottom: 15px; color: var(--accent-color-2); }

/* === COURSES === */
.courses-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.course-card { 
    background: rgba(255, 255, 255, 0.1); 
    border: 1px solid rgba(255, 255, 255, 0.2); 
    border-radius: 20px; 
    padding: 30px; 
    text-align: center; 
    transition: all 0.3s ease; 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex; 
    flex-direction: column; 
    width: 350px;
}
.course-card:hover { 
    transform: translateY(-5px); 
    border-color: rgba(255, 255, 255, 0.3); 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15); 
    background: rgba(255, 255, 255, 0.15);
}
/* === FIX: Course Card Icons (FINAL) === */
.course-icon-wrapper {
    width: 100%;
    max-width: 240px; /* Ограничим максимальную ширину */
    aspect-ratio: 4 / 3; /* Сохраняем исходные пропорции 4:3 */
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* Необходимо для псевдоэлемента */
    border-radius: 12px;
}

/* Возвращаем градиентное свечение */
.course-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(196, 58, 214, 0.15) 0%, transparent 70%);
    border-radius: inherit;
    z-index: 0;
    transition: opacity 0.3s ease;
}
[data-theme="light"] .course-icon-wrapper::before {
    background: radial-gradient(circle at center, rgba(55, 66, 250, 0.1) 0%, transparent 70%);
}
.course-card:hover .course-icon-wrapper::before {
    opacity: 0.5;
}

.course-icon-wrapper svg {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: relative; /* Чтобы иконка была над свечением */
    z-index: 1;
}
.course-age { align-self: center; display: inline-block; background-color: var(--accent-color-2); color: #fff; padding: 3px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; margin-bottom: 15px; }
.course-card h3 {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    color: var(--accent-color-1);
    font-weight: 800;
    max-width: 20ch; 
    margin: 0 auto 15px auto;
    line-height: 1.2;/
}
.course-card p { flex-grow: 1; margin-bottom: 20px; opacity: 0.9; }

/* === TARIFFS & DONATION === */
.tariffs-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.tariff-card { 
    text-align: center; 
    background: rgba(255, 255, 255, 0.1); 
    border: 1px solid rgba(255, 255, 255, 0.2); 
    padding: 30px; 
    border-radius: 20px; 
    transition: all 0.3s ease; 
    display: flex; 
    flex-direction: column; 
    flex-basis: 320px; 
    max-width: 400px; 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
.tariff-card:hover { 
    transform: translateY(-5px); 
    border-color: rgba(255, 255, 255, 0.3); 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15); 
    background: rgba(255, 255, 255, 0.15);
}
.tariff-card h3 { font-family: var(--font-headings); font-size: 1.5rem; margin-bottom: 10px; color: var(--accent-color-1); font-weight: 800; }
.tariff-price { font-size: 2.5rem; font-family: var(--font-headings); color: var(--accent-color-1); margin-bottom: 15px; font-weight: 800; }
.tariff-description { flex-grow: 1; margin-bottom: 20px; opacity: 0.9; }
.donation-card-wrapper { grid-column: 1 / -1; display: flex; justify-content: center; margin-top: 30px; }
.donation-card { display: flex; align-items: center; gap: 25px; background-color: var(--card-bg); padding: 25px 30px; border-radius: 16px; width: 100%; max-width: 730px; position: relative; overflow: hidden; border: 1px solid transparent; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.donation-card.clickable:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.donation-card::before { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; margin: -1px; border-radius: inherit; background: linear-gradient(90deg, var(--accent-color-1), var(--accent-color-2), var(--accent-color-1)); background-size: 200% 200%; animation: gradient-flow 5s ease infinite; opacity: 0.7; transition: opacity 0.3s ease; }
@keyframes gradient-flow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.donation-card.clickable:hover::before { opacity: 1; }
.donation-card .donation-icon { flex-shrink: 0; color: var(--accent-color-2); animation: heartbeat 2s ease-in-out infinite; transition: transform 0.3s ease; }
.donation-card.clickable:hover .donation-icon { transform: scale(1.1); }
.donation-card .donation-icon svg { width: 48px; height: 48px; }
.donation-card .donation-text { flex-grow: 1; text-align: left; }
.donation-card .donation-text h3 { color: var(--text-color); font-size: 1.3rem; margin-bottom: 5px; }
[data-theme="light"] .donation-card .donation-text h3 { color: var(--text-color); }
.donation-card .donation-text p { opacity: 0.7; font-size: 0.9rem; margin: 0; }
.donation-arrow { font-size: 2rem; font-weight: bold; color: var(--accent-color-1); transition: transform 0.3s ease; }
.donation-card.clickable:hover .donation-arrow { transform: translateX(10px); }

/* === ABOUT ME === */
/* === MODERN ABOUT SECTION (REFACTORED) === */
.modern-about-section {
    padding: 120px 0;
    position: relative;
}

.about-hero {
    text-align: center;
    margin-bottom: 80px;
}

.about-title {
    font-size: clamp(2.8rem, 5vw, 4rem);
    line-height: 1.2;
}

.about-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.about-profile-section {
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.about-profile-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: clamp(30px, 5vw, 50px);
    text-align: center;
    max-width: 900px;
    width: 100%;
    transition: all .3s ease;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
[data-theme="light"] .about-profile-card {
     box-shadow: 0 15px 40px rgba(47, 53, 66, 0.08);
}

.about-profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    [data-theme="light"] & {
         box-shadow: 0 20px 50px rgba(47, 53, 66, 0.12);
    }
}

.profile-image-wrapper {
    margin-bottom: 30px;
}

.profile-image {
    width: clamp(180px, 20vw, 220px);
    height: clamp(180px, 20vw, 220px);
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--card-border);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.profile-info h3 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 10px;
    font-weight: 700;
}

.profile-info p {
    opacity: 0.8;
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    background: rgba(0,0,0,0.1);
    padding: 25px 20px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    transition: all .3s ease;
}
[data-theme="light"] .stat-item {
    background: rgba(0,0,0,0.04);
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color-1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent-color-1), var(--accent-color-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.8;
    font-weight: 500;
}

/* === PHOTO GALLERY STYLES === */
.photo-gallery-section {
    padding-top: 60px;
}
.gallery-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 25px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.gallery-main-view {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
#gallery-main-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: opacity 0.4s ease;
}
#gallery-main-image.fade-out {
    opacity: 0;
}
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(13, 15, 26, 0.5);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    color: white;
    font-size: 24px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-main-view:hover .gallery-nav-btn {
    opacity: 1;
}
.gallery-nav-btn:hover {
    background: rgba(13, 15, 26, 0.8);
    transform: translateY(-50%) scale(1.1);
}
.gallery-nav-btn.prev {
    left: 15px;
}
.gallery-nav-btn.next {
    right: 15px;
}
.gallery-thumbnails-wrapper {
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}
.gallery-thumbnails-wrapper::-webkit-scrollbar {
    height: 6px;
}
.gallery-thumbnails-wrapper::-webkit-scrollbar-track {
    background: transparent;
}
.gallery-thumbnails-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--accent-color-1);
    border-radius: 10px;
}
.gallery-thumbnails {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 5px 0;
    flex-wrap: wrap;
}
.thumbnail-item {
    flex-shrink: 0;
    width: 120px;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
    border: 3px solid transparent;
    transition: border-color 0.3s, transform 0.3s, opacity 0.3s, display 0s 0.3s; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    display: block;
}
.thumbnail-item:hover {
    transform: scale(1.05);
}
.thumbnail-item.active {
    border-color: var(--accent-color-1);
    box-shadow: 0 0 15px var(--shadow-color);
}
.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Profile Links Styles */
a[href*="/dashboard/user-profile/"], 
a[href*="/dashboard/student/"] {
    color: var(--accent-color-1);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

a[href*="/dashboard/user-profile/"]:hover, 
a[href*="/dashboard/student/"]:hover {
    color: var(--accent-color-2);
    border-bottom-color: var(--accent-color-1);
    text-shadow: 0 0 8px rgba(var(--accent-color-1-rgb), 0.3);
}

.data-table a[href*="/dashboard/user-profile/"], 
.data-table a[href*="/dashboard/student/"] {
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.data-table a[href*="/dashboard/user-profile/"]:hover, 
.data-table a[href*="/dashboard/student/"]:hover {
    background-color: rgba(var(--accent-color-1-rgb), 0.1);
    transform: translateY(-1px);
}

/* Expert Teacher Modal */
.expert-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.expert-modal.show {
    opacity: 1;
}

.expert-modal-content {
    background: var(--card-bg);
    border-radius: 24px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.expert-modal.show .expert-modal-content {
    transform: scale(1);
}

.expert-modal-header {
    padding: 30px 30px 20px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.expert-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid var(--accent-color-1);
}

.expert-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expert-modal-header h3 {
    font-size: 1.5rem;
    color: var(--accent-color-1);
    margin: 0;
    font-weight: 700;
}

.expert-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.expert-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.expert-modal-body {
    padding: 30px;
}

.expert-message p {
    margin-bottom: 20px;
    line-height: 1.6;
    opacity: 0.9;
}

.expert-achievements {
    display: grid;
    gap: 15px;
    margin: 30px 0;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.achievement {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
}

.achievement-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.expert-modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.expert-action-btn {
    flex: 1;
    padding: 15px 25px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    min-width: 150px;
}

.expert-action-btn.primary {
    background: linear-gradient(135deg, var(--accent-color-1), var(--accent-color-2));
    color: white;
}

.expert-action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.expert-action-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.expert-action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* === PRINCIPLES SECTION (REFACTORED) === */
.principles-section {
    padding-top: 0;
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.principle-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.principle-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color-1);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.principle-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--accent-color-1), var(--accent-color-2));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 5px 15px var(--shadow-color);
    flex-shrink: 0;
    padding: 12px; /* Добавим внутренний отступ для иконок */
}
.principle-icon img {
    width: 100%;
    height: 100%;
    filter: invert(1) brightness(2); /* Делает SVG иконку белой */
}
.principle-card:hover .principle-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 10px 25px var(--shadow-color);
}
.principle-card h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    font-weight: 700;
}
.principle-card p {
    opacity: 0.7;
    font-size: 0.95rem;
    flex-grow: 1;
}

/* === CONTACT SECTION (REFACTORED & FINAL) === */
.modern-contact-section {
    padding-bottom: 120px;
}
.contact-hero {
    text-align: center;
    margin-bottom: 80px;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: flex-start;
}
.contact-form-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.contact-form-card:hover {
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.card-header {
    padding: 30px;
    text-align: center;
    background: rgba(0,0,0,0.1);
}
[data-theme="light"] .card-header {
    background: rgba(0,0,0,0.03);
}
.card-header .card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--accent-color-1), var(--accent-color-2));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}
.card-header .card-icon img {
    width: 100%;
    height: 100%;
    filter: invert(1) brightness(2);
}
.card-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}
.modern-form {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.floating-input {
    position: relative;
}
.floating-input input,
.floating-input textarea {
    width: 100%;
    padding: 20px 15px 10px;
    font-size: 1rem;
    font-family: var(--font-main);
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--card-border);
    color: var(--text-color);
    transition: border-color 0.3s ease;
    outline: none;
    resize: none;
}
.floating-input label {
    position: absolute;
    top: 18px;
    left: 15px;
    color: var(--text-color);
    opacity: 0.6;
    transition: all 0.3s ease;
    pointer-events: none;
}
.floating-input input:focus,
.floating-input textarea:focus {
    border-color: var(--accent-color-1);
}
.floating-input input:focus + label,
.floating-input textarea:focus + label,
.floating-input input:not(:placeholder-shown) + label,
.floating-input textarea:not(:placeholder-shown) + label {
    top: -5px;
    left: 10px;
    font-size: 0.75rem;
    color: var(--accent-color-1);
    opacity: 1;
    background-color: var(--card-bg);
    padding: 0 5px;
}
.modern-submit-btn {
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-color-1), var(--accent-color-2));
    background-size: 200% auto;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.4s ease;
}

/* Confirm manual payment button styles moved to manual payment section */

.modern-submit-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--shadow-color);
    background-position: right center;
}
.modern-submit-btn .btn-icon {
    transition: transform 0.3s ease;
}
.modern-submit-btn:hover .btn-icon {
    transform: translateX(4px);
}
.btn-icon svg {
    width: 20px;
    height: 20px;
}
.form-status {
    margin-top: 10px;
    text-align: center;
    font-weight: 500;
}
.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.info-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    min-height: 240px; /* Задаем минимальную высоту для всех карточек */
    justify-content: center; /* Центрируем контент по вертикали */
}
.info-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color-1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.info-card .card-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent-color-1), var(--accent-color-2));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 10px;
}
.info-card .card-icon img {
    width: 100%;
    height: 100%;
    filter: invert(1) brightness(2);
}
.info-card h4 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 700;
}
.info-card p {
    opacity: 0.8;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 1rem;
    flex-grow: 1; /* Позволяет заголовку и тексту занимать пространство */
}
.card-action {
    color: var(--accent-color-1);
    font-weight: 600;
    transition: transform 0.3s ease;
    display: inline-block;
    margin-top: auto; /* Прижимает ссылку к низу */
}
.info-card:hover .card-action {
    transform: translateX(5px);
}
/* === RESPONSIVENESS === */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .profile-stats {
        grid-template-columns: 1fr;
    }
    .principles-grid {
        grid-template-columns: 1fr;
    }
}

/* === MODALS (Общее) === */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; background-color: rgba(13, 15, 26, 0.7); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal .close-button { 
    z-index: 10; 
    color: var(--card-border); 
    position: absolute; 
    top: 20px; 
    right: 25px; 
    font-size: 32px; 
    font-weight: 800; 
    line-height: 1; 
    transition: all 0.3s ease; 
    cursor: pointer;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.modal .close-button:hover { 
    color: var(--accent-color-1); 
    transform: scale(1.1) rotate(90deg);
    border-color: var(--accent-color-1);
    box-shadow: 0 8px 25px var(--shadow-color);
    background: var(--popup-bg);
}

.modal .close-button:active {
    transform: scale(0.95) rotate(90deg);
}
.modal-body::-webkit-scrollbar, #modal-body ul::-webkit-scrollbar, .details-right::-webkit-scrollbar { width: 8px; }
.modal-body::-webkit-scrollbar-track, #modal-body ul::-webkit-scrollbar-track, .details-right::-webkit-scrollbar-track { background: transparent; margin: 5px 0; }
.modal-body::-webkit-scrollbar-thumb, #modal-body ul::-webkit-scrollbar-thumb, .details-right::-webkit-scrollbar-thumb { background-color: var(--accent-color-1); border-radius: 20px; border: 3px solid transparent; }
[data-theme="dark"] .modal-body::-webkit-scrollbar-thumb, [data-theme="dark"] .details-right::-webkit-scrollbar-thumb { border-color: var(--popup-bg); }
[data-theme="light"] .modal-body::-webkit-scrollbar-thumb, [data-theme="light"] .details-right::-webkit-scrollbar-thumb { border-color: var(--popup-bg); }

#course-details-modal .modal-content-details {
    background-color: var(--popup-bg);
    border: 1px solid var(--card-border);
    width: 95%;
    max-width: 1100px;
    height: 90vh; /* Ограничиваем высоту, чтобы было что скроллить */
    border-radius: 16px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    display: flex;
    overflow: hidden; /* Важно оставить, чтобы обрезались углы */
    padding: 0;
}
#course-details-modal.is-open .modal-content-details { transform: scale(1); }
#course-details-modal .close-button { right: 40px; }
/* === FIX: Course Modal Scrolling & Button Alignment === */
.details-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 0; /* Убираем gap, т.к. padding будет внутри колонок */
    width: 100%;
    height: 100%;
}

.details-left, .details-right {
    height: 100%;
    overflow-y: auto; /* Включаем скролл для КАЖДОЙ колонки */
    padding: 40px;
}

.details-left {
    display: flex;
    flex-direction: column;
    background-color: rgba(0,0,0,0.1);
    border-right: 1px solid var(--card-border);
}

[data-theme="light"] .details-left {
    background-color: rgba(0,0,0,0.03);
}

/* FIX: Стилизация кнопки "Enroll Now" для правильного размера */
.details-left .buy-button {
    width: 100%; /* Занимает всю ширину колонки */
    padding: 15px;
    margin-top: auto; /* Прижимает кнопку к низу */
    flex-shrink: 0; /* Предотвращает сжатие кнопки */
    box-sizing: border-box; /* Учитывает padding и border в ширине */
}
[data-theme="light"] .details-left { background-color: rgba(0,0,0,0.05); }
.details-left h2 { font-size: 2.2rem; color: var(--accent-color-1); line-height: 1.2; }
.details-left p { opacity: 0.8; }
.details-image { width: 100%; border-radius: 12px; }
.details-image svg {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}
.details-image svg:hover {
    transform: scale(1.05);
}
.details-stats { display: flex; flex-direction: column; gap: 15px; }
.stat-item { display: flex; align-items: center; gap: 12px; }
.stat-item svg { width: 24px; height: 24px; color: var(--accent-color-2); flex-shrink: 0; fill: currentColor; }
.details-left .buy-button { width: 100%; padding: 15px; margin-top: 40px; flex-shrink: 0; }
.details-section { margin-bottom: 40px; }
.details-section h3 { font-size: 1.5rem; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--card-border); }
#details-modal-learning { list-style: none; padding-left: 0; }
#details-modal-learning li { position: relative; padding-left: 30px; margin-bottom: 12px; line-height: 1.5; }
#details-modal-learning li::before {
    content: '✓';
    color: var(--accent-color-1);
    position: absolute; left: 0; top: 2px;
    font-weight: bold;
    font-size: 1.2em;
}
.tools-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding-left: 0; }
.tools-list li { background-color: var(--card-bg); padding: 5px 12px; border-radius: 20px; border: 1px solid var(--card-border); font-size: 0.9rem; transition: all 0.2s ease; }
.tools-list li:hover { background-color: var(--accent-color-1); color: var(--bg-color); border-color: var(--accent-color-1); }
[data-theme="light"] .tools-list li:hover { color: #fff; }
.program-accordion { list-style: none; padding-left: 0; }
.program-accordion .module-item { border-bottom: 1px solid var(--card-border); }
.program-accordion .module-title { padding: 20px 0; display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.program-accordion .module-title::after { content: '+'; font-size: 1.8rem; transition: transform 0.3s ease; }
.program-accordion .module-item.active .module-title::after { transform: rotate(45deg); }
.program-accordion .module-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; padding: 0 10px; }
.program-accordion .module-item.active .module-content { max-height: 300px; padding: 0 10px 20px; }

/* --- Payment Modal --- */
#payment-modal .modal-content { 
    max-width: 480px; 
    width: 95%; 
    display: flex; 
    flex-direction: column; 
    max-height: 90vh; 
    padding: 0; 
    background: var(--popup-bg);
    border-radius: 20px; 
    border: 1px solid var(--card-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px);
    margin: 5vh auto;
    position: relative;
    overflow: hidden;
}

#payment-modal .modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color-1), var(--accent-color-2));
    z-index: 1;
}
#payment-modal .modal-header { 
    padding: 24px 20px 16px; 
    position: relative; 
    flex-shrink: 0;
    text-align: center;
    border-bottom: 1px solid var(--card-border);
    background: rgba(0, 0, 0, 0.02);
    z-index: 2;
}

[data-theme="light"] #payment-modal .modal-header {
    background: rgba(0, 0, 0, 0.01);
}

#payment-modal .modal-header h2 { 
    margin: 0; 
    font-size: 1.5rem; 
    font-family: var(--font-headings);
    background: linear-gradient(135deg, var(--accent-color-1), var(--accent-color-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
}
#payment-modal .modal-body { 
    padding: 20px;
    overflow-y: auto; 
    flex-grow: 1;
    max-height: calc(90vh - 180px);
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color-1) transparent;
}

#payment-modal .modal-body::-webkit-scrollbar {
    width: 8px;
}

#payment-modal .modal-body::-webkit-scrollbar-track {
    background: transparent;
}

#payment-modal .modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-color-1), var(--accent-color-2));
    border-radius: 10px;
}

#payment-modal .modal-footer { 
    padding: 16px 20px 20px; 
    flex-shrink: 0; 
    border-top: 1px solid var(--card-border); 
    margin-top: auto;
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] #payment-modal .modal-footer {
    background: rgba(0, 0, 0, 0.01);
}
.payment-details {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    border: 2px solid var(--card-border);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.payment-details:hover {
    border-color: var(--accent-color-1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.payment-details p:first-of-type { 
    font-size: 1.1rem; 
    margin-bottom: 15px;
    text-align: center;
    font-weight: 700;
    color: var(--accent-color-1);
}

.payment-details strong { 
    color: var(--accent-color-1); 
    font-weight: 700;
}
.quantity-selector { 
    margin: 20px 0; 
    padding: 20px;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--card-border);
}

.quantity-selector label { 
    display: block; 
    margin-bottom: 15px; 
    font-weight: 700;
    color: var(--accent-color-1);
    font-size: 1rem;
    text-align: center;
}

.slider-container { 
    display: flex; 
    align-items: center; 
    gap: 25px; 
    padding: 10px 0;
}
input[type="range"] { 
    -webkit-appearance: none; 
    appearance: none; 
    width: 100%; 
    height: 10px; 
    background: var(--card-border); 
    border-radius: 10px; 
    outline: none; 
    transition: all 0.3s ease; 
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
}

input[type="range"]:hover { 
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-color), inset 0 2px 6px rgba(0, 0, 0, 0.2);
}

input[type="range"]::-webkit-slider-thumb { 
    -webkit-appearance: none; 
    appearance: none; 
    width: 28px; 
    height: 28px; 
    background: linear-gradient(135deg, var(--accent-color-1), var(--accent-color-2)); 
    border-radius: 50%; 
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-color), 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 4px solid white;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 25px var(--shadow-color), 0 4px 15px rgba(0, 0, 0, 0.3);
}

input[type="range"]::-moz-range-thumb { 
    width: 28px; 
    height: 28px; 
    background: linear-gradient(135deg, var(--accent-color-1), var(--accent-color-2)); 
    border-radius: 50%; 
    cursor: pointer;
    border: 4px solid white;
    box-shadow: 0 4px 15px var(--shadow-color);
}

#quantity-value { 
    font-size: 1.8rem; 
    font-weight: 800; 
    color: var(--accent-color-1); 
    min-width: 50px; 
    text-align: center;
    background: var(--card-bg);
    padding: 8px 12px;
    border-radius: 12px;
    border: 2px solid var(--card-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.donation-input-container { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    border: 2px solid var(--card-border); 
    padding: 20px 25px; 
    border-radius: 20px; 
    background: var(--card-bg);
    backdrop-filter: blur(25px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.donation-input-container:hover {
    border-color: var(--accent-color-1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.donation-input-container:focus-within { 
    border-color: var(--accent-color-1); 
    box-shadow: 0 0 0 4px var(--shadow-color), 0 15px 40px var(--shadow-color);
    transform: translateY(-3px);
}
#donation-amount { 
    width: 100%; 
    border: none; 
    background: transparent; 
    color: var(--accent-color-1); 
    font-size: 1.8rem; 
    font-weight: 800; 
    text-align: center; 
    outline: none;
    transition: all 0.3s ease;
}

#donation-amount::placeholder {
    color: var(--card-border);
    opacity: 0.7;
}

#donation-amount::-webkit-inner-spin-button, 
#donation-amount::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}

#donation-amount { 
    -moz-appearance: textfield; 
}

.donation-input-container span { 
    font-weight: 700; 
    opacity: 0.8;
    color: var(--accent-color-1);
    font-size: 1.2rem;
}
.price-breakdown { 
    background: var(--card-bg); 
    padding: 20px; 
    border-radius: 16px; 
    margin: 20px 0; 
    border: 2px solid var(--card-border);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.price-breakdown:hover {
    border-color: var(--accent-color-1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.price-breakdown p { 
    display: flex; 
    justify-content: space-between; 
    font-size: 1rem; 
    opacity: 0.9;
    margin-bottom: 10px;
    font-weight: 600;
}

.total-price { 
    display: flex; 
    justify-content: space-between; 
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-color-1);
    padding-top: 15px;
    border-top: 2px solid var(--card-border);
    margin-top: 15px;
}
#modal-total-price { font-weight: 800; color: var(--accent-color-1); }
.payment-system-chooser {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    padding: 20px 16px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
    backdrop-filter: blur(10px);
}
.payment-system-chooser.show {
    display: block;
}
.payment-system-chooser h4 { 
    margin: 0 0 20px 0;
    text-align: center;
    color: var(--accent-color-1);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}
/* Новый минималистичный дизайн карточек платежных систем */
.payment-system-chooser .systems { 
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
    padding: 0;
    margin: 0;
    justify-content: center;
    align-items: stretch;
}

@media (min-width: 769px) {
    .payment-system-chooser .systems {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .payment-system-chooser {
        padding: 12px;
        margin: 12px 0;
        border-radius: 12px;
    }
    
    .payment-system-chooser h4 {
        font-size: 0.95rem;
        margin-bottom: 12px;
        text-align: center;
    }
    
    .payment-system-chooser .systems {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px;
        justify-content: center;
        align-items: stretch;
    }
}

/* Новый минималистичный дизайн карточек */
.payment-system-card { 
    border: 1px solid var(--card-border); 
    padding: 16px 8px; 
    border-radius: 12px; 
    background: var(--card-bg);
    cursor: pointer;
    transition: all 0.2s ease;
    
    /* Идеальное центрирование */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    /* Размеры и отступы */
    width: 100%;
    min-height: 85px;
    gap: 6px;
    margin: 0;
    box-sizing: border-box;
    position: relative;
    
    /* Упрощенные эффекты */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

@media (max-width: 480px) {
    .payment-system-card {
        padding: 12px 6px;
        min-height: 75px;
        gap: 4px;
        border-radius: 10px;
        
        /* Принудительное центрирование для узких экранов */
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    .payment-system-card .payment-info {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    .payment-system-card .name,
    .payment-system-card .regions {
        text-align: center !important;
        width: 100% !important;
    }
}

/* Упрощенные hover и active состояния */
.payment-system-card:hover { 
    border-color: var(--accent-color-1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.payment-system-card.active { 
    border-color: var(--accent-color-1); 
    background: var(--accent-color-1);
    color: white;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.payment-system-card.active .name {
    color: white;
    font-weight: 600;
}

.payment-system-card.active .regions {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .payment-system-card.active {
    color: #000000;
}

[data-theme="dark"] .payment-system-card.active .name {
    color: #000000 !important;
    font-weight: 600;
}

[data-theme="dark"] .payment-system-card.active .regions {
    color: rgba(0, 0, 0, 0.8) !important;
}

/* Упрощенные стили логотипов */
.payment-system-card .logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

@media (max-width: 480px) {
    .payment-system-card .logo {
        width: 26px;
        height: 26px;
    }
}

.payment-system-card:hover .logo {
    opacity: 1;
}

.payment-system-card.active .logo {
    opacity: 1;
    filter: brightness(0) invert(1);
}

[data-theme="dark"] .payment-system-card .logo {
    filter: brightness(0) invert(1);
}

[data-theme="dark"] .payment-system-card.active .logo {
    filter: brightness(0) invert(0);
}

[data-theme="light"] .payment-system-card.active .logo {
    filter: brightness(0) invert(0);
}

[data-theme="light"] .payment-system-card.active .name {
    color: #000000 !important;
    font-weight: 600;
}

/* Упрощенные стили названий */
.payment-system-card .name {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.3;
    margin: 0;
    text-align: center;
}

@media (max-width: 480px) {
    .payment-system-card .name {
        font-size: 0.75rem;
    }
}

/* Упрощенный контейнер информации */
.payment-system-card .payment-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 100%;
    text-align: center;
}

/* Убираем проблемный лейбл preferred-badge полностью */
.payment-system-card .preferred-badge {
    display: none !important;
}

/* Упрощенные стили регионов */
.payment-system-card .regions {
    font-size: 0.7rem;
    color: var(--text-color);
    text-align: center;
    line-height: 1.3;
    opacity: 0.7;
    margin: 0;
    word-wrap: break-word;
}

@media (max-width: 480px) {
    .payment-system-card .regions {
        font-size: 0.65rem;
    }
}
}

.payment-system-card .regions img {
    border-radius: 2px;
    vertical-align: middle;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    display: inline-block;
}

.payment-system-card.active .regions {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .payment-system-card.active .regions {
    color: rgba(0, 0, 0, 0.8);
}

[data-theme="light"] .payment-system-card.active .regions {
    color: rgba(0, 0, 0, 0.8) !important;
}

/* Description */
.payment-system-card .description {
    font-size: 0.7rem;
    color: var(--text-color);
    font-style: italic;
    opacity: 0.7;
    text-align: center;
}

[data-theme="dark"] .payment-system-card .description {
    color: #cccccc;
    opacity: 0.8;
}

[data-theme="light"] .payment-system-card .description {
    color: #888888;
    opacity: 0.7;
}

.payment-system-card.active .description {
    color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .payment-system-card.active .description {
    color: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .payment-system-card.active .description {
    color: rgba(0, 0, 0, 0.7) !important;
}

/* Preferred system styling */
.payment-system-card.preferred {
    border-color: #FFD700;
    position: relative;
}

.payment-system-card.preferred:hover {
    border-color: #FFA500;
}


#final-pay-button, #paypal-button-container { margin-top: 10px; }
#final-pay-button { 
    width: 100%; 
    padding: 18px 24px; 
    background: linear-gradient(135deg, var(--accent-color-1) 0%, var(--accent-color-2) 100%);
    border: 1px solid var(--accent-color-1); 
    border-radius: 12px; 
    color: white; 
    font-size: 1.1rem; 
    font-weight: 600; 
    font-family: var(--font-headings);
    cursor: pointer; 
    transition: all 0.2s ease; 
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] #final-pay-button {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] #final-pay-button {
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#final-pay-button:hover:not(:disabled) { 
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

[data-theme="dark"] #final-pay-button:hover:not(:disabled) {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] #final-pay-button:hover:not(:disabled) {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

#final-pay-button:active {
    transform: translateY(0);
    transition: all 0.1s ease;
}

#final-pay-button:disabled { 
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    color: rgba(255, 255, 255, 0.6) !important;
    cursor: not-allowed; 
    transform: none; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: none;
    border: 2px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

[data-theme="light"] #final-pay-button:disabled {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(102, 126, 234, 0.1));
    color: rgba(102, 126, 234, 0.6);
    border: 2px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
    opacity: 0.7;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 20px 60px var(--shadow-color), 0 12px 35px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 25px 80px var(--shadow-color), 0 15px 45px rgba(0, 0, 0, 0.25);
    }
}

[data-theme="light"] @keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 20px 60px rgba(55, 66, 250, 0.4), 0 12px 35px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 25px 80px rgba(55, 66, 250, 0.5), 0 15px 45px rgba(0, 0, 0, 0.2);
    }
}
.terms-agreement { 
    margin-bottom: 15px; 
    text-align: left; 
    display: flex; 
    align-items: flex-start; 
    gap: 8px; 
}
.terms-agreement input[type="checkbox"] { 
    -webkit-appearance: none; 
    appearance: none; 
    background: rgba(255, 255, 255, 0.05); 
    margin: 0; 
    font: inherit; 
    color: white; 
    width: 1.1em; 
    height: 1.1em; 
    border: 1px solid rgba(255, 255, 255, 0.2); 
    border-radius: 4px; 
    transform: translateY(0.1em); 
    display: grid; 
    place-content: center; 
    flex-shrink: 0; 
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}
.terms-agreement input[type="checkbox"]:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}
.terms-agreement input[type="checkbox"]::before { 
    content: ""; 
    width: 0.7em; 
    height: 0.7em; 
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); 
    transform: scale(0); 
    transform-origin: bottom left; 
    transition: all 0.2s ease; 
    background: white; 
}
.terms-agreement input[type="checkbox"]:checked {
    background: rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.5);
}
.terms-agreement input[type="checkbox"]:checked::before { 
    transform: scale(1); 
}
.terms-agreement input[type="checkbox"]:focus { 
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
}
.terms-agreement label { font-size: 0.75rem; opacity: 0.8; line-height: 1.3; }
.terms-agreement label a { color: var(--accent-color-1); text-decoration: underline; }

#payment-identifier {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--text-color);
    font-size: 0.9rem;
    font-family: var(--font-main);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
#payment-identifier:focus {
    outline: none;
    border-color: var(--accent-color-1);
    box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.2), 0 8px 25px rgba(0, 242, 254, 0.15);
    transform: translateY(-2px);
}
#payment-modal .form-group {
    position: relative;
    margin-bottom: 12px;
}

#payment-identifier + label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 16px;
    color: var(--text-color);
    opacity: 0.7;
    transition: all 0.3s;
    pointer-events: none;
    font-size: 0.85rem;
    background: transparent;
    padding: 0;
}
#payment-identifier:focus + label {
    opacity: 0;
}
#payment-identifier:not(:focus):placeholder-shown + label {
    opacity: 0.7;
}
#payment-identifier:not(:placeholder-shown) + label {
    opacity: 0;
}
#payment-identifier::placeholder {
    color: var(--text-color);
    opacity: 0.7;
}
.form-hint {
    font-size: 0.7rem;
    opacity: 0.6;
    text-align: left;
    margin-top: 4px;
    padding-left: 5px;
    line-height: 1.3;
}
.payment-error { color: var(--accent-color-2); font-size: 0.9rem; font-weight: bold; margin-top: 10px; }

/* === LEGAL PAGES === */
.legal-page-container { max-width: 800px; margin: 0 auto; padding: 120px 20px 100px; color: var(--text-color); }
.legal-page-container h1 { font-family: var(--font-headings); font-size: 2.8rem; color: var(--accent-color-1); margin-bottom: 10px; border-bottom: 2px solid var(--card-border); padding-bottom: 15px; }
.legal-page-container .last-updated { font-style: italic; opacity: 0.7; margin-bottom: 40px; }
.legal-page-container h2 { font-family: var(--font-headings); font-size: 1.8rem; color: var(--accent-color-2); margin-top: 40px; margin-bottom: 20px; }
.legal-page-container p, .legal-page-container li { line-height: 1.8; margin-bottom: 15px; font-size: 1rem; }
.legal-page-container ol, .legal-page-container ul { padding-left: 25px; }
.legal-page-container strong { font-weight: 700; color: var(--text-color); }

/* === ANIMATION & RESPONSIVE === */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
@media (max-width: 992px) {
    .about-title {
        font-size: 2.5rem;
    }
    
    .about-content-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-profile-section {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }
    
    .about-profile-card {
        position: static;
        order: -1;
        min-height: auto;
        padding: 30px 25px;
    }
    
    .photo-gallery-section {
        margin: 60px 0;
        padding: 60px 30px;
    }
    
    .profile-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .about-principles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .principle-card {
        padding: 25px;
    }
    
    .about-cta-section {
        padding: 40px 25px;
    }
    
    .cta-content h3 {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .modern-cta-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    .details-grid { grid-template-columns: 1fr; overflow: visible; height: auto; }
    #course-details-modal .modal-content-details { height: auto; max-height: 90vh; overflow-y: auto; padding: 0; }
    .details-left {
        display: flex;
        flex-direction: column;
        padding: 40px;
        background-color: rgba(0,0,0,0.1);
        height: 100%;
        gap: 20px;
    }
    .details-right { overflow-y: visible; padding: 30px; }
    .details-left .buy-button { width: 100%; padding: 15px; margin-top: auto; flex-shrink: 0; }
}

/* Tablet styles for Why Us section and footer */
@media (max-width: 992px) and (min-width: 769px) {
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        justify-items: center;
    }
    
    .why-us-card:nth-child(3) {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: 380px;
    }
    
    /* Center footer on tablets */
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

@media (max-width: 768px) { 
    .hero-content p { font-size: 1rem; } 
    header .desktop-nav { display: none; }
    .mobile-menu-toggle { display: flex; }
    .mobile-nav { display: block; } 
    .cta-button img {
        width: 160px;
    }
    
    /* Why Us Section Mobile Fix */
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        justify-items: center;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .why-us-card {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .about-title {
        font-size: 2rem;
    }
    
    .about-subtitle {
        font-size: 1.1rem;
    }
    
    .profile-image {
        width: min(180px, 70%);
        height: min(180px, 70%);
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-item {
        padding: 15px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
    }
    
    .about-principles-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .principle-card {
        padding: 20px;
    }
    
    .principle-card h4 {
        font-size: 1.1rem;
    }
    
    .about-cta-section {
        padding: 30px 20px;
    }
    
    .cta-content h3 {
        font-size: 1.6rem;
    }
    
    .donation-card { flex-direction: column; text-align: center; gap: 15px; padding: 30px 20px; }
    .donation-card .donation-text { text-align: center; }
    .donation-arrow { display: none; }
    
    .profile-badge {
        position: static;
        margin: 20px auto 0;
        display: inline-flex;
        transform: none !important;
    }
    
    .profile-badge:hover {
        transform: scale(1.05) !important;
    }
    .contact-title {
        font-size: 2.5rem;
    }
    
    .contact-subtitle {
        font-size: 1.1rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .modern-form {
        padding: 30px 25px;
    }
    
    .card-header {
        padding: 25px;
    }
    
    .info-card {
        padding: 25px;
        text-align: center;
    }
    
    .info-card .card-content {
        text-align: center;
        align-items: center;
    }
    
    .info-card .card-icon {
        margin: 0 auto 15px;
    }
    
    /* Photo Gallery Mobile Styles */
    .photo-gallery-section {
        margin: 60px 0;
        padding: 60px 20px;
        border-radius: 24px;
    }
    
    .gallery-header h3 {
        font-size: 2rem;
    }
    
    .gallery-header p {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }
    
    .gallery-main {
        border-radius: 20px;
        margin-bottom: 30px;
    }
    
    .gallery-main-image {
        height: clamp(300px, 40vh, 400px);
    }
    
    .gallery-btn {
        width: 50px;
        height: 50px;
    }
    
    .gallery-btn.prev {
        left: 15px;
    }
    
    .gallery-btn.next {
        right: 15px;
    }
    
    .gallery-btn svg {
        width: 24px;
        height: 24px;
    }
    
    .gallery-thumbnails {
        padding: 20px 15px;
        gap: 15px;
        border-radius: 20px;
    }
    
    .thumbnail {
        width: 100px;
        height: 100px;
        border-radius: 15px;
    }
}

.auth-form-wrapper .form-actions {
    text-align: center;
}
/* =================================== */
/* === CRM/AUTH SPECIFIC OVERRIDES === */
/* =================================== */

.auth-form-wrapper .form-group + .form-actions {
    margin-top: 30px;
    text-align: center;
}

.auth-form-wrapper .form-actions .form-submit-button {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
}
.payment-error {
    color: #d32f2f;
    padding: 12px;
    margin-top: 10px;
    border: 1px solid #ef9a9a;
    border-radius: 4px;
    background: #ffebee;
}

/* Required field asterisk */
.required-asterisk {
    color: #ff4757;
    margin-left: 4px;
    font-weight: bold;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideInRight 0.3s ease-out;
    max-width: 300px;
    word-wrap: break-word;
}

.notification.success {
    background: rgba(76, 175, 80, 0.9);
    border-color: rgba(76, 175, 80, 0.5);
}

.notification.error {
    background: rgba(244, 67, 54, 0.9);
    border-color: rgba(244, 67, 54, 0.5);
}

.notification.warning {
    background: rgba(255, 152, 0, 0.9);
    border-color: rgba(255, 152, 0, 0.5);
}

.notification.info {
    background: rgba(33, 150, 243, 0.9);
    border-color: rgba(33, 150, 243, 0.5);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification.fade-out {
    animation: slideOutRight 0.3s ease-in;
}

/* Scroll hint for payment modal */
.scroll-hint {
    display: none;
}

[data-theme="light"] .scroll-hint {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

.scroll-hint:hover {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.9; }
}

.payment-processing {
    color: #2e7d32;
    padding: 12px;
    text-align: center;
}
/* === FLOATING LABEL FORM GROUP FIX === */
.form-group {
    position: relative;
}

.form-group input:not(input[type="range"]):not(input[type="checkbox"]),
.form-group textarea {
    width: 100%;
    padding: 15px 5px 10px 5px;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--card-border);
    color: var(--text-color);
    font-size: 1rem;
    font-family: var(--font-main);
    transition: border-color 0.3s;
}

.form-group input::placeholder {
    color: transparent;
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 5px;
    color: var(--text-color);
    opacity: 0.7;
    transition: all 0.3s;
    pointer-events: none;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--accent-color-1);
    opacity: 1;
}
/* === PAYPAL DONATE BUTTON & MANUAL CONFIRMATION STYLES === */
.donation-sdk-container {
    text-align: center;
    border-top: 1px solid var(--card-border);
    padding-top: 25px;
    margin-top: 20px;
}
#donate-button-container-sdk {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}
.manual-payment-instructions {
    text-align: left;
    background-color: var(--bg-color);
    padding: 20px;
    border-radius: 8px;
}

/* Clean manual payment container */
.manual-payment-container {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    margin-top: 16px;
    padding: 0;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(15px);
}

.manual-payment-container:hover {
    border-color: rgba(0, 242, 254, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

/* Clean manual payment title */
.manual-payment-title {
    font-size: 1.05rem;
    padding: 14px 18px;
    background: rgba(0, 242, 254, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-weight: 600;
    color: var(--accent-color-1);
    text-align: center;
    margin: 0;
    border-radius: 16px 16px 0 0;
}

/* Clean manual payment instructions */
.manual-payment-instructions {
    padding: 14px 18px;
}

.manual-payment-instructions p {
    margin-bottom: 6px;
    font-size: 0.82rem;
    line-height: 1.35;
    color: var(--text-color);
    opacity: 0.92;
}

.manual-payment-instructions p:last-child {
    margin-bottom: 0;
}

.manual-payment-instructions strong {
    color: var(--accent-color-1);
}

/* Clickable elements in payment instructions */
.clickable-text {
    color: var(--accent-color-1);
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-decoration: underline;
    text-decoration-style: dotted;
}

.clickable-text:hover {
    background: rgba(0, 242, 254, 0.1);
    text-decoration-style: solid;
}

.clickable-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    margin: 8px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    font-family: monospace;
    font-weight: 600;
}

.clickable-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color-1);
    transform: translateY(-1px);
}

.clickable-link {
    color: var(--accent-color-1);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(0, 242, 254, 0.3);
    background: rgba(0, 242, 254, 0.05);
    transition: all 0.2s ease;
    display: inline-block;
    margin: 4px 0;
}

.clickable-link:hover {
    background: rgba(0, 242, 254, 0.1);
    border-color: var(--accent-color-1);
    transform: translateY(-1px);
}

/* Transaction ID input styling */
/* Clean transaction ID group */
.transaction-id-group {
    margin: 12px 18px;
    position: relative;
}

/* Clean transaction input */
.transaction-input,
#paypal-transaction-id {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--text-color);
    font-size: 0.95rem;
    font-family: var(--font-main);
    transition: all 0.3s ease;
    margin-bottom: 16px;
    text-align: center;
}

.transaction-input:focus,
#paypal-transaction-id:focus {
    outline: none;
    border-color: var(--accent-color-1);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(0, 242, 254, 0.2);
    text-align: left;
}

.transaction-input::placeholder,
#paypal-transaction-id::placeholder {
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.transaction-input:focus::placeholder,
#paypal-transaction-id:focus::placeholder {
    opacity: 0;
}

/* Clean confirm payment button */
#confirm-manual-payment {
    width: calc(100% - 36px);
    max-width: 280px;
    margin: 12px auto 16px auto;
    padding: 11px 18px;
    background: linear-gradient(135deg, var(--accent-color-1), var(--accent-color-2));
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

#confirm-manual-payment:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.3);
}

#confirm-manual-payment:active {
    transform: translateY(0);
}

#confirm-manual-payment:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Light theme styles for About section */
[data-theme="light"] .modern-about-section {
    background: #f8fafc;
}

[data-theme="light"] .about-profile-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .about-profile-card:hover {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .profile-image {
    border: 4px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .about-profile-card:hover .profile-image {
    border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .principle-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .principle-card:hover {
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .principle-card::before {
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.03), transparent);
}

[data-theme="light"] .about-cta-section {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .stat-item {
    background: rgba(0, 0, 0, 0.03);
}

/* FAQ Styles */
.faq-section {
    margin-top: 40px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color-1);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    color: var(--accent-color-1);
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.faq-item p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
}

/* Light theme for FAQ */
[data-theme="light"] .faq-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .faq-item:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--accent-color-1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Card Modal Styles */
.card-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.card-modal.show {
    opacity: 1;
    visibility: visible;
}

.card-modal .modal-content {
    background: var(--bg-color);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.card-modal.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 30px 20px;
    border-bottom: 1px solid var(--card-border);
}

.modal-header h3 {
    margin: 0;
    color: var(--accent-color-1);
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color-1);
}

.modal-body {
    padding: 30px;
}

.modal-body p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.9;
}

.modal-body h4 {
    color: var(--accent-color-1);
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-body li {
    color: var(--text-color);
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    opacity: 0.9;
}

.modal-body li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color-1);
    font-weight: bold;
}

.modal-footer {
    padding: 20px 30px 30px;
    text-align: center;
    border-top: 1px solid var(--card-border);
}

[data-theme="light"] .card-modal .modal-content {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .card-modal {
        padding: 10px;
    }
    
    .card-modal .modal-content {
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 20px 20px 15px;
    }
    
    .modal-header h3 {
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 15px 20px 20px;
    }
    
    .photo-gallery-section {
        margin: 40px 0;
    }
    
    .gallery-header h3 {
        font-size: 1.5rem;
    }
    
    .gallery-main-image {
        height: 250px;
    }
    
    .gallery-thumbnails {
        gap: 10px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .expert-modal {
        padding: 10px;
    }
    
    .expert-modal-content {
        max-height: 95vh;
    }
    
    .expert-modal-header {
        padding: 20px 20px 15px;
    }
    
    .expert-avatar {
        width: 60px;
        height: 60px;
    }
    
    .expert-modal-body {
        padding: 20px;
    }
    
    .expert-modal-actions {
        flex-direction: column;
    }
    
    .expert-action-btn {
        min-width: auto;
    }
}

/* === SECTION & CTA STYLING === */
.section-header,
.gallery-header {
    text-align: center;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
}

.about-cta-section {
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 60px 40px;
    margin-top: 100px;
}

.cta-content h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--accent-color-1);
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 35px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.modern-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    font-size: 1rem;
}

.modern-cta-btn.primary {
    background: linear-gradient(135deg, var(--accent-color-1), var(--accent-color-2));
    color: white;
}

.modern-cta-btn.secondary {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--card-border);
}

.modern-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.modern-cta-btn.secondary:hover {
    background: var(--card-bg-hover);
    border-color: var(--accent-color-1);
    color: var(--accent-color-1);
}

.modern-cta-btn .btn-icon {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

.modern-cta-btn:hover .btn-icon {
    transform: translateX(3px);
}

.section-header,
.gallery-header,
.contact-hero {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
}

.section-header .section-title,
.gallery-header .section-title,
.contact-hero .contact-title {
    margin-bottom: 20px;
}

.section-header .section-subtitle,
.gallery-header .section-subtitle,
.contact-hero .contact-subtitle {
    margin-top: -35px;
    margin-bottom: 0;
}

.about-cta-section {
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 60px 40px;
    margin-top: 100px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.about-cta-section .section-title {
    margin-bottom: 15px;
}

.about-cta-section .section-subtitle {
    margin-top: -40px;
    margin-bottom: 35px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.modern-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.modern-cta-btn.primary {
    background: linear-gradient(135deg, var(--accent-color-1), var(--accent-color-2));
    color: white;
}
[data-theme="light"] .modern-cta-btn.primary { color: #fff; }

.modern-cta-btn.secondary {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--card-border);
}

.modern-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.modern-cta-btn.secondary:hover {
    border-color: var(--accent-color-1);
    color: var(--accent-color-1);
}

.modern-cta-btn .btn-icon {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

.modern-cta-btn:hover .btn-icon {
    transform: translateX(3px);
}

.legal-page-section,
.faq-page-section {
    padding-top: 140px;
    padding-bottom: 120px;
}

.legal-container,
.faq-page-container {
    max-width: 850px;
    margin: 0 auto;
    padding: clamp(30px, 5vw, 60px);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.legal-container h1, .legal-container h2 {
    font-family: var(--font-headings);
    background: linear-gradient(135deg, var(--accent-color-1), var(--accent-color-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.legal-container h1 { font-size: 2.5rem; }
.legal-container h2 { font-size: 1.8rem; margin-top: 40px;}
.legal-container p, .legal-container li {
    line-height: 1.8;
    color: var(--text-color-muted, rgba(224, 224, 224, 0.7));
    margin-bottom: 15px;
}
[data-theme="light"] .legal-container p,
[data-theme="light"] .legal-container li {
    color: var(--text-color-muted, rgba(47, 53, 66, 0.7));
}


.legal-container ol,
.legal-container ul {
    padding-left: 25px;
    margin-bottom: 20px;
}

.legal-container a {
    color: var(--accent-color-1);
    text-decoration: none;
    font-weight: 500;
}
.legal-container a:hover {
    text-decoration: underline;
}

.last-updated {
    font-style: italic;
    color: var(--text-color-muted, rgba(224, 224, 224, 0.7));
    margin-top: -5px;
    margin-bottom: 40px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: rgba(0,0,0,0.1);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}
[data-theme="light"] .faq-item {
    background: rgba(0,0,0,0.03);
}

.faq-item.active {
    background-color: var(--card-bg-hover);
}

.faq-question {
    width: 100%;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.15rem;
    font-weight: 600;
    text-align: left;
    font-family: var(--font-headings);
}

.faq-icon {
    font-size: 1.8rem;
    color: var(--accent-color-1);
    transition: transform 0.3s ease;
    font-weight: 400;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding-bottom 0.4s ease-out;
}

.faq-answer p {
    padding: 0 25px 0px;
    color: var(--text-color-muted, rgba(224, 224, 224, 0.7));
    line-height: 1.7;
}
[data-theme="light"] .faq-answer p {
    color: var(--text-color-muted, rgba(47, 53, 66, 0.7));
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 25px;
}

.faq-answer a {
    color: var(--accent-color-1);
    font-weight: 500;
    text-decoration: none;
}
.faq-answer a:hover {
    text-decoration: underline;
}

.hero-content h1 {
    margin-bottom: 35px;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.section-header .section-title {
    margin-bottom: 60px;
}

.section-header .section-subtitle {
    margin-top: -35px;
    opacity: 0.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.about-cta-section {
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 60px 40px;
    margin-top: 100px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.about-cta-section .section-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin-bottom: 60px;
}

.about-cta-section .section-subtitle {
    margin-top: -35px;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.modern-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.modern-cta-btn.primary {
    background: linear-gradient(135deg, var(--accent-color-1), var(--accent-color-2));
    color: white;
}
[data-theme="light"] .modern-cta-btn.primary { color: #fff; }

.modern-cta-btn.secondary {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--card-border);
}

.modern-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.modern-cta-btn.secondary:hover {
    border-color: var(--accent-color-1);
    color: var(--accent-color-1);
}

.modern-cta-btn .btn-icon {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

.modern-cta-btn:hover .btn-icon {
    transform: translateX(3px);
}

.about-title, .about-subtitle, .contact-title, .contact-subtitle {
    max-width: 100%; 
}

.about-hero-content, .contact-hero, .contact-hero-content, .cta-content {
    margin-bottom: 0;
    padding: 0;
}

/* === Mobile Layouts & Spacing === */
.terms-agreement {
    margin-top: 25px; 
}

@media (max-width: 768px) {
    header .desktop-nav { display: none; }
    .mobile-menu-toggle { display: flex; }
    .mobile-nav { display: block; } 
    .hero-content p { font-size: 1.1rem; } 
    .hero-cta-button { padding: 15px 35px; font-size: 1.1rem; }

    .about-profile-card {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .profile-image-wrapper {
        margin-bottom: 25px;
        width: 180px;
        height: 180px
    }
    .profile-image {
        width: 100%;
        height: 100%;
    }
    
    .contact-grid { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: 1fr; text-align: center; }
    .footer-column h4::after { left: 50%; transform: translateX(-50%); }
    .social-links { justify-content: center; }
    .footer-bottom-content { flex-direction: column; text-align: center; }
    .thumbnail-item {
        width: 80px;
        height: 60px;
    }
}

@media (max-width: 768px) {
    #payment-modal .modal-content {
        width: 96%;
        margin: 2vh auto;
        max-height: 96vh;
        border-radius: 16px;
    }
    #payment-modal .modal-header {
        padding: 18px 24px 12px;
    }
    #payment-modal .modal-header h2 {
        font-size: 1.3rem;
        font-weight: 600;
    }
    #payment-modal .modal-body {
        padding: 18px 24px;
        max-height: calc(96vh - 150px);
    }
    #payment-modal .modal-footer {
        padding: 8px 24px 12px;
    }
    #payment-modal .form-group {
        padding: 16px 16px 12px 16px;
        margin-bottom: 16px;
        border-radius: 12px;
    }
    #payment-identifier {
        padding: 14px 16px;
        font-size: 1rem;
        border-radius: 10px;
    }
    #payment-identifier + label {
        top: 30px;
        left: 32px;
        font-size: 1rem;
    }
    .payment-system-chooser {
        padding: 16px;
        margin: 14px 0 10px 0;
        border-radius: 12px;
    }
    .payment-system-chooser .systems {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 8px;
    }
    .payment-system-card {
        padding: 14px 10px;
        font-size: 0.85rem;
        min-height: 80px;
        border-radius: 10px;
    }
    .payment-system-card .logo {
        width: 30px;
        height: 30px;
    }
    .payment-system-card .name {
        font-size: 0.85rem;
        font-weight: 600;
    }
    .manual-payment-container {
        margin-top: 18px;
        border-radius: 14px;
    }
    .manual-payment-title {
        font-size: 1rem;
        padding: 14px 18px;
    }
    .manual-payment-instructions {
        padding: 18px;
    }
    .manual-payment-instructions p {
        font-size: 0.9rem;
        margin-bottom: 14px;
    }
    .manual-payment-instructions p:first-child {
        font-size: 0.95rem;
        padding: 12px 14px;
    }
    .manual-payment-instructions li {
        font-size: 0.85rem;
    }
    #confirm-manual-payment {
        width: calc(100% - 30px);
        max-width: 280px;
        margin: 16px auto 18px auto;
        padding: 14px 18px;
        font-size: 0.95rem;
        border-radius: 14px;
    }
    .transaction-input, #paypal-transaction-id {
        padding: 16px 20px;
        font-size: 1rem;
        border-radius: 14px;
    }
    .transaction-id-group {
        padding: 20px;
        margin: 20px 0;
        border-radius: 16px;
    }
    .manual-payment-container {
        margin-top: 20px;
        border-radius: 16px;
    }
    .manual-payment-title {
        padding: 16px 20px;
        font-size: 1rem;
    }
    .clickable-card {
        padding: 10px 14px;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    .clickable-link {
        padding: 8px 12px;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    .copyable-item {
        padding: 7px 11px;
        gap: 9px;
    }
    .copyable-item.inline {
        padding: 4px 7px;
    }
    .copy-icon {
        font-size: 0.95rem;
    }
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        font-size: 0.85rem;
        padding: 10px 15px;
    }
    .terms-agreement {
        margin-bottom: 12px;
    }
    .terms-agreement label {
        font-size: 0.7rem;
    }
    #final-pay-button {
        padding: 10px 16px;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .payment-system-chooser .systems {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 8px;
    }
    .payment-system-card {
        padding: 12px 8px;
        font-size: 0.85rem;
        min-height: 75px;
        border-radius: 10px;
        position: relative;
    }
    .payment-system-card .logo {
        width: 28px;
        height: 28px;
        margin-bottom: 6px;
    }
    .payment-system-card .name {
        font-size: 0.8rem;
        font-weight: 600;
        line-height: 1.2;
        margin-bottom: 4px;
    }
    .payment-system-card .regions {
        font-size: 0.7rem;
        line-height: 1.3;
        opacity: 0.85;
    }
    .payment-system-card .description {
        display: none;
    }
    
    .payment-system-card .preferred-badge {
        font-size: 0.6rem;
        padding: 3px 6px;
        max-width: calc(100% + 6px);
        white-space: normal;
        word-break: break-word;
        line-height: 1.2;
    }
    #final-pay-button {
        padding: 16px 20px;
        font-size: 1rem;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .payment-system-chooser .systems {
        grid-template-columns: 1fr;
        gap: 8px;
        max-width: 340px;
        margin: 0 auto;
        padding: 10px;
    }
    .payment-system-card {
        padding: 14px 12px;
        font-size: 0.8rem;
        min-height: 70px;
        display: flex;
        align-items: center;
        text-align: left;
        gap: 12px;
        border-radius: 12px;
        position: relative;
    }
    .payment-system-card .logo {
        width: 32px;
        height: 32px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    .payment-system-card .payment-info {
        flex: 1;
        align-items: flex-start;
        text-align: left;
        gap: 3px;
    }
    .payment-system-card .name {
        font-size: 0.85rem;
        font-weight: 600;
        margin-bottom: 2px;
        line-height: 1.2;
    }
    .payment-system-card .regions {
        font-size: 0.72rem;
        justify-content: flex-start;
        line-height: 1.3;
        opacity: 0.8;
    }
    .payment-system-card .description {
        display: none;
    }
    
    .payment-system-card .preferred-badge {
        font-size: 0.55rem;
        padding: 2px 5px;
        max-width: calc(100% + 4px);
        white-space: normal;
        word-break: break-word;
        line-height: 1.1;
        top: -2px;
        right: -2px;
    }
    #final-pay-button {
        padding: 14px 18px;
        font-size: 0.95rem;
        border-radius: 10px;
    }
    .manual-payment-container {
        margin-top: 15px;
        border-radius: 12px;
    }
    .manual-payment-title {
        font-size: 0.95rem;
        padding: 12px 16px;
    }
    .manual-payment-instructions {
        padding: 16px;
    }
    .manual-payment-instructions p {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    .manual-payment-instructions p:first-child {
        font-size: 0.9rem;
        padding: 10px 12px;
    }
    .manual-payment-instructions li {
        font-size: 0.8rem;
    }
    #confirm-manual-payment {
        width: calc(100% - 24px);
        max-width: 260px;
        margin: 14px auto 16px auto;
        padding: 12px 16px;
        font-size: 0.9rem;
        border-radius: 12px;
    }
    .transaction-input, #paypal-transaction-id {
        padding: 14px 18px;
        font-size: 0.95rem;
        border-radius: 12px;
    }
    .transaction-id-group {
        padding: 16px;
        margin: 16px 0;
        border-radius: 14px;
    }
    .manual-payment-title {
        padding: 14px 18px;
        font-size: 0.95rem;
    }
    .clickable-card {
        padding: 10px 14px;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    .clickable-link {
        padding: 8px 12px;
        font-size: 0.85rem;
        border-radius: 8px;
    }
    .copyable-item {
        padding: 6px 10px;
        gap: 8px;
    }
    .copyable-item.inline {
        padding: 3px 6px;
    }
    .copy-icon {
        font-size: 0.9rem;
    }
    #payment-modal .modal-content {
        margin: 2vh auto;
        max-height: 96vh;
        width: 95%;
        border-radius: 20px;
        padding: 20px;
    }
    
    #payment-modal .modal-header {
        padding: 15px 20px 10px;
    }
    
    #payment-modal .modal-body {
        padding: 15px 20px;
        max-height: calc(96vh - 140px);
    }
    
    #payment-modal .modal-footer {
        padding: 10px 20px 15px;
    }
    
    #payment-modal .form-group {
        padding: 15px;
    }
    
    .modal .close-button {
        top: 15px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
    
    .payment-details,
    .quantity-selector,
    .donation-input-container,
    .price-breakdown {
        padding: 18px;
        margin: 15px 0;
    }
    
    #quantity-value {
        font-size: 1.6rem;
        padding: 6px 10px;
    }
    
    #donation-amount {
        font-size: 1.6rem;
    }
    
    .total-price {
        font-size: 1.2rem;
    }
    
    #final-pay-button {
        padding: 15px 25px;
        font-size: 1.1rem;
        margin-top: 20px;
    }
}

@media (max-width: 992px) {
    #course-details-modal .modal-content-details {
        height: 95vh;
        max-height: 700px;
        flex-direction: column;
        overflow-y: auto;
    }

    .details-grid {
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .details-left, .details-right {
        overflow-y: visible;
        height: auto;
        border-right: none;
        padding: 30px;
    }

    .details-left {
        border-bottom: 1px solid var(--card-border); 
    }

    #course-details-modal .close-button {
        top: 15px;
        right: 15px;
        background: rgba(0,0,0,0.1);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
/* === SVG CTA Button Sizing === */
.cta-button {
    display: inline-block;
    margin-top: 30px;
    width: 100%;
    max-width: 240px;
    position: relative;
}
.cta-button svg {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}
.cta-button:hover svg {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px var(--shadow-color));
}
.cta-button .stop1 { stop-color: var(--accent-color-1); transition: stop-color 0.3s; }
.cta-button .stop2 { stop-color: var(--accent-color-2); transition: stop-color 0.3s; }

[data-theme="light"] .cta-button .stop1 { stop-color: #3742fa; }
[data-theme="light"] .cta-button .stop2 { stop-color: #ff4757; }

/* === Body scroll lock when modal is open === */
body.modal-open-scroll-lock {
    overflow: hidden;
}

/* === GALLERY LIGHTBOX MODAL STYLES === */
#gallery-lightbox .lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
#gallery-lightbox.is-open .lightbox-content {
    transform: scale(1);
    opacity: 1;
}
#gallery-lightbox img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 30, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    color: white;
    font-size: 24px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}
.lightbox-prev {
    left: 20px;
}
.lightbox-next {
    right: 20px;
}
.lightbox-close {
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    transform: none;
}
@media(max-width: 768px) {
    .lightbox-btn {
        width: 38px;
        height: 38px;
    }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-close { top: 10px; right: 10px; }
}

/* === COPYABLE ITEMS STYLES === */
.copyable-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 4px 6px;
    border-radius: 6px;
    background: transparent;
    border: none;
    position: relative;
    margin: 2px 0;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

.copyable-item:hover {
    color: var(--accent-color-1);
    text-decoration-color: var(--accent-color-1);
    background: rgba(0, 242, 254, 0.05);
}

.copyable-item.inline {
    display: inline-flex;
    margin: 0 2px;
    padding: 2px 4px;
}

.copy-icon {
    font-size: 0.9rem;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.copyable-item:hover .copy-icon {
    opacity: 1;
    transform: scale(1.1);
}

.copyable-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Profile link styles */
.profile-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.profile-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Specific styles for profile links in data tables */
table .profile-link {
    color: #495057;
    font-weight: 600;
}

table .profile-link:hover {
    color: #007bff;
}

/* Referral page styles */
.earned-lessons-section {
    margin-bottom: 2rem;
}

.earned-summary {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.earned-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    min-width: 250px;
}

.earned-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.earned-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.earned-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.earned-note {
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.3;
}

.user-status-info {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.new {
    background-color: #6c757d;
    color: white;
}

.status-badge.active {
    background-color: #28a745;
    color: white;
}

.earned-badge {
    background-color: #007bff;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}