/* Importing Google Font - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* Color variables for light theme */
:root {
  --white-color: #fff;
  --black-color: #000;
  --light-white-color: #f0f0f0;
  --light-gray-color: #e5e5e5;
  --border-color: #ccc;
  --primary-color: #3b82f6;
  --secondary-color: #404040;
  --overlay-dark-color: rgba(0, 0, 0, 0.6);
  --star-color: #fbbf24;
}

/* Color variables for dark theme */
.dark-mode {
  --white-color: #171717;
  --black-color: #d4d4d4;
  --light-white-color: #333;
  --light-gray-color: #404040;
  --border-color: #808080;
  --secondary-color: #d4d4d4;
}

body {
  background: var(--white-color);
}

.container {
  display: flex;
  overflow: hidden;
  max-height: 100vh;
  flex-direction: column;
}

header,
.sidebar .nav-left,
.category-list {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white-color);
}

.navbar {
  display: flex;
  gap: 32px;
  align-items: center;
  padding: 8px 16px;
  justify-content: space-between;
}

:where(.navbar, .sidebar) .nav-section {
  gap: 16px;
}

:where(.navbar, .sidebar) :where(.nav-section, .nav-logo, .search-form) {
  display: flex;
  align-items: center;
}

:where(.navbar, .sidebar) :where(.logo-image, .user-image) {
  width: 32px;
  cursor: pointer;
  border-radius: 50%;
}

.user-menu-wrapper {
  position: relative;
}

.user-image {
  transition: opacity 0.2s ease;
}

.user-image:hover {
  opacity: 0.8;
}

/* User Dropdown Menu */
.user-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 300px;
  max-height: 600px;
  overflow-y: auto;
  background: var(--white-color);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
  scrollbar-width: thin;
  scrollbar-color: #a6a6a6 transparent;
}

.user-dropdown::-webkit-scrollbar {
  width: 6px;
}

.user-dropdown::-webkit-scrollbar-thumb {
  background: #a6a6a6;
  border-radius: 3px;
}

.user-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-header {
  display: flex;
  gap: 12px;
  padding: 16px;
}

.user-dropdown-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

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

.user-dropdown-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--black-color);
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown-email {
  font-size: 0.875rem;
  color: var(--secondary-color);
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown-link {
  font-size: 0.875rem;
  color: var(--primary-color);
  text-decoration: none;
}

.user-dropdown-link:hover {
  text-decoration: underline;
}

.user-dropdown-separator {
  height: 1px;
  background: var(--light-gray-color);
  margin: 8px 0;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  color: var(--black-color);
  text-decoration: none;
  font-size: 0.938rem;
  transition: background 0.2s ease;
}

.user-dropdown-item:hover {
  background: var(--light-gray-color);
}

.user-dropdown-item i {
  font-size: 1.25rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.user-dropdown-item .ml-auto {
  margin-left: auto;
  opacity: 0.6;
}

:where(.navbar, .sidebar) .nav-section .nav-button {
  border: none;
  height: 40px;
  width: 40px;
  cursor: pointer;
  background: none;
  border-radius: 50%;
}

:where(.navbar, .sidebar) .nav-section .nav-button:hover {
  background: var(--light-gray-color) !important;
}

:where(.navbar, .sidebar) .nav-button i {
  font-size: 1.5rem;
  display: flex;
  color: var(--black-color);
  align-items: center;
  justify-content: center;
}

:where(.navbar, .sidebar) .nav-logo {
  display: flex;
  gap: 8px;
  text-decoration: none;
}

/* Login Button */
.login-button {
  display: flex !important;
  align-items: center;
  gap: 6px;
  padding: 8px 16px !important;
  width: auto !important;
  background: var(--primary-color) !important;
  border-radius: 20px !important;
  transition: all 0.2s ease;
  text-decoration: none;
}

.login-button:hover {
  background: #2563eb !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.login-button i {
  font-size: 1.125rem;
  color: #fff;
}

.login-text {
  color: #fff;
  font-size: 0.938rem;
  font-weight: 500;
  white-space: nowrap;
}

:where(.navbar, .sidebar) .nav-logo .logo-text {
  color: var(--black-color);
  font-size: 1.25rem;
}

.navbar .search-back-button {
  display: none;
}

.navbar .nav-center {
  gap: 8px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.search-wrapper {
  position: relative;
  flex: 1;
  max-width: 550px;
}

.navbar .search-form {
  display: flex;
  height: 40px;
  width: 100%;
}

.navbar .search-form .search-input {
  width: 100%;
  height: 100%;
  font-size: 1rem;
  padding: 0 16px;
  outline: none;
  color: var(--black-color);
  background: var(--white-color);
  border-radius: 49px 0 0 49px;
  border: 1px solid var(--border-color);
}

.navbar .search-form .search-input:focus {
  border-color: var(--primary-color);
}

.navbar .search-form .search-button {
  height: 40px;
  width: auto;
  padding: 0 20px;
  border-radius: 0 49px 49px 0;
  border: 1px solid var(--border-color);
  border-left: 0;
}

.navbar .nav-center .mic-button {
  background: var(--light-white-color);
}

/* Search Suggestions Dropdown */
.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  max-height: 400px;
  overflow-y: auto;
  background: var(--white-color);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
  scrollbar-width: thin;
  scrollbar-color: #a6a6a6 transparent;
}

.search-suggestions::-webkit-scrollbar {
  width: 6px;
}

.search-suggestions::-webkit-scrollbar-thumb {
  background: #a6a6a6;
  border-radius: 3px;
}

.search-suggestions.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  color: var(--black-color);
  text-decoration: none;
  font-size: 0.938rem;
  transition: background 0.2s ease;
}

.suggestion-item span {
  color: inherit;
  flex: 1;
}

.suggestion-item:hover {
  background: var(--light-gray-color);
}

.suggestion-item i {
  font-size: 1.25rem;
  opacity: 0.6;
  flex-shrink: 0;
}

.dark-mode .search-suggestions {
  background: #212121;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .suggestion-item {
  color: #e1e1e1;
}

.dark-mode .suggestion-item span {
  color: #e1e1e1;
}

.dark-mode .suggestion-item:hover {
  background: rgba(255, 255, 255, 0.15);
}

.navbar .nav-right .search-button {
  display: none;
}

.main-layout {
  display: flex;
  overflow-y: auto;
  scrollbar-color: #a6a6a6 transparent;
}

.main-layout .sidebar {
  width: 280px;
  overflow: hidden;
  padding: 0 11px 0;
  background: var(--white-color);
}

.main-layout .sidebar .nav-left {
  display: none;
  padding: 8px 5px;
}

body.sidebar-hidden .main-layout .sidebar {
  width: 0;
  padding: 0;
}

.sidebar .links-container {
  padding: 16px 0 32px;
  overflow-y: auto;
  height: calc(100vh - 60px);
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.sidebar .links-container:hover {
  scrollbar-color: #a6a6a6 transparent;
}

.sidebar .link-section {
  list-style: none;
}

.sidebar .link-section .link-item {
  display: flex;
  cursor: pointer;
  color: var(--black-color);
  white-space: nowrap;
  align-items: center;
  font-size: 0.938rem;
  padding: 5px 12px;
  margin-bottom: 4px;
  border-radius: 8px;
  text-decoration: none;
}

.sidebar .link-section .link-item:hover {
  background: var(--light-gray-color);
}

.sidebar .link-section .link-item i {
  font-size: 1.4rem;
  margin-right: 10px;
  min-width: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar .link-section .section-title {
  color: var(--black-color);
  font-weight: 600;
  font-size: 0.938rem;
  margin: 16px 0 8px 8px;
}

.sidebar .section-separator {
  height: 1px;
  margin: 10px 0;
  background: var(--light-gray-color);
}

.main-layout .content-wrapper {
  padding: 0 16px;
  overflow-x: hidden;
  width: 100%;
}

.content-wrapper .category-list-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0 11px;
  z-index: 5;
}

.content-wrapper .category-list {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  flex: 1;
}

.content-wrapper .category-list::-webkit-scrollbar {
  display: none;
}

.category-list .category-button {
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.94rem;
  border-radius: 8px;
  white-space: nowrap;
  color: var(--black-color);
  padding: 6px 12px;
  background: var(--light-gray-color);
  text-decoration: none;
}

.category-list .category-button.active {
  color: var(--white-color);
  background: var(--black-color);
  pointer-events: none;
}

.dark-mode .category-list .category-button.active {
  filter: brightness(120%);
}

.category-list .category-button:not(.active):hover {
  background: var(--border-color);
}

.category-nav-button {
  position: sticky;
  z-index: 5;
  background: var(--white-color);
  border: none;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.category-nav-button:hover {
  background: var(--light-gray-color);
}

.category-nav-button i {
  font-size: 1.5rem;
  color: var(--black-color);
}

.category-nav-button.hidden {
  display: none;
}

.prev-button {
  left: 0;
}

.next-button {
  right: 0;
}

/* Catalog Header */
.catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.catalog-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--black-color);
  margin: 0;
}

.section-heading {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--black-color);
  margin: 16px 0 0;
}

/* ========================================
   Catalog Genre List
   ======================================== */

.catalog-genre-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  padding: 20px 0 24px;
}

.genre-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px 16px 24px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--white-color);
  text-decoration: none;
  color: var(--black-color);
  text-align: center;
  transition: all 0.2s ease;
}

.genre-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.genre-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.12);
  border: 2px solid var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.6rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.genre-card:hover .genre-icon {
  background: var(--primary-color);
  color: #fff;
}

.genre-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.genre-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}

.genre-count {
  font-size: 0.8rem;
  color: var(--secondary-color);
  margin: 0;
}

.dark-mode .genre-card {
  background: var(--white-color);
  border-color: var(--border-color);
}

.dark-mode .genre-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1024px) {
  .catalog-genre-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .catalog-genre-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .catalog-genre-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.content-wrapper .video-list {
  display: grid;
  gap: 20px;
  padding: 20px 0 24px;
  grid-template-columns: repeat(4, 1fr);
}

.content-wrapper .video-list .video-card {
  text-decoration: none;
  transition: transform 0.2s ease;
}

.content-wrapper .video-list .video-card:hover {
  transform: translateY(-4px);
}

.content-wrapper .video-list .video-card .thumbnail-container {
  position: relative;
}

.content-wrapper .video-list .video-card .thumbnail {
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  background: var(--light-white-color);
}

.content-wrapper .video-list .video-card .duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  color: #fff;
  font-size: 0.75rem;
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--overlay-dark-color);
  font-weight: 600;
}

.content-wrapper .video-list .video-card .video-info {
  display: flex;
  gap: 11px;
  padding: 12px 4px;
}

.content-wrapper .video-list .video-card .video-details {
  width: 100%;
}

.content-wrapper .video-list .video-card .title {
  font-size: 0.95rem;
  color: var(--black-color);
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin-bottom: 8px;
}

.content-wrapper .video-list .video-card:hover .title {
  color: var(--primary-color);
}

.content-wrapper .video-list .video-card .views {
  font-size: 0.875rem;
  color: var(--secondary-color);
  line-height: 1.4;
}

/* Auth Modal Styles */
.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.auth-modal.active {
  opacity: 1;
  visibility: visible;
}

.auth-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.auth-modal-content {
  position: relative;
  background: var(--white-color);
  border-radius: 16px;
  width: 90%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  z-index: 1001;
}

.auth-modal.active .auth-modal-content {
  transform: scale(1);
}

.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--light-gray-color);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--black-color);
}

.auth-modal-close:hover {
  background: var(--border-color);
  transform: rotate(90deg);
}

.auth-modal-close i {
  font-size: 1.25rem;
}

/* Auth Tabs */
.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--light-gray-color);
}

.auth-tab {
  flex: 1;
  padding: 12px 24px;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary-color);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.auth-tab.active {
  color: var(--primary-color);
}

.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
}

/* Auth Forms */
.auth-form-container {
  display: none;
}

.auth-form-container.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.auth-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--black-color);
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 0.938rem;
  color: var(--secondary-color);
  margin-bottom: 24px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--black-color);
}

.form-group input {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.938rem;
  color: var(--black-color);
  background: var(--white-color);
  transition: all 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input::placeholder {
  color: var(--secondary-color);
  opacity: 0.6;
}

.forgot-password {
  font-size: 0.875rem;
  color: var(--primary-color);
  text-decoration: none;
  align-self: flex-end;
  margin-top: -8px;
  transition: opacity 0.2s ease;
}

.forgot-password:hover {
  opacity: 0.8;
}

.auth-submit-btn {
  padding: 14px 24px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
}

.auth-submit-btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

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

/* Auth Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--secondary-color);
  font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

/* Social Login */
.social-login {
  display: flex;
  gap: 12px;
}

.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--white-color);
  color: var(--black-color);
  font-size: 0.938rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.social-btn:hover {
  background: var(--light-gray-color);
  border-color: var(--black-color);
}

.social-btn i {
  font-size: 1.125rem;
}

.google-btn:hover {
  background: #f8f9fa;
  border-color: #db4437;
  color: #db4437;
}

.facebook-btn:hover {
  background: #f0f2f5;
  border-color: #1877f2;
  color: #1877f2;
}

/* Forgot Password Styles */
.back-to-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 0.938rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 16px;
  border-radius: 6px;
}

.back-to-login:hover {
  background: rgba(59, 130, 246, 0.1);
  transform: translateX(-2px);
}

.back-to-login i {
  font-size: 1.125rem;
}

.forgot-password-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  margin-top: 20px;
}

.forgot-password-info i {
  font-size: 1.25rem;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-top: 2px;
}

.forgot-password-info p {
  font-size: 0.875rem;
  color: var(--secondary-color);
  line-height: 1.5;
  margin: 0;
}

/* Reset Password Success Box */
.reset-success-box {
  text-align: center;
  padding: 20px;
}

.reset-success-content {
  margin-bottom: 32px;
}

.reset-success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.reset-success-icon i {
  font-size: 3rem;
  color: #fff;
}

.reset-success-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--black-color);
  margin-bottom: 12px;
}

.reset-success-message {
  font-size: 0.938rem;
  color: var(--secondary-color);
  line-height: 1.6;
  margin: 0;
  max-width: 400px;
  margin: 0 auto;
}

.reset-back-btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--primary-color);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.938rem;
  transition: all 0.2s ease;
}

.reset-back-btn:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

#forgot-password-form.active .auth-tabs {
  display: none;
}

.text-danger {
  color: #ef4444;
}

/* Login Page Styles */
.profile-wrapper .auth-tabs {
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.profile-wrapper .auth-form-container {
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  padding: 32px 0;
}

.profile-wrapper .auth-title {
  text-align: center;
}

.profile-wrapper .auth-subtitle {
  text-align: center;
  margin-bottom: 32px;
}

.profile-wrapper .profile-card {
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.auth-footer p {
  font-size: 0.938rem;
  color: var(--secondary-color);
  margin: 0;
}

.auth-footer .register-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.auth-footer .register-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Pagination Styles */
.pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 0 60px;
}

.view-more-wrapper {
  display: flex;
  justify-content: center;
  padding-top: 24px;
}

.view-more-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--black-color);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 10px 28px;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.view-more-btn:hover {
  background: var(--light-gray-color);
}

.pagination-wrapper.hidden {
  display: none;
}

.pagination-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border-color);
  background: var(--white-color);
  color: var(--black-color);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.938rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
}

.pagination-button span {
  display: none;
}

.pagination-button:hover:not(:disabled) {
  background: var(--light-gray-color);
  border-color: var(--black-color);
}

.pagination-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-button i {
  font-size: 1.2rem;
}

.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pagination-number {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  background: var(--white-color);
  color: var(--black-color);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.938rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
}

.pagination-number:hover {
  background: var(--light-gray-color);
  border-color: var(--black-color);
}

.pagination-number.active {
  background: var(--black-color);
  color: var(--white-color);
  border-color: var(--black-color);
  cursor: default;
}

.dark-mode .pagination-number.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.pagination-ellipsis {
  padding: 0 8px;
  color: var(--secondary-color);
  font-weight: 600;
}

/* Responsive media code for small devices */
@media (max-width: 768px) {

  .navbar {
    gap: 1rem;
  }
  
  .login-button {
    padding: 8px 12px !important;
  }
  
  .login-text {
    display: none;
  }
  
  .category-nav-button {
    display: none;
  }
  
  .pagination-wrapper {
    gap: 8px;
    padding: 30px 0 50px;
  }
  
  .pagination-number {
    min-width: 36px;
    height: 36px;
    font-size: 0.875rem;
  }
  
  .pagination-button {
    min-width: 36px;
    height: 36px;
  }

  .navbar .nav-center,
  body.show-mobile-search .navbar .nav-left,
  body.show-mobile-search .navbar .nav-right {
    display: none;
  }

  .navbar .nav-right .search-button,
  body.show-mobile-search .navbar .search-back-button,
  body.show-mobile-search .navbar .nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .main-layout .screen-overlay {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 15;
    width: 100%;
    height: 100vh;
    background: var(--overlay-dark-color);
    transition: 0.2s ease;
  }

  body.sidebar-hidden .main-layout .screen-overlay {
    opacity: 0;
    pointer-events: none;
  }

  .main-layout .sidebar {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 20;
    height: 100vh;
    transition: 0.2s ease;
  }

  body.sidebar-hidden .main-layout .sidebar {
    left: -280px;
  }

  .main-layout .sidebar .nav-left {
    display: flex;
  }

  .content-wrapper .video-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .catalog-header {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
  }

  .catalog-title {
    font-size: 1.2rem;
  }
  
  .user-dropdown {
    width: 280px;
    right: -8px;
  }
}

/* Responsive media code for medium devices */
@media (min-width: 769px) and (max-width: 1200px) {
  .content-wrapper .video-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================
   Movie Details Page Styles
   ======================================== */

.movie-details-layout {
  display: flex;
  gap: 24px;
  padding-top: 12px;
}

.details-primary {
  flex: 1;
  min-width: 0;
}

/* Video Player */
.video-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--black-color);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
}

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

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(0, 0, 0, 0.8);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.play-button:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translate(-50%, -50%) scale(1.1);
}

.play-button i {
  font-size: 2rem;
  color: var(--white-color);
  margin-left: 4px;
}

/* Movie Info */
.movie-info {
  margin-bottom: 16px;
}

.movie-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--black-color);
  margin-bottom: 8px;
}

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--secondary-color);
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.meta-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-separator {
  opacity: 0.5;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.movie-meta .action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--light-gray-color);
  border: none;
  border-radius: 24px;
  font-size: 0.813rem;
  font-weight: 500;
  color: var(--black-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.movie-meta .action-btn:hover {
  background: var(--border-color);
}

.movie-meta .action-btn.active {
  background: var(--primary-color);
  color: #fff;
}

.movie-meta .action-btn.active:hover {
  background: #2563eb;
}

.movie-meta .action-btn.active i,
.movie-meta .action-btn.active span {
  color: #fff;
}

.movie-meta .action-btn i {
  font-size: 1rem;
}

/* Movie Description */
.movie-description {
  background: var(--light-gray-color);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

/* Movie Genre Tags */
.movie-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.genre-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.813rem;
  font-weight: 500;
  color: var(--primary-color);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  text-decoration: none;
  transition: all 0.2s ease;
}

.genre-tag:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.dark-mode .genre-tag {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.35);
  color: #93c5fd;
}

.dark-mode .genre-tag:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.description-content {
  margin-top: 0;
}

.description-text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--black-color);
  max-height: 200px;
  overflow: hidden;
}

/* Comments Section */
.comments-section {
  margin-bottom: 24px;
}

.comments-header {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 24px;
}

.comments-count {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--black-color);
}

.comments-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--secondary-color);
  font-size: 0.875rem;
}

.sort-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--black-color);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.sort-button:hover {
  background: var(--light-gray-color);
}

.sort-button i {
  font-size: 1rem;
}

/* Sort Dropdown */
.sort-dropdown-wrapper {
  position: relative;
}

.sort-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 300px;
  background: var(--white-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 100;
}

.sort-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sort-option {
  width: 100%;
  padding: 16px;
  border: none;
  background: var(--white-color);
  color: var(--black-color);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
  display: block;
  text-decoration: none;
}

.sort-option:hover {
  background: var(--light-gray-color);
}

.sort-option.active {
  background: var(--light-white-color);
}

.sort-option-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--black-color);
  margin-bottom: 4px;
}

.sort-option-desc {
  font-size: 0.75rem;
  color: var(--secondary-color);
  line-height: 1.4;
}

.add-comment {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.comment-input-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comment-submit-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.comment-cancel-btn,
.comment-submit-btn {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.813rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.comment-cancel-btn {
  background: none;
  color: var(--secondary-color);
}

.comment-cancel-btn:hover {
  background: var(--light-gray-color);
  color: var(--black-color);
}

.comment-submit-btn {
  background: var(--primary-color);
  color: #fff;
}

.comment-submit-btn:hover {
  background: #2563eb;
}

.dark-mode .comment-cancel-btn:hover {
  background: var(--light-gray-color);
  color: var(--black-color);
}

.comment-input {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border-color);
  padding: 8px 0;
  font-size: 0.875rem;
  color: var(--black-color);
  outline: none;
}

.comment-input:focus {
  border-bottom-color: var(--black-color);
}

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

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.comment-item {
  display: flex;
  gap: 12px;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.comment-content {
  flex: 1;
  min-width: 0;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.commenter-name {
  font-size: 0.813rem;
  font-weight: 600;
  color: var(--black-color);
}

.comment-time {
  font-size: 0.75rem;
  color: var(--secondary-color);
}

.comment-text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--black-color);
  margin-bottom: 8px;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.comment-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--black-color);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 20px;
  transition: background 0.2s ease;
}

.comment-action-btn:hover {
  background: var(--light-gray-color);
}

.comment-action-btn.active {
  color: var(--primary-color);
}

.comment-action-btn.active:hover {
  background: rgba(59, 130, 246, 0.1);
}

.comment-action-btn.active i {
  color: var(--primary-color);
}

.comment-action-btn i {
  font-size: 0.875rem;
}

/* Related Movies Sidebar */
.related-movies {
  width: 400px;
  flex-shrink: 0;
}

.related-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--black-color);
  margin-bottom: 16px;
}

/* Category list inside related movies sidebar */
.related-movies .category-list-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 16px 0;
  margin-bottom: 12px;
  z-index: 5;
}

.related-movies .category-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 0;
  flex: 1;
  scrollbar-width: none;
}

.related-movies .category-list::-webkit-scrollbar {
  display: none;
}

.related-movies .category-nav-button {
  position: sticky;
  z-index: 5;
  background: var(--white-color);
  border: none;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.related-movies .category-nav-button i {
  font-size: 1.2rem;
  color: var(--black-color);
}

.related-movies .category-nav-button:hover {
  background: var(--light-gray-color);
}

.related-movies .category-nav-button.hidden {
  display: none;
}

.related-movies .prev-button {
  left: 0;
}

.related-movies .next-button {
  right: 0;
}


.related-item {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  text-decoration: none;
  transition: background 0.2s ease;
  padding: 8px;
  border-radius: 8px;
}

.related-item:hover {
  background: var(--light-gray-color);
}

.related-thumbnail {
  width: 168px;
  height: 94px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

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

.related-movie-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--black-color);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.related-channel {
  font-size: 0.75rem;
  color: var(--secondary-color);
  margin-bottom: 2px;
}

.related-meta {
  font-size: 0.75rem;
  color: var(--secondary-color);
}

/* Dark Mode Styles for Movie Details */
.dark-mode .movie-title,
.dark-mode .related-title,
.dark-mode .comment-input {
  color: #f1f1f1;
}

.dark-mode .comments-count {
  color: #f1f1f1 !important;
}

.dark-mode .sort-button {
  color: #f1f1f1 !important;
}

.dark-mode .commenter-name {
  color: #f1f1f1 !important;
}

.dark-mode .comment-text {
  color: #e1e1e1 !important;
}

.dark-mode .related-movie-title {
  color: #f1f1f1;
}

.dark-mode .related-channel,
.dark-mode .related-meta,
.dark-mode .comment-time {
  color: #aaa;
}

.dark-mode .movie-meta .action-btn {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #f1f1f1 !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.dark-mode .movie-meta .action-btn:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

.dark-mode .movie-meta .action-btn.active {
  background: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.dark-mode .movie-meta .action-btn.active:hover {
  background: #2563eb !important;
}

.dark-mode .movie-meta .action-btn.active i,
.dark-mode .movie-meta .action-btn.active span {
  color: #fff !important;
}

.dark-mode .movie-meta .action-btn i,
.dark-mode .movie-meta .action-btn span {
  color: #f1f1f1 !important;
}

.dark-mode .movie-description {
  background: rgba(255, 255, 255, 0.08);
}

.dark-mode .description-text {
  color: #e1e1e1;
}

.dark-mode .sort-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dark-mode .sort-dropdown {
  background: var(--white-color);
  border-color: var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.dark-mode .sort-option {
  background: var(--white-color);
}

.dark-mode .sort-option:hover {
  background: var(--light-gray-color);
}

.dark-mode .sort-option.active {
  background: var(--light-white-color);
}

.dark-mode .sort-option-title {
  color: var(--black-color);
}

.dark-mode .sort-option-desc {
  color: var(--secondary-color);
}

.dark-mode .catalog-title {
  color: #f1f1f1;
}

.dark-mode .catalog-header {
  border-bottom-color: var(--border-color);
}

/* Dark Mode - Auth Modal */
.dark-mode .auth-modal-content {
  background: var(--white-color);
}

.dark-mode .auth-modal-close {
  background: var(--light-gray-color);
  color: var(--black-color);
}

.dark-mode .auth-modal-close:hover {
  background: var(--border-color);
}

.dark-mode .auth-tabs {
  border-bottom-color: var(--border-color);
}

.dark-mode .auth-tab {
  color: var(--secondary-color);
}

.dark-mode .auth-tab.active {
  color: var(--primary-color);
}

.dark-mode .auth-title {
  color: #f1f1f1;
}

.dark-mode .auth-subtitle {
  color: var(--secondary-color);
}

.dark-mode .form-group label {
  color: #f1f1f1;
}

.dark-mode .form-group input {
  background: var(--light-white-color);
  border-color: var(--border-color);
  color: #f1f1f1;
}

.dark-mode .form-group input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.dark-mode .form-group input::placeholder {
  color: var(--secondary-color);
}

.dark-mode .auth-divider::before,
.dark-mode .auth-divider::after {
  background: var(--border-color);
}

.dark-mode .social-btn {
  background: var(--light-white-color);
  border-color: var(--border-color);
  color: #f1f1f1;
}

.dark-mode .social-btn:hover {
  background: var(--light-gray-color);
}

.dark-mode .back-to-login {
  color: var(--primary-color);
}

.dark-mode .back-to-login:hover {
  background: rgba(59, 130, 246, 0.15);
}

.dark-mode .forgot-password-info {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
}

.dark-mode .forgot-password-info p {
  color: var(--secondary-color);
}

.dark-mode .reset-success-title {
  color: var(--black-color);
}

.dark-mode .reset-success-message {
  color: var(--secondary-color);
}

.dark-mode .reset-back-btn {
  background: var(--primary-color);
}

.dark-mode .reset-back-btn:hover {
  background: #2563eb;
}

.dark-mode .comment-input {
  border-bottom-color: rgba(255, 255, 255, 0.3);
  color: #f1f1f1;
}

.dark-mode .comment-input:focus {
  border-bottom-color: rgba(255, 255, 255, 0.6);
}

.dark-mode .comment-input::placeholder {
  color: #888;
}

.dark-mode .add-comment {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.dark-mode .comment-action-btn {
  color: #e1e1e1 !important;
}

.dark-mode .comment-action-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.dark-mode .comment-action-btn.active {
  color: #93c5fd !important;
}

.dark-mode .comment-action-btn.active:hover {
  background: rgba(59, 130, 246, 0.15);
}

.dark-mode .comment-action-btn.active i {
  color: #93c5fd !important;
}

.dark-mode .view-more-btn {
  color: #e1e1e1;
  border-color: rgba(255, 255, 255, 0.2);
}

.dark-mode .view-more-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.dark-mode .related-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.dark-mode .related-movies .category-nav-button {
  background: var(--white-color);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.dark-mode .related-movies .category-nav-button i {
  color: var(--black-color);
}

.dark-mode .related-movies .category-nav-button:hover {
  background: var(--light-gray-color);
}


/* Movie Details Responsive */
@media (max-width: 1280px) {
  .related-movies {
    width: 350px;
  }
  
  .related-thumbnail {
    width: 140px;
    height: 79px;
  }
}

@media (max-width: 1024px) {
  .movie-details-layout {
    flex-direction: column;
  }
  
  .related-movies {
    width: 100%;
  }
  
  .related-item {
    padding: 12px;
  }
  
  .related-thumbnail {
    width: 168px;
    height: 94px;
  }
  
  .action-buttons {
    gap: 6px;
  }
  
  .movie-meta .action-btn {
    padding: 8px 12px;
    font-size: 0.813rem;
  }
  
  .movie-description {
    padding: 12px;
  }
  
  .related-thumbnail {
    width: 140px;
    height: 79px;
  }
  
  .related-movie-title {
    font-size: 0.813rem;
  }
}

@media (max-width: 768px) {
  .video-player {
    border-radius: 0;
  }
  
  .movie-title {
    font-size: 1.125rem;
  }
  
  .play-button {
    width: 60px;
    height: 60px;
  }
  
  .play-button i {
    font-size: 1.5rem;
  }
  
  .auth-modal-content {
    padding: 32px 24px;
    max-width: 95%;
  }
  
  .auth-title {
    font-size: 1.5rem;
  }
  
  .social-login {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .content-wrapper .video-list {
    grid-template-columns: 1fr;
  }

  .movie-meta .action-btn span {
    display: none;
  }
  
  .movie-meta .action-btn {
    padding: 8px;
    min-width: 40px;
    justify-content: center;
  }
  
  .related-thumbnail {
    width: 120px;
    height: 68px;
  }
  
  .comments-header {
    gap: 16px;
  }
  
  .auth-modal-content {
    padding: 24px 16px;
  }
  
  .auth-tabs {
    margin-bottom: 24px;
  }
  
  .auth-tab {
    padding: 10px 16px;
    font-size: 0.938rem;
  }

  .comments-section {
    margin-bottom: 0px;
  }
}

/* Profile Page Styles */
.profile-wrapper {
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.profile-container {
  width: 100%;
}

.profile-page-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--black-color);
  margin-bottom: 8px;
}

.profile-subtitle {
  font-size: 0.938rem;
  color: var(--secondary-color);
  margin-bottom: 32px;
}

.profile-content-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

/* Profile Sidebar Navigation */
.profile-sidebar {
  position: sticky;
  top: 80px;
  background: var(--white-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
}

.profile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--black-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.938rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.profile-nav-item i {
  font-size: 1.25rem;
  width: 24px;
}

.profile-nav-item:hover {
  background: var(--light-gray-color);
}

.profile-nav-item.active {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
}

/* Profile Main Content */
.profile-main-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-section {
  display: none;
}

.profile-section.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.profile-wrapper .section-header {
  margin-bottom: 24px;
}

.profile-wrapper .section-title-main {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black-color);
  margin-bottom: 8px;
}

.profile-wrapper .section-subtitle {
  font-size: 0.938rem;
  color: var(--secondary-color);
}

/* Profile Cards */
.profile-card {
  background: var(--white-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.profile-card:last-child {
  margin-bottom: 0;
}

/* Profile Avatar Section */
.profile-avatar-section {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.avatar-wrapper {
  position: relative;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--border-color);
}

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

.avatar-change-btn:hover {
  background: #2563eb;
  transform: scale(1.1);
}

.avatar-change-btn i {
  font-size: 1.125rem;
}

.avatar-info {
  flex: 1;
}

.avatar-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black-color);
  margin-bottom: 4px;
}

.avatar-username {
  font-size: 1rem;
  color: var(--secondary-color);
}

/* Alert Messages */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.938rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
}

.alert::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.alert-success {
  background-color: #d1fae5;
  color: #065f46;
  border-color: #6ee7b7;
}

.alert-success::before {
  content: "\f058";
  color: #10b981;
}

.alert-error {
  background-color: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}

.alert-error::before {
  content: "\f06a";
  color: #ef4444;
}

/* Profile Forms */
.profile-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-wrapper .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.profile-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-form .form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--black-color);
}

.profile-form .form-group input,
.profile-form .form-group textarea,
.profile-form .form-group select {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.938rem;
  color: var(--black-color);
  background: var(--white-color);
  font-family: 'Poppins', sans-serif;
  transition: all 0.2s ease;
}

.profile-form .form-group input:focus,
.profile-form .form-group textarea:focus,
.profile-form .form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.profile-form .form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.profile-wrapper .form-hint {
  font-size: 0.813rem;
  color: var(--secondary-color);
  margin-top: -4px;
}

/* Password Input Wrapper */
.password-input-wrapper {
  position: relative;
}

.password-input-wrapper input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--secondary-color);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border-radius: 4px;
  width: 32px;
  height: 32px;
}

.password-toggle:hover {
  color: var(--primary-color);
  background: rgba(59, 130, 246, 0.1);
}

.password-toggle:active {
  transform: translateY(-50%) scale(0.95);
}

.password-toggle i {
  font-size: 1.125rem;
}

/* Form Actions */
.profile-wrapper .form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}

.profile-wrapper .btn-primary,
.profile-wrapper .btn-secondary {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.938rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.profile-wrapper .btn-primary {
  background: var(--primary-color);
  color: #fff;
}

.profile-wrapper .btn-primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.profile-wrapper .btn-secondary {
  background: var(--light-gray-color);
  color: var(--black-color);
  border: 1px solid var(--border-color);
}

.profile-wrapper .btn-secondary:hover {
  background: var(--border-color);
}

/* Lists Stats */
.profile-wrapper .lists-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.profile-wrapper .stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--light-white-color);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.profile-wrapper .stat-item i {
  font-size: 2rem;
  color: var(--primary-color);
}

.profile-wrapper .stat-info {
  display: flex;
  flex-direction: column;
}

.profile-wrapper .stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--black-color);
  line-height: 1;
  margin-bottom: 4px;
}

.profile-wrapper .stat-label {
  font-size: 0.875rem;
  color: var(--secondary-color);
}

/* Lists Actions */
.profile-wrapper .lists-actions {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.profile-wrapper .subsection-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--black-color);
  margin-bottom: 16px;
}

.profile-wrapper .action-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-wrapper .action-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--white-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--black-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

.profile-wrapper .action-link:hover {
  background: var(--light-gray-color);
  border-color: var(--primary-color);
}

.profile-wrapper .action-link i:first-child {
  font-size: 1.25rem;
  color: var(--primary-color);
}

.profile-wrapper .action-link span {
  flex: 1;
  font-size: 0.938rem;
  font-weight: 500;
}

.profile-wrapper .action-link i:last-child {
  font-size: 1.125rem;
  color: var(--secondary-color);
}

/* Preferences */
.profile-wrapper .preference-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.profile-wrapper .preference-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.profile-wrapper .preference-item:first-child {
  padding-top: 0;
}

.profile-wrapper .preference-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.profile-wrapper .preference-info > i {
  font-size: 1.5rem;
  color: var(--primary-color);
  width: 32px;
}

.profile-wrapper .preference-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-wrapper .preference-label {
  font-size: 0.938rem;
  font-weight: 600;
  color: var(--black-color);
}

.profile-wrapper .preference-desc {
  font-size: 0.813rem;
  color: var(--secondary-color);
}

/* Toggle Switch */
.profile-wrapper .toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}

.profile-wrapper .toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.profile-wrapper .toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-color);
  transition: 0.3s;
  border-radius: 28px;
}

.profile-wrapper .toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.profile-wrapper .toggle-switch input:checked + .toggle-slider {
  background-color: var(--primary-color);
}

.profile-wrapper .toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

/* Watch History Page Styles */
.history-wrapper {
  padding: 24px 40px;
}

.history-container {
  max-width: 1400px;
  margin: 0 auto;
}

.history-page-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--black-color);
  margin-bottom: 8px;
}

.history-subtitle {
  font-size: 0.938rem;
  color: var(--secondary-color);
  margin-bottom: 32px;
}

.history-card {
  background: var(--white-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.table-wrapper {
  overflow-x: auto;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
}

.history-table thead {
  background: var(--light-gray-color);
}

.history-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 0.813rem;
  font-weight: 600;
  color: var(--black-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.history-table th:nth-child(2) {
  width: 50%;
}

.history-table tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: background 0.2s ease;
}

.history-table tbody tr:hover {
  background: var(--light-white-color);
}

.history-table tbody tr:last-child {
  border-bottom: none;
}

.history-table td {
  padding: 8px 14px;
  font-size: 0.875rem;
  color: var(--black-color);
  vertical-align: middle;
}

.table-poster {
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.table-poster:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.table-title-link {
  text-decoration: none;
  display: block;
  transition: opacity 0.2s ease;
}

.table-title-link:hover {
  opacity: 0.8;
}

.table-title-link:hover .movie-title {
  color: var(--primary-color);
}

.movie-title {
  font-weight: 600;
  color: var(--black-color);
  margin-bottom: 4px;
  transition: color 0.2s ease;
}

.movie-year {
  font-size: 0.813rem;
  color: var(--secondary-color);
}

.rating {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--star-color);
  font-weight: 600;
}

.rating i {
  font-size: 1rem;
}

.action-buttons-inline {
  display: flex;
  gap: 8px;
}

.action-buttons-inline .action-btn {
  padding: 8px 10px;
  border: 1px solid var(--border-color);
  background: var(--white-color);
  border-radius: 6px;
  color: var(--secondary-color);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.action-buttons-inline .action-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(59, 130, 246, 0.05);
}

.favorite-btn.active {
  color: #ef4444;
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

.favorite-btn.active:hover {
  background: rgba(239, 68, 68, 0.1);
}

.delete-btn:hover {
  color: #ef4444;
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

/* Dark Mode - Profile Page */
.dark-mode .alert-success {
  background-color: #064e3b;
  color: #6ee7b7;
  border-color: #047857;
}

.dark-mode .alert-success::before {
  color: #34d399;
}

.dark-mode .alert-error {
  background-color: #7f1d1d;
  color: #fca5a5;
  border-color: #991b1b;
}

.dark-mode .alert-error::before {
  color: #f87171;
}

.dark-mode .profile-page-title,
.dark-mode .profile-wrapper .section-title-main,
.dark-mode .avatar-name {
  color: #f1f1f1;
}

.dark-mode .profile-sidebar,
.dark-mode .profile-card {
  background: var(--white-color);
  border-color: var(--border-color);
}

.dark-mode .profile-nav-item {
  color: #f1f1f1;
}

.dark-mode .profile-nav-item:hover {
  background: var(--light-gray-color);
}

.dark-mode .profile-nav-item.active {
  background: rgba(59, 130, 246, 0.15);
}

.dark-mode .profile-avatar {
  border-color: var(--border-color);
}

.dark-mode .avatar-change-btn {
  border-color: var(--white-color);
}

.dark-mode .profile-form .form-group label,
.dark-mode .profile-wrapper .preference-label,
.dark-mode .profile-wrapper .subsection-title,
.dark-mode .profile-wrapper .stat-value {
  color: #f1f1f1;
}

.dark-mode .profile-form .form-group input,
.dark-mode .profile-form .form-group textarea,
.dark-mode .profile-form .form-group select {
  background: var(--light-white-color);
  border-color: var(--border-color);
  color: #f1f1f1;
}

.dark-mode .profile-form .form-group input:focus,
.dark-mode .profile-form .form-group textarea:focus,
.dark-mode .profile-form .form-group select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.dark-mode .password-toggle {
  color: var(--secondary-color);
}

.dark-mode .password-toggle:hover {
  color: var(--primary-color);
  background: rgba(59, 130, 246, 0.15);
}

.dark-mode .profile-wrapper .btn-secondary {
  background: var(--light-gray-color);
  color: #f1f1f1;
  border-color: var(--border-color);
}

.dark-mode .profile-wrapper .btn-secondary:hover {
  background: var(--border-color);
}

.dark-mode .profile-wrapper .stat-item {
  background: var(--light-white-color);
  border-color: var(--border-color);
}

.dark-mode .profile-wrapper .action-link {
  background: var(--light-white-color);
  border-color: var(--border-color);
  color: #f1f1f1;
}

.dark-mode .profile-wrapper .action-link:hover {
  background: var(--light-gray-color);
}

.dark-mode .profile-wrapper .preference-item {
  border-bottom-color: var(--border-color);
}

.dark-mode .profile-avatar-section,
.dark-mode .lists-actions {
  border-color: var(--border-color);
}

/* Dark Mode - Watch History Page */
.dark-mode .history-page-title {
  color: #f1f1f1;
}

.dark-mode .history-card {
  background: var(--white-color);
  border-color: var(--border-color);
}

.dark-mode .history-table thead {
  background: var(--light-gray-color);
}

.dark-mode .history-table th {
  color: #f1f1f1;
}

.dark-mode .history-table tbody tr {
  border-bottom-color: var(--border-color);
}

.dark-mode .history-table tbody tr:hover {
  background: var(--light-gray-color);
}

.dark-mode .history-table td,
.dark-mode .movie-title {
  color: #f1f1f1;
}

.dark-mode .table-title-link:hover .movie-title {
  color: var(--primary-color);
}

.dark-mode .action-buttons-inline .action-btn {
  background: var(--light-gray-color);
  border-color: var(--border-color);
  color: #d4d4d4;
}

.dark-mode .action-buttons-inline .action-btn:hover {
  border-color: var(--primary-color);
  background: rgba(59, 130, 246, 0.1);
}

/* ========================================
   Watch History - Toast & Confirm Popup
   ======================================== */

/* Toast */
.wh-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1e1e2e;
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
  white-space: nowrap;
}

.wh-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.wh-toast-icon {
  font-size: 1rem;
  color: #f472b6;
}

.wh-toast.wh-toast--remove .wh-toast-icon {
  color: #94a3b8;
}

/* Confirm Overlay */
.wh-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.wh-confirm-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.wh-confirm-box {
  background: var(--white-color);
  border-radius: 16px;
  padding: 32px 28px 24px;
  width: 340px;
  max-width: 90vw;
  text-align: center;
  transform: scale(0.95);
  transition: transform 0.25s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.wh-confirm-overlay.show .wh-confirm-box {
  transform: scale(1);
}

.wh-confirm-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fee2e2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.wh-confirm-icon i {
  font-size: 1.25rem;
  color: #ef4444;
}

.wh-confirm-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--black-color);
  margin-bottom: 8px;
}

.wh-confirm-message {
  font-size: 0.875rem;
  color: var(--secondary-color);
  margin-bottom: 24px;
  line-height: 1.5;
}

.wh-confirm-actions {
  display: flex;
  gap: 10px;
}

.wh-confirm-cancel,
.wh-confirm-delete {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease;
}

.wh-confirm-cancel {
  background: var(--light-gray-color);
  color: var(--black-color);
}

.wh-confirm-cancel:hover {
  background: var(--border-color);
}

.wh-confirm-delete {
  background: #ef4444;
  color: #fff;
}

.wh-confirm-delete:hover {
  background: #dc2626;
}

/* Dark mode */
.dark-mode .wh-confirm-box {
  background: #1e1e2e;
}

.dark-mode .wh-confirm-title {
  color: #f1f1f1;
}

.dark-mode .wh-confirm-cancel {
  background: rgba(255, 255, 255, 0.1);
  color: #e1e1e1;
}

.dark-mode .wh-confirm-cancel:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Profile Page Responsive */
@media (max-width: 1024px) {
  .profile-content-layout {
    grid-template-columns: 240px 1fr;
    gap: 24px;
  }

  .profile-wrapper .lists-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .profile-wrapper {
    padding: 16px;
  }

  .profile-page-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
  }

  .profile-content-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .profile-sidebar {
    position: static;
    padding: 12px;
  }

  .profile-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
  }

  .profile-nav-item {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .profile-nav-item span {
    display: none;
  }

  .profile-nav-item i {
    font-size: 1.5rem;
  }

  .profile-card {
    padding: 20px;
  }

  .profile-avatar-section {
    flex-direction: column;
    text-align: center;
  }

  .profile-wrapper .form-row {
    grid-template-columns: 1fr;
  }

  .profile-wrapper .lists-stats {
    grid-template-columns: 1fr;
  }

  .profile-wrapper .section-title-main {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .profile-wrapper {
    padding: 12px;
  }

  .profile-page-title {
    font-size: 1.25rem;
  }

  .profile-card {
    padding: 16px;
  }

  .profile-avatar {
    width: 100px;
    height: 100px;
  }

  .avatar-change-btn {
    width: 36px;
    height: 36px;
  }

  .avatar-name {
    font-size: 1.25rem;
  }

  .profile-wrapper .form-actions {
    flex-direction: column;
  }

  .profile-wrapper .btn-primary,
  .profile-wrapper .btn-secondary {
    width: 100%;
  }
}

/* Watch History Page Responsive */
@media (max-width: 768px) {
  .history-wrapper {
    padding: 16px;
  }

  .history-page-title {
    font-size: 1.5rem;
  }

  .table-wrapper {
    overflow-x: auto;
  }

  .history-table {
    min-width: 600px;
  }

  .history-table th,
  .history-table td {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .history-wrapper {
    padding: 12px;
  }

  .history-page-title {
    font-size: 1.25rem;
  }

  .history-subtitle {
    font-size: 0.875rem;
  }

  .history-table {
    min-width: 500px;
  }
}

/* ========================================
   Contact Page Styles
   ======================================== */

.contact-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 16px 60px;
}

/* Hero */
.contact-hero {
  text-align: center;
  padding: 48px 24px;
  margin-bottom: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.02) 100%);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.contact-hero-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 24px;
}

.contact-hero-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--black-color);
  margin-bottom: 12px;
}

.contact-hero-subtitle {
  font-size: 1rem;
  color: var(--secondary-color);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}

/* Layout */
.contact-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

/* Info Cards */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--white-color);
  transition: all 0.2s ease;
}

.contact-info-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.contact-info-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--black-color);
  margin-bottom: 4px;
}

.contact-info-text {
  font-size: 0.813rem;
  color: var(--secondary-color);
  margin: 0;
}

/* Form Wrapper */
.contact-form-wrapper {
  padding: 32px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: var(--white-color);
}

.contact-form-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--black-color);
  margin-bottom: 24px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--black-color);
}

.contact-form-group input,
.contact-form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.938rem;
  font-family: inherit;
  color: var(--black-color);
  background: var(--white-color);
  transition: all 0.2s ease;
  resize: none;
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-form-group input::placeholder,
.contact-form-group textarea::placeholder {
  color: var(--secondary-color);
  opacity: 0.6;
}

.contact-form-actions {
  display: flex;
  justify-content: flex-end;
}

.contact-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.938rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.contact-submit-btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.contact-submit-btn:active {
  transform: translateY(0);
}

.contact-submit-btn i {
  font-size: 1.1rem;
}

/* Dark mode */
.dark-mode .contact-hero {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.04) 100%);
  border-color: rgba(59, 130, 246, 0.25);
}

.dark-mode .contact-hero-title,
.dark-mode .contact-form-title,
.dark-mode .contact-info-title {
  color: #f1f1f1;
}

.dark-mode .contact-info-card,
.dark-mode .contact-form-wrapper {
  background: var(--white-color);
  border-color: var(--border-color);
}

.dark-mode .contact-info-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.dark-mode .contact-form-group label {
  color: #f1f1f1;
}

.dark-mode .contact-form-group input,
.dark-mode .contact-form-group textarea {
  background: var(--light-white-color);
  border-color: var(--border-color);
  color: #f1f1f1;
}

.dark-mode .contact-form-group input:focus,
.dark-mode .contact-form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.dark-mode .contact-form-group input::placeholder,
.dark-mode .contact-form-group textarea::placeholder {
  color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 768px) {
  .contact-hero-title {
    font-size: 1.5rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-wrapper {
    padding: 24px 16px;
  }
}

/* ========================================
   About Page Styles
   ======================================== */

.about-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 16px 60px;
}

/* Hero */
.about-hero {
  text-align: center;
  padding: 48px 24px;
  margin-bottom: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.02) 100%);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.about-hero-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 24px;
}

.about-hero-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--black-color);
  margin-bottom: 12px;
}

.about-hero-subtitle {
  font-size: 1rem;
  color: var(--secondary-color);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
}

/* Section */
.about-section {
  margin-bottom: 48px;
}

.about-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--black-color);
  margin-bottom: 12px;
}

.about-section-text {
  font-size: 0.938rem;
  color: var(--secondary-color);
  line-height: 1.75;
}

/* Features */
.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.about-feature-card {
  padding: 24px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--white-color);
  transition: all 0.2s ease;
}

.about-feature-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.about-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.about-feature-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--black-color);
  margin-bottom: 8px;
}

.about-feature-text {
  font-size: 0.875rem;
  color: var(--secondary-color);
  line-height: 1.6;
}

/* Stats */
.about-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 32px;
  border-radius: 12px;
  background: var(--light-white-color);
  border: 1px solid var(--border-color);
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.about-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 120px;
  padding: 8px;
}

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

.about-stat-label {
  font-size: 0.813rem;
  color: var(--secondary-color);
  font-weight: 500;
}

.about-stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border-color);
}

/* Contact */
.about-contact-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.about-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.938rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  background: var(--primary-color);
  color: #fff;
}

.about-contact-btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.about-contact-btn-outline {
  background: var(--white-color);
  color: var(--black-color);
  border: 1px solid var(--border-color);
}

.about-contact-btn-outline:hover {
  background: var(--light-gray-color);
  border-color: var(--black-color);
  box-shadow: none;
  transform: translateY(-1px);
}

/* Dark mode */
.dark-mode .about-hero {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.04) 100%);
  border-color: rgba(59, 130, 246, 0.25);
}

.dark-mode .about-hero-title,
.dark-mode .about-section-title,
.dark-mode .about-feature-title {
  color: #f1f1f1;
}

.dark-mode .about-feature-card {
  background: var(--white-color);
  border-color: var(--border-color);
}

.dark-mode .about-feature-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.dark-mode .about-stats {
  background: var(--light-white-color);
  border-color: var(--border-color);
}

.dark-mode .about-stat-divider {
  background: var(--border-color);
}

.dark-mode .about-contact-btn-outline {
  background: var(--white-color);
  color: var(--black-color);
  border-color: var(--border-color);
}

.dark-mode .about-contact-btn-outline:hover {
  background: var(--light-gray-color);
}

/* Responsive */
@media (max-width: 768px) {
  .about-hero-title {
    font-size: 1.5rem;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .about-stat-divider {
    display: none;
  }

  .about-stats {
    gap: 16px;
  }
}
