/*
Theme Name: Anime Stream
Theme URI: https://example.com/anime-stream
Author: Your Name
Author URI: https://example.com
Description: Tema moderno para streaming de animes com player de vídeo, catálogo e sistema de episódios
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: anime-stream
Tags: dark, anime, streaming, video, entertainment
*/

:root {
  --primary: #8b5cf6;
  --primary-light: #a78bfa;
  --primary-dark: #6d28d9; /* Added for potential darker shades */
  --background: #0a0a0a;
  --surface: #1a1a1a;
  --surface-elevated: #2a2a2a;
  --text: #ffffff;
  --text-secondary: #a1a1aa;
  --accent: #06b6d4;
  --border: #272727; /* Slightly adjusted border color for better contrast */
  --success: #10b981;
  --warning: #f59e0b;
}

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

body {
  font-family: -apple-system, BlinkMacMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-light);
}

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background-color: rgba(26, 26, 26, 0.9);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-logo:hover {
  color: var(--primary-light);
}

.main-navigation {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.main-navigation a {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.main-navigation a:hover,
.main-navigation a.active {
  color: var(--text);
}

.main-navigation a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s;
}

.main-navigation a:hover::after {
  width: 100%;
}

/* Search Form */
.search-form {
  display: flex;
  gap: 0.5rem;
  background-color: var(--surface-elevated);
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
}

.search-form input {
  background: transparent;
  border: none;
  color: var(--text);
  outline: none;
  padding: 0.25rem 0.5rem;
  min-width: 200px;
}

.search-form button {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}

.search-form button:hover {
  background-color: var(--primary-light);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
  margin-bottom: 3rem;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.4) blur(2px);
  transform: scale(1.1);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem 0;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

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

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--surface-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: var(--surface);
}

/* Section Titles */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
}

.view-all {
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Anime Grid */
.anime-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.anime-card {
  background-color: var(--surface);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border);
}

.anime-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.anime-card-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background-color: var(--surface-elevated);
}

.anime-card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.anime-card-poster.episode-thumbnail {
  aspect-ratio: 16 / 9;
}

.anime-card-poster.episode-thumbnail img {
  object-fit: cover;
}

.anime-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background-color: var(--primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.anime-card-rating {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background-color: rgba(0, 0, 0, 0.8);
  color: var(--warning);
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.anime-card-body {
  padding: 1rem;
}

.anime-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anime-card-meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}

/* Comments */
.comments-area {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
  margin-top: 3rem;
}

.comments-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

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

.comment {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.comment-body {
  display: flex;
  gap: 1rem;
}

.comment-author {
  display: flex;
  gap: 1rem;
}

.comment-author .avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--border);
}

.comment-meta {
  flex: 1;
}

.comment-content {
  margin: 1rem 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.reply a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--surface-elevated);
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  border: 1px solid var(--border);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  background-color: var(--surface-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  font-size: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.comment-form textarea {
  min-height: 120px;
  resize: vertical;
}

.comment-form .form-submit input[type="submit"] {
  background-color: var(--primary);
  color: white;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
}

/* Modern comments section styling with animations and better UX */
/* Modern Comments Section */
.comments-area-modern {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  margin-top: 3rem;
}

.comments-header-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.comments-title-modern {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.comment-count {
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Modern Comment List */
.comment-list-modern {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment-list-modern .comment {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  animation: fadeInComment 0.3s ease;
}

@keyframes fadeInComment {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.comment-list-modern .comment:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.comment-list-modern .comment-body {
  display: flex;
  gap: 1rem;
}

.comment-list-modern .comment-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.comment-list-modern .comment-author .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--border);
  transition: border-color 0.2s ease;
}

.comment-list-modern .comment:hover .avatar {
  border-color: var(--primary);
}

.comment-list-modern .comment-meta {
  flex: 1;
}

.comment-list-modern .fn {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-right: 0.5rem;
}

.comment-list-modern .fn a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.comment-list-modern .fn a:hover {
  color: var(--primary);
}

.comment-list-modern .comment-metadata {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.comment-list-modern .comment-metadata time {
  opacity: 0.8;
}

.comment-list-modern .edit-link a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: opacity 0.2s ease;
}

.comment-list-modern .edit-link a:hover {
  opacity: 0.8;
}

.comment-list-modern .comment-content {
  margin: 1rem 0 0.75rem 0;
  color: var(--text);
  line-height: 1.6;
  font-size: 0.9375rem;
}

.comment-list-modern .comment-content p {
  margin: 0.75rem 0;
}

.comment-list-modern .comment-awaiting-moderation {
  background: rgba(255, 193, 7, 0.1);
  border-left: 3px solid #ffc107;
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
  margin: 0.75rem 0;
  font-size: 0.875rem;
  color: #ffc107;
}

.comment-list-modern .reply {
  margin-top: 0.75rem;
}

.comment-list-modern .reply a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.2s ease;
}

.comment-list-modern .reply a:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateX(2px);
}

.comment-list-modern .reply a::before {
  content: "↩";
  font-size: 1rem;
}

/* Nested Comments */
.comment-list-modern .children {
  list-style: none;
  margin: 1rem 0 0 2rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--border);
}

/* Modern Comment Form */
.comment-form-modern-wrapper {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}

.comment-form-modern {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-form-modern .comment-reply-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  color: var(--text);
}

.comment-form-modern .comment-reply-title small {
  margin-left: 1rem;
}

.comment-form-modern .comment-reply-title small a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  transition: all 0.2s ease;
}

.comment-form-modern .comment-reply-title small a:hover {
  background: var(--surface-elevated);
  color: var(--primary);
}

.comment-notes-modern,
.logged-in-as-modern {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0 0 1rem 0;
}

.logged-in-as-modern strong,
.logged-in-as-modern a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.logged-in-as-modern a:hover {
  text-decoration: underline;
}

.required {
  color: #ef4444;
}

.comment-form-field-modern {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.comment-form-field-modern label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.comment-form-modern input[type="text"],
.comment-form-modern input[type="email"],
.comment-form-modern input[type="url"],
.comment-form-modern textarea {
  width: 100%;
  background: var(--surface-elevated);
  border: 2px solid var(--border);
  color: var(--text);
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
  resize: vertical;
}

.comment-form-modern input:focus,
.comment-form-modern textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.comment-form-modern textarea {
  min-height: 120px;
  line-height: 1.6;
}

.comment-form-modern .form-submit {
  margin: 0.5rem 0 0 0;
}

.submit-button-modern {
  background: var(--primary);
  color: white;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.submit-button-modern:hover {
  background: var(--primary-dark, #6d28d9);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.submit-button-modern:active {
  transform: translateY(0);
}

.submit-button-modern::after {
  content: "→";
  font-size: 1.125rem;
  transition: transform 0.2s ease;
}

.submit-button-modern:hover::after {
  transform: translateX(3px);
}

/* Comment Pagination */
.comment-pagination-modern {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.comment-pagination-modern a {
  color: var(--primary);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.comment-pagination-modern a:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Comments Closed */
.comments-closed-modern {
  text-align: center;
  padding: 2rem;
  background: var(--surface-elevated);
  border: 1px dashed var(--border);
  border-radius: 0.75rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  .comments-area-modern {
    padding: 1.5rem;
  }

  .comment-list-modern .comment {
    padding: 1rem;
  }

  .comment-list-modern .comment-body {
    flex-direction: column;
  }

  .comment-list-modern .children {
    margin-left: 0.5rem;
    padding-left: 0.75rem;
  }

  .comment-form-modern input[type="text"],
  .comment-form-modern input[type="email"],
  .comment-form-modern textarea {
    font-size: 16px; /* Prevents zoom on mobile */
  }
}

/* Adding simple Blogger video player styles */
/* Blogger Video Player */
.blogger-player-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background-color: #000;
  border-radius: 0.5rem;
  overflow: hidden;
}

.blogger-video-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Anime Player Container */
.anime-player-wrapper {
  margin-bottom: 2rem;
}

.anime-player-container {
  position: relative;
  background-color: #000;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.anime-player-screen {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background-color: #000;
}

.anime-player-screen iframe,
.anime-player-screen video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.anime-player-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.anime-player-loading .spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(139, 92, 246, 0.3);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.no-sources-message {
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-secondary);
  background-color: var(--surface);
  border-radius: 0.75rem;
}

/* Video Sources List */
.anime-player-sources {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.sources-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sources-count {
  background-color: var(--primary);
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
}

.sources-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.source-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--surface-elevated);
  border: 2px solid transparent;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.source-option:hover {
  background-color: rgba(139, 92, 246, 0.1);
  border-color: var(--primary);
}

.source-option.active {
  background-color: rgba(139, 92, 246, 0.2);
  border-color: var(--primary);
}

.source-icon {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

.source-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.source-name {
  font-weight: 600;
  color: var(--text);
}

.source-quality {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.source-flag {
  width: 24px;
  height: 16px;
  flex-shrink: 0;
}

.source-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.25rem;
}

.source-loader {
  position: absolute;
  right: 1rem;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  opacity: 0;
}

.source-option.loading .source-loader {
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .anime-player-sources {
    padding: 1rem;
  }

  .source-option {
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .sources-title {
    font-size: 1rem;
  }
}

/* Removing old profile styles and adding completely new modern profile page styles */
/* User Profile Page - Modern Design */
.user-profile-page {
  padding: 0;
  min-height: calc(100vh - 200px);
}

/* Profile Header with Cover */
.profile-header {
  position: relative;
  margin-bottom: 3rem;
}

.profile-header-bg {
  height: 280px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.profile-header-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect fill="%23ffffff" fill-opacity="0.05" width="50" height="50"/><rect fill="%23ffffff" fill-opacity="0.05" x="50" y="50" width="50" height="50"/></svg>');
  animation: bgScroll 20s linear infinite;
}

@keyframes bgScroll {
  to {
    transform: translateX(100px);
  }
}

.profile-header-content {
  position: relative;
  margin-top: -120px;
  padding: 0 2rem 2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: end;
}

/* Avatar Section */
.profile-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.avatar-wrapper {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 5px solid var(--surface);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  background: var(--surface-elevated);
}

.avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-badge {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* User Info */
.profile-user-info {
  padding-top: 1rem;
}

.user-display-name {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 0.25rem 0;
  line-height: 1.2;
}

.user-username {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin: 0 0 1rem 0;
}

.user-stats-inline {
  display: flex;
  gap: 1.5rem;
}

.stat-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Header Actions */
.profile-actions-header {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn-action-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-action-secondary:hover {
  background: var(--surface-elevated);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* Content Grid */
.profile-content-grid {
  padding: 0 2rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Content Sections */
.content-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.section-count {
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Anime Cards Grid */
.anime-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.25rem;
}

.anime-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s;
}

.anime-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
  border-color: var(--primary);
}

.anime-card-link {
  text-decoration: none;
  color: inherit;
}

.anime-card-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--surface);
}

.anime-card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.anime-card:hover .anime-card-poster img {
  transform: scale(1.05);
}

.no-poster-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-elevated);
  color: var(--text-secondary);
}

.anime-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.anime-card:hover .anime-card-overlay {
  opacity: 1;
}

.progress-indicator {
  position: relative;
  width: 60px;
  height: 60px;
}

.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring-circle {
  transition: stroke-dashoffset 0.5s;
  stroke: var(--primary);
}

.progress-percent {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
}

.anime-card-info {
  padding: 0.875rem;
}

.anime-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.3;
}

.anime-card-episodes {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Episodes List */
.episodes-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.episode-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  transition: all 0.2s;
}

.episode-item:hover {
  background: rgba(139, 92, 246, 0.05);
  border-color: var(--primary);
}

.episode-thumbnail {
  width: 120px;
  height: 68px;
  border-radius: 0.5rem;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface);
}

.episode-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.no-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: var(--surface);
}

.episode-info {
  flex: 1;
  min-width: 0;
}

.episode-anime {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin: 0 0 0.25rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.episode-name {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.episode-time {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.episode-play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 50%;
  color: white;
  transition: all 0.2s;
  flex-shrink: 0;
}

.episode-play-btn:hover {
  background: var(--primary-light);
  transform: scale(1.1);
}

/* Comments List */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-box {
  padding: 1.25rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  transition: all 0.2s;
}

.comment-box:hover {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.03);
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.comment-link {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.comment-link:hover {
  color: var(--primary);
}

.comment-date {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.comment-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-secondary);
}

.empty-state svg {
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state p {
  margin: 0;
  font-size: 1.125rem;
}

/* Avatar Modal */
.avatar-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.avatar-modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.avatar-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.avatar-modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.close-modal {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 0.375rem;
  transition: all 0.2s;
}

.close-modal:hover {
  background: var(--surface-elevated);
  color: var(--text);
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1rem;
  padding: 1.5rem;
}

.avatar-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.avatar-option:hover {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.05);
}

.avatar-option.selected {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.1);
}

.avatar-option img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-name {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
}

.avatar-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
}

.btn-cancel,
.btn-save {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cancel {
  background: var(--surface-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-cancel:hover {
  background: var(--surface);
}

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

.btn-save:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .anime-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

@media (max-width: 768px) {
  .profile-header-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: -80px;
    padding: 0 1rem 1.5rem;
  }

  .profile-avatar-section {
    margin: 0 auto;
  }

  .avatar-wrapper {
    width: 120px;
    height: 120px;
  }

  .profile-user-info {
    text-align: center;
  }

  .user-display-name {
    font-size: 1.5rem;
  }

  .user-stats-inline {
    justify-content: center;
  }

  .profile-actions-header {
    justify-content: center;
  }

  .profile-content-grid {
    padding: 0 1rem 2rem;
  }

  .content-section {
    padding: 1.5rem;
  }

  .anime-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
  }

  .episode-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .episode-thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .episode-play-btn {
    align-self: flex-end;
  }

  .avatar-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }
}

/* ========================================
   MODERN HOMEPAGE STYLES
   ======================================== */

.homepage-modern {
  padding-bottom: 4rem;
  background: #000000;
}

.hero-banner {
  position: relative;
  height: 80vh;
  min-height: 600px;
  overflow: hidden;
  margin-bottom: 4rem;
  background: #000000;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.3);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #000000 0%, transparent 50%, #000000 100%);
}

.hero-content-wrapper {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 4rem;
}

.hero-content {
  max-width: 700px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.meta-badge {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-watch {
  background: var(--primary);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-watch:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
}

.btn-info {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.btn-info:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.homepage-sections {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  background: #000000;
}

.content-section {
  margin-bottom: 2rem;
  background: #000000;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  position: relative;
  padding-bottom: 0.5rem;
}

.section-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.section-link {
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.section-link:hover {
  gap: 0.75rem;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.content-card {
  background: var(--surface);
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.content-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.25);
  border-color: var(--primary);
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-elevated);
}

.card-image-poster {
  aspect-ratio: 2 / 3;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.content-card:hover .card-image img {
  transform: scale(1.1);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.content-card:hover .card-overlay {
  opacity: 1;
}

.play-button {
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.content-card:hover .play-button {
  transform: scale(1);
}

.card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--primary);
  color: white;
  padding: 0.375rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  z-index: 2;
}

.card-badge-new {
  background: var(--accent);
}

.card-views {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  z-index: 2;
}

.card-rating {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  z-index: 2;
  color: var(--warning);
}

.card-body {
  padding: 1rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}

.card-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-year {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ========================================
   ANIME DETAIL PAGE - MODERN
   ======================================== */

.anime-detail-modern {
  padding-bottom: 4rem;
}

.anime-hero {
  position: relative;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  margin-bottom: 3rem;
}

.anime-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--background) 0%, transparent 40%, var(--background) 100%);
}

.anime-hero-content {
  position: relative;
  padding: 4rem 0;
  display: flex;
  gap: 3rem;
  align-items: flex-end;
  min-height: 600px;
}

.anime-poster-card {
  flex-shrink: 0;
  width: 280px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 3px solid rgba(255, 255, 255, 0.1);
  transform: translateY(3rem);
}

.anime-poster-card img {
  display: block;
  width: 100%;
  height: auto;
}

.anime-info-card {
  flex: 1;
  max-width: 800px;
}

.anime-detail-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.anime-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-icon {
  font-size: 1.5rem;
}

.stat-content {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.stat-value {
  font-size: 1.125rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.anime-genres-modern {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.genre-pill {
  background: var(--primary);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.genre-pill:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.anime-synopsis-modern {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 700px;
}

.anime-episodes-modern {
  padding: 0 0 4rem;
}

.episodes-section-modern {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
}

.episodes-header-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.episodes-title-modern {
  font-size: 2rem;
  font-weight: 800;
  margin: 0;
}

.season-selector-modern {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.season-selector-modern:hover {
  border-color: var(--primary);
}

.season-selector-modern:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.season-group-modern {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.episodes-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.episode-card-modern {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s ease;
  display: block;
  text-decoration: none;
  color: inherit;
}

.episode-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2);
  border-color: var(--primary);
}

.episode-thumb-modern {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  overflow: hidden;
}

.episode-thumb-modern img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.episode-card-modern:hover .episode-thumb-modern img {
  transform: scale(1.05);
}

.episode-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.episode-card-modern:hover .episode-play-overlay {
  opacity: 1;
}

.episode-play-icon {
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.episode-card-modern:hover .episode-play-icon {
  transform: scale(1);
}

.episode-duration {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.episode-info-modern {
  padding: 1.25rem;
}

.episode-number-modern {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.episode-title-modern {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

.episode-excerpt-modern {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.no-episodes-modern {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.no-episodes-modern svg {
  margin: 0 auto 1.5rem;
  opacity: 0.5;
}

.no-episodes-modern p {
  font-size: 1.125rem;
}

/* ========================================
   EPISODE PAGE - MODERN
   ======================================== */

.episode-page-modern {
  padding-bottom: 4rem;
}

.episode-breadcrumb {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.episode-breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
}

.episode-breadcrumb a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.episode-breadcrumb a:hover {
  color: var(--primary);
}

.episode-breadcrumb span:last-child {
  color: var(--primary);
  font-weight: 600;
}

.episode-player-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.player-wrapper-modern {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
}

.episode-details-modern {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
}

.episode-meta-header {
  margin-bottom: 1.5rem;
}

.episode-badge-modern {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.375rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.episode-main-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.episode-anime-link {
  margin: 0;
}

.episode-anime-link a {
  color: var(--text-secondary);
  font-size: 1.125rem;
  transition: color 0.2s ease;
}

.episode-anime-link a:hover {
  color: var(--primary);
}

.episode-description-modern {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: var(--surface-elevated);
  border-radius: 0.75rem;
  border-left: 4px solid var(--primary);
}

.episode-navigation-modern {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--surface-elevated);
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text);
}

.nav-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.nav-btn-prev {
  justify-content: flex-start;
}

.nav-btn-next {
  justify-content: flex-end;
}

.nav-btn-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-btn-label {
  font-size: 0.75rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-btn-ep {
  font-size: 0.9375rem;
  font-weight: 700;
}

.nav-btn-center {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: var(--surface-elevated);
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}

.nav-btn-center:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.comments-section-modern {
  margin-top: 3rem;
}

/* ========================================
   USER PROFILE PAGE - MODERN
   ======================================== */

.user-profile-page {
  padding: 0;
  min-height: 100vh;
}

.profile-cover {
  height: 300px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  position: relative;
  overflow: hidden;
}

.profile-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.profile-cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, var(--background) 100%);
}

.profile-container {
  padding-top: 0;
}

.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 3rem 2rem 2rem;
  margin-top: -200px;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.profile-avatar-large {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--surface);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5rem;
  position: relative;
}

.profile-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-change-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  background: var(--primary);
  border: 3px solid var(--surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
}

.avatar-change-btn:hover {
  background: var(--primary-light);
  transform: scale(1.1);
}

.profile-info {
  text-align: center;
  width: 100%;
}

.profile-name {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
}

.profile-username {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin: 0 0 0.25rem;
}

.profile-email {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin: 0 0 1.5rem;
}

.profile-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.profile-actions {
  display: flex;
  gap: 1rem;
}

.btn-edit,
.btn-logout {
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-edit {
  background: var(--primary);
  color: white;
  border: 2px solid var(--primary);
}

.btn-edit:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.btn-logout {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-logout:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.profile-content {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.profile-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
}

.profile-section .section-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.watched-anime-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem;
}

.watched-anime-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.watched-anime-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.anime-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--surface-elevated);
  margin-bottom: 0.75rem;
}

.anime-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.watched-anime-card:hover .anime-poster img {
  transform: scale(1.05);
}

.progress-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(0, 0, 0, 0.5);
}

.progress-bar {
  height: 100%;
  background: var(--primary);
  transition: width 0.3s ease;
}

.anime-info h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.3;
}

.progress-text {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.recent-episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.recent-episode-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.recent-episode-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.recent-episode-card a {
  display: flex;
  text-decoration: none;
  color: inherit;
}

.episode-thumb {
  position: relative;
  width: 120px;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  background: var(--surface);
}

.episode-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.recent-episode-card:hover .play-overlay {
  opacity: 1;
}

.episode-details {
  padding: 1rem;
  flex: 1;
}

.anime-name {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 0 0 0.5rem;
}

.episode-details h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.3;
}

.recent-comments {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-item {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

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

.comment-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.comment-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.comment-meta {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* Avatar Selection Modal - Modern */
.avatar-modal-modern {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.avatar-modal-modern.active {
  display: flex;
  opacity: 1;
}

.avatar-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.avatar-modal-container {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.avatar-modal-header {
  padding: 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.avatar-modal-header h3 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0;
}

.modal-close {
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid var(--border);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--surface-elevated);
  border-color: var(--primary);
  color: var(--primary);
}

.avatar-modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.avatar-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1.5rem;
}

.avatar-option-modern {
  position: relative;
  aspect-ratio: 1;
  border-radius: 0.75rem;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
}

.avatar-option-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.avatar-option-modern.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
}

.avatar-option-modern img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
  padding: 1.5rem 0.75rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.avatar-option-modern:hover .avatar-label {
  opacity: 1;
}

.avatar-check {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.avatar-option-modern.selected .avatar-check {
  display: flex;
}

.avatar-modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.btn-cancel-modal,
.btn-save-modal {
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-cancel-modal {
  background: transparent;
  color: var(--text-secondary);
  border: 2px solid var(--border);
}

.btn-cancel-modal:hover {
  background: var(--surface-elevated);
  color: var(--text);
}

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

.btn-save-modal:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }

  .anime-detail-title {
    font-size: 2.5rem;
  }

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

  .anime-poster-card {
    transform: none;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .anime-detail-title {
    font-size: 1.75rem;
  }

  .episode-main-title {
    font-size: 1.75rem;
  }

  .content-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .episodes-grid-modern {
    grid-template-columns: 1fr;
  }

  .episode-navigation-modern {
    grid-template-columns: 1fr;
  }

  .nav-btn-center {
    order: -1;
  }

  .profile-stats {
    gap: 2rem;
  }

  .avatar-selection-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
  }

  .watched-anime-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .recent-episodes-grid {
    grid-template-columns: 1fr;
  }
}

/* Adicionando estilos completos para páginas de login e cadastro */
/* ============================================
   Authentication Pages - Login & Register
   ============================================ */

.auth-page-modern {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
}

.auth-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.auth-bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(6, 182, 212, 0.15) 0%, transparent 50%);
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.auth-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(139, 92, 246, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

.auth-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 1rem;
}

.auth-card {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(139, 92, 246, 0.1);
  animation: cardFloat 3s ease-in-out infinite;
}

@keyframes cardFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.auth-card-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 20px;
  margin-bottom: 1.5rem;
  animation: logoGlow 2s ease-in-out infinite;
}

@keyframes logoGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.8);
  }
}

.auth-logo svg {
  width: 40px;
  height: 40px;
  color: white;
}

.auth-welcome {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Tabs */
.auth-tabs-modern {
  display: flex;
  gap: 0.5rem;
  background: rgba(42, 42, 42, 0.5);
  border-radius: 12px;
  padding: 0.5rem;
  margin-bottom: 2rem;
}

.auth-tab-btn {
  flex: 1;
  position: relative;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.auth-tab-btn:hover {
  color: var(--text);
}

.auth-tab-btn.active {
  background: rgba(139, 92, 246, 0.2);
  color: var(--primary-light);
}

.tab-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.auth-tab-btn.active .tab-indicator {
  transform: scaleX(1);
}

/* Tab Content */
.auth-tab-content {
  display: none;
  animation: fadeInUp 0.5s ease;
}

.auth-tab-content.active {
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Alerts */
.auth-alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.auth-alert svg {
  flex-shrink: 0;
}

/* Forms */
.auth-form-modern {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.form-label svg {
  color: var(--primary);
}

.input-wrapper {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(42, 42, 42, 0.5);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  color: var(--text);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(42, 42, 42, 0.8);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

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

.input-wrapper .form-input {
  padding-right: 3rem;
}

.input-icon-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.input-icon-btn:hover {
  color: var(--primary);
}

/* Checkbox */
.form-extras {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(139, 92, 246, 0.4);
  border-radius: 4px;
  transition: all 0.2s;
  position: relative;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--primary);
  border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.forgot-link {
  color: var(--primary);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.forgot-link:hover {
  color: var(--primary-light);
}

/* Button */
.btn-auth-primary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 0.5rem;
}

.btn-auth-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-auth-primary:hover::before {
  opacity: 1;
}

.btn-auth-primary span,
.btn-auth-primary svg {
  position: relative;
  z-index: 1;
}

.btn-auth-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.btn-auth-primary:active {
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 640px) {
  .auth-card {
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }

  .auth-welcome {
    font-size: 1.75rem;
  }

  .auth-logo {
    width: 64px;
    height: 64px;
  }

  .auth-logo svg {
    width: 32px;
    height: 32px;
  }

  .form-extras {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}
