/**
 * ComusThumbz Frontend Stylesheet
 * Phase 4: Temporary Frontend Testing Environment
 * Created: 2025-11-05
 */

/* Font Awesome */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css");

/* ========== CSS Variables ========== */
:root {
  --primary-color: #264310;
  --primary-dark: #53781e;
  --secondary-color: #5a8020;
  --accent-color: #7b994d;

  --text-primary: #2c3e50;
  --text-secondary: #7f8c8d;
  --text-light: #95a5a6;

  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #ecf0f1;

  --success: #27ae60;
  --error: #e74c3c;
  --warning: #f39c12;
  --info: #587e1f;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --container-width: 1000px;
  --header-height: 70px;
}

/* ========== Dark Mode Variables ========== */
body.dark-mode {
  --text-primary: #e4e6eb;
  --text-secondary: #b0b3b8;
  --text-light: #8a8d91;

  --bg-primary: #070d05;
  --bg-secondary: #0c1409;
  --bg-tertiary: #152010;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);

  /* Force dark background on body and html */
  background: #070d05 !important;
}

html.dark-mode,
body.dark-mode {
  background-color: #070d05 !important;
}

body.dark-mode main,
body.dark-mode .container,
body.dark-mode .content-wrapper,
body.dark-mode .page-content {
  background: #070d05;
}

/* Dark mode specific overrides */
body.dark-mode .site-header {
  background: linear-gradient(135deg, #1a2f0a 0%, #2d4a14 100%);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .card {
  background: var(--bg-secondary);
  border-color: var(--bg-tertiary);
}

body.dark-mode .user-dropdown-menu {
  background: var(--bg-secondary);
  border-color: var(--bg-tertiary);
}

body.dark-mode .user-dropdown-item:hover {
  background: var(--bg-tertiary);
}

body.dark-mode .nav-dropdown-menu {
  background: var(--bg-secondary);
  border-color: var(--bg-tertiary);
}

body.dark-mode .nav-dropdown-item:hover {
  background: var(--bg-tertiary);
  color: #ffffff;
}

/* Dark mode header Login and Sign Up buttons */
body.dark-mode .user-menu .btn-outline {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}

body.dark-mode .user-menu .btn-outline:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
}

body.dark-mode .user-menu .btn-primary {
  background: #000000;
  color: #ffffff;
}

body.dark-mode .user-menu .btn-primary:hover {
  background: #ffffff;
  color: #000000;
}

/* Dark mode for Login and Register pages */
body.dark-mode.login-page,
body.dark-mode.register-page {
  background: linear-gradient(135deg, #070d05 0%, #0c1409 100%) !important;
}

body.dark-mode .login-card,
body.dark-mode .register-card {
  background: #0c1409;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

body.dark-mode .login-header,
body.dark-mode .register-header {
  background: linear-gradient(135deg, #1a2f0a 0%, #2d4a14 100%);
}

body.dark-mode .login-body,
body.dark-mode .register-body {
  background: #0c1409;
}

body.dark-mode .login-body .form-label,
body.dark-mode .register-body .form-label {
  color: #e4e6eb;
}

body.dark-mode .login-body .form-input,
body.dark-mode .register-body .form-input {
  background: #152010;
  border-color: #2d4a14;
  color: #e4e6eb;
}

body.dark-mode .login-body .form-input:focus,
body.dark-mode .register-body .form-input:focus {
  border-color: #5a8020;
}

body.dark-mode .login-footer,
body.dark-mode .register-footer {
  background: #152010;
  color: #b0b3b8;
}

body.dark-mode .login-footer a,
body.dark-mode .register-footer a {
  color: #7b994d;
}

body.dark-mode .demo-notice {
  background: #152010;
  border-color: #2d4a14;
  color: #b0b3b8;
}

body.dark-mode .language-switcher {
  color: #b0b3b8;
}

body.dark-mode .language-switcher:hover {
  color: #ffffff;
}

/* Dark mode for password recovery modal */
body.dark-mode .modal-content {
  background: #0c1409;
}

body.dark-mode .modal-header {
  background: linear-gradient(135deg, #1a2f0a 0%, #2d4a14 100%);
}

body.dark-mode .modal-body {
  background: #0c1409;
  color: #e4e6eb;
}

body.dark-mode .recovery-option {
  background: #152010;
  border-color: #2d4a14;
}

body.dark-mode .recovery-option:hover {
  border-color: #5a8020;
  background: #1a2f0a;
}

body.dark-mode .recovery-option.selected {
  border-color: #5a8020;
  background: #1a2f0a;
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
  background: var(--bg-tertiary);
  border-color: #4a4b4c;
  color: var(--text-primary);
}

body.dark-mode .modal-content,
body.dark-mode .cookie-modal-content {
  background: var(--bg-secondary);
  border-color: var(--bg-tertiary);
}

body.dark-mode .site-footer {
  background: var(--bg-primary);
  border-top-color: var(--bg-tertiary);
}

/* Dark mode pagination styles */
body.dark-mode .pagination-btn {
  background: #3a3a3a;
  color: #ffffff;
  border-color: #4a4a4a;
}

body.dark-mode .pagination-btn:hover:not(:disabled) {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

body.dark-mode .pagination-btn.active {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

body.dark-mode .pagination-btn:disabled {
  background: #2a2a2a;
  color: #666666;
  opacity: 0.6;
}

/* Dark mode toggle button styles */
.dark-mode-toggle {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 1000;
}

.dark-mode-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .dark-mode-toggle {
  background: var(--accent-color);
}

/* Dark mode creator profile section */
body.dark-mode .profile-header {
  background: var(--bg-primary);
}

body.dark-mode .profile-info {
  background: transparent;
}

body.dark-mode .avatar-container {
  background: transparent;
}

body.dark-mode .avatar {
  border-color: var(--bg-primary);
}

body.dark-mode .profile-details {
  background: var(--bg-primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

body.dark-mode .profile-actions .btn-secondary {
  background: #3a3a3a;
  border-color: #4a4a4a;
  color: #ffffff;
}

body.dark-mode .profile-actions .btn-secondary:hover {
  background: #4a4a4a;
  border-color: #5a5a5a;
}

body.dark-mode .profile-actions .btn-packages {
  background: #3a3a3a;
  border-color: #4a4a4a;
  color: #ffffff;
}

body.dark-mode .profile-actions .btn-packages:hover {
  background: #4a4a4a;
  border-color: #5a5a5a;
}

body.dark-mode .profile-actions .btn-orders {
  background: #3a3a3a;
  border-color: #4a4a4a;
  color: #ffffff;
}

body.dark-mode .profile-actions .btn-orders:hover {
  background: #4a4a4a;
  border-color: #5a5a5a;
}

/* Dark mode post composer */
body.dark-mode .post-composer {
  background: var(--bg-secondary);
  border-color: var(--bg-tertiary);
}

body.dark-mode .post-composer .composer-header {
  color: #e4e6eb;
}

body.dark-mode .post-composer .composer-input {
  background: var(--bg-tertiary);
  border-color: #4a4b4c;
  color: #e4e6eb;
}

body.dark-mode .post-composer .composer-input::placeholder {
  color: #b0b3b8;
}

/* Dark mode post filter bar */
body.dark-mode .post-filter-bar {
  background: var(--bg-secondary);
  border-color: var(--bg-tertiary);
}

body.dark-mode .post-filter-bar .filter-btn {
  background: var(--bg-tertiary);
  color: #e4e6eb;
  border-color: #4a4b4c;
}

body.dark-mode .post-filter-bar .filter-btn:hover,
body.dark-mode .post-filter-bar .filter-btn.active {
  background: var(--primary-color);
  color: #ffffff;
}

/* Dark mode post cards */
body.dark-mode .post-card {
  background: var(--bg-secondary);
  border-color: var(--bg-tertiary);
}

body.dark-mode .post-card .post-header {
  border-color: var(--bg-tertiary);
}

body.dark-mode .post-card .post-content {
  color: #e4e6eb;
}

body.dark-mode .post-card .post-actions {
  border-color: var(--bg-tertiary);
}

body.dark-mode .post-card .post-actions button {
  color: #b0b3b8;
}

body.dark-mode .post-card .post-actions button:hover {
  color: #e4e6eb;
  background: var(--bg-tertiary);
}

/* Dark mode sidebar cards */
body.dark-mode .sidebar-card {
  background: var(--bg-secondary);
  border-color: var(--bg-tertiary);
}

body.dark-mode .sidebar-card h3 {
  color: #e4e6eb;
}

body.dark-mode .sidebar-card p,
body.dark-mode .sidebar-card strong {
  color: #b0b3b8;
}

/* Dark mode profile text */
body.dark-mode .profile-details h1,
body.dark-mode .profile-text h1 {
  color: #e4e6eb;
}

body.dark-mode .profile-details .username,
body.dark-mode .profile-text .username {
  color: #b0b3b8;
}

body.dark-mode .profile-details .bio,
body.dark-mode .profile-text .bio {
  color: #b0b3b8;
}

body.dark-mode .profile-stats .stat-value {
  color: #e4e6eb;
}

body.dark-mode .profile-stats .stat-label {
  color: #b0b3b8;
}

/* Dark mode post composer icons */
body.dark-mode .composer-icons i,
body.dark-mode .composer-icon {
  color: #b0b3b8;
}

body.dark-mode .composer-icons i:hover,
body.dark-mode .composer-icon:hover {
  color: #e4e6eb;
}

body.dark-mode .lock-type-select {
  background: var(--bg-tertiary);
  border-color: #4a4b4c;
  color: #e4e6eb;
}

/* Dark mode post card text and icons */
body.dark-mode .post-card h3,
body.dark-mode .post-card .post-author {
  color: #e4e6eb;
}

body.dark-mode .post-card .post-date,
body.dark-mode .post-card .post-time {
  color: #8a8d91;
}

body.dark-mode .post-card .post-text {
  color: #e4e6eb;
}

body.dark-mode .post-card i {
  color: #b0b3b8;
}

body.dark-mode .post-card .like-btn,
body.dark-mode .post-card .comment-btn {
  color: #b0b3b8;
}

body.dark-mode .post-card .like-btn:hover,
body.dark-mode .post-card .comment-btn:hover {
  color: #e4e6eb;
}

/* Dark mode poll styling */
body.dark-mode .poll-option {
  background: var(--bg-tertiary);
  border-color: #4a4b4c;
  color: #e4e6eb;
}

body.dark-mode .poll-option:hover {
  border-color: var(--primary-color);
}

body.dark-mode .poll-votes,
body.dark-mode .poll-info {
  color: #8a8d91;
}

/* Dark mode media badges */
body.dark-mode .media-badge,
body.dark-mode .lock-badge {
  background: rgba(0, 0, 0, 0.7);
  color: #e4e6eb;
}

/* Dark mode product/merchandise card */
body.dark-mode .product-card {
  background: var(--bg-tertiary);
  border-color: #4a4b4c;
}

body.dark-mode .product-card .product-name {
  color: #e4e6eb;
}

body.dark-mode .product-card .product-type,
body.dark-mode .product-card .product-price {
  color: #b0b3b8;
}

/* Dark mode comments section */
body.dark-mode .comments-section {
  background: var(--bg-tertiary);
  border-color: #4a4b4c;
}

body.dark-mode .comment {
  border-color: #4a4b4c;
}

body.dark-mode .comment-author {
  color: #e4e6eb;
}

body.dark-mode .comment-text {
  color: #b0b3b8;
}

body.dark-mode .comment-time {
  color: #8a8d91;
}

body.dark-mode .comment-input {
  background: var(--bg-secondary);
  border-color: #4a4b4c;
  color: #e4e6eb;
}

body.dark-mode .comment-input::placeholder {
  color: #8a8d91;
}

/* Dark mode about section */
body.dark-mode .about-section p {
  color: #b0b3b8;
}

body.dark-mode .about-section strong {
  color: #e4e6eb;
}

body.dark-mode .tag {
  background: var(--bg-tertiary);
  color: #e4e6eb;
  border-color: #4a4b4c;
}

/* Dark mode schedule */
body.dark-mode .schedule-day {
  color: #e4e6eb;
}

body.dark-mode .schedule-time {
  color: #b0b3b8;
}

/* Dark mode content grid and sidebar */
body.dark-mode .content-grid {
  background: transparent;
}

body.dark-mode .content-grid .sidebar {
  background: transparent;
}

body.dark-mode .sidebar {
  background: var(--bg-primary);
}

body.dark-mode .posts-main {
  background: transparent;
}

/* Dark mode container */
body.dark-mode .container {
  background: transparent;
}

/* Dark mode main element */
body.dark-mode main {
  background: var(--bg-primary);
}

/* Dark mode load more button */
body.dark-mode .load-more .btn {
  background: var(--bg-tertiary);
  border-color: #4a4b4c;
  color: #e4e6eb;
}

body.dark-mode .load-more .btn:hover {
  background: #4a4a4a;
}

/* Dark mode settings pages */
body.dark-mode .settings-container {
  background: transparent;
}

body.dark-mode .settings-section {
  background: var(--bg-secondary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .section-header {
  border-color: var(--bg-tertiary);
}

body.dark-mode .section-title {
  color: #e4e6eb;
}

body.dark-mode .section-description {
  color: #b0b3b8;
}

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

body.dark-mode .form-control {
  background: var(--bg-tertiary) !important;
  border-color: #4a4b4c !important;
  color: #e4e6eb !important;
}

body.dark-mode .form-control::placeholder {
  color: #8a8d91 !important;
}

body.dark-mode .form-control:focus {
  border-color: var(--primary-color) !important;
}

body.dark-mode .form-hint {
  color: #8a8d91;
}

body.dark-mode .checkbox-group label {
  color: #e4e6eb;
}

body.dark-mode select.form-control option {
  background: var(--bg-secondary);
  color: #e4e6eb;
}

/* Dark mode USD conversion boxes */
body.dark-mode #subscriptionUSD,
body.dark-mode #minTipUSD,
body.dark-mode #unlockPriceUSD {
  background: var(--bg-tertiary) !important;
  color: #4ade80 !important;
}

/* Dark mode page header */
body.dark-mode .page-header h1 {
  color: #e4e6eb;
}

body.dark-mode .page-header p {
  color: #b0b3b8;
}

/* Dark mode cards and boxes */
body.dark-mode .card {
  background: var(--bg-secondary);
  border-color: var(--bg-tertiary);
}

body.dark-mode .card-header {
  background: var(--bg-tertiary);
  border-color: var(--bg-tertiary);
  color: #e4e6eb;
}

body.dark-mode .card-body {
  color: #b0b3b8;
}

body.dark-mode .card-title {
  color: #e4e6eb;
}

/* Dark mode info boxes */
body.dark-mode .info-box,
body.dark-mode .alert-info {
  background: var(--bg-tertiary);
  border-color: #4a4b4c;
  color: #b0b3b8;
}

/* Dark mode favorites page */
body.dark-mode .favorites-container {
  background: transparent;
}

body.dark-mode .favorites-tabs {
  background: var(--bg-secondary);
  border-color: var(--bg-tertiary);
}

body.dark-mode .tab-button {
  background: var(--bg-tertiary);
  border-color: #4a4b4c;
  color: #e4e6eb;
}

body.dark-mode .tab-button:hover {
  background: #4a4a4a;
  border-color: var(--primary-color);
}

body.dark-mode .tab-button.active {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

body.dark-mode .tab-count {
  background: rgba(255, 255, 255, 0.15);
  color: #e4e6eb;
}

body.dark-mode .favorites-content {
  background: var(--bg-secondary) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* Dark mode empty state for favorites */
body.dark-mode .favorites-content .empty-state {
  background: transparent;
}

body.dark-mode .favorites-content .empty-title {
  color: #e4e6eb;
}

body.dark-mode .favorites-content .empty-text {
  color: #b0b3b8;
}

body.dark-mode .favorite-card {
  background: var(--bg-tertiary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .favorite-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

body.dark-mode .favorite-card .favorite-info {
  color: #e4e6eb;
}

body.dark-mode .favorite-card .favorite-title {
  color: #e4e6eb;
}

body.dark-mode .favorite-card .favorite-meta {
  color: #8a8d91;
}

body.dark-mode .favorite-card .remove-btn {
  background: rgba(0, 0, 0, 0.5);
  color: #e4e6eb;
}

body.dark-mode .favorite-card .remove-btn:hover {
  background: #ef4444;
  color: #ffffff;
}

/* Dark mode playlists page */
body.dark-mode .playlist-card {
  background: var(--bg-secondary) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .playlist-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

body.dark-mode .playlist-info {
  background: transparent;
}

body.dark-mode .playlist-title {
  color: #e4e6eb;
}

body.dark-mode .playlist-description {
  color: #b0b3b8;
}

body.dark-mode .playlist-meta {
  color: #8a8d91;
}

body.dark-mode .playlist-actions .btn-icon {
  background: var(--bg-tertiary);
  color: #e4e6eb;
  border: 1px solid #4a4b4c;
}

body.dark-mode .playlist-actions .btn-icon:hover {
  background: #4a4a4a;
  border-color: var(--primary-color);
}

body.dark-mode .playlist-actions .btn-icon.btn-danger:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
}

/* Dark mode playlists empty state */
body.dark-mode .playlists-container .empty-state {
  background: transparent;
}

body.dark-mode .playlists-container .empty-title {
  color: #e4e6eb;
}

body.dark-mode .playlists-container .empty-text {
  color: #b0b3b8;
}

body.dark-mode .playlists-container .btn-create {
  background: var(--primary-color);
  color: #ffffff;
}

body.dark-mode .playlists-container .btn-create:hover {
  background: var(--secondary-color);
}

/* Dark mode my subscriptions page */
body.dark-mode .subscriptions-container .stat-card {
  background: var(--bg-secondary) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .subscriptions-container .stat-label {
  color: #b0b3b8;
}

body.dark-mode .subscriptions-container .stat-value {
  color: #e4e6eb;
}

body.dark-mode .subscriptions-container .stat-subtext {
  color: #8a8d91;
}

body.dark-mode .subscription-card {
  background: var(--bg-secondary) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .subscription-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.dark-mode .subscription-header {
  border-bottom-color: #3a3a3a;
}

body.dark-mode .creator-name {
  color: #e4e6eb;
}

body.dark-mode .creator-username {
  color: #b0b3b8;
}

body.dark-mode .detail-label {
  color: #8a8d91;
}

body.dark-mode .detail-value {
  color: #e4e6eb;
}

body.dark-mode .payment-badge {
  background: var(--bg-tertiary);
  color: #e4e6eb;
}

body.dark-mode .payment-badge.tokens {
  background: rgba(255, 243, 205, 0.15);
  color: #ffc107;
}

body.dark-mode .payment-badge.processor {
  background: rgba(209, 236, 241, 0.15);
  color: #17a2b8;
}

body.dark-mode .renewal-info {
  background: var(--bg-tertiary);
  color: #e4e6eb;
}

body.dark-mode .renewal-info.active {
  background: rgba(39, 174, 96, 0.2);
  color: #27ae60;
}

body.dark-mode .renewal-info.disabled {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
}

/* Dark mode subscription status badges */
body.dark-mode .status-active {
  background: rgba(39, 174, 96, 0.2);
  color: #2ecc71;
}

body.dark-mode .status-cancelled {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
}

body.dark-mode .status-expired {
  background: rgba(243, 156, 18, 0.2);
  color: #f39c12;
}

/* Dark mode subscriptions tabs */
body.dark-mode .subscriptions-container .tabs {
  border-bottom-color: #3a3a3a;
}

body.dark-mode .subscriptions-container .tab {
  color: #b0b3b8;
}

body.dark-mode .subscriptions-container .tab:hover {
  color: #e4e6eb;
}

body.dark-mode .subscriptions-container .tab.active {
  color: var(--primary-color);
}

/* Dark mode subscriptions empty state */
body.dark-mode .subscriptions-container .empty-state {
  background: transparent;
}

body.dark-mode .subscriptions-container .empty-state h3 {
  color: #e4e6eb;
}

body.dark-mode .subscriptions-container .empty-state p {
  color: #b0b3b8;
}

/* Dark mode history page */
body.dark-mode .history-tabs {
  background: var(--bg-secondary) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .history-container .tab-button {
  background: var(--bg-tertiary);
  border-color: #4a4b4c;
  color: #e4e6eb;
}

body.dark-mode .history-container .tab-button:hover {
  background: #4a4a4a;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

body.dark-mode .history-container .tab-button.active {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

body.dark-mode .history-actions {
  background: var(--bg-secondary) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .count-display {
  color: #e4e6eb;
}

body.dark-mode .clear-history-btn {
  background: #c0392b;
  color: #ffffff;
}

body.dark-mode .clear-history-btn:hover {
  background: #a93226;
}

/* Dark mode history cards */
body.dark-mode .history-container .card {
  background: var(--bg-secondary) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .history-container .card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.dark-mode .history-container .card-title {
  color: #e4e6eb;
}

body.dark-mode .history-container .card-meta {
  color: #8a8d91;
}

body.dark-mode .history-container .card-body {
  background: transparent;
}

/* Dark mode history empty state */
body.dark-mode .history-container .empty-state {
  background: transparent;
}

body.dark-mode .history-container .empty-state h3 {
  color: #e4e6eb;
}

body.dark-mode .history-container .empty-state p {
  color: #b0b3b8;
}

/* Dark mode cam filter */
body.dark-mode .cam-filter > div,
body.dark-mode #cam-filter > div {
  background: var(--bg-secondary) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .cam-filter label,
body.dark-mode #cam-filter label {
  color: #e4e6eb !important;
}

body.dark-mode .form-select {
  background: var(--bg-tertiary);
  border-color: #4a4b4c;
  color: #e4e6eb;
}

body.dark-mode .form-select option {
  background: var(--bg-secondary);
  color: #e4e6eb;
}

/* Dark mode browse creators page */
body.dark-mode .filters-section {
  background: var(--bg-secondary) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .filters-section h3 {
  color: #e4e6eb !important;
}

body.dark-mode .filter-group label {
  color: #b0b3b8 !important;
}

body.dark-mode .filter-group input[type="text"],
body.dark-mode .filter-group select {
  background: var(--bg-tertiary) !important;
  border-color: #4a4b4c !important;
  color: #e4e6eb !important;
}

body.dark-mode .filter-group input[type="text"]::placeholder {
  color: #8a8d91 !important;
}

body.dark-mode .btn-filter {
  background: var(--primary-color) !important;
  color: white !important;
}

body.dark-mode .btn-clear {
  background: var(--bg-tertiary) !important;
  color: #e4e6eb !important;
  border: 1px solid #4a4b4c !important;
}

body.dark-mode .btn-clear:hover {
  background: #3a3b3c !important;
}

/* Dark mode creator cards */
body.dark-mode .creator-card {
  background: var(--bg-secondary) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .creator-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .creator-name {
  color: #e4e6eb !important;
}

body.dark-mode .creator-username {
  color: #b0b3b8 !important;
}

body.dark-mode .creator-bio {
  color: #b0b3b8 !important;
}

body.dark-mode .creator-stats .stat-value {
  color: #e4e6eb !important;
}

body.dark-mode .creator-stats .stat-label {
  color: #8a8d91 !important;
}

body.dark-mode .subscription-price {
  color: #e4e6eb !important;
}

body.dark-mode .price-period {
  color: #8a8d91 !important;
}

body.dark-mode .btn-view-profile {
  background: var(--bg-tertiary) !important;
  color: #e4e6eb !important;
  border: 1px solid #4a4b4c !important;
}

body.dark-mode .btn-view-profile:hover {
  background: #3a3b3c !important;
}

/* Dark mode verified badge - keep green */
body.dark-mode .verified-badge {
  background: rgba(39, 174, 96, 0.2) !important;
  color: #2ecc71 !important;
}

/* Dark mode pagination */
body.dark-mode .page-btn {
  background: var(--bg-secondary) !important;
  color: #e4e6eb !important;
  border: 1px solid #4a4b4c !important;
}

body.dark-mode .page-btn:hover:not(:disabled) {
  background: var(--bg-tertiary) !important;
}

body.dark-mode .page-btn.active {
  background: var(--primary-color) !important;
  color: white !important;
  border-color: var(--primary-color) !important;
}

body.dark-mode .page-btn:disabled {
  background: var(--bg-tertiary) !important;
  color: #8a8d91 !important;
  border-color: #4a4b4c !important;
}

/* Dark mode empty state */
body.dark-mode .creators-grid .empty-state,
body.dark-mode .browse-creators .empty-state {
  background: var(--bg-secondary) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .creators-grid .empty-state h3,
body.dark-mode .browse-creators .empty-state h3 {
  color: #e4e6eb !important;
}

body.dark-mode .creators-grid .empty-state p,
body.dark-mode .browse-creators .empty-state p {
  color: #b0b3b8 !important;
}

/* Dark mode subscribe modal */
body.dark-mode .subscribe-modal {
  background: var(--bg-secondary) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

body.dark-mode .subscribe-modal h2 {
  color: #e4e6eb !important;
}

body.dark-mode .subscribe-modal .close-modal {
  color: #b0b3b8 !important;
}

body.dark-mode .subscribe-modal .close-modal:hover {
  color: #e4e6eb !important;
}

body.dark-mode .modal-creator-info h3 {
  color: #e4e6eb !important;
}

body.dark-mode .modal-creator-info p {
  color: #b0b3b8 !important;
}

body.dark-mode .packages-title {
  color: #e4e6eb !important;
}

body.dark-mode .subscribe-package {
  background: var(--bg-tertiary) !important;
  border: 2px solid #4a4b4c !important;
}

body.dark-mode .subscribe-package:hover {
  border-color: var(--primary-color) !important;
  background: #1a2015 !important;
}

body.dark-mode .subscribe-package.selected {
  border-color: var(--primary-color) !important;
  background: #1a2015 !important;
}

body.dark-mode .package-duration {
  color: #e4e6eb !important;
}

body.dark-mode .package-price {
  color: var(--primary-color) !important;
}

body.dark-mode .package-savings {
  background: rgba(39, 174, 96, 0.2) !important;
  color: #2ecc71 !important;
}

body.dark-mode .btn-subscribe-confirm {
  background: var(--primary-color) !important;
  color: white !important;
}

body.dark-mode .btn-subscribe-confirm:disabled {
  background: var(--bg-tertiary) !important;
  color: #8a8d91 !important;
}

/* Dark mode user profile page */
body.dark-mode .profile-info-wrapper {
  background: var(--bg-secondary) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .profile-name {
  color: #e4e6eb !important;
}

body.dark-mode .profile-username {
  color: #b0b3b8 !important;
}

body.dark-mode .profile-bio {
  color: #b0b3b8 !important;
}

body.dark-mode .profile-stat-value {
  color: #e4e6eb !important;
}

body.dark-mode .profile-stat-label {
  color: #8a8d91 !important;
}

body.dark-mode .profile-action-btn.secondary {
  background: var(--bg-tertiary) !important;
  color: #e4e6eb !important;
}

body.dark-mode .profile-action-btn.secondary:hover {
  background: #3a3b3c !important;
}

body.dark-mode .profile-section {
  background: var(--bg-secondary) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .profile-section-title {
  color: #e4e6eb !important;
}

body.dark-mode .profile-info-row {
  background: var(--bg-tertiary) !important;
}

body.dark-mode .profile-info-row:hover {
  background: #2a2b2c !important;
}

body.dark-mode .profile-info-label {
  color: var(--primary-color) !important;
}

body.dark-mode .profile-info-value {
  color: #e4e6eb !important;
}

/* Dark mode profile tabs */
body.dark-mode .profile-tabs {
  background: var(--bg-secondary) !important;
  border-bottom-color: #4a4b4c !important;
}

body.dark-mode .profile-tab {
  color: #b0b3b8 !important;
}

body.dark-mode .profile-tab:hover {
  color: #e4e6eb !important;
  background: var(--bg-tertiary) !important;
}

body.dark-mode .profile-tab.active {
  color: var(--primary-color) !important;
}

/* Dark mode user cards */
body.dark-mode .user-card {
  background: var(--bg-secondary) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .user-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .user-name {
  color: #e4e6eb !important;
}

body.dark-mode .user-username {
  color: #b0b3b8 !important;
}

/* Dark mode friend cards */
body.dark-mode .friend-card {
  background: var(--bg-tertiary) !important;
}

body.dark-mode .friend-name {
  color: #e4e6eb !important;
}

body.dark-mode .friend-username {
  color: #b0b3b8 !important;
}

/* Dark mode post cards */
body.dark-mode .post-card {
  background: var(--bg-secondary) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .post-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .post-author-info h3,
body.dark-mode .post-author-name {
  color: #e4e6eb !important;
}

body.dark-mode .post-timestamp {
  color: #8a8d91 !important;
}

body.dark-mode .post-text {
  color: #e4e6eb !important;
}

/* Dark mode post filters */
body.dark-mode .post-filters {
  border-bottom-color: #4a4b4c !important;
}

body.dark-mode .filter-btn {
  background: var(--bg-tertiary) !important;
  border-color: #4a4b4c !important;
  color: #b0b3b8 !important;
}

body.dark-mode .filter-btn:hover {
  background: #3a3b3c !important;
  border-color: #5a5b5c !important;
  color: #e4e6eb !important;
}

body.dark-mode .filter-btn.active {
  background: linear-gradient(135deg, #274510 0%, #597f20 100%) !important;
  border-color: #274410 !important;
  color: #fff !important;
}

/* Dark mode poll container - CRITICAL FIX */
body.dark-mode .poll-container {
  background: var(--bg-tertiary) !important;
}

body.dark-mode .poll-question {
  color: #e4e6eb !important;
}

/* Dark mode poll options - WHITE TEXT FIX */
body.dark-mode .poll-option {
  background: var(--bg-secondary) !important;
  border-color: #4a4b4c !important;
}

body.dark-mode .poll-option:hover:not(.voted):not(.poll-ended) {
  border-color: var(--primary-color) !important;
  background: #1a2015 !important;
}

body.dark-mode .poll-option.user-voted {
  border-color: var(--primary-color) !important;
  background: #1a2015 !important;
}

body.dark-mode .poll-option-text {
  color: #ffffff !important;
}

body.dark-mode .poll-option-stats {
  color: #b0b3b8 !important;
}

body.dark-mode .poll-option-percentage {
  color: #ffffff !important;
}

body.dark-mode .poll-option-votes {
  color: #b0b3b8 !important;
}

body.dark-mode .poll-footer {
  border-top-color: #4a4b4c !important;
  color: #8a8d91 !important;
}

body.dark-mode .poll-total-votes {
  color: #b0b3b8 !important;
}

body.dark-mode .poll-status.active {
  color: #2ecc71 !important;
}

body.dark-mode .poll-status.ended {
  color: #e74c3c !important;
}

/* Dark mode comments */
body.dark-mode .comment-card {
  background: var(--bg-tertiary) !important;
}

body.dark-mode .comment-author {
  color: #e4e6eb !important;
}

body.dark-mode .comment-timestamp,
body.dark-mode .comment-time {
  color: #8a8d91 !important;
}

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

body.dark-mode .comment-input {
  background: var(--bg-tertiary) !important;
  border-color: #4a4b4c !important;
  color: #e4e6eb !important;
}

body.dark-mode .comment-input:focus {
  border-color: var(--primary-color) !important;
}

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

body.dark-mode .comment-action-btn:hover {
  background: #3a3b3c !important;
  color: #e4e6eb !important;
}

/* Dark mode GIF picker */
body.dark-mode .gif-picker-content {
  background: var(--bg-secondary) !important;
}

body.dark-mode .gif-picker-header {
  border-bottom-color: #4a4b4c !important;
}

body.dark-mode .gif-picker-header h3 {
  color: #e4e6eb !important;
}

body.dark-mode .gif-picker-close {
  color: #b0b3b8 !important;
}

body.dark-mode .gif-picker-close:hover {
  color: #e4e6eb !important;
}

body.dark-mode .gif-search-input {
  background: var(--bg-tertiary) !important;
  border-color: #4a4b4c !important;
  color: #e4e6eb !important;
}

body.dark-mode .gif-search-input:focus {
  border-color: var(--primary-color) !important;
}

/* Dark mode video viewer overlay */
body.dark-mode .video-viewer-container {
  background: var(--bg-secondary) !important;
}

body.dark-mode .video-viewer-tabs {
  background: var(--bg-tertiary) !important;
  border-bottom-color: #4a4b4c !important;
}

body.dark-mode .video-viewer-tab {
  color: #b0b3b8 !important;
}

body.dark-mode .video-viewer-tab:hover {
  background: #3a3b3c !important;
  color: #e4e6eb !important;
}

body.dark-mode .video-viewer-tab.active {
  background: var(--bg-secondary) !important;
  color: var(--primary-color) !important;
}

body.dark-mode .video-viewer-content {
  background: var(--bg-secondary) !important;
}

body.dark-mode .video-viewer-chapter-card {
  background: var(--bg-tertiary) !important;
  border-color: #4a4b4c !important;
}

body.dark-mode .video-viewer-chapter-card:hover {
  border-color: var(--primary-color) !important;
}

body.dark-mode .video-viewer-chapter-title {
  color: #e4e6eb !important;
}

body.dark-mode .video-viewer-chapter-desc {
  color: #8a8d91 !important;
}

body.dark-mode .video-viewer-no-content {
  color: #b0b3b8 !important;
}

/* Dark mode subscribe modal (user_profile) */
body.dark-mode .subscribe-modal-overlay .subscribe-modal {
  background: var(--bg-secondary) !important;
}

body.dark-mode .subscribe-modal-header {
  border-bottom-color: #4a4b4c !important;
}

body.dark-mode .subscribe-modal-header h3 {
  color: #e4e6eb !important;
}

body.dark-mode .subscribe-modal-close {
  color: #b0b3b8 !important;
}

body.dark-mode .subscribe-modal-close:hover {
  color: #e4e6eb !important;
}

body.dark-mode .subscribe-creator-info {
  border-bottom-color: #4a4b4c !important;
}

body.dark-mode .subscribe-creator-name {
  color: #e4e6eb !important;
}

body.dark-mode .subscribe-creator-username {
  color: #b0b3b8 !important;
}

/* Dark mode shipping modal */
body.dark-mode .shipping-modal {
  background: var(--bg-secondary) !important;
}

body.dark-mode .shipping-modal-header {
  border-bottom-color: #4a4b4c !important;
}

body.dark-mode .shipping-modal-header h3 {
  color: #e4e6eb !important;
}

body.dark-mode .shipping-modal-close {
  color: #b0b3b8 !important;
}

body.dark-mode .shipping-product-info {
  border-bottom-color: #4a4b4c !important;
}

body.dark-mode .shipping-product-details h4 {
  color: #e4e6eb !important;
}

body.dark-mode .shipping-product-details p {
  color: #b0b3b8 !important;
}

body.dark-mode .shipping-form label {
  color: #e4e6eb !important;
}

body.dark-mode .shipping-form input,
body.dark-mode .shipping-form select {
  background: var(--bg-tertiary) !important;
  border-color: #4a4b4c !important;
  color: #e4e6eb !important;
}

body.dark-mode .btn-shipping-cancel {
  background: var(--bg-tertiary) !important;
  border-color: #4a4b4c !important;
  color: #e4e6eb !important;
}

/* Dark mode post actions */
body.dark-mode .post-actions {
  border-top-color: #4a4b4c !important;
}

body.dark-mode .post-action-btn {
  color: #b0b3b8 !important;
}

body.dark-mode .post-action-btn:hover {
  background: var(--bg-tertiary) !important;
  color: #e4e6eb !important;
}

body.dark-mode .post-action-btn.liked {
  color: #e74c3c !important;
}

/* Dark mode no content state */
body.dark-mode .no-content {
  color: #8a8d91 !important;
}

body.dark-mode .loading {
  color: #8a8d91 !important;
}

/* Dark mode settings/profile.php specific styles */

/* Profile section headings */
body.dark-mode .profile-section h2 {
  color: #e4e6eb !important;
  border-bottom-color: #4a4b4c !important;
}

/* Form fieldsets and legends */
body.dark-mode .form-fieldset {
  border-color: #4a4b4c !important;
  background: var(--bg-tertiary) !important;
}

body.dark-mode .form-legend {
  color: #e4e6eb !important;
  background: var(--bg-secondary) !important;
}

/* Stats grid and stat cards (general) */
body.dark-mode .stats-grid .stat-card {
  background: var(--bg-tertiary) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .stats-grid .stat-label {
  color: #b0b3b8 !important;
}

body.dark-mode .stats-grid .stat-value {
  color: #e4e6eb !important;
}

/* Tabs navigation */
body.dark-mode .tabs-nav {
  border-bottom-color: #4a4b4c !important;
}

body.dark-mode .tab-btn {
  color: #b0b3b8 !important;
}

body.dark-mode .tab-btn:hover {
  color: #e4e6eb !important;
  background: var(--bg-tertiary) !important;
}

body.dark-mode .tab-btn.active {
  color: var(--primary-color) !important;
  background: transparent !important;
}

/* Schedule table dark mode */
body.dark-mode .schedule-table th {
  background: var(--bg-tertiary) !important;
  color: #e4e6eb !important;
  border-color: #4a4b4c !important;
}

body.dark-mode .schedule-table .day-label {
  background: var(--bg-tertiary) !important;
  color: #e4e6eb !important;
  border-color: #4a4b4c !important;
}

body.dark-mode .schedule-cell {
  background: var(--bg-secondary) !important;
  border-color: #4a4b4c !important;
}

body.dark-mode .schedule-cell:hover {
  background: #3a3b3c !important;
}

body.dark-mode .schedule-cell.active {
  background: #28a745 !important;
  border-color: #28a745 !important;
}

body.dark-mode .schedule-legend {
  color: #b0b3b8 !important;
}

body.dark-mode .schedule-legend .legend-label,
body.dark-mode .schedule-legend .legend-text {
  color: #b0b3b8 !important;
}

/* Video editor tabs dark mode */
body.dark-mode .video-editor-tab {
  color: #b0b3b8 !important;
}

body.dark-mode .video-editor-tab:hover {
  color: #e4e6eb !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .video-editor-tab.active {
  color: var(--primary-color) !important;
  background: var(--bg-secondary) !important;
}

/* Crop modal dark mode */
body.dark-mode .crop-modal-content {
  background: var(--bg-secondary) !important;
}

body.dark-mode .crop-modal-header {
  border-bottom-color: #4a4b4c !important;
}

body.dark-mode .crop-modal-header h3 {
  color: #e4e6eb !important;
}

/* File input styling dark mode */
body.dark-mode .file-input-label {
  background: var(--bg-tertiary) !important;
  border-color: #4a4b4c !important;
}

body.dark-mode .file-input-label:hover {
  background: #3a3b3c !important;
}

body.dark-mode .file-input-label.has-file {
  background: rgba(59, 130, 246, 0.2) !important;
  border-color: var(--primary-color) !important;
}

body.dark-mode .file-text-main {
  color: #e4e6eb !important;
}

body.dark-mode .file-text-sub {
  color: #b0b3b8 !important;
}

/* Preview labels dark mode */
body.dark-mode .preview-label {
  color: #b0b3b8 !important;
}

/* Section description dark mode */
body.dark-mode .section-description {
  color: #b0b3b8 !important;
}

/* Checkbox label dark mode */
body.dark-mode .checkbox-label {
  color: #e4e6eb !important;
}

/* Alerts dark mode */
body.dark-mode .alert-success {
  background: rgba(39, 174, 96, 0.2) !important;
  color: #4ade80 !important;
  border-color: rgba(39, 174, 96, 0.4) !important;
}

body.dark-mode .alert-error {
  background: rgba(231, 76, 60, 0.2) !important;
  color: #f87171 !important;
  border-color: rgba(231, 76, 60, 0.4) !important;
}

/* Password strength text dark mode */
body.dark-mode .password-strength-text {
  color: #b0b3b8 !important;
}

/* No image placeholder dark mode */
body.dark-mode .no-image {
  background: linear-gradient(135deg, #3a3b3c 0%, #2a2b2c 100%) !important;
  color: #8a8d91 !important;
}

/* General form inputs dark mode for profile page */
body.dark-mode
  .profile-section
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not(
    [type="range"]
  ):not([type="submit"]):not([type="button"]),
body.dark-mode .profile-section select,
body.dark-mode .profile-section textarea,
body.dark-mode .profile-section .form-control,
body.dark-mode .profile-section .form-input,
body.dark-mode .profile-section .form-select,
body.dark-mode .profile-section .form-textarea {
  background: var(--bg-tertiary) !important;
  color: #e4e6eb !important;
  border-color: #4a4b4c !important;
}

body.dark-mode .profile-section input::placeholder,
body.dark-mode .profile-section textarea::placeholder {
  color: #8a8d91 !important;
}

body.dark-mode .profile-section input:focus,
body.dark-mode .profile-section select:focus,
body.dark-mode .profile-section textarea:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2) !important;
}

/* Form labels in profile sections */
body.dark-mode .profile-section .form-label {
  color: #e4e6eb !important;
}

body.dark-mode .profile-section .form-help {
  color: #8a8d91 !important;
}

/* Dark mode creator packages page */
body.dark-mode .packages-container .stat-card {
  background: var(--bg-secondary) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .packages-container .stat-label {
  color: #b0b3b8 !important;
}

body.dark-mode .packages-container .stat-value {
  color: #e4e6eb !important;
}

body.dark-mode .package-card {
  background: var(--bg-secondary) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .package-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .package-card.enabled {
  border-color: #28a745 !important;
}

body.dark-mode .package-header {
  background: linear-gradient(135deg, #1a1b1c 0%, #2a2b2c 100%) !important;
  border-bottom-color: #4a4b4c !important;
}

body.dark-mode .package-card.enabled .package-header {
  background: linear-gradient(135deg, #1a3020 0%, #254530 100%) !important;
}

body.dark-mode .package-name {
  color: #e4e6eb !important;
}

body.dark-mode .package-description {
  color: #b0b3b8 !important;
}

body.dark-mode .package-body {
  background: var(--bg-secondary) !important;
}

body.dark-mode .pricing-section {
  border-bottom-color: #4a4b4c !important;
}

body.dark-mode .price-label {
  color: #b0b3b8 !important;
}

body.dark-mode .price-default {
  color: #8a8d91 !important;
}

body.dark-mode .duration-badge {
  background: var(--bg-tertiary) !important;
  color: #e4e6eb !important;
}

body.dark-mode .benefits-title {
  color: #e4e6eb !important;
}

body.dark-mode .benefits-list li {
  color: #b0b3b8 !important;
}

body.dark-mode .custom-pricing {
  background: var(--bg-tertiary) !important;
}

body.dark-mode .custom-pricing-title {
  color: #e4e6eb !important;
}

/* Dark mode pricing notice (blue info box) */
body.dark-mode .pricing-notice {
  background: rgba(33, 150, 243, 0.15) !important;
  border-left-color: #2196f3 !important;
}

body.dark-mode .pricing-notice i {
  color: #64b5f6 !important;
}

body.dark-mode .pricing-notice-content strong {
  color: #90caf9 !important;
}

body.dark-mode .pricing-notice-content p {
  color: #b0b3b8 !important;
}

body.dark-mode .subscriber-info {
  background: var(--bg-tertiary) !important;
}

body.dark-mode .subscriber-count {
  color: #e4e6eb !important;
}

body.dark-mode .subscriber-label {
  color: #b0b3b8 !important;
}

body.dark-mode .input-group label {
  color: #b0b3b8 !important;
}

body.dark-mode .input-group input {
  background: var(--bg-tertiary) !important;
  border-color: #4a4b4c !important;
  color: #e4e6eb !important;
}

body.dark-mode .input-group input:focus {
  border-color: var(--primary-color) !important;
}

body.dark-mode .input-group input:disabled {
  background: #2a2b2c !important;
  color: var(--primary-color) !important;
}

body.dark-mode .input-group small {
  color: #8a8d91 !important;
}

body.dark-mode .loading-container p {
  color: #b0b3b8 !important;
}

/* Dark mode creator earnings dashboard */
body.dark-mode .earnings-container .stat-card {
  background: var(--bg-secondary) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .earnings-container .stat-label {
  color: #b0b3b8 !important;
}

body.dark-mode .earnings-container .stat-value {
  color: #e4e6eb !important;
}

body.dark-mode .earnings-container .stat-subtext {
  color: #8a8d91 !important;
}

body.dark-mode .earnings-container .stat-usd {
  color: #b0b3b8 !important;
}

body.dark-mode .content-section {
  background: var(--bg-secondary) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .section-header {
  border-bottom-color: #4a4b4c !important;
}

body.dark-mode .section-title {
  color: #e4e6eb !important;
}

body.dark-mode .platform-fee-note {
  background: rgba(33, 150, 243, 0.15) !important;
  border-color: rgba(33, 150, 243, 0.3) !important;
  color: #90caf9 !important;
}

body.dark-mode .breakdown-item {
  background: var(--bg-tertiary) !important;
  border-color: #4a4b4c !important;
}

body.dark-mode .breakdown-label {
  color: #b0b3b8 !important;
}

body.dark-mode .breakdown-count {
  color: #8a8d91 !important;
}

body.dark-mode .breakdown-usd {
  color: #b0b3b8 !important;
}

body.dark-mode .breakdown-item.refund-item {
  background: rgba(220, 38, 38, 0.15) !important;
  border-color: rgba(220, 38, 38, 0.3) !important;
}

body.dark-mode .earnings-summary-bar {
  background: var(--bg-tertiary) !important;
  border-color: #4a4b4c !important;
}

body.dark-mode .earnings-summary-bar .summary-label {
  color: #b0b3b8 !important;
}

body.dark-mode .earnings-summary-bar .summary-value.positive {
  color: #e4e6eb !important;
}

body.dark-mode .earnings-summary-bar .summary-operator {
  color: #8a8d91 !important;
}

body.dark-mode .earnings-summary-bar .summary-usd {
  color: #b0b3b8 !important;
}

body.dark-mode .withdrawal-form {
  background: var(--bg-tertiary) !important;
}

body.dark-mode .withdrawal-form .form-group label {
  color: var(--primary-color) !important;
}

body.dark-mode .form-control {
  background: var(--bg-secondary) !important;
  border-color: #4a4b4c !important;
  color: #e4e6eb !important;
}

body.dark-mode .form-control:focus {
  border-color: var(--primary-color) !important;
}

body.dark-mode .form-hint {
  color: #8a8d91 !important;
}

body.dark-mode .withdrawal-table th {
  background: var(--bg-tertiary) !important;
  color: #b0b3b8 !important;
}

body.dark-mode .withdrawal-table td {
  border-bottom-color: #4a4b4c !important;
  color: #e4e6eb !important;
}

body.dark-mode .withdrawal-table tr:hover {
  background: var(--bg-tertiary) !important;
}

/* Dark mode status badges */
body.dark-mode .status-pending {
  background: rgba(245, 158, 11, 0.2) !important;
  color: #fbbf24 !important;
}

body.dark-mode .status-approved,
body.dark-mode .status-processing {
  background: rgba(59, 130, 246, 0.2) !important;
  color: #60a5fa !important;
}

body.dark-mode .status-completed {
  background: rgba(34, 197, 94, 0.2) !important;
  color: #4ade80 !important;
}

body.dark-mode .status-rejected,
body.dark-mode .status-cancelled {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #f87171 !important;
}

/* Dark mode creator earnings history */
body.dark-mode .summary-card {
  background: var(--bg-secondary) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .summary-label {
  color: #b0b3b8 !important;
}

body.dark-mode .summary-value.neutral {
  color: #e4e6eb !important;
}

body.dark-mode .summary-usd {
  color: #b0b3b8 !important;
}

body.dark-mode .history-container .filters-section,
body.dark-mode .earnings-history .filters-section {
  background: var(--bg-secondary) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .filter-group label {
  color: #b0b3b8 !important;
}

body.dark-mode .filter-group select,
body.dark-mode .filter-group input {
  background: var(--bg-tertiary) !important;
  border-color: #4a4b4c !important;
  color: #e4e6eb !important;
}

body.dark-mode .filter-btn.reset {
  background: var(--bg-tertiary) !important;
  border-color: #4a4b4c !important;
  color: #e4e6eb !important;
}

body.dark-mode .filter-btn.reset:hover {
  background: #3a3b3c !important;
}

body.dark-mode .transactions-section {
  background: var(--bg-secondary) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .transactions-header {
  border-bottom-color: #4a4b4c !important;
}

body.dark-mode .transactions-title {
  color: #e4e6eb !important;
}

body.dark-mode .transactions-count {
  color: #b0b3b8 !important;
}

body.dark-mode .transactions-table th {
  background: var(--bg-tertiary) !important;
  color: #b0b3b8 !important;
}

body.dark-mode .transactions-table td {
  border-bottom-color: #4a4b4c !important;
  color: #e4e6eb !important;
}

body.dark-mode .transactions-table tr:hover {
  background: var(--bg-tertiary) !important;
}

/* Dark mode type badges */
body.dark-mode .type-tip {
  background: rgba(245, 158, 11, 0.2) !important;
  color: #fbbf24 !important;
}

body.dark-mode .type-subscription {
  background: rgba(59, 130, 246, 0.2) !important;
  color: #60a5fa !important;
}

body.dark-mode .type-ppv {
  background: rgba(236, 72, 153, 0.2) !important;
  color: #f472b6 !important;
}

body.dark-mode .type-merchandise {
  background: rgba(99, 102, 241, 0.2) !important;
  color: #818cf8 !important;
}

body.dark-mode .type-tip_refund,
body.dark-mode .type-subscription_refund,
body.dark-mode .type-ppv_refund,
body.dark-mode .type-merchandise_refund {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #f87171 !important;
}

body.dark-mode .pagination-btn {
  background: var(--bg-secondary) !important;
  border-color: #4a4b4c !important;
  color: #e4e6eb !important;
}

body.dark-mode .pagination-btn:hover:not(:disabled) {
  background: var(--bg-tertiary) !important;
  border-color: var(--primary-color) !important;
}

body.dark-mode .pagination-btn.active {
  background: var(--primary-color) !important;
  color: white !important;
  border-color: var(--primary-color) !important;
}

body.dark-mode .pagination-info {
  color: #b0b3b8 !important;
}

/* Dark mode chart cards */
body.dark-mode .chart-card {
  background: var(--bg-secondary) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .chart-header {
  border-bottom-color: #4a4b4c !important;
}

body.dark-mode .chart-title {
  color: #e4e6eb !important;
}

body.dark-mode .chart-period-btn {
  background: var(--bg-tertiary) !important;
  border-color: #4a4b4c !important;
  color: #e4e6eb !important;
}

body.dark-mode .chart-period-btn:hover {
  background: #3a3b3c !important;
}

body.dark-mode .chart-period-btn.active {
  background: var(--primary-color) !important;
  color: white !important;
  border-color: var(--primary-color) !important;
}

body.dark-mode .chart-loading,
body.dark-mode .chart-no-data {
  color: #b0b3b8 !important;
}

/* Dark mode creator orders */
body.dark-mode .orders-container .stat-card {
  background: var(--bg-secondary) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .orders-container .stat-value {
  color: #e4e6eb !important;
}

body.dark-mode .orders-container .stat-label {
  color: #b0b3b8 !important;
}

body.dark-mode .orders-container .stat-desc {
  color: #8a8d91 !important;
}

body.dark-mode .filter-tab {
  background: var(--bg-secondary) !important;
  border-color: #4a4b4c !important;
  color: #b0b3b8 !important;
}

body.dark-mode .filter-tab:hover {
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
}

body.dark-mode .filter-tab.active {
  background: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: white !important;
}

body.dark-mode .filter-tab .count {
  background: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .orders-card {
  background: var(--bg-secondary) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .orders-table th {
  background: var(--bg-tertiary) !important;
  color: #b0b3b8 !important;
  border-bottom-color: #4a4b4c !important;
}

body.dark-mode .orders-table td {
  border-bottom-color: #4a4b4c !important;
  color: #e4e6eb !important;
}

body.dark-mode .orders-table tr:hover {
  background: var(--bg-tertiary) !important;
}

body.dark-mode .order-product-name {
  color: #e4e6eb !important;
}

body.dark-mode .order-product-image {
  background: #3a3b3c !important;
}

body.dark-mode .order-buyer {
  color: #e4e6eb !important;
}

body.dark-mode .order-price {
  color: #e4e6eb !important;
}

/* Dark mode order status badges */
body.dark-mode .order-status.pending {
  background: rgba(245, 158, 11, 0.2) !important;
  color: #fbbf24 !important;
}

body.dark-mode .order-status.shipped {
  background: rgba(59, 130, 246, 0.2) !important;
  color: #60a5fa !important;
}

body.dark-mode .order-status.delivered,
body.dark-mode .order-status.completed {
  background: rgba(34, 197, 94, 0.2) !important;
  color: #4ade80 !important;
}

body.dark-mode .order-status.refunded,
body.dark-mode .order-status.cancelled {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #f87171 !important;
}

/* Dark mode order modal */
body.dark-mode .modal-content {
  background: var(--bg-secondary) !important;
}

body.dark-mode .modal-header {
  border-bottom-color: #4a4b4c !important;
}

body.dark-mode .modal-header h2 {
  color: #e4e6eb !important;
}

body.dark-mode .modal-close {
  color: #b0b3b8 !important;
}

body.dark-mode .modal-close:hover {
  color: #e4e6eb !important;
}

body.dark-mode .modal-section h3 {
  color: #e4e6eb !important;
}

body.dark-mode .info-grid .info-label {
  color: #b0b3b8 !important;
}

body.dark-mode .info-grid .info-value {
  color: #e4e6eb !important;
}

body.dark-mode .shipping-address {
  color: #e4e6eb !important;
}

body.dark-mode .tracking-input {
  background: var(--bg-tertiary) !important;
  border-color: #4a4b4c !important;
  color: #e4e6eb !important;
}

body.dark-mode .tracking-input:focus {
  border-color: var(--primary-color) !important;
}

body.dark-mode .modal-footer {
  border-top-color: #4a4b4c !important;
}

body.dark-mode .btn-modal.secondary {
  background: var(--bg-tertiary) !important;
  border-color: #4a4b4c !important;
  color: #e4e6eb !important;
}

body.dark-mode .btn-modal.secondary:hover {
  background: #3a3b3c !important;
}

/* Dark mode empty state for orders */
body.dark-mode .orders-container .empty-state h3 {
  color: #e4e6eb !important;
}

body.dark-mode .orders-container .empty-state p {
  color: #b0b3b8 !important;
}

body.dark-mode .orders-container .empty-state i {
  color: #4a4b4c !important;
}

/* ========== Reset & Base Styles ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg-secondary);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

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

/* ========== Header / Navigation ========== */
.site-header {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: white;
  height: var(--header-height);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 30px;
  height: 100%;
  display: flex;
  align-items: center;
  /* No justify-content - flex values on children control the layout */
}

/* Three-column header layout: logo left, nav center, user-menu right */
.site-logo {
  flex: 1 0 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  text-decoration: none;
}

.site-logo:hover {
  text-decoration: none;
}

/* Logo Icons Row */
.site-logo-icons {
  display: flex;
  gap: 8px;
}

.site-logo-icons i {
  font-size: 14px;
  background: linear-gradient(135deg, #FFFFFF, #E8E8E8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
  transition: all 0.3s ease;
}

.site-logo:hover .site-logo-icons i {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9));
}

/* Logo Text Container */
.site-logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

/* Main Logo Text */
.site-logo-main {
  font-family: "Orbitron", sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #FFFFFF 0%, #E8E8E8 50%, #FFFFFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
  line-height: 1;
  transition: all 0.3s ease;
}

.site-logo:hover .site-logo-main {
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.9));
}

/* Logo Tagline */
.site-logo-tagline {
  font-family: "Rajdhani", sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #E8E8E8, #FFFFFF, #E8E8E8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
  line-height: 1;
  transition: all 0.3s ease;
}

.site-logo:hover .site-logo-tagline {
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.9));
}

/* Logo Accent Bar */
.site-logo-bar {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #E8E8E8, #FFFFFF, #E8E8E8);
  border-radius: 1px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  margin-top: 2px;
  transition: all 0.3s ease;
}

.site-logo:hover .site-logo-bar {
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
}

.main-nav {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: center;
  flex: 2 1 0;
}

.main-nav a {
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.3s;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.15);
}

.main-nav a.active {
  background: rgba(255, 255, 255, 0.25);
}

.user-menu {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  flex: 1 0 0;
}

/* User Dropdown */
.user-dropdown {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.user-avatar-wrapper {
  display: flex;
  align-items: center;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
  object-fit: cover;
}

.user-dropdown:active .user-avatar,
.user-dropdown.menu-open .user-avatar {
  border-color: rgba(255, 255, 255, 0.9);
  transform: scale(0.95);
}

.user-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #274510 0%, #597f20 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}

.user-dropdown:active .user-avatar-placeholder,
.user-dropdown.menu-open .user-avatar-placeholder {
  border-color: rgba(255, 255, 255, 0.9);
  transform: scale(0.95);
}

.user-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 10px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
  pointer-events: none;
}

.user-dropdown.menu-open .user-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.user-dropdown-header {
  padding: 16px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: white;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.user-dropdown-name {
  font-weight: 600;
  font-size: 16px;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 15px;
}

.user-dropdown-item:hover {
  background: var(--bg-secondary);
  color: var(--primary-color);
}

.dropdown-icon {
  font-size: 18px;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-dropdown-divider {
  height: 1px;
  background: var(--bg-tertiary);
  margin: 8px 0;
}

/* Navigation Dropdowns */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown .nav-link {
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.nav-dropdown .nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
}

.nav-dropdown .nav-link.active {
  background: rgba(255, 255, 255, 0.25);
}

.dropdown-arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.nav-dropdown.menu-open .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 10px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
  pointer-events: none;
  overflow: hidden;
}

.nav-dropdown.menu-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 15px;
  border-bottom: 1px solid var(--bg-secondary);
}

.nav-dropdown-item:last-child {
  border-bottom: none;
}

.nav-dropdown-item:hover {
  background: var(--bg-secondary);
  color: var(--primary-color);
}

/* Language Nav Dropdown */
.language-nav-dropdown {
  margin-left: auto;
  flex-shrink: 0;
}

.language-nav-dropdown .lang-flag {
  font-size: 18px;
  line-height: 1;
}

.language-nav-dropdown .nav-dropdown-menu {
  right: 0;
  left: auto;
  max-height: 400px;
  overflow-y: auto;
}

.language-nav-dropdown .nav-dropdown-item {
  padding: 8px 16px;
  font-size: 14px;
  gap: 10px;
}

.language-nav-dropdown .nav-dropdown-item.active {
  background: var(--primary-color);
  color: #fff;
}

.language-nav-dropdown .nav-dropdown-item.active:hover {
  background: var(--primary-color);
  color: #fff;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .language-nav-dropdown .lang-current {
    display: none;
  }

  .language-nav-dropdown .nav-link {
    padding: 8px 6px;
  }
}

/* ========== Container & Layout ========== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 20px;
}

.container-narrow {
  max-width: 800px;
}

.page-header {
  margin-bottom: 40px;
}

.page-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

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

/* ========== Cards ========== */
.card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  padding: 20px;
  border-bottom: 1px solid var(--bg-tertiary);
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.card-body {
  padding: 20px;
}

.card-footer {
  padding: 15px 20px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--bg-tertiary);
}

/* ========== Grid System ========== */
.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

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

@media (max-width: 768px) {
  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: 1fr;
  }
}

/* ========== Video/Gallery Thumbnails ========== */
.thumb-card {
  position: relative;
  cursor: pointer;
}

.thumb-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: #f5f5f5; /* Light background so letterboxing looks clean */
}

.thumb-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  color: white;
}

.thumb-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thumb-meta {
  font-size: 12px;
  opacity: 0.9;
  display: flex;
  gap: 10px;
}

.thumb-duration {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
}

.thumb-subscription-badge {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 0, 0, 0.5); /* Red with 50% transparency */
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 10;
}

.thumb-ppv-badge {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 165, 0, 0.9); /* Orange with 90% opacity */
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 10;
}

/* Mosaic Blur Overlay - 30% opacity pixelated effect */
.mosaic-blur {
  filter: blur(3px);
  image-rendering: pixelated;
  position: relative;
}

.mosaic-blur::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.08) 0px,
      rgba(255, 255, 255, 0.08) 2px,
      transparent 2px,
      transparent 4px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.08) 0px,
      rgba(255, 255, 255, 0.08) 2px,
      transparent 2px,
      transparent 4px
    );
  pointer-events: none;
  opacity: 0.3;
}

/* Favorite Button */
.favorite-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.favorite-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.favorite-btn .heart-icon {
  font-size: 20px;
  color: white;
  line-height: 1;
  transition: color 0.3s ease;
}

.favorite-btn.favorited {
  background: rgba(220, 20, 60, 0.9);
}

.favorite-btn.favorited:hover {
  background: rgba(220, 20, 60, 1);
}

.favorite-btn.favorited .heart-icon {
  color: white;
}

/* Playlist Add Button */
.playlist-add-btn {
  cursor: pointer;
  padding: 2px 6px;
  background: rgba(71, 105, 26, 0.8);
  border-radius: 4px;
  transition: all 0.2s ease;
  font-size: 12px;
  white-space: nowrap;
}

.playlist-add-btn:hover {
  background: rgba(71, 105, 26, 1);
  transform: scale(1.05);
}

/* ========== Buttons ========== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: white;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(88, 126, 31, 0.4);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.btn-secondary:hover:not(:disabled) {
  background: #d5dbdb;
}

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

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

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

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

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-block {
  display: block;
  width: 100%;
}

/* ========== Forms ========== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--bg-tertiary);
  border-radius: var(--radius-md);
  font-size: 14px;
  transition: border-color 0.3s;
}

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

/* Global form field styling - editable fields */
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not(
    [type="range"]
  ):not([type="submit"]):not([type="button"]),
select,
textarea,
.form-control {
  background: #f5f5f5 !important; /* Light gray background */
  color: var(--primary-color) !important; /* Dark green text for user input */
  border: 1px solid #ddd !important;
}

/* Placeholder text - darker gray for visibility */
input::placeholder,
select::placeholder,
textarea::placeholder,
.form-control::placeholder {
  color: #666 !important; /* Noticeably darker gray */
  opacity: 1 !important;
}

input::-webkit-input-placeholder,
select::-webkit-input-placeholder,
textarea::-webkit-input-placeholder,
.form-control::-webkit-input-placeholder {
  color: #666 !important;
  opacity: 1 !important;
}

input::-moz-placeholder,
select::-moz-placeholder,
textarea::-moz-placeholder,
.form-control::-moz-placeholder {
  color: #666 !important;
  opacity: 1 !important;
}

/* Disabled and readonly fields - light gray background with dark green text */
/* Note: select elements only support :disabled, not :read-only (removed to prevent cursor bug) */
input:disabled,
input:read-only,
input[readonly],
select:disabled,
textarea:disabled,
textarea:read-only,
textarea[readonly],
.form-control:disabled,
.form-control:read-only,
.form-control[readonly] {
  background: #f5f5f5 !important; /* Light gray background */
  color: var(--primary-color) !important; /* Dark green text - NOT white */
  cursor: not-allowed !important;
  opacity: 0.8 !important;
}

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

.form-help {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 5px;
}

.form-error {
  color: var(--error);
  font-size: 12px;
  margin-top: 5px;
}

/* ========== Alerts ========== */
.alert {
  padding: 15px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-weight: 500;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.alert-info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* ========== Loading Spinner ========== */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--bg-tertiary);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
  display: block;
  box-sizing: border-box;
}

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

/* ========== Pagination ========== */
.pagination {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 40px;
}

.pagination-btn {
  padding: 10px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--bg-tertiary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s;
}

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

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

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

/* ========== Banner/Ad Zones ========== */
.header-banner-zone {
  background: var(--bg-secondary, #f5f5f5);
  padding: 10px 0;
  text-align: center;
}

.banner-zone {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.banner-item {
  display: inline-block;
  line-height: 0;
}

.banner-link {
  display: inline-block;
  transition: opacity 0.2s ease;
}

.banner-link:hover {
  opacity: 0.85;
}

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

.banner-html {
  display: inline-block;
}

.banner-html iframe {
  max-width: 100%;
  border: none;
}

/* Content area banners */
.content-banner-zone {
  margin: 20px 0;
  text-align: center;
}

/* Sidebar banners */
.sidebar-banner-zone {
  margin-bottom: 20px;
  text-align: center;
}

.sidebar-banner-zone .banner-item {
  width: 100%;
  margin-bottom: 10px;
}

/* Footer banners */
.footer-banner-zone {
  padding: 15px 0;
  text-align: center;
  border-top: 1px solid var(--border-color, #e0e0e0);
}

/* Mobile optimization */
@media (max-width: 768px) {
  .header-banner-zone {
    padding: 8px 10px;
  }

  .banner-link img {
    max-width: 320px;
    margin: 0 auto;
  }

  .banner-zone {
    flex-direction: column;
  }
}

/* Hide banners when ad blockers might interfere */
.banner-zone:empty,
.header-banner-zone:empty,
.post-feed-banner:empty,
.profile-banner-zone:empty {
  display: none;
}

/* In-feed banners (between posts) */
.post-feed-banner {
  margin: 15px 0;
  padding: 10px;
  text-align: center;
  background: var(--bg-secondary, #f5f5f5);
  border-radius: 8px;
}

.post-feed-banner .banner-item {
  display: inline-block;
  max-width: 100%;
}

.post-feed-banner .banner-item img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Profile page banner zone (above tabs) */
.profile-banner-zone {
  margin: 20px 0;
  text-align: center;
}

/* Grid banner zone (spans full width of grid) */
.grid-banner-zone {
  grid-column: 1 / -1;
  width: 100%;
  margin: 15px 0;
  padding: 10px;
  text-align: center;
  background: var(--bg-secondary, #f5f5f5);
  border-radius: 8px;
}

.grid-banner-zone:empty {
  display: none;
}

.grid-banner-zone .banner-item {
  display: inline-block;
  max-width: 100%;
}

.grid-banner-zone .banner-item img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* ========== Footer ========== */
.site-footer {
  background: var(--text-primary);
  color: white;
  padding: 40px 20px 20px;
  margin-top: 60px;
}

.footer-container {
  max-width: var(--container-width);
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 20px;
}

.footer-links a {
  opacity: 0.8;
  transition: opacity 0.3s;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-copyright {
  font-size: 14px;
  opacity: 0.6;
}

/* ========== Utility Classes ========== */
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.text-left {
  text-align: left;
}

.mt-1 {
  margin-top: 10px;
}
.mt-2 {
  margin-top: 20px;
}
.mt-3 {
  margin-top: 30px;
}
.mt-4 {
  margin-top: 40px;
}

.mb-1 {
  margin-bottom: 10px;
}
.mb-2 {
  margin-bottom: 20px;
}
.mb-3 {
  margin-bottom: 30px;
}
.mb-4 {
  margin-bottom: 40px;
}

.p-1 {
  padding: 10px;
}
.p-2 {
  padding: 20px;
}
.p-3 {
  padding: 30px;
}
.p-4 {
  padding: 40px;
}

.hidden {
  display: none;
}
.flex {
  display: flex;
}
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gap-1 {
  gap: 10px;
}
.gap-2 {
  gap: 20px;
}
.gap-3 {
  gap: 30px;
}

/* ========== Video Creator Info ========== */
.video-creator {
  margin: 12px 0 16px 0;
  padding: 8px 0;
  border-bottom: 1px solid #e0e0e0;
}

.creator-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-right: 8px;
}

.creator-username {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.creator-username:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ========== Responsive Utilities ========== */
@media (max-width: 768px) {
  .hide-mobile {
    display: none;
  }

  .site-header {
    height: 60px;
  }

  /* On mobile, adjust three-column layout */
  .site-logo {
    flex: 0 0 auto;
  }

  .site-logo-icons {
    display: none;
  }

  .site-logo-main {
    font-size: 16px;
    letter-spacing: 1px;
  }

  .site-logo-tagline {
    display: none;
  }

  .site-logo-bar {
    display: none;
  }

  .main-nav {
    gap: 10px;
    font-size: 13px;
    flex: 1 1 auto;
  }

  .user-menu {
    flex: 0 0 auto;
  }

  .page-title {
    font-size: 28px;
  }

  .container {
    padding: 20px 15px;
  }
}

/* Very small screens - hide some nav items */
@media (max-width: 576px) {
  .site-logo {
    font-size: 16px;
  }

  .main-nav {
    gap: 5px;
    font-size: 12px;
  }

  .main-nav a {
    padding: 6px 8px;
  }
}

/* ========================================
   TIPPING SYSTEM STYLES
   Phase 11: Creator Monetization
   ======================================== */

/* Tip Button */
.tip-creator-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: white;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.tip-creator-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.tip-creator-btn:active {
  transform: translateY(0);
}

.tip-creator-btn-icon {
  font-size: 18px;
}

/* Tip Modal */
.tip-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
}

.tip-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.tip-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 550px;
  max-height: 90vh;
  overflow-y: auto;
}

.tip-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid #e9ecef;
}

.tip-modal-header h2 {
  margin: 0;
  font-size: 24px;
  color: #2c3e50;
}

.tip-modal-close {
  background: none;
  border: none;
  font-size: 32px;
  color: #95a5a6;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.tip-modal-close:hover {
  color: #2c3e50;
}

.tip-modal-body {
  padding: 24px;
}

.tip-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid #e9ecef;
}

/* Creator Info */
.tip-creator-info {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 12px;
}

.tip-creator-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
}

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

.tip-creator-details {
  flex: 1;
}

.tip-creator-name {
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 4px;
}

.tip-content-info {
  font-size: 14px;
  color: #7f8c8d;
}

/* Token Balance */
.tip-balance-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: linear-gradient(135deg, #274510 0%, #597f20 100%);
  border-radius: 12px;
  margin-bottom: 24px;
}

.tip-balance-label {
  color: white;
  font-size: 14px;
  font-weight: 500;
}

.tip-balance-amount {
  color: white;
  font-size: 24px;
  font-weight: 700;
}

.tip-balance-tokens {
  font-size: 28px;
}

/* Preset Amounts */
.tip-amounts-section {
  margin-bottom: 20px;
}

.tip-amounts-section label {
  display: block;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 12px;
}

.tip-preset-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.tip-amount-btn {
  padding: 12px;
  border: 2px solid #dee2e6;
  background: white;
  border-radius: 8px;
  font-weight: 600;
  color: #495057;
  cursor: pointer;
  transition: all 0.2s;
}

.tip-amount-btn:hover {
  border-color: #274410;
  background: #f8f9fa;
}

.tip-amount-btn.selected {
  border-color: #274410;
  background: linear-gradient(135deg, #274510 0%, #597f20 100%);
  color: white;
}

/* Custom Amount */
.tip-custom-section {
  margin-bottom: 20px;
}

.tip-custom-section label {
  display: block;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
}

#tipCustomAmount {
  width: 100%;
  padding: 12px;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s;
}

#tipCustomAmount:focus {
  outline: none;
  border-color: #274410;
}

/* Message */
.tip-message-section {
  margin-bottom: 20px;
}

.tip-message-section label {
  display: block;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
}

#tipMessage {
  width: 100%;
  padding: 12px;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.2s;
}

#tipMessage:focus {
  outline: none;
  border-color: #274410;
}

.tip-message-counter {
  text-align: right;
  font-size: 12px;
  color: #7f8c8d;
  margin-top: 4px;
}

/* Alert */
.tip-alert {
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.tip-alert-error {
  background: #fee;
  color: #c33;
  border: 1px solid #fcc;
}

.tip-alert-warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

/* Buttons */
.tip-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.tip-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.tip-btn-primary {
  background: linear-gradient(135deg, #274510 0%, #597f20 100%);
  color: white;
}

.tip-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(88, 126, 31, 0.4);
}

.tip-btn-secondary {
  background: #e9ecef;
  color: #495057;
}

.tip-btn-secondary:hover {
  background: #dee2e6;
}

/* Toast Notifications */
.tip-notification {
  position: fixed;
  top: -100px;
  right: 24px;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-weight: 600;
  transition: all 0.3s ease;
  z-index: 10001;
  max-width: 400px;
}

.tip-notification.show {
  top: 24px;
}

.tip-notification-success {
  background: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745;
}

.tip-notification-error {
  background: #f8d7da;
  color: #721c24;
  border-left: 4px solid #dc3545;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .tip-modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .tip-modal-header,
  .tip-modal-body,
  .tip-modal-footer {
    padding: 16px;
  }

  .tip-preset-amounts {
    grid-template-columns: repeat(2, 1fr);
  }

  .tip-balance-amount {
    font-size: 20px;
  }

  .tip-balance-tokens {
    font-size: 24px;
  }

  .tip-notification {
    right: 12px;
    left: 12px;
    max-width: none;
  }

  .tip-notification.show {
    top: 12px;
  }
}

/* ========== Footer Components ========== */
/* Moved from includes/footer.php - 2025-12-09 */

.site-footer {
  background: #1f2937;
  color: white;
  padding: 40px 20px 20px;
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s;
  font-size: 14px;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-copyright {
  font-size: 14px;
  opacity: 0.6;
}

/* ========== Cookie Consent Components ========== */
/* Moved from includes/footer.php - 2025-12-09 */

.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  padding: 20px;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-consent-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-consent-text {
  flex: 1;
  min-width: 300px;
}

.cookie-consent-text strong {
  font-size: 16px;
  display: block;
  margin-bottom: 8px;
}

.cookie-consent-text p {
  font-size: 14px;
  color: #b0b0b0;
  margin: 0;
  line-height: 1.5;
}

.cookie-consent-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-modal-content {
  background: #fff;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cookie-modal-header {
  padding: 24px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookie-modal-header h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: #1f2937;
}

.cookie-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #6b7280;
  line-height: 1;
}

.cookie-modal-close:hover {
  color: #1f2937;
}

.cookie-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.cookie-intro {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.cookie-category {
  background: #f9fafb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.cookie-category:last-child {
  margin-bottom: 0;
}

.cookie-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cookie-category-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: #1f2937;
}

.cookie-always-active {
  display: inline-block;
  background: #22c55e;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  margin-left: 10px;
}

.cookie-category-desc {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

/* Cookie Toggle Switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #d1d5db;
  transition: 0.3s;
  border-radius: 26px;
}

.cookie-toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background: #22c55e;
}

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

.cookie-modal-footer {
  padding: 20px 24px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ========== Live Notifications ========== */
/* Moved from includes/footer.php - 2025-12-09 */

.live-notifications-container {
  position: fixed;
  top: 80px;
  left: 20px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
}

.live-notification {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInLeft 0.4s ease-out;
  border-left: 4px solid #ef4444;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.live-notification:hover {
  transform: translateX(5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.live-notification-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ef4444;
  flex-shrink: 0;
}

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

.live-notification-title {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-notification-title a {
  color: #fff;
  text-decoration: none;
}

.live-notification-title a:hover {
  text-decoration: underline;
}

.live-badge-pulse {
  background: #ef4444;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  animation: pulse 1.5s infinite;
}

.live-notification-text {
  color: #9ca3af;
  font-size: 12px;
}

.live-notification-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  opacity: 0;
  transition: opacity 0.2s;
}

.live-notification:hover .live-notification-close {
  opacity: 1;
}

.live-notification-close:hover {
  color: #fff;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-100%);
  }
}

.live-notification.hiding {
  animation: slideOutLeft 0.3s ease-in forwards;
}

/* ========== Responsive - Footer & Cookie Components ========== */
@media (max-width: 640px) {
  .cookie-consent-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-consent-actions {
    width: 100%;
    justify-content: center;
  }

  .cookie-modal-footer {
    flex-direction: column;
  }

  .cookie-modal-footer .btn {
    width: 100%;
  }

  .live-notifications-container {
    left: 10px;
    right: 10px;
    max-width: none;
  }

  .live-notification {
    padding: 10px 14px;
  }

  .live-notification-avatar {
    width: 40px;
    height: 40px;
  }
}

/* ========== Information Pages ========== */
/* Moved from information/*.php (11 files) - 2025-12-09 */

.info-page {
  padding: 40px 20px;
  min-height: 60vh;
}

.info-container {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.info-title {
  font-size: 32px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 8px 0;
}

.info-updated {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 32px;
}

.info-content {
  color: #374151;
  line-height: 1.7;
}

.info-section {
  margin-bottom: 32px;
}

.info-section h2 {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 16px 0;
}

.info-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin: 16px 0 12px 0;
}

.info-section p {
  margin: 0 0 16px 0;
}

.info-section ul {
  margin: 0 0 16px 0;
  padding-left: 24px;
}

.info-section li {
  margin-bottom: 8px;
}

.info-section a {
  color: #2e4d12;
  text-decoration: none;
}

.info-section a:hover {
  text-decoration: underline;
}

/* Responsive - Information Pages */
@media (max-width: 768px) {
  .info-container {
    padding: 24px;
  }

  .info-title {
    font-size: 24px;
  }
}

/* ========== Utility Classes ========== */
/* Created 2025-12-09 - Replace inline styles with reusable classes */

/* Typography Utilities */
.text-xs {
  font-size: 12px;
}
.text-sm {
  font-size: 14px;
}
.text-base {
  font-size: 16px;
}
.text-lg {
  font-size: 18px;
}
.text-xl {
  font-size: 20px;
}
.text-2xl {
  font-size: 24px;
}
.text-3xl {
  font-size: 32px;
}
.text-4xl {
  font-size: 36px;
}

.font-light {
  font-weight: 300;
}
.font-normal {
  font-weight: 400;
}
.font-medium {
  font-weight: 500;
}
.font-semibold {
  font-weight: 600;
}
.font-bold {
  font-weight: 700;
}
.font-extrabold {
  font-weight: 800;
}

.text-left {
  text-align: left;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}

.italic {
  font-style: italic;
}
.uppercase {
  text-transform: uppercase;
}
.lowercase {
  text-transform: lowercase;
}
.capitalize {
  text-transform: capitalize;
}

/* Color Utilities */
.text-primary {
  color: var(--text-primary);
}
.text-secondary {
  color: var(--text-secondary);
}
.text-light {
  color: var(--text-light);
}
.text-success {
  color: var(--success);
}
.text-error {
  color: var(--error);
}
.text-warning {
  color: var(--warning);
}
.text-info {
  color: var(--info);
}
.text-white {
  color: #ffffff;
}
.text-black {
  color: #000000;
}
.text-gray {
  color: #6b7280;
}

/* Spacing Utilities - Margin */
.m-0 {
  margin: 0;
}
.m-1 {
  margin: 4px;
}
.m-2 {
  margin: 8px;
}
.m-3 {
  margin: 12px;
}
.m-4 {
  margin: 16px;
}
.m-5 {
  margin: 20px;
}
.m-6 {
  margin: 24px;
}

.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: 4px;
}
.mt-2 {
  margin-top: 8px;
}
.mt-3 {
  margin-top: 12px;
}
.mt-4 {
  margin-top: 16px;
}
.mt-5 {
  margin-top: 20px;
}
.mt-6 {
  margin-top: 24px;
}

.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: 4px;
}
.mb-2 {
  margin-bottom: 8px;
}
.mb-3 {
  margin-bottom: 12px;
}
.mb-4 {
  margin-bottom: 16px;
}
.mb-5 {
  margin-bottom: 20px;
}
.mb-6 {
  margin-bottom: 24px;
}

.ml-0 {
  margin-left: 0;
}
.ml-1 {
  margin-left: 4px;
}
.ml-2 {
  margin-left: 8px;
}
.ml-3 {
  margin-left: 12px;
}
.ml-4 {
  margin-left: 16px;
}
.ml-5 {
  margin-left: 20px;
}
.ml-6 {
  margin-left: 24px;
}

.mr-0 {
  margin-right: 0;
}
.mr-1 {
  margin-right: 4px;
}
.mr-2 {
  margin-right: 8px;
}
.mr-3 {
  margin-right: 12px;
}
.mr-4 {
  margin-right: 16px;
}
.mr-5 {
  margin-right: 20px;
}
.mr-6 {
  margin-right: 24px;
}

/* Spacing Utilities - Padding */
.p-0 {
  padding: 0;
}
.p-1 {
  padding: 4px;
}
.p-2 {
  padding: 8px;
}
.p-3 {
  padding: 12px;
}
.p-4 {
  padding: 16px;
}
.p-5 {
  padding: 20px;
}
.p-6 {
  padding: 24px;
}

.pt-0 {
  padding-top: 0;
}
.pt-1 {
  padding-top: 4px;
}
.pt-2 {
  padding-top: 8px;
}
.pt-3 {
  padding-top: 12px;
}
.pt-4 {
  padding-top: 16px;
}
.pt-5 {
  padding-top: 20px;
}
.pt-6 {
  padding-top: 24px;
}

.pb-0 {
  padding-bottom: 0;
}
.pb-1 {
  padding-bottom: 4px;
}
.pb-2 {
  padding-bottom: 8px;
}
.pb-3 {
  padding-bottom: 12px;
}
.pb-4 {
  padding-bottom: 16px;
}
.pb-5 {
  padding-bottom: 20px;
}
.pb-6 {
  padding-bottom: 24px;
}

.pl-0 {
  padding-left: 0;
}
.pl-1 {
  padding-left: 4px;
}
.pl-2 {
  padding-left: 8px;
}
.pl-3 {
  padding-left: 12px;
}
.pl-4 {
  padding-left: 16px;
}
.pl-5 {
  padding-left: 20px;
}
.pl-6 {
  padding-left: 24px;
}

.pr-0 {
  padding-right: 0;
}
.pr-1 {
  padding-right: 4px;
}
.pr-2 {
  padding-right: 8px;
}
.pr-3 {
  padding-right: 12px;
}
.pr-4 {
  padding-right: 16px;
}
.pr-5 {
  padding-right: 20px;
}
.pr-6 {
  padding-right: 24px;
}

/* Display Utilities */
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.inline {
  display: inline;
}
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.grid {
  display: grid;
}
.hidden {
  display: none;
}

/* Flexbox Utilities */
.flex-row {
  flex-direction: row;
}
.flex-col {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.flex-nowrap {
  flex-wrap: nowrap;
}

.items-start {
  align-items: flex-start;
}
.items-center {
  align-items: center;
}
.items-end {
  align-items: flex-end;
}
.items-stretch {
  align-items: stretch;
}

.justify-start {
  justify-content: flex-start;
}
.justify-center {
  justify-content: center;
}
.justify-end {
  justify-content: flex-end;
}
.justify-between {
  justify-content: space-between;
}
.justify-around {
  justify-content: space-around;
}

.gap-1 {
  gap: 4px;
}
.gap-2 {
  gap: 8px;
}
.gap-3 {
  gap: 12px;
}
.gap-4 {
  gap: 16px;
}
.gap-5 {
  gap: 20px;
}
.gap-6 {
  gap: 24px;
}

/* Sizing Utilities */
.w-full {
  width: 100%;
}
.w-auto {
  width: auto;
}
.h-full {
  height: 100%;
}
.h-auto {
  height: auto;
}

/* Position Utilities */
.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.fixed {
  position: fixed;
}
.sticky {
  position: sticky;
}

/* Border Utilities */
.rounded {
  border-radius: var(--radius-md);
}
.rounded-sm {
  border-radius: var(--radius-sm);
}
.rounded-lg {
  border-radius: var(--radius-lg);
}
.rounded-xl {
  border-radius: var(--radius-xl);
}
.rounded-full {
  border-radius: 9999px;
}

/* Shadow Utilities */
.shadow-sm {
  box-shadow: var(--shadow-sm);
}
.shadow-md {
  box-shadow: var(--shadow-md);
}
.shadow-lg {
  box-shadow: var(--shadow-lg);
}
.shadow-none {
  box-shadow: none;
}

/* Opacity Utilities */
.opacity-0 {
  opacity: 0;
}
.opacity-25 {
  opacity: 0.25;
}
.opacity-50 {
  opacity: 0.5;
}
.opacity-75 {
  opacity: 0.75;
}
.opacity-100 {
  opacity: 1;
}

/* Cursor Utilities */
.cursor-pointer {
  cursor: pointer;
}
.cursor-default {
  cursor: default;
}
.cursor-not-allowed {
  cursor: not-allowed;
}

/* Overflow Utilities */
.overflow-hidden {
  overflow: hidden;
}
.overflow-auto {
  overflow: auto;
}
.overflow-scroll {
  overflow: scroll;
}

/* Visibility Utilities */
.visible {
  visibility: visible;
}
.invisible {
  visibility: hidden;
}

/* ========== Profile Settings Page ========== */
/* Moved from settings/profile.php - 2025-12-09 */
/* 591 lines - Profile sections, file uploads, tabs, schedule grid, password strength, video editor, crop modal */

.profile-section {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.profile-section h2 {
  color: var(--text-primary);
  font-size: 20px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bg-tertiary);
}

/* Coming Soon Banner */
.coming-soon-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 25px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
  border-radius: 12px;
  margin-bottom: 25px;
}

.coming-soon-icon {
  font-size: 40px;
  line-height: 1;
}

.coming-soon-content h3 {
  margin: 0 0 5px 0;
  font-size: 18px;
  font-weight: 600;
  color: #92400e;
}

.coming-soon-content p {
  margin: 0;
  font-size: 14px;
  color: #a16207;
}

/* Disabled Form Styling */
.form-disabled {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.form-disabled::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  cursor: not-allowed;
}

.form-disabled select:disabled,
.form-disabled input:disabled,
.form-disabled textarea:disabled,
.form-disabled button:disabled {
  background-color: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}

/* Dark mode support for coming soon banner */
body.dark-mode .coming-soon-banner {
  background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
  border-color: #b45309;
}

body.dark-mode .coming-soon-content h3 {
  color: #fef3c7;
}

body.dark-mode .coming-soon-content p {
  color: #fde68a;
}

body.dark-mode .form-disabled select:disabled,
body.dark-mode .form-disabled input:disabled,
body.dark-mode .form-disabled textarea:disabled {
  background-color: #374151;
  color: #6b7280;
}

.btn-danger:hover:not(:disabled) {
  background: #c0392b;
}

.video-delete-btn:hover {
  background: rgba(185, 28, 28, 1) !important;
  transform: scale(1.1);
}

.profile-preview {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.preview-item {
  flex: 1;
  min-width: 250px;
}

.preview-label {
  font-size: 14px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  font-weight: 600;
}

.preview-image {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.avatar-preview {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
}

.cover-preview {
  width: 100%;
  max-width: 500px;
  height: auto;
  aspect-ratio: 4/1;
  object-fit: cover;
}

.no-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--bg-tertiary) 0%,
    var(--bg-secondary) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 48px;
}

.upload-form {
  margin-bottom: 20px;
}

.file-input-wrapper {
  position: relative;
  display: inline-block;
  cursor: pointer;
  width: 100%;
}

.file-input-wrapper input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-input-label {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  background: var(--bg-secondary);
  border: 2px dashed var(--bg-tertiary);
  border-radius: var(--radius-md);
  transition: all 0.3s;
}

.file-input-label:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary-color);
}

.file-input-label.has-file {
  background: #e7f3ff;
  border-color: var(--primary-color);
  border-style: solid;
}

.file-icon {
  font-size: 24px;
  margin-right: 12px;
  color: var(--primary-color);
}

.file-text {
  flex: 1;
}

.file-text-main {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.file-text-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

.button-group {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.stat-card {
  background: var(--bg-secondary);
  padding: 15px;
  border-radius: var(--radius-md);
  text-align: center;
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.loading {
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
}

.alert {
  padding: 15px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 14px;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.form-fieldset {
  border: 1px solid var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 25px;
}

.form-legend {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  padding: 0 10px;
}

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

.form-row .form-group {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .profile-preview {
    flex-direction: column;
  }

  .preview-item {
    min-width: 100%;
  }

  .button-group .btn {
    flex: 1 1 auto;
    min-width: 140px;
  }

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

/* Checkbox labels */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 15px;
  color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.section-description {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 14px;
}

/* Tab Navigation */
.tabs-container {
  margin-bottom: 30px;
}

.tabs-nav {
  display: flex;
  gap: 5px;
  border-bottom: 2px solid var(--bg-tertiary);
  overflow-x: auto;
}

.tab-btn {
  padding: 12px 24px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--primary-color);
  background: var(--bg-secondary);
}

.tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.tab-content {
  display: none;
}

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

@media (max-width: 768px) {
  .tabs-nav {
    overflow-x: scroll;
  }

  .tab-btn {
    padding: 10px 16px;
    font-size: 14px;
  }
}

/* Schedule Grid Styles */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  user-select: none;
}

.schedule-table th {
  background: #f8f9fa;
  padding: 8px 4px;
  text-align: center;
  font-weight: 600;
  border: 1px solid #dee2e6;
  font-size: 10px;
}

.schedule-table .day-label {
  background: #f8f9fa;
  font-weight: 600;
  text-align: center;
  padding: 8px;
  border: 1px solid #dee2e6;
}

.schedule-cell {
  width: 20px;
  height: 30px;
  border: 1px solid #dee2e6;
  cursor: pointer;
  background: #ffffff;
  transition: all 0.2s;
  text-align: center;
}

.schedule-cell:hover {
  background: #e9ecef;
}

.schedule-cell.active {
  background: #28a745;
  border-color: #28a745;
}

.schedule-cell.active:hover {
  background: #218838;
}

/* Password Strength Indicator */
.password-strength {
  margin-top: 8px;
}

.password-strength-bar {
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  overflow: hidden;
  transition: all 0.3s;
}

.password-strength-bar::after {
  content: "";
  display: block;
  height: 100%;
  width: 0;
  transition: all 0.3s;
}

.password-strength-bar.weak::after {
  width: 33%;
  background: #e74c3c;
}

.password-strength-bar.medium::after {
  width: 66%;
  background: #f39c12;
}

.password-strength-bar.strong::after {
  width: 100%;
  background: #27ae60;
}

.password-strength-text {
  font-size: 12px;
  margin-top: 4px;
  color: var(--text-secondary);
}

.password-strength-text.weak {
  color: #e74c3c;
}

.password-strength-text.medium {
  color: #f39c12;
}

.password-strength-text.strong {
  color: #27ae60;
}
</style > <style > .video-editor-modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-editor-tabs {
  white-space: nowrap;
}

.video-editor-tab {
  padding: 12px 20px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  transition: all 0.2s;
}

.video-editor-tab:hover {
  color: #1f2937;
  background: rgba(0, 0, 0, 0.05);
}

.video-editor-tab.active {
  color: var(--primary-color, #274410);
  border-bottom-color: var(--primary-color, #274410);
  background: white;
}

/* Video player - make video fill container like poster */
.video-editor-modal-wrapper .video-js .vjs-tech {
  object-fit: cover !important;
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
}

.editor-tab-content {
  display: none;
}

.editor-tab-content.active {
  display: block;
}
</style > <style > .crop-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crop-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
}

.crop-modal-content {
  position: relative;
  background: white;
  border-radius: 16px;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.crop-modal-header {
  padding: 20px 30px;
  border-bottom: 1px solid var(--bg-tertiary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.crop-modal-header h3 {
  margin: 0;
  font-size: 24px;
  color: var(--text-primary);
}

.crop-modal-close {
  background: none;
  border: none;
  font-size: 36px;
  line-height: 1;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crop-modal-close:hover {
  color: var(--text-primary);
}

.crop-modal-body {
  padding: 30px;
}

.crop-instructions {
  margin-bottom: 20px;
  padding: 15px;
  background: #e7f3ff;
  border-radius: 8px;
  color: var(--text-primary);
}

.crop-canvas-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 20px;
}

#cropCanvas {
  max-width: 100%;
  height: auto;
  cursor: crosshair;
  border-radius: 4px;
}

.crop-preview-section {
  text-align: center;
}

.crop-preview-label {
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

#cropPreviewCanvas {
  border: 2px solid var(--bg-tertiary);
  border-radius: 8px;
  background: white;
}

.crop-modal-footer {
  padding: 20px 30px;
  border-top: 1px solid var(--bg-tertiary);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ========== Favorites Page ========== */
/* Moved from settings/favorites.php - 2025-12-09 */
/* 520 lines - Favorites grid, video cards, interaction buttons */

.favorites-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.favorites-header {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: white;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.favorites-header h1 {
  font-size: 2em;
  margin-bottom: 10px;
}

.favorites-header p {
  opacity: 0.9;
  font-size: 1.1em;
}

.favorites-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-button {
  padding: 12px 24px;
  border: 2px solid var(--border-color);
  background: white;
  color: var(--text-primary);
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-button:hover {
  border-color: var(--primary-color);
  background: var(--bg-secondary);
}

.tab-button.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.tab-count {
  background: rgba(0, 0, 0, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}

.tab-button.active .tab-count {
  background: rgba(255, 255, 255, 0.2);
}

.favorites-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  min-height: 400px;
}

.favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

/* For videos, use 4 columns (4x6 = 24 videos) */
.favorites-grid.videos-grid {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1200px) {
  .favorites-grid.videos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .favorites-grid.videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .favorites-grid.videos-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* For galleries, use 4 columns (4x6 = 24 galleries) */
.favorites-grid.galleries-grid {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1200px) {
  .favorites-grid.galleries-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .favorites-grid.galleries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .favorites-grid.galleries-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* For models, use 5 columns (5x5 = 25 models) */
.favorites-grid.models-grid {
  grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1400px) {
  .favorites-grid.models-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1024px) {
  .favorites-grid.models-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .favorites-grid.models-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .favorites-grid.models-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* For cam performers, use 4 columns (4x6 = 24 performers) */
.favorites-grid.cams-grid {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1200px) {
  .favorites-grid.cams-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .favorites-grid.cams-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .favorites-grid.cams-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

.favorite-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.favorite-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.favorite-thumbnail {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--bg-secondary);
}

.favorite-info {
  padding: 15px;
}

.favorite-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.favorite-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.favorite-date {
  display: flex;
  align-items: center;
  gap: 5px;
}

.favorite-actions {
  display: flex;
  gap: 8px;
}

.btn-icon {
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

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

.btn-remove {
  background: #fee;
  color: #c00;
}

.btn-remove:hover {
  background: #c00;
  color: white;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.3;
}

.empty-title {
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.empty-text {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.loading {
  text-align: center;
  padding: 40px;
  font-size: 18px;
  color: var(--text-secondary);
}

.error {
  background: #fee;
  color: #c00;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.cam-performer-card .favorite-thumbnail {
  aspect-ratio: 3/4;
}

/* Cam Performer Card Styling - Match cam_performers.php */
.cam-performer-card {
  position: relative;
}

.cam-performer-card .card-image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  background: #000;
  overflow: hidden;
}

.cam-performer-card .favorite-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Favorite button - top left */
.favorite-btn-cam {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.favorite-btn-cam:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.favorite-btn-cam.active {
  background: #e74c3c;
}

.favorite-btn-cam .heart-icon {
  font-size: 16px;
  line-height: 1;
  color: #e74c3c;
}

.favorite-btn-cam.active .heart-icon {
  color: white;
}

/* Favorite button for models - top left */
.favorite-btn-model {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.favorite-btn-model:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.favorite-btn-model.active {
  background: #e74c3c;
}

.favorite-btn-model .heart-icon {
  font-size: 16px;
  line-height: 1;
  color: #e74c3c;
}

.favorite-btn-model.active .heart-icon {
  color: white;
}

/* LIVE badge - top right */
.badge-live {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(39, 174, 96, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: bold;
  z-index: 2;
}

/* OFFLINE badge - top right */
.badge-offline {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #808080;
  color: #000;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: bold;
  z-index: 2;
}

/* HD badge - bottom left */
.badge-hd {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: linear-gradient(135deg, #274510 0%, #597f20 100%);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.7em;
  z-index: 2;
}

/* CAM badge - for cam models */
.badge-cam {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.7em;
  z-index: 2;
}

/* Viewers badge - bottom right */
.badge-viewers {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(52, 73, 94, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.7em;
  font-weight: 600;
  z-index: 2;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.pagination-btn {
  padding: 10px 20px;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  color: var(--text-primary);
}

.pagination-btn:hover:not(:disabled) {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: white;
}

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

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

/* ========== Playlists Page ========== */
/* Moved from settings/playlists.php - 2025-12-09 */
/* 353 lines - Playlist management, video grids, playlist cards */

.playlists-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.playlists-header {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: white;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.playlists-header h1 {
  font-size: 2em;
  margin-bottom: 10px;
}

.playlists-header p {
  opacity: 0.9;
  font-size: 1.1em;
}

.btn-create {
  background: white;
  color: var(--primary-color);
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-create:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.playlists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.playlist-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.playlist-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.playlist-thumbnail {
  width: 100%;
  height: 180px;
  min-height: 180px;
  max-height: 180px;
  background: linear-gradient(135deg, #2c4a12 0%, #577c1f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 48px;
  position: relative;
  overflow: hidden;
}

.playlist-empty-icon {
  font-size: 64px;
  opacity: 0.8;
  position: relative;
  z-index: 1;
}

.playlist-thumb-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: grid;
  gap: 2px;
  background: #000;
  font-size: 0;
  line-height: 0;
}

.playlist-thumb-grid.grid-2 {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 100%;
}

.playlist-thumb-grid.grid-4 {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.playlist-thumb-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 0;
}

.playlist-info {
  padding: 20px;
}

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

.playlist-description {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.playlist-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.playlist-actions {
  display: flex;
  gap: 8px;
}

.btn-icon {
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

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

.btn-delete {
  background: #fee;
  color: #c00;
}

.btn-delete:hover {
  background: #c00;
  color: white;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.3;
}

.empty-title {
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.empty-text {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.loading {
  text-align: center;
  padding: 40px;
  font-size: 18px;
  color: var(--text-secondary);
}

.error {
  background: #fee;
  color: #c00;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  color: #333;
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: #47691a;
  box-shadow: 0 0 0 3px rgba(49, 80, 20, 0.1);
}

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

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* REMOVED - Duplicate .btn from CREATOR PAGES SECTION
       Correct .btn styles are at lines 585-655
       - 2025-12-10 */

/* REMOVED - Duplicate .btn-primary from CREATOR PAGES SECTION
       Correct .btn-primary styles are at lines 602-610
       - 2025-12-10 */

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

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

.visibility-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.badge-public {
  background: #d4edda;
  color: #155724;
}

.badge-private {
  background: #f8d7da;
  color: #721c24;
}

/* ========================================================================== */
/* ======================== CREATOR PAGES SECTION =========================== */
/* ========================================================================== */
/* Moved from settings/creator_*.php and settings/my_sub*.php - 2025-12-09 */
/* Total: 5,731 lines - Complete creator monetization system CSS */
/* Files: creator_profile, earnings, settings, packages, orders, subscribers */
/* ========================================================================== */

/* --- Creator Profile Page (2,637 lines) --- */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

/* Navigation */
.navbar {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #213d0f;
  text-decoration: none;
}

.navbar .nav-links a {
  margin-left: 20px;
  text-decoration: none;
  color: #666;
  transition: color 0.3s;
}

.navbar .nav-links a:hover {
  color: #213d0f;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.navbar-right .language-nav-dropdown .nav-link {
  color: #666;
}

.navbar-right .language-nav-dropdown .nav-link:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* REMOVED - Duplicate user dropdown CSS from creator pages section
           These global selectors were affecting all pages, not just creator pages
           The correct styles already exist at lines 130-175
           This is an example of page-specific CSS with unscoped selectors
           - 2025-12-10 */

/* REMOVED - Duplicate CSS that was overriding the correct dropdown behavior
           The correct CSS is at lines 177-199 which uses .menu-open class
           These rules were using .show class which JavaScript doesn't add
           - 2025-12-10 */

/* REMOVED - More duplicate dropdown CSS with dark theme colors
           These were overriding the correct styles at lines 201-242
           which use proper CSS variables and theme colors
           - 2025-12-10 */

/* Profile Header */
.profile-header {
  position: relative;
  background: #fff;
  margin-bottom: 30px;
}

.cover-image {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #213d0f 0%, #2d5415 100%);
  background-size: cover;
  background-position: center;
  position: relative;
}

.cover-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.5));
}

.profile-info {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  margin-top: -80px;
}

.avatar-container {
  position: relative;
  display: inline-block;
}

.avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 5px solid #fff;
  background: #e0e0e0;
  object-fit: cover;
  display: block;
}

.verified-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: #1da1f2;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
}

.profile-details {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

.profile-text h1 {
  font-size: 2rem;
  margin-bottom: 5px;
}

.profile-text .username {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.profile-text .bio {
  color: #444;
  line-height: 1.6;
  margin-bottom: 15px;
}

.profile-stats {
  display: flex;
  gap: 30px;
  margin-top: 15px;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #213d0f;
}

.stat-label {
  color: #666;
  font-size: 0.9rem;
}

.profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* REMOVED - Duplicate .btn with inline-flex from CREATOR PAGES SECTION
           Correct .btn styles are at lines 585-655
           - 2025-12-10 */

/* REMOVED - Duplicate .btn-primary with hardcoded colors from CREATOR PAGES
           Correct .btn-primary styles are at lines 602-610
           - 2025-12-10 */

.btn-secondary {
  background: #fff;
  color: #213d0f;
  border: 2px solid #213d0f;
}

.btn-secondary:hover {
  background: #f5f5f5;
}

.btn-live {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: #fff;
  border: none;
  position: relative;
  overflow: hidden;
  animation: pulse-live 2s ease-in-out infinite;
}

.btn-live:hover {
  background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
}

.btn-live::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 10px;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: blink 1s ease-in-out infinite;
}

@keyframes pulse-live {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
  }
}

.btn-packages {
  background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
  color: #fff;
  border: none;
  position: relative;
  overflow: hidden;
  animation: pulse-packages 2s ease-in-out infinite;
}

.btn-packages:hover {
  background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
}

.btn-orders {
  background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
  color: #c0392b;
  border: none;
  font-weight: 600;
}

.btn-orders:hover {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  color: #a93226;
}

@keyframes pulse-packages {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(39, 174, 96, 0);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.btn i {
  font-size: 1.1em;
}

/* Main Content */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 30px;
}

/* Post Composer */
.post-composer {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.composer-header {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.composer-input {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  margin-bottom: 15px;
}

.composer-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.composer-icons {
  display: flex;
  gap: 15px;
}

.composer-icon {
  color: #666;
  font-size: 1.3rem;
  cursor: pointer;
  transition: color 0.3s;
}

.composer-icon:hover {
  color: #213d0f;
}

.lock-type-select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
}

/* Post Filter Bar */
.post-filter-bar {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 15px 20px;
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-btn {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-btn:hover {
  background: #e8e8e8;
  border-color: #ccc;
  color: #333;
}

.filter-btn.active {
  background: linear-gradient(135deg, #274510 0%, #597f20 100%);
  border-color: #274410;
  color: #fff;
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.filter-btn i {
  font-size: 1rem;
}

/* Poll Composer */
.poll-composer {
  margin-top: 15px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.poll-composer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
}

.poll-composer-header h4 {
  margin: 0;
  color: #333;
  font-size: 1rem;
}

.poll-composer-header h4 i {
  margin-right: 8px;
  color: #274410;
}

.poll-close-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #999;
  cursor: pointer;
  padding: 5px;
}

.poll-close-btn:hover {
  color: #666;
}

.poll-question-group,
.poll-options-group,
.poll-ends-group {
  margin-bottom: 15px;
}

.poll-question-group label,
.poll-options-group label,
.poll-ends-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
  font-size: 0.9rem;
}

.poll-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.poll-input:focus {
  outline: none;
  border-color: #274410;
}

.poll-option-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.poll-option-input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
}

.poll-option-input:focus {
  outline: none;
  border-color: #274410;
}

.poll-option-remove {
  background: #fee;
  border: 1px solid #fcc;
  color: #c00;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
}

.poll-option-remove:hover {
  background: #fdd;
}

.poll-option-hint {
  display: block;
  margin-top: 8px;
  color: #888;
  font-size: 0.85rem;
}

.poll-ends-group small {
  display: block;
  margin-top: 5px;
  color: #888;
  font-size: 0.85rem;
}

#addPollOptionBtn {
  margin-top: 5px;
}

/* Poll Card Styles */
.poll-container {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  margin-top: 10px;
}

.poll-question {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

.poll-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.poll-option {
  position: relative;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px 15px;
  cursor: pointer;
  transition: all 0.2s;
  overflow: hidden;
}

.poll-option:hover:not(.voted):not(.poll-ended) {
  border-color: #274410;
  background: #f5f7ff;
}

.poll-option.selected {
  border-color: #274410;
  background: #f0f3ff;
}

.poll-option.voted {
  cursor: default;
}

.poll-option.user-voted {
  border-color: #274410;
  background: #f0f3ff;
}

.poll-option-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(102, 126, 234, 0.15) 0%,
    rgba(118, 75, 162, 0.1) 100%
  );
  transition: width 0.5s ease;
  z-index: 0;
}

.poll-option-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.poll-option-text {
  font-size: 0.95rem;
  color: #333;
}

.poll-option-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #666;
}

.poll-option-percentage {
  font-weight: 600;
  color: #274410;
}

.poll-option-votes {
  color: #888;
}

.poll-option-check {
  color: #274410;
  font-size: 1rem;
}

.poll-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #e0e0e0;
  font-size: 0.85rem;
  color: #888;
}

.poll-total-votes {
  display: flex;
  align-items: center;
  gap: 5px;
}

.poll-status {
  display: flex;
  align-items: center;
  gap: 5px;
}

.poll-status.ended {
  color: #c00;
}

.poll-status.active {
  color: #28a745;
}

/* Post Feed */
.posts-feed {
  display: grid;
  gap: 20px;
}

.post-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s;
}

.post-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.post-header {
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.post-header-actions {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 8px;
}

.post-delete-btn,
.post-pin-btn,
.post-edit-btn {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s;
  font-size: 18px;
}

.post-delete-btn:hover {
  background: #fee;
  color: #dc2626;
}

.post-pin-btn:hover {
  background: #fff4e6;
  color: #f59e0b;
}

.post-edit-btn:hover {
  background: #e0f2fe;
  color: #0284c7;
}

.post-pinned-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: 12px;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

.post-pinned-badge i {
  font-size: 0.8rem;
}

.post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e0e0;
  object-fit: cover;
}

.post-author-info h3 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.post-timestamp {
  color: #666;
  font-size: 0.85rem;
}

.post-content {
  padding: 0 15px 15px;
}

.post-text {
  margin-bottom: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.post-media {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Post Visibility Badges */
.post-visibility-badge {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.post-visibility-badge i {
  font-size: 10px;
}

.post-visibility-badge.badge-free {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: #fff;
}

.post-visibility-badge.badge-subscribers {
  background: linear-gradient(135deg, #6f42c1, #e83e8c);
  color: #fff;
}

.post-visibility-badge.badge-ppv {
  background: linear-gradient(135deg, #fd7e14, #ffc107);
  color: #000;
}

.post-image {
  width: 100%;
  display: block;
  cursor: pointer;
}

.post-locked {
  position: relative;
}

.post-locked .post-image {
  filter: blur(20px);
}

.unlock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 20px;
}

.unlock-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.unlock-price {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.btn-unlock {
  background: #213d0f;
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
}

.btn-unlock:hover {
  background: #2d5415;
}

.post-actions {
  padding: 15px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  gap: 20px;
}

.action-btn {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s;
}

.action-btn:hover {
  color: #213d0f;
}

.action-btn.liked {
  color: #e74c3c;
}

.action-btn .comment-text {
  margin-left: 6px;
  font-size: 0.9rem;
}

/* Comments Section */
.comments-section {
  border-top: 1px solid #f0f0f0;
  padding: 15px;
  display: none;
}

.comments-section.show {
  display: block;
}

.comment {
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
}

.comment:last-child {
  border-bottom: none;
}

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

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e0e0e0;
}

.comment-author {
  font-weight: 600;
  font-size: 0.9rem;
}

.comment-time {
  color: #999;
  font-size: 0.8rem;
}

.comment-actions {
  display: flex;
  gap: 15px;
  margin-top: 8px;
}

.comment-action-btn {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.comment-action-btn:hover {
  background: #f0f0f0;
  color: #333;
}

.comment-action-btn i {
  margin-right: 4px;
}

.comment-delete-btn:hover {
  background: #fee;
  color: #dc2626;
}

.comment-pin-btn:hover {
  background: #fff4e6;
  color: #f59e0b;
}

.comment-pinned-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fef3c7;
  color: #92400e;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 8px;
}

.comment-pinned-indicator i {
  font-size: 0.7rem;
}

.comment-text {
  padding-left: 42px;
  font-size: 0.9rem;
  color: #444;
}

.comment-input-wrapper {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.comment-input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9rem;
}

.comment-gif-btn {
  background: #9b59b6;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
  flex-shrink: 0;
}

.comment-gif-btn:hover {
  background: #8e44ad;
}

/* GIF Picker Modal for Comments */
.gif-picker-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.gif-picker-modal.show {
  display: flex;
}

.gif-picker-content {
  background: #1a1a1a;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  color: #fff;
}

.gif-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #333;
}

.gif-picker-header h3 {
  margin: 0;
  color: #fff;
}

.gif-picker-close {
  background: none;
  border: none;
  color: #999;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
}

.gif-picker-close:hover {
  color: #fff;
}

.gif-picker-body {
  padding: 20px;
  overflow-y: auto;
}

.gif-search-input {
  width: 100%;
  padding: 12px 15px;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  margin-bottom: 15px;
}

.gif-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
}

.gif-item {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.gif-item:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(155, 89, 182, 0.5);
}

.gif-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Sidebar */
.content-grid .sidebar {
  position: sticky;
  top: 90px;
  align-self: start;
  background: transparent; /* Override dark sidebar from video player */
  border-left: none; /* Remove dark left border from video player sidebar */
}

.sidebar-card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.sidebar-card h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #213d0f;
}

.price-info {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 15px;
}

.price-label {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.price-value {
  font-size: 1.8rem;
  font-weight: bold;
  color: #213d0f;
}

.token-symbol {
  font-size: 1rem;
  color: #666;
}

.about-section p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 10px;
}

.profile-tag {
  display: inline-block;
  background: #274410;
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  margin-right: 6px;
  margin-bottom: 6px;
}

/* Loading & Empty States */
.loading {
  text-align: center;
  padding: 40px;
  color: #666;
}

.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #213d0f;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.empty-state i {
  font-size: 4rem;
  color: #ddd;
  margin-bottom: 20px;
}

.load-more {
  text-align: center;
  margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .cover-image {
    height: 200px;
  }

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

  .profile-info {
    margin-top: -60px;
  }

  .profile-text h1 {
    font-size: 1.5rem;
  }

  .profile-top {
    flex-direction: column;
  }

  .profile-stats {
    gap: 20px;
  }

  .stat-value {
    font-size: 1.2rem;
  }
}

/* Alerts */
/* Toast Notification - Fixed Center Position */
.alert {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  padding: 20px 30px;
  border-radius: 12px;
  min-width: 300px;
  max-width: 500px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.alert.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

/* Alert Backdrop */
.alert::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}

.alert.show::before {
  opacity: 1;
}

.alert-success {
  background: #10b981;
  color: white;
  border: 2px solid #059669;
}

.alert-error {
  background: #ef4444;
  color: white;
  border: 2px solid #dc2626;
}

.alert-info {
  background: #2e4d12;
  color: white;
  border: 2px solid #2563eb;
}

/* Add icon before message */
.alert-success::after {
  content: "✓";
  display: inline-block;
  margin-left: 10px;
  font-size: 20px;
  font-weight: bold;
}

.alert-error::after {
  content: "✕";
  display: inline-block;
  margin-left: 10px;
  font-size: 20px;
  font-weight: bold;
}

.alert-info::after {
  content: "ℹ";
  display: inline-block;
  margin-left: 10px;
  font-size: 20px;
  font-weight: bold;
}

/* Video Post Enhancements */
.post-video-container {
  position: relative;
  cursor: pointer;
  background: #000;
  aspect-ratio: 16/9;
}

.post-video-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(255, 0, 0, 0.9);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  width: auto; /* Only as wide as content needs */
  max-width: max-content; /* Prevent stretching */
}

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

.post-video-container:hover .video-play-overlay {
  background: rgba(33, 61, 15, 0.95);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-play-overlay i {
  color: white;
  font-size: 32px;
  margin-left: 5px;
}

.video-duration-badge {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
}

/* Processing Placeholder Styles */
.media-processing-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.media-processing-placeholder::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.processing-icon {
  font-size: 48px;
  color: #9ca3af;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.processing-text {
  font-size: 16px;
  font-weight: 600;
  color: #6b7280;
  text-align: center;
  z-index: 1;
}

.processing-subtext {
  font-size: 13px;
  color: #9ca3af;
  text-align: center;
  z-index: 1;
}

/* Video Editor Modal (from settings/profile.php) */
.video-editor-modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.video-editor-tabs {
  display: flex;
  gap: 5px;
  overflow-x: auto;
}

.video-editor-tab {
  background: none;
  border: none;
  padding: 14px 20px;
  cursor: pointer;
  color: #6b7280;
  font-weight: 600;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
}

.video-editor-tab:hover {
  background: #e5e7eb;
  color: #1f2937;
}

.video-editor-tab.active {
  color: #213d0f;
  border-bottom-color: #213d0f;
  background: white;
}

/* Loading spinner */
.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #213d0f;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
  flex-shrink: 0;
  display: block;
  box-sizing: border-box;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Thumbnails gallery grid */
.thumbnails-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.thumbnail-item {
  position: relative;
  border: 3px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
}

.thumbnail-item:hover {
  border-color: #567b1e;
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 1200px) {
  .thumbnails-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .video-modal-container {
    margin: 20px auto;
    padding: 10px;
  }

  .video-js.modal-player {
    height: 50vh;
  }

  .thumbnails-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

/* ==========================================
           IMAGE GALLERY MODAL
           ========================================== */
.image-gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1;
}

.gallery-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  z-index: 2;
}

/* Gallery Header */
.gallery-header {
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.gallery-title {
  color: white;
  font-size: 18px;
  font-weight: 600;
}

.gallery-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.gallery-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Main Image Display */
.gallery-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.gallery-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: grab;
}

.gallery-image-container.zoomed {
  cursor: grab;
}

.gallery-image-container.panning {
  cursor: grabbing;
}

#galleryMainImage {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  -webkit-user-drag: none;
}

/* Navigation Arrows */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border: none;
  color: white;
  font-size: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.gallery-nav-left {
  left: 30px;
}

.gallery-nav-right {
  right: 30px;
}

/* Caption Area */
.gallery-caption-area {
  padding: 15px 30px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.caption-display {
  color: white;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  max-width: 800px;
}

.caption-edit {
  width: 100%;
  max-width: 800px;
}

.caption-edit textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 15px;
  resize: vertical;
  min-height: 80px;
}

.caption-edit textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.caption-edit-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  justify-content: flex-end;
}

/* Thumbnail Strip */
.gallery-thumbnails {
  padding: 15px 30px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.gallery-thumbnails::-webkit-scrollbar {
  height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
  background: transparent;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.gallery-thumbnail {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  border: 3px solid transparent;
  transition: all 0.2s;
}

.gallery-thumbnail:hover {
  transform: scale(1.05);
}

.gallery-thumbnail.active {
  border-color: #213d0f;
  box-shadow: 0 0 0 2px rgba(33, 61, 15, 0.3);
}

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

.gallery-thumbnail .main-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #213d0f;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
}

/* Reorder mode */
.gallery-thumbnail.reorder-mode {
  cursor: move;
}

.gallery-thumbnail.dragging {
  opacity: 0.5;
}

/* Management Controls */
.gallery-controls {
  padding: 15px 30px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.gallery-controls .btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-controls .btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.gallery-controls .btn-danger {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
}

.gallery-controls .btn-danger:hover {
  background: rgba(239, 68, 68, 0.3);
}

.gallery-controls .btn-reorder.active {
  background: #213d0f;
  border-color: #213d0f;
}

.gallery-controls .btn-mosaic {
  background: rgba(147, 51, 234, 0.2);
  border-color: rgba(147, 51, 234, 0.5);
}

.gallery-controls .btn-mosaic:hover {
  background: rgba(147, 51, 234, 0.3);
}

.gallery-controls .btn-mosaic.btn-warning {
  background: rgba(245, 158, 11, 0.4);
  border-color: rgba(245, 158, 11, 0.8);
}

.gallery-controls .btn-mosaic.btn-warning:hover {
  background: rgba(245, 158, 11, 0.5);
}

/* Zoom Controls */
.gallery-zoom-controls {
  position: absolute;
  bottom: 200px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 20;
}

.gallery-zoom-controls .btn {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-zoom-controls .btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Image Count Badge on Posts */
/* Mosaic toggle button on post card images */
.post-mosaic-toggle {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(147, 51, 234, 0.85);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background 0.2s;
}

.post-mosaic-toggle:hover {
  background: rgba(147, 51, 234, 1);
}

.post-mosaic-toggle.mosaic-active {
  background: rgba(245, 158, 11, 0.9);
}

.post-mosaic-toggle.mosaic-active:hover {
  background: rgba(245, 158, 11, 1);
}

.post-image-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .gallery-header {
    padding: 15px 20px;
  }

  .gallery-title {
    font-size: 16px;
  }

  .gallery-nav {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .gallery-nav-left {
    left: 15px;
  }

  .gallery-nav-right {
    right: 15px;
  }

  .gallery-caption-area {
    padding: 12px 20px;
  }

  .caption-display {
    font-size: 14px;
  }

  .gallery-thumbnails {
    padding: 12px 20px;
  }

  .gallery-thumbnail {
    width: 60px;
    height: 60px;
  }

  .gallery-controls {
    padding: 12px 20px;
  }

  .gallery-zoom-controls {
    bottom: 180px;
    right: 15px;
  }

  .gallery-zoom-controls .btn {
    width: 40px;
    height: 40px;
  }
}

/* ===================================
           MERCHANDISE MODAL STYLES
           =================================== */
.merchandise-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.merchandise-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.merchandise-container {
  position: relative;
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 10001;
}

.merchandise-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.merchandise-header h3 {
  margin: 0;
  font-size: 1.4rem;
  color: #213d0f;
}

.merchandise-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #666;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;
}

.merchandise-close:hover {
  background: #f0f0f0;
  color: #213d0f;
}

.merchandise-body {
  padding: 20px;
}

.merchandise-body .form-group {
  margin-bottom: 20px;
}

.merchandise-body label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.merchandise-body .form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.merchandise-body .form-control:focus {
  outline: none;
  border-color: #213d0f;
}

.merchandise-body small {
  display: block;
  margin-top: 5px;
  color: #666;
  font-size: 0.85rem;
}

.image-upload-area,
.file-upload-area {
  border: 2px dashed #ddd;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.image-upload-area:hover,
.file-upload-area:hover {
  border-color: #213d0f;
  background: #f9f9f9;
}

.upload-placeholder i,
.file-upload-area i {
  font-size: 2.5rem;
  color: #999;
  margin-bottom: 10px;
}

.upload-placeholder p,
.file-upload-area p {
  margin: 10px 0;
  color: #666;
}

.merchandise-footer {
  padding: 20px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ===================================
           EDIT POST MODAL STYLES
           =================================== */
.edit-post-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edit-post-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.edit-post-container {
  position: relative;
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 10001;
}

.edit-post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.edit-post-header h3 {
  margin: 0;
  font-size: 1.4rem;
  color: #213d0f;
}

.edit-post-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #666;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;
}

.edit-post-close:hover {
  background: #f0f0f0;
  color: #213d0f;
}

.edit-post-body {
  padding: 20px;
}

.edit-post-body .form-group {
  margin-bottom: 20px;
}

.edit-post-body .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.edit-post-body .form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.edit-post-body .form-control:focus {
  outline: none;
  border-color: #213d0f;
}

.edit-post-body textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.edit-post-footer {
  padding: 20px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.edit-post-price-row {
  display: flex;
  gap: 15px;
  align-items: flex-end;
}

.edit-post-price-row .form-group {
  flex: 1;
}

/* Product Edit Section */
.edit-product-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.edit-product-section h4 {
  margin: 0 0 15px 0;
  color: #213d0f;
  font-size: 1.1rem;
}

.edit-product-image-preview {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.edit-product-change-image {
  display: inline-block;
  padding: 8px 16px;
  background: #f0f0f0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #333;
  transition: background 0.3s;
}

.edit-product-change-image:hover {
  background: #e0e0e0;
}

/* Poll Edit Section */
.edit-poll-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.edit-poll-section h4 {
  margin: 0 0 15px 0;
  color: #213d0f;
  font-size: 1.1rem;
}

.edit-poll-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.edit-poll-option-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.edit-poll-option-row input {
  flex: 1;
}

.edit-poll-option-row .remove-option-btn {
  padding: 8px 12px;
  background: #ff4444;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.edit-poll-option-row .remove-option-btn:hover {
  background: #cc0000;
}

.edit-poll-option-row .remove-option-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.add-poll-option-btn {
  padding: 8px 16px;
  background: #f0f0f0;
  border: 1px dashed #ccc;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #333;
  transition: background 0.3s;
  width: 100%;
}

.add-poll-option-btn:hover {
  background: #e0e0e0;
}

.add-poll-option-btn:disabled {
  background: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}

.edit-poll-locked-notice {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #856404;
}

.edit-poll-locked-notice i {
  margin-right: 8px;
}

/* ===================================
           PRODUCT CARD IN POST (for display)
           =================================== */
.product-card {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 15px;
  background: #f9f9f9;
}

.product-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.product-info {
  padding: 15px;
}

.product-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #213d0f;
}

.product-type-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.product-type-badge.digital {
  background: #4caf50;
  color: white;
}

.product-type-badge.physical {
  background: #2196f3;
  color: white;
}

.product-pricing {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #213d0f;
}

.product-price-original {
  font-size: 1.2rem;
  color: #999;
  text-decoration: line-through;
}

.product-sale-badge {
  background: #ff4444;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.product-stock {
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.stock-available {
  color: #4caf50;
}

.stock-low {
  color: #ff9800;
}

.stock-soldout {
  color: #f44336;
  font-weight: 600;
}

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

.btn-buy {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-buy-primary {
  background: #213d0f;
  color: white;
}

.btn-buy-primary:hover {
  background: #1a3f0c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(33, 61, 15, 0.3);
}

.btn-buy-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .merchandise-container {
    width: 95%;
    max-height: 95vh;
  }

  .product-image {
    height: 200px;
  }
}

/* --- Creator Earnings Dashboard (451 lines) --- */

.earnings-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.page-header {
  margin-bottom: 30px;
}

.page-header h1 {
  font-size: 32px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--primary-color);
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.stat-card.warning {
  border-left-color: #f39c12;
}

.stat-card.success {
  border-left-color: #27ae60;
}

.stat-card.info {
  border-left-color: #587e1f;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  font-weight: 600;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-subtext {
  font-size: 12px;
  color: var(--text-light);
}

.stat-usd {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 2px;
}

/* Content Sections */
.content-section {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--bg-tertiary);
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.section-header-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.platform-fee-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 6px 10px;
  border-radius: 6px;
}

.platform-fee-note::before {
  content: "ℹ️";
  font-size: 12px;
}

/* Chart Container */
.chart-container {
  position: relative;
  height: 300px;
  margin-top: 20px;
}

/* Earnings Breakdown - 5 columns in 1 row */
.breakdown-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 20px;
}

@media (max-width: 1200px) {
  .breakdown-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .breakdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .breakdown-grid {
    grid-template-columns: 1fr;
  }
}

.breakdown-item {
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--bg-tertiary);
}

.breakdown-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 600;
}

.breakdown-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
}

.breakdown-count {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}

.breakdown-usd {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 2px;
}

.breakdown-item.refund-item {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.breakdown-value.refund-value {
  color: #dc2626;
}

/* Earnings Summary Bar */
.earnings-summary-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--bg-tertiary);
  flex-wrap: wrap;
}

.earnings-summary-bar .summary-item {
  text-align: center;
}

.earnings-summary-bar .summary-label {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.earnings-summary-bar .summary-value {
  font-size: 20px;
  font-weight: 700;
}

.earnings-summary-bar .summary-value.positive {
  color: var(--text-primary);
}

.earnings-summary-bar .summary-value.negative {
  color: #dc2626;
}

.earnings-summary-bar .summary-value.net {
  color: #059669;
}

.earnings-summary-bar .summary-operator {
  font-size: 24px;
  font-weight: 300;
  color: var(--text-light);
}

.earnings-summary-bar .summary-usd {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 2px;
}

/* Withdrawal Form */
.withdrawal-form {
  background: var(--bg-secondary);
  padding: 24px;
  border-radius: 8px;
  margin-top: 20px;
}

.withdrawal-form .form-group label {
  color: var(
    --primary-color
  ) !important; /* Dark green - override generic white label rule */
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--bg-tertiary);
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-hint {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}

/* REMOVED - Duplicate .btn-primary with wrong blue hover color (#2980b9)
       Correct .btn-primary styles are at lines 602-610
       - 2025-12-10 */

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 10px 18px;
  border: 1px solid var(--bg-tertiary);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Withdrawal History */
.withdrawal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.withdrawal-table th {
  text-align: left;
  padding: 12px;
  background: var(--bg-secondary);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.withdrawal-table td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--bg-tertiary);
  font-size: 14px;
}

.withdrawal-table tr:hover {
  background: var(--bg-secondary);
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-approved {
  background: #d1ecf1;
  color: #0c5460;
}

.status-completed {
  background: #d4edda;
  color: #155724;
}

.status-rejected {
  background: #f8d7da;
  color: #721c24;
}

/* Loading & Messages */
.loading {
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
}

.alert {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.empty-state svg {
  width: 80px;
  height: 80px;
  opacity: 0.3;
  margin-bottom: 16px;
}

/* --- Creator Earnings History (492 lines) --- */

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

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 16px;
}

.page-header-left h1 {
  font-size: 28px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.page-header-left p {
  color: var(--text-secondary);
  font-size: 14px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.back-link:hover {
  text-decoration: underline;
}

.back-link svg {
  margin-right: 6px;
}

/* Summary Cards */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.summary-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.summary-card.earnings {
  border-top: 3px solid #27ae60;
}

.summary-card.refunds {
  border-top: 3px solid #e74c3c;
}

.summary-card.net {
  border-top: 3px solid #587e1f;
}

.summary-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.summary-value {
  font-size: 26px;
  font-weight: 700;
}

.summary-value.positive {
  color: #27ae60;
}

.summary-value.negative {
  color: #e74c3c;
}

.summary-value.neutral {
  color: var(--text-primary);
}

.summary-usd {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
  font-weight: 500;
}

/* Filters */
.filters-section {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
}

.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}

.filter-group {
  flex: 1;
  min-width: 150px;
}

.filter-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.filter-group select,
.filter-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--bg-tertiary);
  border-radius: 6px;
  font-size: 14px;
  background: white;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.filter-btn {
  background: var(--primary-color);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.filter-btn:hover {
  background: #2980b9;
}

.filter-btn.reset {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--bg-tertiary);
}

.filter-btn.reset:hover {
  background: var(--bg-tertiary);
}

/* Transactions Table */
.transactions-section {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.transactions-header {
  padding: 20px;
  border-bottom: 1px solid var(--bg-tertiary);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.transactions-header-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.transactions-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.platform-fee-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 6px 10px;
  border-radius: 6px;
}

.platform-fee-note::before {
  content: "ℹ️";
  font-size: 14px;
}

.transactions-count {
  font-size: 13px;
  color: var(--text-secondary);
}

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

.transactions-table th {
  text-align: left;
  padding: 14px 16px;
  background: var(--bg-secondary);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: sticky;
  top: 0;
}

.transactions-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--bg-tertiary);
  font-size: 14px;
  color: var(--text-primary);
}

.transactions-table tr:hover {
  background: var(--bg-secondary);
}

.type-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.type-tip {
  background: #fef3c7;
  color: #92400e;
}
.type-subscription {
  background: #dbeafe;
  color: #1e40af;
}
.type-ppv {
  background: #fce7f3;
  color: #9d174d;
}
.type-merchandise {
  background: #e0e7ff;
  color: #3730a3;
}
.type-tip_refund,
.type-subscription_refund,
.type-ppv_refund,
.type-merchandise_refund {
  background: #fee2e2;
  color: #991b1b;
}

.amount-positive {
  color: #27ae60;
  font-weight: 600;
}

.amount-negative {
  color: #e74c3c;
  font-weight: 600;
}

.description-cell {
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination-btn {
  padding: 8px 14px;
  border: 1px solid var(--bg-tertiary);
  background: white;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

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

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

.pagination-info {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 0 16px;
}

/* Loading & Empty States */
.loading-state,
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--bg-tertiary);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
  flex-shrink: 0;
  display: block;
  box-sizing: border-box;
}

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

.empty-state svg {
  width: 60px;
  height: 60px;
  opacity: 0.3;
  margin-bottom: 16px;
}

/* Charts Section */
.charts-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.chart-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--bg-tertiary);
}

.chart-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.chart-period-btns {
  display: flex;
  gap: 4px;
}

.chart-period-btn {
  padding: 6px 12px;
  border: 1px solid var(--bg-tertiary);
  background: white;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.chart-period-btn:hover {
  background: var(--bg-secondary);
}

.chart-period-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.chart-body {
  padding: 20px;
  height: 280px;
  position: relative;
}

.chart-loading,
.chart-no-data {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--text-secondary);
}

/* Tax Season Button */
.tax-season-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #059669;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tax-season-btn:hover {
  background: #047857;
}

.tax-season-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.tax-season-btn svg {
  width: 18px;
  height: 18px;
}

/* Responsive */
@media (max-width: 1024px) {
  .charts-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .transactions-table {
    display: block;
    overflow-x: auto;
  }

  .filter-group {
    min-width: 100%;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .chart-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* --- Creator Settings (217 lines) --- */

.settings-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-header {
  margin-bottom: 30px;
}

.page-header h1 {
  font-size: 32px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 14px;
}

.settings-section {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

.section-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--bg-tertiary);
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.section-description {
  font-size: 13px;
  color: var(--text-secondary);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--bg-tertiary);
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

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

.form-hint {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-group label {
  margin: 0;
  cursor: pointer;
  font-weight: normal;
}

/* REMOVED - Duplicate .btn-primary with wrong blue hover color (#2980b9)
       Correct .btn-primary styles are at lines 602-610
       - 2025-12-10 */

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: 12px;
}

.btn-secondary:hover {
  background: #95a5a6;
}

.alert {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.loading {
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
}

.info-box {
  background: var(--bg-secondary);
  padding: 16px;
  border-radius: 6px;
  border-left: 4px solid var(--primary-color);
  margin-top: 20px;
}

.info-box h4 {
  margin: 0 0 8px 0;
  color: var(--text-primary);
  font-size: 14px;
}

.info-box p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.payout-details {
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: 8px;
  margin-top: 12px;
}

.payout-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

/* --- Creator Packages (471 lines) --- */

.packages-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.page-header {
  margin-bottom: 30px;
}

.page-header h1 {
  font-size: 32px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 14px;
}

.info-banner {
  background: linear-gradient(135deg, #274510 0%, #597f20 100%);
  color: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.info-banner i {
  font-size: 32px;
  opacity: 0.9;
}

.info-banner-content h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
}

.info-banner-content p {
  margin: 0;
  opacity: 0.95;
  font-size: 14px;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--primary-color);
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Packages Grid */
.packages-grid {
  display: grid;
  gap: 24px;
}

.package-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.package-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.package-card.enabled {
  border: 2px solid #28a745;
}

.package-header {
  padding: 24px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 2px solid #dee2e6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.package-card.enabled .package-header {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.package-title {
  flex: 1;
}

.package-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.package-description {
  font-size: 14px;
  color: var(--text-secondary);
}

.package-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-enabled {
  background: #28a745;
  color: white;
}

.badge-disabled {
  background: #6c757d;
  color: white;
}

.package-body {
  padding: 24px;
}

.pricing-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
}

.price-item {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 600;
}

.price-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
}

.price-default {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
}

.duration-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-secondary);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.benefits-section {
  margin-bottom: 20px;
}

.benefits-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  text-transform: uppercase;
}

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

.benefits-list li {
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
  font-size: 14px;
  color: var(--text-secondary);
}

.benefits-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #28a745;
  font-weight: bold;
  font-size: 16px;
}

.custom-pricing {
  background: var(--bg-secondary);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.custom-pricing-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.pricing-notice {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pricing-notice i {
  color: #856404;
  font-size: 18px;
  margin-top: 2px;
}

.pricing-notice-content {
  flex: 1;
}

.pricing-notice-content strong {
  display: block;
  color: #856404;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.pricing-notice-content p {
  color: #856404;
  font-size: 12px;
  margin: 0;
  line-height: 1.5;
}

.pricing-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.input-group {
  display: flex;
  flex-direction: column;
}

.input-group label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  font-weight: 600;
}

.input-group input {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
}

.input-group input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.input-group input:disabled {
  background: #f5f5f5;
  color: var(--primary-color); /* Dark green text - NOT gray */
  cursor: not-allowed;
  opacity: 0.8;
}

.input-group small {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
}

.subscriber-info {
  background: #f8f9fa;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.subscriber-info i {
  font-size: 24px;
  color: var(--primary-color);
}

.subscriber-info-content {
  flex: 1;
}

.subscriber-count {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.subscriber-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.package-actions {
  display: flex;
  gap: 12px;
}

/* REMOVED - Duplicate .btn with flex: 1; that was making ALL buttons full-width
       This was the main cause of "Browse All" buttons spanning full width
       Correct .btn styles are at lines 585-655
       - 2025-12-10 */

.btn-enable {
  background: #28a745;
  color: white;
}

.btn-enable:hover {
  background: #218838;
}

.btn-disable {
  background: #dc3545;
  color: white;
}

.btn-disable:hover {
  background: #c82333;
}

.btn-update {
  background: #27ae60;
  color: white;
}

.btn-update:hover {
  background: #229954;
  color: white;
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

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

/* Loading State */
.loading-container {
  text-align: center;
  padding: 60px 20px;
}

.spinner {
  border: 3px solid var(--bg-tertiary);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
  flex-shrink: 0;
  display: block;
  box-sizing: border-box;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Message Toast */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  animation: slideIn 0.3s ease;
}

.toast-success {
  background: #28a745;
  color: white;
}

.toast-error {
  background: #dc3545;
  color: white;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .pricing-section,
  .pricing-inputs {
    grid-template-columns: 1fr;
  }
}

/* --- Creator Orders (510 lines) --- */

.orders-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.page-header {
  margin-bottom: 30px;
}

.page-header h1 {
  font-size: 32px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--primary-color);
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.stat-card.warning {
  border-left-color: #f39c12;
}

.stat-card.success {
  border-left-color: #27ae60;
}

.stat-card.info {
  border-left-color: #587e1f;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-desc {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 10px 20px;
  border: 1px solid var(--border-color);
  background: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.filter-tab:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.filter-tab.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.filter-tab .count {
  background: rgba(0, 0, 0, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  margin-left: 8px;
}

.filter-tab.active .count {
  background: rgba(255, 255, 255, 0.2);
}

/* Orders Table */
.orders-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

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

.orders-table th,
.orders-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.orders-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.orders-table tr:hover {
  background: #f8f9fa;
}

.orders-table tr:last-child td {
  border-bottom: none;
}

.order-product {
  display: flex;
  align-items: center;
  gap: 12px;
}

.order-product-image {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  background: #f0f0f0;
}

.order-product-name {
  font-weight: 500;
  color: var(--text-primary);
}

.order-buyer {
  color: var(--text-primary);
}

.order-buyer a {
  color: var(--primary-color);
  text-decoration: none;
}

.order-buyer a:hover {
  text-decoration: underline;
}

.order-price {
  font-weight: 600;
  color: var(--text-primary);
}

.order-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.order-status.pending {
  background: #fff3cd;
  color: #856404;
}

.order-status.shipped {
  background: #cce5ff;
  color: #004085;
}

.order-status.delivered {
  background: #d4edda;
  color: #155724;
}

.order-status.completed {
  background: #d4edda;
  color: #155724;
}

.order-status.refunded,
.order-status.cancelled {
  background: #f8d7da;
  color: #721c24;
}

.btn-view-order {
  padding: 8px 16px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s;
}

.btn-view-order:hover {
  background: #4ade80;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.empty-state i {
  font-size: 64px;
  color: var(--border-color);
  margin-bottom: 20px;
}

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

.empty-state p {
  font-size: 14px;
}

/* Loading State */
.loading-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
  flex-shrink: 0;
  display: block;
  box-sizing: border-box;
}

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

/* Order Details Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

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

.modal-content {
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

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

.modal-header h2 {
  font-size: 20px;
  color: var(--text-primary);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
}

.modal-section {
  margin-bottom: 24px;
}

.modal-section:last-child {
  margin-bottom: 0;
}

.modal-section h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.info-item {
  margin-bottom: 8px;
}

.info-item.full-width {
  grid-column: 1 / -1;
}

.info-label {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 2px;
}

.info-value {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

.shipping-address {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  line-height: 1.6;
}

.tracking-input-group {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.tracking-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
}

.tracking-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.btn-modal {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

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

.btn-modal.primary:hover {
  background: #4ade80;
}

.btn-modal.success {
  background: #27ae60;
  color: white;
}

.btn-modal.success:hover {
  background: #219a52;
}

.btn-modal.secondary {
  background: #f0f0f0;
  color: var(--text-primary);
}

.btn-modal.secondary:hover {
  background: #e0e0e0;
}

.btn-modal:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
  .orders-container {
    padding: 15px;
  }

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

  .orders-table {
    display: block;
    overflow-x: auto;
  }

  .filter-tabs {
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .tracking-input-group {
    flex-direction: column;
  }

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

  .btn-modal {
    width: 100%;
  }
}

/* --- My Subscribers (534 lines) --- */

.subscribers-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.page-header {
  margin-bottom: 30px;
}

.page-header h1 {
  font-size: 32px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--primary-color);
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.stat-card:nth-child(2) {
  border-left-color: #f39c12;
}

.stat-card:nth-child(3) {
  border-left-color: #27ae60;
}

.stat-card:nth-child(4) {
  border-left-color: #587e1f;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  font-weight: 600;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-desc {
  font-size: 12px;
  color: var(--text-light);
}

/* Content Section */
.content-section {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

/* Subscribers List */
.subscribers-list {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.subscriber-card {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--bg-tertiary);
  transition: background 0.2s;
}

.subscriber-card:last-child {
  border-bottom: none;
}

.subscriber-card:hover {
  background: var(--bg-secondary);
}

.subscriber-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
  font-weight: 600;
  flex-shrink: 0;
}

.subscriber-info {
  flex: 1;
}

.subscriber-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.subscriber-details {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

.subscriber-detail {
  display: flex;
  align-items: center;
  gap: 6px;
}

.subscriber-meta {
  text-align: right;
}

.subscriber-package {
  background: var(--primary-color);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
  display: inline-block;
}

.subscriber-tokens {
  font-size: 16px;
  font-weight: 700;
  color: #27ae60;
}

/* Loading State */
.loading-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--bg-tertiary);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
  flex-shrink: 0;
  display: block;
  box-sizing: border-box;
}

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

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

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

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Not Creator State */
.not-creator-state {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.not-creator-state-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.not-creator-state h3 {
  color: var(--text-primary);
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 600;
}

.not-creator-state p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Buttons */
/* REMOVED - Duplicate .btn from CREATOR PAGES SECTION
       Correct .btn styles are at lines 585-655
       - 2025-12-10 */

/* REMOVED - Duplicate .btn-primary from CREATOR PAGES SECTION
       Correct .btn-primary styles are at lines 602-610
       - 2025-12-10 */

/* Action Button */
.subscriber-actions {
  margin-top: 10px;
}

.btn-action {
  background: #e74c3c;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-action:hover {
  background: #c0392b;
  transform: translateY(-1px);
}

/* Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 30px;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
  margin-bottom: 20px;
}

.modal-header h3 {
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.modal-header p {
  color: var(--text-secondary);
  font-size: 14px;
}

.modal-body {
  margin-bottom: 24px;
}

.modal-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: 8px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-option:hover {
  background: var(--bg-tertiary);
}

.modal-option input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.modal-option-text {
  flex: 1;
}

.modal-option-label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.modal-option-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

.modal-reason {
  margin-top: 16px;
}

.modal-reason label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.modal-reason textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--bg-tertiary);
  border-radius: 8px;
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
  font-size: 14px;
}

.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.btn-cancel {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn-danger {
  background: #e74c3c;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn-danger:hover {
  background: #c0392b;
}

.btn-danger:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Blocked Users Section */
.blocked-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--bg-tertiary);
}

.section-title {
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}

.blocked-list {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.blocked-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--bg-tertiary);
}

.blocked-user:last-child {
  border-bottom: none;
}

.blocked-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.blocked-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e74c3c;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
}

.blocked-user-name {
  font-weight: 600;
  color: var(--text-primary);
}

.blocked-user-date {
  font-size: 12px;
  color: var(--text-secondary);
}

.btn-unblock {
  background: #27ae60;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-unblock:hover {
  background: #219a52;
}

.blocked-empty {
  padding: 30px;
  text-align: center;
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
  .subscriber-card {
    flex-direction: column;
    text-align: center;
  }

  .subscriber-meta {
    text-align: center;
  }

  .subscriber-details {
    justify-content: center;
  }
}

/* --- My Subscriptions (419 lines) --- */

.subscriptions-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.page-header {
  margin-bottom: 30px;
}

.page-header h1 {
  font-size: 32px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 14px;
}

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

.tab {
  padding: 12px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

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

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

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--primary-color);
}

.stat-card.success {
  border-left-color: #27ae60;
}

.stat-card.warning {
  border-left-color: #f39c12;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  font-weight: 600;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-subtext {
  font-size: 12px;
  color: var(--text-light);
}

/* Subscription Cards */
.subscriptions-list {
  display: grid;
  gap: 20px;
}

.subscription-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.subscription-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.subscription-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--bg-tertiary);
}

.creator-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-secondary);
}

.creator-info {
  flex: 1;
}

.creator-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.verified-badge {
  width: 18px;
  height: 18px;
  color: #587e1f;
}

.creator-username {
  font-size: 14px;
  color: var(--text-secondary);
}

.subscription-status {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-active {
  background: #d4edda;
  color: #155724;
}

.status-cancelled {
  background: #f8d7da;
  color: #721c24;
}

.status-expired {
  background: #fff3cd;
  color: #856404;
}

.subscription-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.detail-item {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  font-weight: 600;
}

.detail-value {
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 600;
}

.payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--bg-secondary);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

.payment-badge.tokens {
  background: #fff3cd;
  color: #856404;
}

.payment-badge.processor {
  background: #d1ecf1;
  color: #0c5460;
}

.renewal-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: 8px;
  margin-bottom: 16px;
}

.renewal-info.active {
  background: #d4edda;
}

.renewal-info.disabled {
  background: #f8d7da;
}

.renewal-icon {
  width: 20px;
  height: 20px;
}

.subscription-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* REMOVED - Duplicate .btn from CREATOR PAGES SECTION
       Correct .btn styles are at lines 585-655
       - 2025-12-10 */

/* REMOVED - Duplicate .btn-primary with non-existent --primary-hover variable
       This was causing buttons to turn white on hover (undefined var = white)
       Correct .btn-primary styles are at lines 602-610
       - 2025-12-10 */

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

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

.btn-danger {
  background: #dc3545;
  color: white;
}

.btn-danger:hover {
  background: #c82333;
}

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

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

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.empty-state-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

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

.empty-state p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}

/* Loading State */
.loading-container {
  text-align: center;
  padding: 40px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.spinner {
  border: 3px solid var(--bg-tertiary);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
  flex-shrink: 0;
  display: block;
  box-sizing: border-box;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.modal-header {
  margin-bottom: 20px;
}

.modal-header h3 {
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.modal-body {
  margin-bottom: 24px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Responsive */
@media (max-width: 768px) {
  .subscription-details {
    grid-template-columns: 1fr;
  }

  .subscription-actions {
    flex-direction: column;
  }

  .subscription-actions .btn {
    width: 100%;
  }
}

/* ========================================================================== */
/* ==================== OTHER SETTINGS PAGES SECTION ======================== */
/* ========================================================================== */
/* Moved from settings/*.php - 2025-12-09 */
/* Total: 1,791 lines - Video upload, go live, history, tokens, upgrade */
/* ========================================================================== */

/* --- Video Upload Page (215 lines) --- */

.upload-container {
  max-width: 1200px;
  margin: 0 auto;
}

.upload-card {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.upload-status {
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border-left: 4px solid;
}

.upload-status.warning {
  background: #fff3cd;
  border-color: #ffc107;
  color: #856404;
}

.upload-status.error {
  background: #f8d7da;
  border-color: #dc3545;
  color: #721c24;
}

.upload-status.success {
  background: #d4edda;
  border-color: #28a745;
  color: #155724;
}

.upload-zone {
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
  background: var(--bg-primary);
  transition: all 0.3s;
  cursor: pointer;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--primary-color);
  background: var(--bg-secondary);
}

.upload-zone .upload-icon {
  font-size: 48px;
  margin-bottom: 1rem;
}

.file-input-hidden {
  display: none;
}

.video-item {
  background: var(--bg-primary);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

.video-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.video-item-title {
  font-weight: 600;
  color: var(--text-primary);
}

.video-item-remove {
  color: #dc3545;
  cursor: pointer;
  font-size: 20px;
  padding: 0.25rem 0.5rem;
}

.video-item-remove:hover {
  opacity: 0.7;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.form-grid-full {
  grid-column: 1 / -1;
}

.form-section {
  margin-bottom: 2rem;
}

.form-section h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 18px;
}

.progress-bar {
  width: 100%;
  height: 24px;
  background: var(--bg-tertiary);
  border-radius: 12px;
  overflow: hidden;
  margin: 1rem 0;
  display: none;
}

.progress-bar.active {
  display: block;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transition: width 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 12px;
}

.requirements-list {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.requirements-list h4 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.requirements-list ul {
  list-style: none;
  padding: 0;
}

.requirements-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.requirements-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.category-tag {
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-tag-remove {
  cursor: pointer;
  font-weight: bold;
}

.category-tag-remove:hover {
  opacity: 0.7;
}

.form-help {
  display: block;
  margin-top: 0.25rem;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* --- Go Live Page (608 lines) --- */

/* Removed body selector - was causing black background on all pages */

/* Ensure header dropdown is visible */
header,
.header,
.site-header {
  position: relative;
  z-index: 1000;
}

/* Removed container override - was forcing all pages to 100% width */

.live-container {
  display: grid;
  grid-template-columns: 1fr 400px;
  min-height: 500px;
  height: 70vh;
  max-height: 900px;
  width: 100%;
  max-width: 1800px;
  margin: 30px auto 30px auto; /* 30px top margin for space below header */
  padding: 0 20px;
  box-sizing: border-box;
  gap: 0;
}

.stream-section {
  display: flex;
  flex-direction: column;
  background: #1a1a1a;
  overflow: hidden;
  max-height: 100%;
}

.stream-header {
  padding: 20px;
  background: #0f0f0f;
  border-bottom: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stream-title-input {
  background: #2a2a2a;
  border: 1px solid #444;
  padding: 10px 15px;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  flex: 1;
  margin-right: 15px;
}

.stream-controls {
  display: flex;
  gap: 10px;
}

.btn-live {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.btn-live:hover {
  background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
  transform: translateY(-2px);
}

.btn-live.streaming {
  animation: pulse 2s ease-in-out infinite;
}

.btn-stop-stream {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  animation: pulse 2s ease-in-out infinite;
}

.btn-stop-stream:hover {
  background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
  transform: translateY(-2px);
}

.btn-settings {
  background: #2a2a2a;
  color: #fff;
  border: 1px solid #444;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(231, 76, 60, 0);
  }
}

.video-preview {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

#localVideo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.preview-placeholder {
  text-align: center;
  color: #666;
}

.preview-placeholder i {
  font-size: 80px;
  margin-bottom: 20px;
  display: block;
}

.status-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.8);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-badge.live {
  background: rgba(231, 76, 60, 0.9);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.viewer-count {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.device-controls {
  padding: 15px 20px;
  background: #0f0f0f;
  border-top: 1px solid #333;
  display: flex;
  gap: 15px;
  flex-shrink: 0; /* Keep at bottom, never shrink */
}

.device-select {
  flex: 1;
  background: #2a2a2a;
  border: 1px solid #444;
  padding: 10px 15px;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
}

.sidebar {
  background: #0f0f0f;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #333;
  overflow: hidden;
  height: 100%; /* Use height instead of max-height for proper flex sizing */
}

/* Sidebar-specific tabs (streaming/broadcast page) */
.sidebar .tabs {
  display: flex;
  background: #1a1a1a;
  border-bottom: 1px solid #333;
  flex-shrink: 0; /* Prevent tabs from shrinking */
}

.sidebar .tab {
  flex: 1;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
  font-weight: 600;
  font-size: 13px;
  color: #ffffff;
}

.sidebar .tab:hover {
  background: #2a2a2a;
}

.sidebar .tab.active {
  border-bottom-color: #e74c3c;
  color: #e74c3c;
}

.tab-content {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.tab-content.active {
  display: flex;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.chat-messages .empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: transparent !important; /* Override white background from other .empty-state rules */
  box-shadow: none !important; /* Remove box shadow */
  border-radius: 0 !important; /* Remove border radius */
}

.chat-message {
  margin-bottom: 15px;
  padding: 10px;
  background: #1a1a1a;
  border-radius: 8px;
  flex-shrink: 0; /* Prevent messages from shrinking */
}

.chat-message.tip {
  background: #1a1a1a;
  border-left: 3px solid #f39c12;
}

.chat-message .username {
  font-weight: 600;
  color: #e74c3c;
  margin-right: 8px;
}

.chat-message .moderator-badge {
  background: #9b59b6;
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  margin-left: 5px;
}

.chat-message .actions {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  font-size: 12px;
}

.chat-message .action-btn {
  color: #999;
  cursor: pointer;
  transition: color 0.3s;
}

.chat-message .action-btn:hover {
  color: #e74c3c;
}

.chat-input {
  padding: 15px 10px;
  background: #1a1a1a;
  border-top: 1px solid #333;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0; /* Prevent input from being pushed out of view */
}

.chat-input input {
  flex: 1;
  background: #2a2a2a;
  border: 1px solid #444;
  padding: 12px 15px;
  border-radius: 8px;
  color: #fff;
}

.chat-input button {
  background: #e74c3c;
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.gif-btn {
  background: #9b59b6 !important;
  padding: 12px 14px !important;
}

.gif-btn:hover {
  background: #8e44ad !important;
}

/* GIF Picker Modal */
.gif-picker-content {
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
}

.gif-picker-body {
  padding: 20px;
}

.gif-search-input {
  width: 100%;
  padding: 12px 15px;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 8px;
  color: #fff;
  margin-bottom: 15px;
  font-size: 14px;
}

.gif-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
}

.gif-item {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.gif-item:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(231, 76, 60, 0.5);
}

.gif-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.chat-message .gif-message {
  margin-top: 10px;
}

.chat-message .gif-message img {
  max-width: 200px;
  border-radius: 8px;
  display: block;
}

.viewer-list {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.viewer-list .empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.viewer-item {
  padding: 10px;
  background: #1a1a1a;
  border-radius: 8px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.viewer-name {
  font-weight: 600;
}

.request-list {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.request-list .empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.request-item {
  padding: 15px;
  background: #1a1a1a;
  border-radius: 8px;
  margin-bottom: 15px;
  border-left: 4px solid #f39c12;
}

.request-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.request-type {
  background: #f39c12;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.request-amount {
  color: #f39c12;
  font-weight: 600;
}

.request-message {
  margin: 10px 0;
  color: #ccc;
}

.request-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.btn-accept {
  background: #27ae60;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-decline {
  background: #e74c3c;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.empty-state i {
  font-size: 48px;
  margin-bottom: 15px;
  display: block;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: #1a1a1a;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-header h3 {
  margin: 0;
}

.close-modal {
  background: none;
  border: none;
  color: #999;
  font-size: 24px;
  cursor: pointer;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #ffffff;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: #2a2a2a;
  border: 1px solid #444;
  padding: 12px 15px;
  border-radius: 8px;
  color: #fff;
}

.form-group small {
  color: #aaaaaa !important;
}

/* Force landscape layout even on tablets/mobile */
@media (max-width: 1024px) {
  .live-container {
    width: 100%;
    padding: 0 15px;
    grid-template-columns: 1fr 350px;
  }
}

@media (max-width: 768px) {
  .live-container {
    width: 100%;
    padding: 0 10px;
    grid-template-columns: 1fr 300px;
  }

  .sidebar {
    max-width: 300px;
  }

  .tab {
    font-size: 11px;
    padding: 12px 8px;
  }
}

/* Prefer landscape orientation */
@media (orientation: portrait) {
  body::before {
    content: "Please rotate your device to landscape mode for the best experience";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #e74c3c;
    color: white;
    padding: 10px;
    text-align: center;
    z-index: 9999;
    font-weight: bold;
  }
}

/* --- History Page (297 lines) --- */

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

.history-header {
  background: linear-gradient(135deg, #23400f 0%, #567b1f 100%);
  color: white;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.history-header h1 {
  font-size: 2em;
  margin-bottom: 10px;
}

.history-header p {
  opacity: 0.9;
  font-size: 1.1em;
}

.history-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-button {
  padding: 12px 24px;
  border: 2px solid #e0e0e0;
  background: white;
  color: #666;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.tab-button:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.tab-button.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.tab-content {
  display: none;
}

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

.content-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 30px;
}

.content-grid.videos,
.content-grid.cams,
.content-grid.galleries {
  grid-template-columns: repeat(5, 1fr);
}

.content-grid.models {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1200px) {
  .content-grid.videos,
  .content-grid.cams,
  .content-grid.galleries {
    grid-template-columns: repeat(4, 1fr);
  }
  .content-grid.models {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .content-grid.videos,
  .content-grid.cams,
  .content-grid.galleries,
  .content-grid.models {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .content-grid.videos,
  .content-grid.cams,
  .content-grid.galleries,
  .content-grid.models {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .content-grid.videos,
  .content-grid.cams,
  .content-grid.galleries,
  .content-grid.models {
    grid-template-columns: 1fr;
  }
}

.card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.card img {
  width: 100%;
  display: block;
}

.card-body {
  padding: 12px;
}

.card-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-meta {
  font-size: 12px;
  color: #7f8c8d;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Video progress bar */
.video-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(0, 0, 0, 0.3);
}

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

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.completion-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

/* Live badge for cams */
.live-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(39, 174, 96, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: bold;
}

.offline-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(149, 165, 166, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: bold;
}

/* Watch count badge */
.watch-count {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #7f8c8d;
}

.empty-state-icon {
  font-size: 4em;
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #2c3e50;
}

.loading {
  text-align: center;
  padding: 40px;
  font-size: 1.2em;
  color: #7f8c8d;
}

.clear-history-btn {
  padding: 10px 20px;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.clear-history-btn:hover {
  background: #c0392b;
}

.history-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.count-display {
  font-size: 16px;
  color: #666;
  font-weight: 600;
}

/* --- Buy Tokens Page (305 lines) --- */

.tokens-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

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

.page-header h1 {
  font-size: 32px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

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

/* Current Balance Card */
.balance-card {
  background: linear-gradient(135deg, #274510 0%, #597f20 100%);
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  margin-bottom: 40px;
  color: white;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.balance-card h2 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
  opacity: 0.9;
}

.balance-card .balance-amount {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 10px;
}

.balance-card .balance-label {
  font-size: 24px;
  opacity: 0.9;
}

/* Package Grid */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.package-card {
  background: white;
  border-radius: 16px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.package-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

.package-card.featured {
  border-color: #f39c12;
  box-shadow: 0 8px 24px rgba(243, 156, 18, 0.2);
}

.package-card.featured::before {
  content: attr(data-badge);
  position: absolute;
  top: 15px;
  right: -30px;
  background: #f39c12;
  color: white;
  padding: 5px 40px;
  font-size: 12px;
  font-weight: bold;
  transform: rotate(45deg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.package-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.package-tokens {
  font-size: 48px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.package-tokens-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.package-bonus {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  display: inline-block;
}

.package-price {
  font-size: 36px;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.package-price .currency {
  font-size: 24px;
  vertical-align: super;
}

.package-description {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 25px;
  min-height: 40px;
}

.buy-btn {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #274510 0%, #597f20 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(88, 126, 31, 0.4);
}

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

.buy-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Features Section */
.features-section {
  background: #f8f9fa;
  padding: 40px 30px;
  border-radius: 16px;
  margin-bottom: 40px;
}

.features-section h3 {
  text-align: center;
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: 30px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  padding: 15px;
  background: white;
  border-radius: 8px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #274510 0%, #597f20 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  margin-right: 15px;
  flex-shrink: 0;
}

.feature-text {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
}

/* Security Badge */
.security-badge {
  text-align: center;
  padding: 20px;
  background: #e8f5e9;
  border-radius: 8px;
  margin-bottom: 20px;
}

.security-badge h4 {
  color: #2e7d32;
  font-size: 18px;
  margin-bottom: 5px;
}

.security-badge p {
  color: #558b2f;
  font-size: 14px;
  margin: 0;
}

/* Loading State */
.loading-container {
  text-align: center;
  padding: 60px 20px;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
  flex-shrink: 0;
  display: block;
  box-sizing: border-box;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state h3 {
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .page-header h1 {
    font-size: 24px;
  }

  .balance-card .balance-amount {
    font-size: 36px;
  }

  .packages-grid {
    grid-template-columns: 1fr;
  }

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

/* --- Upgrade Page (366 lines) --- */

.upgrade-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

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

.page-header h1 {
  font-size: 36px;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-weight: bold;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 18px;
}

/* Current Status Card */
.status-card {
  background: linear-gradient(135deg, #274510 0%, #597f20 100%);
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  margin-bottom: 50px;
  color: white;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.status-card h2 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
  opacity: 0.9;
}

.status-card .plan-name {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 5px;
}

.status-card .plan-expiry {
  font-size: 16px;
  opacity: 0.9;
}

/* Package Grid */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.plan-card {
  background: white;
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
  border: 3px solid transparent;
}

.plan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.plan-card.featured {
  border-color: #f39c12;
  box-shadow: 0 12px 32px rgba(243, 156, 18, 0.25);
  transform: scale(1.05);
}

.plan-card.featured:hover {
  transform: scale(1.05) translateY(-8px);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #f39c12;
  color: white;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(243, 156, 18, 0.4);
}

.plan-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 15px;
  margin-top: 10px;
}

.plan-description {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 25px;
  min-height: 40px;
}

.plan-pricing {
  margin-bottom: 30px;
}

.plan-price {
  font-size: 48px;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.plan-price .currency {
  font-size: 28px;
  vertical-align: super;
}

.plan-price .period {
  font-size: 18px;
  font-weight: normal;
  color: var(--text-secondary);
}

.plan-rebill {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 5px;
}

.plan-duration {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 20px;
}

.subscribe-btn {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #274510 0%, #597f20 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  margin-bottom: 25px;
}

.subscribe-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(88, 126, 31, 0.4);
}

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

.subscribe-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.plan-features {
  text-align: left;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-primary);
}

.feature-item::before {
  content: "✓";
  display: inline-block;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #274510 0%, #597f20 100%);
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
  margin-right: 12px;
  font-weight: bold;
  flex-shrink: 0;
}

/* Benefits Section */
.benefits-section {
  background: #f8f9fa;
  padding: 50px 30px;
  border-radius: 16px;
  margin-bottom: 40px;
}

.benefits-section h3 {
  text-align: center;
  font-size: 28px;
  color: var(--text-primary);
  margin-bottom: 40px;
  font-weight: bold;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.benefit-item {
  text-align: center;
  padding: 20px;
}

.benefit-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #274510 0%, #597f20 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
  margin: 0 auto 15px;
}

.benefit-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.benefit-desc {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Security Badge */
.security-info {
  text-align: center;
  padding: 30px;
  background: white;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.security-info h4 {
  color: #2e7d32;
  font-size: 20px;
  margin-bottom: 8px;
}

.security-info p {
  color: #558b2f;
  font-size: 14px;
  margin: 0;
}

.guarantees {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

/* Loading State */
.loading-container {
  text-align: center;
  padding: 60px 20px;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
  flex-shrink: 0;
  display: block;
  box-sizing: border-box;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state h3 {
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .page-header h1 {
    font-size: 28px;
  }

  .plans-grid {
    grid-template-columns: 1fr;
  }

  .plan-card.featured {
    transform: none;
  }

  .plan-card.featured:hover {
    transform: translateY(-8px);
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================================== */
/* ======================== AUTHENTICATION PAGES ============================ */
/* ========================================================================== */
/* Moved from auth/login.php and auth/register.php - 2025-12-09 */
/* Total: 317 lines - Login and registration page styling */
/* ========================================================================== */

/* --- Login Page (223 lines) --- */

body.login-page {
  background: linear-gradient(135deg, #f8f9fa 0%, #f8f9fa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.login-container {
  width: 100%;
  max-width: 450px;
}

.login-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.login-header {
  background: linear-gradient(135deg, #304e14 0%, #567922 100%);
  color: white;
  padding: 40px 30px;
  text-align: center;
}

.login-header h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.login-header p {
  opacity: 0.9;
  font-size: 14px;
}

.login-body {
  padding: 40px 30px;
}

/* Login page checkbox styling */
.login-body input[type="checkbox"],
.register-body input[type="checkbox"] {
  width: auto !important;
  cursor: pointer !important;
  accent-color: #2F4D14;
}

.demo-notice {
  background: #e7f3ff;
  border: 1px solid #b3d9ff;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 30px;
  font-size: 14px;
  color: #0c5460;
}

.demo-notice strong {
  display: block;
  margin-bottom: 5px;
}

.login-footer {
  padding: 20px 30px;
  background: #e3f7db;
  text-align: center;
  font-size: 14px;
  color: #7f8c8d;
}

.login-footer a {
  color: #2f4d14;
  font-weight: 600;
}

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

.password-toggle {
  position: relative;
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #7f8c8d;
}

.language-switcher {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.language-switcher:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Password Recovery Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  background: linear-gradient(135deg, #304e14 0%, #567922 100%);
  color: white;
  padding: 30px;
  text-align: center;
}

.modal-header h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.modal-header p {
  opacity: 0.9;
  font-size: 14px;
}

.modal-body {
  padding: 30px;
}

.modal-footer {
  padding: 20px 30px;
  background: #f8f9fa;
  text-align: center;
  border-top: 1px solid #e9ecef;
}

.recovery-method {
  display: flex;
  gap: 15px;
  margin: 20px 0;
}

.recovery-option {
  flex: 1;
  padding: 20px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.recovery-option:hover {
  border-color: #567922;
  background: #f8f9fa;
}

.recovery-option.selected {
  border-color: #567922;
  background: #e7f3e7;
}

.recovery-option-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.recovery-option-title {
  font-weight: 600;
  margin-bottom: 5px;
  color: #2c3e50;
}

.recovery-option-desc {
  font-size: 12px;
  color: #7f8c8d;
}

.recovery-step {
  display: none;
}

.recovery-step.active {
  display: block;
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #5a6268;
}

/* --- Register Page (94 lines) --- */

body.register-page {
  background: linear-gradient(135deg, #f8f9fa 0%, #f8f9fa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.register-container {
  width: 100%;
  max-width: 500px;
}

.register-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.register-header {
  background: linear-gradient(135deg, #304e14 0%, #567922 100%);
  color: white;
  padding: 40px 30px;
  text-align: center;
}

.register-header h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.register-header p {
  opacity: 0.9;
  font-size: 14px;
}

.register-body {
  padding: 40px 30px;
  color: var(--text-primary);
}

.register-body .form-label {
  color: var(--primary-color); /* Dark green */
  font-weight: 600;
}

.register-body label {
  color: var(--text-primary); /* Dark text for all labels */
}

.register-body .form-help {
  color: var(--text-secondary);
}

.register-footer {
  padding: 20px 30px;
  background: #f8f9fa;
  text-align: center;
  font-size: 14px;
  color: #7f8c8d;
}

.register-footer a {
  color: #2f4d14;
  font-weight: 600;
}

.register-footer a:hover {
  text-decoration: underline;
}

.password-strength {
  height: 4px;
  background: #ecf0f1;
  border-radius: 2px;
  margin-top: 5px;
  overflow: hidden;
}

.password-strength-bar {
  height: 100%;
  width: 0;
  transition: all 0.3s;
}

.password-strength-weak {
  width: 33%;
  background: #e74c3c;
}
.password-strength-medium {
  width: 66%;
  background: #f39c12;
}
.password-strength-strong {
  width: 100%;
  background: #27ae60;
}

.language-switcher {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.language-switcher:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   Performer Schedule Heatmap
   ============================================ */
.schedule-heatmap-container {
  margin-top: 20px;
}

.schedule-heatmap {
  display: grid;
  grid-template-columns: 60px repeat(24, 1fr);
  gap: 2px;
  font-size: 11px;
  max-width: 100%;
  overflow-x: auto;
}

.schedule-heatmap .day-label {
  font-weight: 600;
  display: flex;
  align-items: center;
  padding: 4px 8px;
  background: #f8f9fa;
  border-radius: 4px;
  color: #2c3e50;
  font-size: 10px;
}

.schedule-heatmap .hour-header {
  text-align: center;
  font-weight: 500;
  padding: 4px 0;
  color: #7f8c8d;
  font-size: 9px;
}

.schedule-heatmap .slot {
  aspect-ratio: 1;
  min-width: 14px;
  min-height: 14px;
  border-radius: 3px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.schedule-heatmap .slot:hover {
  transform: scale(1.3);
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Activity level colors (0-5) */
.schedule-heatmap .slot.level-0 {
  background: #ecf0f1;
}
.schedule-heatmap .slot.level-1 {
  background: rgba(39, 69, 16, 0.2);
}
.schedule-heatmap .slot.level-2 {
  background: rgba(39, 69, 16, 0.4);
}
.schedule-heatmap .slot.level-3 {
  background: rgba(39, 69, 16, 0.6);
}
.schedule-heatmap .slot.level-4 {
  background: rgba(39, 69, 16, 0.8);
}
.schedule-heatmap .slot.level-5 {
  background: rgba(39, 69, 16, 1);
}

/* Legend */
.schedule-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
  font-size: 11px;
  flex-wrap: wrap;
}

.schedule-legend .legend-label {
  color: #7f8c8d;
  font-weight: 500;
}

.schedule-legend .legend-scale {
  display: flex;
  align-items: center;
  gap: 4px;
}

.schedule-legend .legend-box {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

.schedule-legend .legend-text {
  color: #7f8c8d;
  font-size: 10px;
}

/* Heatmap tooltip */
.heatmap-tooltip {
  position: fixed;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  z-index: 10000;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Loading state */
.schedule-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 30px;
  color: #7f8c8d;
}

/* No data state */
.schedule-no-data {
  text-align: center;
  padding: 30px;
  color: #95a5a6;
  font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .schedule-heatmap {
    font-size: 9px;
  }

  .schedule-heatmap .day-label {
    font-size: 8px;
    padding: 2px 4px;
  }

  .schedule-heatmap .hour-header {
    font-size: 7px;
  }

  .schedule-heatmap .slot {
    min-width: 10px;
    min-height: 10px;
  }

  .schedule-legend {
    font-size: 10px;
  }
}
