/* Anivexa — Dark uzay teması, mor aksan */

:root {
  --bg-dark: #0a0a12;
  --bg-space: #0d0d18;
  --bg-card: #12121f;
  --bg-card-hover: #1a1a2e;
  --purple: #8b5cf6;
  --purple-light: #a78bfa;
  --purple-glow: rgba(139, 92, 246, 0.45);
  --purple-glow-strong: rgba(139, 92, 246, 0.6);
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --border: #27272a;
}

/* Açık tema */
html[data-theme="light"] {
  --bg-dark: #f4f4f5;
  --bg-space: #e4e4e7;
  --bg-card: #ffffff;
  --bg-card-hover: #fafafa;
  --text: #18181b;
  --text-muted: #52525b;
  --border: #e4e4e7;
}
html[data-theme="light"] body {
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(139, 92, 246, 0.08), transparent),
    radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.05), transparent);
}
html[data-theme="light"] body::before {
  background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.04) 1px, transparent 0);
}
html[data-theme="light"] .header-glass {
  background: rgba(255, 255, 255, 0.85);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-dark);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(30, 27, 45, 0.6), transparent),
    radial-gradient(circle at 20% 80%, rgba(25, 25, 40, 0.4), transparent);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  padding-left: max(1.5rem, env(safe-area-inset-left));
  padding-right: max(1.5rem, env(safe-area-inset-right));
  padding-top: max(0.75rem, env(safe-area-inset-top));
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
}
.header-glass {
  background: rgba(10, 10, 18, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-left { flex: 0 0 auto; }
.header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.header-right { flex: 0 0 auto; display: flex; align-items: center; gap: 0.75rem; }
.logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
}
.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  transition: color 0.2s;
  line-height: 1;
}
.logo-wrap:hover .logo { color: var(--purple-light); }
.logo-beta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.22rem 0.5rem;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fca5a5;
  background: transparent;
  border: 1px solid #ef4444;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
  vertical-align: middle;
}
.logo-wrap:hover .logo-beta {
  border-color: #f87171;
  color: #fecaca;
  box-shadow: 0 0 12px rgba(248, 113, 113, 0.3);
}
.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
  padding: 0.5rem 0.25rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-link:hover { color: var(--text); }
.header-user-area { position: relative; display: flex; align-items: center; gap: 0; }
.header-user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  padding: 0.25rem 0.5rem 0.25rem 0;
}
.header-user-info:hover .header-display-name { color: var(--text); }
.header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.header-avatar-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--purple);
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
}
.header-display-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: 0.5rem;
  padding: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.header-menu-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.25);
}
.header-menu-btn:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 2px var(--purple-glow); }
.header-menu-btn svg { flex-shrink: 0; transition: transform 0.2s; }
.header-user-area:has(.header-dropdown.open) .header-menu-btn svg { transform: rotate(180deg); }
.header-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  min-width: 160px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 200;
}
.header-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.header-dropdown-item {
  display: block;
  padding: 0.65rem 1rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.15s;
}
.header-dropdown-item:first-child { border-radius: 10px 10px 0 0; }
.header-dropdown-item:last-child { border-radius: 0 0 10px 10px; }
.header-dropdown-item:hover { background: rgba(255, 255, 255, 0.06); }
.header-dropdown-item:not(:last-child) { border-bottom: 1px solid var(--border); }
.user-email {
  color: var(--text-muted);
  font-size: 0.85rem;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-logged-in .header-right { margin-left: auto; }
.header-logged-in .header-left { flex-shrink: 0; }
.header-logged-in .header-right { flex-shrink: 1; min-width: 0; }
@media (max-width: 768px) {
  .nav-link-desktop { display: none !important; }
  .header-center { gap: 1rem; }
  .header-avatar, .header-avatar-placeholder { width: 32px; height: 32px; font-size: 0.85rem; }
  .header-display-name { max-width: 80px; font-size: 0.85rem; }
  .header-menu-btn { width: 32px; height: 32px; }
  .header-menu-btn svg { width: 18px; height: 18px; }
  .header-dropdown { min-width: 140px; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.btn-primary {
  background: var(--purple);
  color: white;
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.35);
}
.btn-primary:hover {
  background: var(--purple-light);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.45);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: rgba(139, 92, 246, 0.5);
  color: var(--purple-light);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.2);
}
.btn-block { width: 100%; padding: 0.75rem; }
.btn-lg { padding: 0.75rem 1.75rem; font-size: 1.1rem; }

.main { flex: 1; padding-top: 56px; }

.flash-messages { position: fixed; top: 64px; right: 20px; z-index: 200; }
.flash { padding: 1rem 1.5rem; border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,0.4); }
.flash-success { background: #0f7d40; color: white; }
.flash-error { background: #b9090b; color: white; }
.flash-warning { background: #e87c03; color: white; }

/* Hero slider — 4 slayt */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  z-index: 1;
}
.hero-slider {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  background-size: cover;
  background-position: center;
}
.hero-slide.active {
  opacity: 1;
  z-index: 0;
  animation: heroSlideZoom 10s ease-out forwards;
}
@keyframes heroSlideZoom {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}
.hero-slider::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,18,0.5) 0%, rgba(10,10,18,0.85) 50%, var(--bg-dark) 95%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 3rem 1.5rem;
  animation: heroFadeIn 0.8s ease;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple-light);
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.6);
}
.hero-content h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.5rem);
  margin: 0 0 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.hero-content .hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.65;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-tagline { margin: 1.75rem 0 0; font-size: 0.9rem; color: var(--text-muted); letter-spacing: 0.08em; opacity: 0.9; }
.hero-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.hero-feature-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.hero-feature-icon { width: 18px; height: 18px; flex-shrink: 0; }
.hero-full { min-height: 72vh; }

.hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}
.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.hero-dots button:hover { background: rgba(255,255,255,0.6); }
.hero-dots button.active { background: var(--purple-light); transform: scale(1.2); box-shadow: 0 0 10px rgba(139, 92, 246, 0.5); }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.3);
  color: #fff;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.hero-arrow:hover { background: rgba(0,0,0,0.5); border-color: rgba(255,255,255,0.4); }
.hero-arrow.prev { left: 1rem; }
.hero-arrow.next { right: 1rem; }
@media (max-width: 768px) {
  .hero-arrow { width: 36px; height: 36px; left: 0.5rem; }
  .hero-arrow.next { right: 0.5rem; }
}

/* Özellikler alt bölüm — yatay adımlar */
.section-steps {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.section-steps .section-head { text-align: center; margin-bottom: 2.5rem; }
.section-steps .section-head h2 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); margin: 0 0 0.5rem; color: var(--text); }
.section-steps .section-head p { font-size: 0.95rem; color: var(--text-muted); margin: 0; }
.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.step-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s, background 0.2s;
}
.step-item:hover { border-color: rgba(139, 92, 246, 0.25); background: var(--bg-card-hover); }
.step-item .step-num { display: inline-block; width: 36px; height: 36px; line-height: 36px; border-radius: 50%; background: var(--border); color: var(--text-muted); font-weight: 700; font-size: 0.95rem; margin-bottom: 0.75rem; }
.step-item h3 { font-size: 1rem; margin: 0 0 0.4rem; color: var(--text); }
.step-item p { margin: 0; font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

/* Topluluk bölümü */
.section-community {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.community-wrap {
  display: flex;
  align-items: center;
  gap: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem 2.5rem;
  text-align: left;
}
.community-visual {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.community-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 1px solid rgba(139, 92, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.community-icon { width: 40px; height: 40px; color: var(--purple-light); }
.community-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.community-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  background: rgba(139, 92, 246, 0.12);
  color: var(--purple-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.community-content { flex: 1; min-width: 0; }
.community-content h2 { font-size: clamp(1.4rem, 2.5vw, 1.75rem); margin: 0 0 0.5rem; color: var(--text); }
.community-content .community-desc { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.6; }
.community-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.community-stats .stat { text-align: left; }
.community-stats .stat-num { font-size: 1.5rem; font-weight: 700; color: var(--text); display: block; }
.community-stats .stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.community-content .btn { margin-top: 0.25rem; }

@media (max-width: 768px) {
  .community-wrap { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
  .community-content .community-desc { text-align: center; }
  .community-stats { justify-content: center; }
  .community-stats .stat { text-align: center; }
}

/* İndir bölümü */
.section-download {
  padding: 4rem 2rem;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  background: var(--bg-space);
}
.download-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
}
.download-icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 1px solid rgba(139, 92, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.download-icon { width: 32px; height: 32px; color: var(--purple-light); }
.section-download h2 { font-size: clamp(1.35rem, 2.5vw, 1.65rem); margin: 0 0 0.5rem; color: var(--text); }
.download-desc { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 2rem; line-height: 1.6; max-width: 480px; margin-left: auto; margin-right: auto; }
.download-platforms {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.platform-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 100px;
  padding: 1.25rem 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.2s, background 0.2s;
}
.platform-item:hover { border-color: rgba(139, 92, 246, 0.25); background: rgba(139, 92, 246, 0.06); }
.platform-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 0.25rem;
}
.platform-icon svg { width: 28px; height: 28px; }
.platform-icon-windows {
  background: linear-gradient(135deg, rgba(0, 120, 215, 0.2) 0%, rgba(0, 90, 160, 0.1) 100%);
  border: 1px solid rgba(0, 120, 215, 0.35);
  color: #60a5fa;
}
.platform-item:hover .platform-icon-windows {
  box-shadow: 0 0 16px rgba(0, 120, 215, 0.25);
}
.platform-icon-mac {
  background: linear-gradient(135deg, rgba(160, 160, 160, 0.25) 0%, rgba(100, 100, 100, 0.1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e5e5e5;
}
.platform-item:hover .platform-icon-mac {
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.12);
}
.platform-icon-linux {
  background: linear-gradient(135deg, rgba(252, 211, 77, 0.15) 0%, rgba(245, 158, 11, 0.08) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fcd34d;
}
.platform-item:hover .platform-icon-linux {
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
}
.platform-name { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.platform-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--purple-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Özellikler bölümü — kartlar mor parıltı */
.section-features {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.section-features .section-head {
  text-align: center;
  margin-bottom: 3rem;
}
.section-features .section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
  color: var(--text);
}
.section-features .section-head p {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.section-alt { padding-top: 3rem; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.25);
  transform: translateY(-2px);
}
.feature-card .icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple), #6d28d9);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}
.feature-card .icon-wrap svg { width: 24px; height: 24px; fill: white; }
.feature-card h3 { font-size: 1.1rem; margin: 0 0 0.5rem; color: var(--text); }
.feature-card ul { margin: 0; padding-left: 1.25rem; color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
.feature-card li { margin-bottom: 0.35rem; }
.feature-card li::marker { color: var(--purple); }

.preview-section { padding: 3rem 2rem; }
.preview-section h2 { margin-bottom: 1.5rem; font-size: 1.5rem; }
.anime-row { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 1rem; }
.anime-row::-webkit-scrollbar { height: 6px; }
.anime-row::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.anime-card { flex: 0 0 180px; text-decoration: none; color: inherit; transition: transform 0.2s; }
.anime-card:hover { transform: scale(1.05); }
.anime-poster { aspect-ratio: 2/3; background-size: cover; background-position: center; border-radius: 8px; margin-bottom: 0.5rem; }
.anime-title { font-size: 0.95rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.page-auth .main { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 70px); }
.auth-box {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 8px;
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--border);
}
.auth-box h1 { margin: 0 0 1.5rem; font-size: 1.75rem; text-align: center; }
.auth-form label { display: block; margin-bottom: 1rem; }
.auth-form label span { display: block; margin-bottom: 0.35rem; color: var(--text-muted); font-size: 0.9rem; }
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 0.75rem;
  background: #333;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: 1rem;
}
.auth-form input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 2px var(--purple-glow); }
.checkbox-label { display: flex; align-items: center; gap: 0.5rem; }
.checkbox-label input { width: auto; margin: 0; }
.auth-form button { margin-top: 1rem; }
.auth-footer { text-align: center; margin-top: 1.5rem; color: var(--text-muted); font-size: 0.95rem; }
.auth-footer a { color: var(--purple-light); text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }
.verify-text { margin-bottom: 1rem; }

/* Profil sayfası */
.profile-page { position: relative; z-index: 1; padding-bottom: 3rem; }
.profile-banner {
  height: 180px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, var(--bg-card) 100%);
  background-size: cover;
  background-position: center;
}
.profile-card {
  max-width: 640px;
  margin: -60px auto 0;
  padding: 0 1.5rem 1.5rem;
  text-align: center;
}
.profile-avatar-wrap { margin-bottom: 0.75rem; }
.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-dark);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.profile-avatar-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--purple);
  color: white;
  font-size: 2.5rem;
  font-weight: 600;
  border: 3px solid var(--bg-dark);
}
.profile-name { font-size: 1.5rem; margin: 0 0 0.25rem; color: var(--text); }
.profile-email { font-size: 0.9rem; color: var(--text-muted); margin: 0 0 1rem; }
.profile-email-muted { font-size: 0.85rem; opacity: 0.85; }
.profile-bio { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; margin: 0 0 2rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.profile-sections { max-width: 560px; margin: 0 auto; padding: 0 1.5rem; }
.profile-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.profile-section-with-icon { border-radius: 16px; overflow: hidden; }
.profile-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.profile-section-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.profile-section-icon svg { width: 22px; height: 22px; }
.profile-section-icon-edit {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(139, 92, 246, 0.08) 100%);
  color: var(--purple-light);
}
.profile-section-icon-avatar {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.08) 100%);
  color: #60a5fa;
}
.profile-section-icon-banner {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.08) 100%);
  color: #4ade80;
}
.profile-section-icon-lock {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.08) 100%);
  color: #fbbf24;
}
.profile-section-icon-theme {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2) 0%, rgba(236, 72, 153, 0.08) 100%);
  color: #f472b6;
}
.profile-section h2 { font-size: 1.1rem; margin: 0; color: var(--text); }
.profile-file-label { cursor: pointer; }
.profile-file-label input[type="file"] { cursor: pointer; }
.profile-upload-form .profile-file-input {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}
.profile-upload-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.profile-select-btn { margin-bottom: 0; }
.profile-file-name {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-upload-hint { font-size: 0.8rem; color: var(--text-muted); margin: 0 0 1rem; }
.profile-save-btn { margin-top: 0.25rem; }
.profile-save-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.profile-form label { display: block; margin-bottom: 1rem; }
.profile-form label span { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.35rem; }
.profile-form input[type="text"],
.profile-form input[type="password"],
.profile-form input[type="file"],
.profile-form textarea,
.profile-form select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
}
.profile-form textarea { resize: vertical; min-height: 80px; }
.profile-form input:focus,
.profile-form textarea:focus,
.profile-form select:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 2px var(--purple-glow);
}
.profile-form .btn { margin-top: 0.25rem; }
.profile-form-inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; }
.profile-form-inline label { margin-bottom: 0; flex: 1; min-width: 140px; }
.profile-form-inline .btn { flex-shrink: 0; }

.browse-hero {
  position: relative;
  height: 50vh;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding: 2rem 2rem 4rem;
}
.browse-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.browse-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-dark) 0%, transparent 50%);
}
.main > * { position: relative; z-index: 1; }
.browse-hero-content { position: relative; z-index: 1; }
.browse-hero-content h1 { font-size: 2.5rem; margin: 0 0 0.5rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.8); }
.browse-hero-content p { color: var(--text-muted); margin: 0; }

.browse-section { padding: 2rem; }
.browse-section h2 { margin-bottom: 1.5rem; font-size: 1.5rem; }
.anime-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; }
.anime-card-large {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s;
}
.anime-card-large:hover { transform: scale(1.03); }
.anime-card-large .anime-poster { aspect-ratio: 2/3; }
.anime-info { padding: 1rem; }
.anime-genre { font-size: 0.8rem; color: var(--purple-light); text-transform: uppercase; letter-spacing: 0.05em; }
.anime-info h3 { margin: 0.35rem 0 0; font-size: 1rem; }

.footer { text-align: center; padding: 2rem; color: var(--text-muted); font-size: 0.9rem; border-top: 1px solid var(--border); }

@media (max-width: 768px) {
  .header { padding: 0.75rem 1rem; padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); }
  .logo { font-size: 1.35rem; }
  .logo-beta { font-size: 0.55rem; padding: 0.2rem 0.4rem; }
  .header-center { gap: 0.6rem; }
  .nav-link { font-size: 0.85rem; }
  .hero-full { min-height: 65vh; }
  .hero-content { padding: 1.5rem 1rem; max-width: 100%; }
  .hero-content h1 { font-size: 1.6rem; line-height: 1.2; word-wrap: break-word; overflow-wrap: break-word; }
  .hero-desc { font-size: 0.95rem; line-height: 1.5; }
  .hero-features { gap: 1rem; margin-top: 1.5rem; padding-top: 1.25rem; flex-direction: column; }
  .hero-feature-item { font-size: 0.8rem; }
  .hero-tagline { font-size: 0.8rem; }
  .hero-dots { bottom: 1rem; }
  .section-features { padding: 2.5rem 1rem; }
  .section-features .section-head h2 { font-size: 1.35rem; }
  .section-features .section-head p { font-size: 0.9rem; }
  .section-download { padding: 2.5rem 1rem; }
  .download-inner { padding: 2rem 1rem; }
  .section-download h2 { font-size: 1.25rem; }
  .download-desc { font-size: 0.9rem; }
  .download-platforms { gap: 1rem; }
  .platform-item { min-width: 0; flex: 1 1 85px; padding: 1rem 0.5rem; }
  .platform-name { font-size: 0.85rem; }
  .platform-icon { width: 42px; height: 42px; }
  .platform-icon svg { width: 24px; height: 24px; }
  .anime-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .steps-row { grid-template-columns: 1fr; }
  .community-wrap { padding: 1.5rem 1rem; }
  .community-content h2 { font-size: 1.25rem; }
  .community-desc { font-size: 0.9rem; }
  .community-stats { gap: 1.5rem; }
  .footer { padding: 1.25rem 1rem; padding-bottom: max(1.25rem, env(safe-area-inset-bottom)); font-size: 0.85rem; }
  .profile-banner { height: 140px; }
  .profile-card { margin-top: -50px; padding-left: 1rem; padding-right: 1rem; }
  .profile-avatar, .profile-avatar-placeholder { width: 80px; height: 80px; font-size: 2rem; }
  .profile-name { font-size: 1.25rem; }
  .profile-sections { padding-left: 1rem; padding-right: 1rem; }
  .profile-section { padding: 1.25rem; }
  .profile-form-inline { flex-direction: column; align-items: stretch; }
  .profile-form-inline label { min-width: 0; }
}

@media (max-width: 480px) {
  .header-center { gap: 0.4rem; }
  .nav-link { font-size: 0.8rem; padding: 0.4rem 0.1rem; }
  .hero-content h1 { font-size: 1.4rem; }
  .hero-desc { font-size: 0.9rem; }
  .download-platforms { flex-direction: column; }
  .platform-item { flex: 1 1 auto; width: 100%; max-width: 220px; margin: 0 auto; }
  .btn { padding: 0.5rem 1rem; font-size: 0.9rem; }
}
