/* ============================================
   Base Styles & CSS Variables (includes/header.php)
   ============================================ */

:root {
  --bg-dark: #ffffff;
  --bg-card: #ffffff;
  --border-subtle: rgba(0,0,0,0.1);
  --text-primary: #1a1a2e;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --header-bg: #f8f9fa;
  --header-text: #1a1a2e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
  background: #ffffff;
  color: var(--text-primary);
  min-height: 100vh;
}

/* ========== GENERAL TYPOGRAPHY ========== */
h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 12px;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 10px;
}

h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 8px;
}

p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

ul, ol {
  margin: 16px 0;
  padding-left: 24px;
}

li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: var(--accent-hover);
}

/* ========== HEADER ========== */
.site-header {
  background: var(--header-bg);
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-logo img {
  height: 38px;
}

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

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
  color: var(--header-text);
  background: transparent;
  border: none;
  cursor: pointer;
}

.header-link:hover {
  background: rgba(0,0,0,0.06);
}

.header-link--primary {
  background: var(--accent);
  color: white;
}

.header-link--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.header-divider {
  width: 1px;
  height: 24px;
  background: var(--border-subtle);
  margin: 0 4px;
  flex-shrink: 0;
}

.header-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.header-menu-toggle span {
  width: 100%;
  height: 2px;
  background: var(--header-text);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.header-menu-toggle--active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.header-menu-toggle--active span:nth-child(2) {
  opacity: 0;
}

.header-menu-toggle--active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Dropdown menu */
.header-dropdown {
  position: relative;
}

.header-link--dropdown {
  position: relative;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* Ensure button elements with header-link class look identical to anchor tags */
button.header-link {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  margin: 0;
  text-align: left;
  width: auto;
  height: auto;
}

.header-dropdown-arrow {
  font-size: 10px;
  margin-left: 4px;
  transition: transform 0.2s ease;
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

.header-dropdown:hover .header-dropdown-arrow {
  transform: rotate(180deg);
}

.header-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 4px;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 100;
  border: 1px solid var(--border-subtle);
}

.header-dropdown-menu--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-dropdown-item {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s ease;
  white-space: nowrap;
}

.header-dropdown-item:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--accent);
}

@media (max-width: 768px) {
  .site-header {
    padding: 0 16px;
  }
  
  .header-menu-toggle {
    display: flex;
  }
  
  .header-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--header-bg);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 99;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  
  .header-nav--open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .header-link {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    justify-content: flex-start;
    margin-bottom: 4px;
  }
  
  .header-link:last-child {
    margin-bottom: 0;
  }
  
  .header-divider {
    width: 100%;
    height: 1px;
    background: var(--border-subtle);
    margin: 8px 0;
    flex-shrink: 0;
  }
  
  .header-dropdown {
    width: 100%;
  }
  
  .header-link--dropdown {
    width: 100%;
    justify-content: space-between;
  }
  
  .header-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0;
    margin-top: 4px;
    margin-left: 16px;
    background: transparent;
  }
  
  .header-dropdown-item {
    padding: 10px 16px;
    color: var(--header-text);
  }
  
  .header-dropdown-item:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--header-text);
  }
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--accent);
  color: white;
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn--secondary {
  background: #f8f9fa;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn--secondary:hover {
  background: #e9ecef;
  border-color: rgba(0,0,0,0.15);
}

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

.page-header {
  text-align: center;
  margin-bottom: 48px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.page-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
}

/* ========== CARDS ========== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

/* ========== FORMS ========== */
.input {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

.input:focus {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.input::placeholder {
  color: var(--text-muted);
}

/* ========== EMPTY STATE ========== */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 56px;
  margin-bottom: 20px;
  opacity: 0.6;
}

.empty-state h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* ========== PAGINATION ========== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f8f9fa;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.15s;
}

.pagination a:hover,
.pagination a.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* ========== CREDITS ========== */
.credits-content {
  max-width: 800px;
  margin: 0 auto;
}

.credits-section {
  margin-bottom: 40px;
}

.credits-section-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.credits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.credits-list li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
}

.credits-list li::before {
  content: '•';
  position: absolute;
  left: 8px;
  color: var(--accent);
  font-weight: bold;
}

.credits-list li strong {
  font-weight: 600;
  color: var(--text-primary);
}

.credits-list a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}

.credits-list a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.credits-note {
  margin-top: 48px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  text-align: center;
}

.credits-note p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================
   Browse Page Styles (browse.php)
   ============================================ */

   .search-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto 48px;
  }
  
  .search-form .input {
    flex: 1;
  }
  
  .tracks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
  }
  
  .track-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-decoration: none;
    display: block;
  }
  
  .track-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  }
  
  .track-card-body {
    padding: 24px;
  }
  
  .track-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .track-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
  }
  
  .track-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  
  .track-card-author {
    color: var(--text-secondary);
    font-weight: 500;
  }
  
  .track-card-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
  }
  
  .track-card-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: block;
  }
  
  .track-card-thumbnail-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    opacity: 0.5;
  }
  
  .track-card-footer {
    padding: 16px 24px;
    background: #f8f9fa;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .track-card-action {
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 4px;
  }
  
  /* ============================================
     Profile Page Styles (profile.php)
     ============================================ */
  
  .profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px;
  }
  
  .profile-header {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-subtle);
  }
  
  .profile-info h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
  }
  
  .profile-stats {
    display: flex;
    gap: 20px;
  }
  
  .stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
  }
  
  .stat-value {
    font-weight: 600;
    color: var(--text-primary);
  }
  
  .settings-section {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
  }
  
  .section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .form-group {
    margin-bottom: 24px;
  }
  
  .form-group:last-child {
    margin-bottom: 0;
  }
  
  .form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
  }
  
  .form-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: #ffffff;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
  }
  
  .form-input:focus {
    border-color: var(--accent);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  }
  
  .form-input::placeholder {
    color: var(--text-muted);
  }
  
  textarea.form-input {
    min-height: 100px;
    resize: vertical;
  }
  
  .form-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
  }
  
  .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  
  .checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
  }
  
  .checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--accent);
  }
  
  .checkbox-label {
    flex: 1;
  }
  
  .checkbox-label-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
  }
  
  .checkbox-label-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
  }
  
  .message {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
  }
  
  .message--success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
  }
  
  .message--error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
  }
  
  .account-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }
  
  .account-info-item {
    padding: 16px;
    background: #f8f9fa;
    border-radius: 10px;
  }
  
  .account-info-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 4px;
  }
  
  .account-info-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
  }
  
  .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
  }
  
  /* ============================================
     Track Info Page Styles (track_info.php)
     ============================================ */
  
  .track-info {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .track-hero {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 32px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  }
  
  .track-hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
  }
  
  .track-hero-placeholder {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 96px;
    opacity: 0.4;
  }
  
  .track-content {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 40px;
  }
  
  .track-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
  }
  
  .track-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
  }
  
  .track-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  
  .track-meta-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
  }
  
  .track-meta-value {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
  }
  
  .track-description {
    margin-bottom: 32px;
  }
  
  .track-description-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
  }
  
  .track-description-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
  }
  
  .track-description-empty {
    font-style: italic;
    color: var(--text-muted);
  }
  
  .track-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }
  
  .btn--large {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: 12px;
  }
  
  .btn--disabled {
    background: #f1f5f9;
    color: var(--text-muted);
    cursor: not-allowed;
    pointer-events: none;
  }
  
  .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 24px;
    transition: color 0.15s;
  }
  
  .back-link:hover {
    color: var(--text-primary);
  }
  
  /* ============================================
     Contact Page Styles (contact.php)
     ============================================ */
  
  .contact-container {
    max-width: 900px;
    margin: 0 auto;
  }
  
  .contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
  }
  
  .contact-info h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
  }
  
  .contact-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 32px;
  }
  
  .contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  
  .contact-detail-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
  }
  
  .contact-detail-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
  }
  
  .contact-detail-content {
    flex: 1;
  }
  
  .contact-detail-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  .contact-detail-value {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.5;
  }
  
  .contact-detail-value a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s;
  }
  
  .contact-detail-value a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
  }
  
  .contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 32px;
  }
  
  @media (max-width: 768px) {
    .contact-content {
      grid-template-columns: 1fr;
      gap: 32px;
    }
    
    .contact-form {
      order: -1;
    }
  }

/* ========== FOOTER ========== */
.site-footer {
  background: var(--header-bg);
  border-top: 1px solid var(--border-subtle);
  padding: 48px 40px 32px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-column h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.footer-logo img {
  height: 32px;
}

.footer-about {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-beta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  color: white;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  width: fit-content;
}

.footer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s ease;
  display: inline-block;
}

.footer-menu a:hover {
  color: var(--accent);
}

.footer-filler {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-discord-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.15s ease;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.footer-discord-btn:hover {
  background: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ============================================
   Documentation Page Styles (docs.php)
   ============================================ */

.docs-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.docs-sidebar {
  position: sticky;
  top: 80px;
}

.docs-nav {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 8px;
}

.docs-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.docs-nav-link {
  display: block;
  padding: 10px 14px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.15s ease;
  margin-bottom: 4px;
}

.docs-nav-link:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-primary);
}

.docs-nav-link.active {
  background: var(--accent);
  color: white;
}

.docs-nav-link.active:hover {
  background: var(--accent-hover);
}

.docs-content {
  min-width: 0;
}

.docs-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 40px;
}

.docs-section h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--text-primary);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.docs-content-inner h3 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.docs-content-inner h3:first-child {
  margin-top: 0;
}

.docs-beta-notice {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-left: 4px solid #ef4444;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 32px;
}

.docs-beta-notice strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #dc2626;
  margin-bottom: 8px;
}

.docs-beta-notice p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.docs-beta-notice a {
  font-weight: 500;
}

.docs-content-inner p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.docs-content-inner ul {
  margin: 16px 0;
  padding-left: 24px;
}

.docs-content-inner li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.docs-content-inner strong {
  font-weight: 600;
  color: var(--text-primary);
}

.docs-screenshot {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  margin: 16px 0;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  .docs-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .docs-sidebar {
    position: static;
  }
  
  .docs-nav {
    display: flex;
    overflow-x: auto;
    padding: 8px;
  }
  
  .docs-nav-list {
    display: block;
  }
  
  .docs-nav-link {
    white-space: nowrap;
    margin-bottom: 4px;
  }
  
  .docs-section {
    padding: 24px;
  }
  
  .docs-section h2 {
    font-size: 24px;
    margin-bottom: 24px;
  }
  
  .docs-content-inner h3 {
    font-size: 18px;
    margin-top: 24px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 24px 16px;
  }
  
  .docs-container {
    gap: 24px;
  }
  
  .docs-section {
    padding: 20px;
    border-radius: 12px;
  }
  
  .docs-section h2 {
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 12px;
  }
  
  .docs-content-inner h3 {
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
  }
  
  .docs-content-inner p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 14px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .docs-content-inner ul,
  .docs-content-inner ol {
    margin: 14px 0;
    padding-left: 20px;
  }
  
  .docs-content-inner li {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 6px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .docs-beta-notice {
    padding: 12px 16px;
    margin-bottom: 24px;
  }
  
  .docs-beta-notice strong {
    font-size: 15px;
    margin-bottom: 6px;
  }
  
  .docs-beta-notice p {
    font-size: 14px;
  }
  
  .docs-content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .docs-content-inner code {
    word-break: break-all;
    overflow-wrap: break-word;
  }
  
  .docs-screenshot {
    margin: 12px 0;
    border-radius: 10px;
  }
}

/* ============================================
   Homepage Styles (index.php)
   ============================================ */

.hero-section {
  margin: 0;
  background: #ffffff;
}

.hero-image-wrapper {
  width: 100%;
  height: 500px;
  overflow: hidden;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  position: relative;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-stats-overlay {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
}

.hero-stats-overlay .hero-stats-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  font-weight: 500;
  line-height: 1.5;
}

.hero-stats-overlay .hero-stats-text strong {
  font-size: 32px;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 1);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.hero-stats-overlay .hero-stats-text span {
  display: block;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.hero-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 64px 24px;
  text-align: center;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero-description {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 40px;
  margin-left: auto;
  margin-right: auto;
}


.browse-section {
  background: #ffffff;
  padding: 64px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.browse-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.browse-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.browse-description {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.browse-tracks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.browse-track-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.browse-track-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.browse-track-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.browse-track-thumbnail-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  opacity: 0.5;
}

.browse-track-body {
  padding: 24px;
}

.browse-track-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browse-track-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.browse-track-author {
  color: var(--text-secondary);
  font-weight: 500;
}

.browse-track-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 66px;
}

.features-section {
  background: #f8f9fa;
  padding: 64px 0;
}

.about-section {
  background: #ffffff;
  padding: 64px 0;
  border-top: 1px solid var(--border-subtle);
}

.about-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 48px;
  letter-spacing: -0.02em;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.about-intro {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.about-note {
  margin-bottom: 48px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  border-left: 4px solid var(--accent);
}

.about-note a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.about-note a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.about-subsection {
  margin-bottom: 40px;
}

.about-subsection:last-child {
  margin-bottom: 0;
}

.about-subtitle {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.about-content p {
  margin-bottom: 16px;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.about-content a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.about-content a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.modding-tools-section {
  background: #f8f9fa;
  padding: 64px 0;
  border-top: 1px solid var(--border-subtle);
}

.community-section {
  background: #ffffff;
  padding: 64px 0;
  border-top: 1px solid var(--border-subtle);
}

.community-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.community-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.community-description {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.modding-tools-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.modding-tools-intro {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.modding-tools-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto 40px;
}

.modding-tool-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.modding-tool-item:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.modding-tool-icon {
  font-size: 48px;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.7;
}

.modding-tool-content {
  flex: 1;
}

.modding-tool-heading {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.modding-tool-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

.modding-tools-notice {
  text-align: center;
  padding: 20px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  color: #dc2626;
  font-size: 15px;
  max-width: 600px;
  margin: 0 auto;
  margin-bottom:20px;
}

.modding-tools-notice strong {
  font-weight: 600;
}

.features-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.features-intro {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 64px;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.feature-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.feature-item--reverse {
  direction: rtl;
}

.feature-item--reverse > * {
  direction: ltr;
}

.feature-image-placeholder {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
}

.feature-image-wrapper {
  width: 100%;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.feature-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-placeholder-icon {
  font-size: 80px;
  opacity: 0.4;
}

.feature-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-heading {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.feature-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

@media (max-width: 968px) {
  .hero-title {
    font-size: 36px;
  }
  
  .hero-description {
    font-size: 18px;
  }
  
  .hero-image-wrapper {
    height: 400px;
  }
  
  .browse-section {
    padding: 48px 0;
  }
  
  .browse-title {
    font-size: 28px;
  }
  
  .browse-description {
    font-size: 16px;
    margin-bottom: 28px;
  }
  
  .browse-tracks-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .features-title {
    font-size: 28px;
    margin-bottom: 20px;
  }
  
  .features-intro {
    font-size: 16px;
    margin-bottom: 48px;
  }
  
  .about-section {
    padding: 48px 0;
  }
  
  .about-title {
    font-size: 28px;
    margin-bottom: 40px;
  }
  
  .about-intro {
    font-size: 17px;
  }
  
  .about-subtitle {
    font-size: 22px;
  }
  
  .modding-tools-section {
    padding: 48px 0;
  }
  
  .modding-tools-title {
    font-size: 28px;
    margin-bottom: 20px;
  }
  
  .community-section {
    padding: 48px 0;
  }
  
  .community-title {
    font-size: 28px;
    margin-bottom: 16px;
  }
  
  .community-description {
    font-size: 17px;
    margin-bottom: 28px;
  }
  
  .modding-tools-intro {
    font-size: 17px;
    margin-bottom: 40px;
  }
  
  .modding-tool-heading {
    font-size: 20px;
  }
  
  .modding-tool-item {
    padding: 24px;
  }
  
  .modding-tool-icon {
    font-size: 40px;
  }
  
  .feature-item {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .feature-item--reverse {
    direction: ltr;
  }
  
  .feature-image-placeholder,
  .feature-image-wrapper {
    height: 250px;
  }
  
  .feature-heading {
    font-size: 24px;
  }
  
  .features-list {
    gap: 48px;
  }
}

@media (max-width: 640px) {
  .hero-content {
    padding: 48px 20px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .hero-description {
    font-size: 16px;
    margin-bottom: 32px;
  }
  
  .hero-image-wrapper {
    height: 300px;
  }
  
  .browse-section {
    padding: 48px 0;
  }
  
  .browse-header {
    margin-bottom: 40px;
  }
  
  .browse-title {
    font-size: 24px;
    margin-bottom: 16px;
  }
  
  .browse-description {
    font-size: 15px;
    margin-bottom: 24px;
  }
  
  .browse-tracks-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .browse-track-thumbnail,
  .browse-track-thumbnail-placeholder {
    height: 180px;
  }
  
  .browse-track-body {
    padding: 20px;
  }
  
  .browse-track-desc {
    min-height: auto;
  }
  
  .features-section {
    padding: 48px 0;
  }
  
  .features-title {
    font-size: 24px;
    margin-bottom: 16px;
  }
  
  .features-intro {
    font-size: 15px;
    margin-bottom: 40px;
  }
  
  .about-section {
    padding: 48px 0;
  }
  
  .about-title {
    font-size: 24px;
    margin-bottom: 32px;
  }
  
  .about-intro {
    font-size: 16px;
  }
  
  .about-subsection {
    margin-bottom: 32px;
  }
  
  .about-subtitle {
    font-size: 20px;
  }
  
  .about-content {
    font-size: 15px;
  }
  
  .modding-tools-section {
    padding: 40px 0;
  }
  
  .modding-tools-title {
    font-size: 24px;
    margin-bottom: 16px;
  }
  
  .community-section {
    padding: 40px 0;
  }
  
  .community-title {
    font-size: 24px;
    margin-bottom: 16px;
  }
  
  .community-description {
    font-size: 16px;
    margin-bottom: 24px;
  }
  
  .modding-tools-intro {
    font-size: 16px;
    margin-bottom: 32px;
  }
  
  .modding-tools-list {
    gap: 24px;
    margin-bottom: 32px;
  }
  
  .modding-tool-item {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
    gap: 16px;
  }
  
  .modding-tool-icon {
    font-size: 40px;
  }
  
  .modding-tool-heading {
    font-size: 18px;
  }
  
  .modding-tool-description {
    font-size: 15px;
  }
  
  .modding-tools-notice {
    font-size: 14px;
    padding: 16px;
  }
  
  .feature-heading {
    font-size: 20px;
  }
  
  .feature-description {
    font-size: 15px;
  }
  
  .features-list {
    gap: 40px;
  }
}

/* ============================================
   Login Page Styles
   ============================================ */

.login-page * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.login-page body {
  font-family: 'Outfit', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  color: #fff;
  overflow: hidden;
}

/* Animated background */
.login-page .bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.3;
}

.login-page .bg-animation::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(239, 68, 68, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(168, 85, 247, 0.1) 0%, transparent 40%);
  animation: login-pulse 15s ease-in-out infinite;
}

@keyframes login-pulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(5deg); }
}

.login-page .login-container {
  position: relative;
  z-index: 1;
  background: white;
  border: 1px solid rgba(100, 100, 150, 0.2);
  border-radius: 24px;
  padding: 48px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.login-page .logo {
  text-align: center;
  margin-bottom: 32px;
}

.login-page .logo img {
  width: 80px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(239, 68, 68, 0.3));
}

.login-page .logo-img-main {
  height: 70px;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 12px rgba(239, 68, 68, 0.3));
}

.login-page .logo h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 16px;
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.login-page .logo p {
  color: #64748b;
  font-size: 0.95rem;
  margin-top: 8px;
  font-weight: 300;
}

.login-page .login-intro {
  text-align: center;
  color: #64748b;
  font-size: 0.95rem;
  margin: 0 0 28px 0;
  line-height: 1.5;
}

.login-page .google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 24px;
  background: #fff;
  color: #1f2937;
  border: none;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.login-page .google-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.login-page .google-btn:active {
  transform: translateY(0);
}

.login-page .google-btn svg {
  width: 20px;
  height: 20px;
}

.login-page .footer-note {
  text-align: center;
  margin-top: 32px;
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.6;
}

.login-page .footer-note a {
  color: #ef4444;
  text-decoration: none;
}

.login-page .footer-note a:hover {
  text-decoration: underline;
}

.login-page .error-message {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: #dc2626;
}

.login-page .error-message a {
  color: #dc2626;
  text-decoration: underline;
}

/* ============================================
   3D Tree Maker Page Styles (3d_tree_maker.php)
   ============================================ */

.profile-container.tree-maker-3d-page {
  max-width: 1500px;
  width: 100%;
  padding: 40px 24px;
  margin: 0 auto;
}

.tree-maker-3d-page .settings-section {
  width: 100%;
  max-width: 100%;
}

.tree-maker-3d-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
  width: 100%;
}

/* 3D Preview Panel */
.tree-3d-preview-panel {
  position: sticky;
  top: 100px;
}

#canvas-container {
  width: 100%;
  aspect-ratio: 16/10;
  min-height: 600px;
  background: #87CEEB;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

#canvas-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Controls Panel */
.tree-3d-controls-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tree-3d-controls-panel .control-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 16px;
}

.tree-3d-controls-panel .control-section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

/* Preset buttons */
.tree-3d-controls-panel .preset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.tree-3d-controls-panel .preset-btn {
  padding: 10px 12px;
  background: var(--bg-input, #f8f9fa);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.tree-3d-controls-panel .preset-btn:hover {
  background: var(--bg-hover, #e9ecef);
  border-color: var(--border-default);
}

.tree-3d-controls-panel .preset-btn.active {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

/* Slider rows */
.tree-3d-controls-panel .slider-row {
  display: grid;
  grid-template-columns: 90px 1fr 45px;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.tree-3d-controls-panel .slider-row:last-child {
  margin-bottom: 0;
}

.tree-3d-controls-panel .slider-row label {
  font-size: 13px;
  color: var(--text-secondary);
}

.tree-3d-controls-panel .slider-row span {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
  font-family: monospace;
}

.tree-3d-controls-panel .slider-row input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e9ecef;
  outline: none;
  -webkit-appearance: none;
}

.tree-3d-controls-panel .slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}

.tree-3d-controls-panel .slider-row input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
}

/* Status message */
#status-message {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  display: none;
  z-index: 1000;
}

/* Collapsible sections */
.tree-3d-controls-panel .control-section.collapsible .control-section-title {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.tree-3d-controls-panel .control-section.collapsible .control-section-title::after {
  content: '▼';
  font-size: 10px;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.tree-3d-controls-panel .control-section.collapsible.collapsed .control-section-title::after {
  transform: rotate(-90deg);
}

.tree-3d-controls-panel .control-section.collapsible .control-section-content {
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.2s ease;
  max-height: 2000px;
  opacity: 1;
}

.tree-3d-controls-panel .control-section.collapsible.collapsed .control-section-content {
  max-height: 0;
  opacity: 0;
}

/* Tree stats section */
.tree-3d-controls-panel .tree-stats-section {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  border-color: rgba(99, 102, 241, 0.3);
}

.tree-3d-controls-panel .tree-stats {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.tree-3d-controls-panel .stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 80px;
}

.tree-3d-controls-panel .stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tree-3d-controls-panel .stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Preset grid */
.tree-3d-controls-panel .preset-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.tree-3d-controls-panel .preset-btn {
  padding: 10px 8px;
  font-size: 12px;
}

/* Select inputs */
.tree-3d-controls-panel .select-input {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  background: var(--bg-input, #fff);
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
}

.tree-3d-controls-panel .select-input:focus {
  border-color: var(--accent);
}

/* Preset dropdown - larger and more prominent */
.tree-3d-controls-panel .preset-select {
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 500;
}

.tree-3d-controls-panel .preset-select optgroup {
  font-weight: 600;
  color: var(--text-secondary);
}

.tree-3d-controls-panel .preset-select option {
  padding: 8px;
  font-weight: 400;
}

/* Number inputs */
.tree-3d-controls-panel .number-input {
  width: 80px;
  padding: 6px 8px;
  font-size: 13px;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  background: var(--bg-input, #fff);
  color: var(--text-primary);
  text-align: center;
  font-family: monospace;
}

.tree-3d-controls-panel .number-input:focus {
  outline: none;
  border-color: var(--accent);
}

/* Color inputs */
.tree-3d-controls-panel .color-input {
  width: 100%;
  height: 32px;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 2px;
  cursor: pointer;
  background: var(--bg-input, #fff);
}

.tree-3d-controls-panel .color-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.tree-3d-controls-panel .color-input::-webkit-color-swatch {
  border: none;
  border-radius: 4px;
}

/* Checkbox rows */
.tree-3d-controls-panel .checkbox-row {
  margin-bottom: 10px;
}

.tree-3d-controls-panel .checkbox-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}

.tree-3d-controls-panel .checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Mini buttons */
.tree-3d-controls-panel .btn-mini {
  padding: 4px 8px;
  font-size: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  background: var(--bg-input, #f8f9fa);
  cursor: pointer;
  transition: all 0.2s;
}

.tree-3d-controls-panel .btn-mini:hover {
  background: var(--bg-hover, #e9ecef);
}

/* Level selector tabs */
.tree-3d-controls-panel .level-selector {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.tree-3d-controls-panel .level-selector > label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.tree-3d-controls-panel .level-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.tree-3d-controls-panel .level-tab {
  padding: 6px 10px;
  font-size: 11px;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  background: var(--bg-input, #f8f9fa);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.tree-3d-controls-panel .level-tab:hover {
  background: var(--bg-hover, #e9ecef);
}

.tree-3d-controls-panel .level-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* Level settings container */
.tree-3d-controls-panel .level-settings {
  padding: 12px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  margin-bottom: 12px;
}

/* Subsection titles */
.tree-3d-controls-panel .subsection-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 12px;
  margin-bottom: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

/* Vector inputs */
.tree-3d-controls-panel .vector-row {
  margin-bottom: 10px;
}

.tree-3d-controls-panel .vector-row > label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.tree-3d-controls-panel .vector-inputs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tree-3d-controls-panel .vector-input {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tree-3d-controls-panel .vector-input span {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  font-weight: 600;
}

.tree-3d-controls-panel .vector-input input {
  width: 100%;
  padding: 6px;
  font-size: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  background: var(--bg-input, #fff);
  color: var(--text-primary);
  text-align: center;
  font-family: monospace;
}

.tree-3d-controls-panel .vector-input input:focus {
  outline: none;
  border-color: var(--accent);
}

/* Actions section */
.tree-3d-controls-panel .actions-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tree-3d-controls-panel .actions-section .btn {
  width: 100%;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.tree-3d-controls-panel .btn--primary {
  background: linear-gradient(135deg, var(--accent), #4f46e5);
  color: white;
}

.tree-3d-controls-panel .btn--primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.tree-3d-controls-panel .btn--secondary {
  background: var(--bg-input, #f8f9fa);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.tree-3d-controls-panel .btn--secondary:hover {
  background: var(--bg-hover, #e9ecef);
}

/* Slider row with number input */
.tree-3d-controls-panel .slider-row .number-input {
  width: 70px;
}

/* Login prompt */
.tree-maker-3d-page .login-prompt {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}

.tree-maker-3d-page .login-prompt-text {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* SEO content section */
.tree-maker-3d-page .seo-content {
  margin-top: 40px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
}

.tree-maker-3d-page .seo-content h2 {
  font-size: 22px;
  margin-top: 0;
  margin-bottom: 16px;
}

.tree-maker-3d-page .seo-content h3 {
  font-size: 18px;
  margin-top: 24px;
  margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 1100px) {
  .tree-maker-3d-layout {
    grid-template-columns: 1fr;
  }
  
  .tree-3d-preview-panel {
    position: static;
  }
  
  .tree-3d-controls-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
  }
  
  #canvas-container {
    min-height: 450px;
  }
  
  .tree-3d-controls-panel .preset-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .tree-maker-3d-page {
    padding: 24px 16px;
  }
  
  .tree-3d-controls-panel {
    grid-template-columns: 1fr;
  }
  
  .tree-3d-controls-panel .preset-grid {
    grid-template-columns: 1fr;
  }
  
  .tree-3d-controls-panel .level-tabs {
    flex-wrap: wrap;
  }
  
  .tree-3d-controls-panel .level-tab {
    flex: 1;
    min-width: 50px;
    text-align: center;
  }
  
  #canvas-container {
    min-height: 320px;
    aspect-ratio: 4/3;
  }
}