[data-theme="dark"] {
  --bg-color: #000000;
  --text-color: #ffffff;
  --text-secondary: #ccc;
  --input-bg: #1e1e1e;
  --input-hover: #2a2a2a;
  --panel-bg: #1e1e1e;
  --panel-border: #333;
  --panel-hover: #2a2a2a;
  --suggestion-bg: #1e1e1e;
  --divider-color: #333;
  --label-color: #888;
  --rename-bg: #2a2a2a;
  --rename-border: #444;
  --modal-bg: #1e1e1e;
  --card-bg: #1a1a1a;
  --card-border: #333;
}

[data-theme="light"] {
  --bg-color: #f0f0f0;
  --text-color: #111111;
  --text-secondary: #444;
  --input-bg: #ffffff;
  --input-hover: #e8e8e8;
  --panel-bg: #ffffff;
  --panel-border: #ddd;
  --panel-hover: #f5f5f5;
  --suggestion-bg: #ffffff;
  --divider-color: #ddd;
  --label-color: #666;
  --rename-bg: #f0f0f0;
  --rename-border: #ccc;
  --modal-bg: #ffffff;
  --card-bg: #ffffff;
  --card-border: #ddd;
}

* { box-sizing: border-box; }

body {
  background-color: var(--bg-color);
  transition: background-color 0.3s ease;
  margin: 0;
  padding: 0;
  font-family: arial, sans-serif;
}

.intro-blur {
  filter: blur(20px);
  opacity: 0;
  animation: introReveal 1.2s ease forwards;
}

@keyframes introReveal {
  0% { filter: blur(20px); opacity: 0; transform: scale(1.02); }
  100% { filter: blur(0); opacity: 1; transform: scale(1); }
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  position: relative;
  z-index: 100;
}

.back-link {
  color: var(--text-color);
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
}

.back-link:hover { color: #4285F4; }

.main-title {
  font-size: 80px;
  color: var(--text-color);
  text-align: center;
  margin: 10px 0 30px 0;
}

.search-container {
  position: relative;
  flex: 0 0 350px;
}

#search {
  width: 100%;
  padding: 10px 16px;
  font-size: 16px;
  border: 2px solid var(--panel-border);
  border-radius: 10px;
  background-color: var(--input-bg);
  color: var(--text-color);
  outline: none;
  font-family: arial;
}

#search:focus { border-color: #4285F4; }
#search:hover { background-color: var(--input-hover); }

#suggestions {
  list-style: none;
  padding: 0;
  margin: 0;
  position: absolute;
  width: 100%;
  background: var(--suggestion-bg);
  border-radius: 0 0 10px 10px;
  z-index: 10;
  border: 1px solid var(--panel-border);
  border-top: none;
  max-height: 300px;
  overflow-y: auto;
}

#suggestions:empty { border: none; }

#suggestions li {
  padding: 10px 16px;
  cursor: pointer;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

#suggestions li:hover { background: var(--panel-hover); }

#suggestions li img {
  width: 40px;
  height: 55px;
  object-fit: cover;
  border-radius: 4px;
}

#loginBtn {
  border: none;
  border-radius: 10px;
  font-size: 18px;
  background-color: white;
  padding: 10px 28px;
  font-family: arial;
  cursor: pointer;
  font-weight: bold;
}

#loginBtn:hover { background-color: cornsilk; }

.user-area {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 3px solid var(--text-color);
  cursor: pointer;
  object-fit: cover;
  transition: transform 0.2s;
}

.avatar:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(66, 133, 244, 0.5);
}

.add-btn {
  border: none;
  border-radius: 10px;
  font-size: 16px;
  background-color: #4285F4;
  color: white;
  padding: 8px 18px;
  font-family: arial;
  cursor: pointer;
  font-weight: bold;
}

.add-btn:hover { background-color: #3367d6; }

.notif-bell-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: var(--text-color);
  padding: 4px 8px;
}

.notif-bell-btn:hover { color: #4285F4; }

.notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ff4444;
  color: white;
  font-size: 11px;
  font-weight: bold;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notif-panel {
  display: none;
  position: absolute;
  top: 45px;
  right: 0;
  width: 400px;
  max-height: 500px;
  overflow-y: auto;
  background: var(--panel-bg);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  padding: 20px;
  z-index: 200;
  animation: panelSlide 0.25s ease;
  border: 1px solid var(--panel-border);
}

.notif-panel.open { display: block; }

.notif-panel-title {
  color: var(--text-color);
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mark-all-read-btn {
  background: none;
  border: none;
  color: #4285F4;
  cursor: pointer;
  font-size: 13px;
  font-weight: bold;
}

.mark-all-read-btn:hover { text-decoration: underline; }

.notif-item {
  padding: 12px;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  margin-bottom: 10px;
  background: var(--rename-bg);
}

.notif-item.unread {
  border-color: #4285F4;
  background: rgba(66, 133, 244, 0.08);
}

.notif-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.notif-item-from {
  color: var(--text-color);
  font-weight: bold;
  font-size: 14px;
}

.notif-item-date {
  color: var(--label-color);
  font-size: 11px;
}

.notif-item-page {
  color: var(--label-color);
  font-size: 12px;
  margin-bottom: 6px;
}

.notif-item-msg {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.notif-item-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.notif-read-btn, .notif-delete-btn {
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  font-weight: bold;
}

.notif-read-btn { background: #4285F4; color: white; }
.notif-delete-btn { background: #ff4444; color: white; }

.notif-empty {
  color: var(--label-color);
  text-align: center;
  padding: 20px;
  font-size: 14px;
}

.profile-panel {
  display: none;
  position: absolute;
  top: 55px;
  right: 0;
  width: 320px;
  background: var(--panel-bg);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  padding: 20px;
  z-index: 200;
  animation: panelSlide 0.25s ease;
  border: 1px solid var(--panel-border);
  max-height: 80vh;
  overflow-y: auto;
}

.profile-panel.open { display: block; }

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

.panel-header { display: flex; align-items: center; gap: 14px; margin-bottom: 5px; }

.panel-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--panel-border);
  object-fit: cover;
}

.panel-info { display: flex; flex-direction: column; }
.panel-name { color: var(--text-color); font-size: 18px; font-weight: bold; }
.panel-email { color: var(--label-color); font-size: 12px; margin-top: 2px; }
.panel-divider { height: 1px; background: var(--divider-color); margin: 15px 0; }
.panel-section { margin-bottom: 5px; }

.panel-label {
  color: var(--label-color);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 10px;
}

.rename-row { display: flex; gap: 8px; }

.rename-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--rename-border);
  border-radius: 8px;
  background: var(--rename-bg);
  color: var(--text-color);
  font-size: 14px;
  outline: none;
}

.rename-input:focus { border-color: #4285F4; }

.rename-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  background: #4285F4;
  color: white;
  font-size: 14px;
  cursor: pointer;
  font-weight: bold;
}

.rename-btn:hover { background: #3367d6; }

.theme-toggle { display: flex; gap: 8px; }

.theme-btn {
  flex: 1;
  padding: 10px;
  border: 2px solid var(--panel-border);
  border-radius: 10px;
  background: var(--rename-bg);
  color: var(--text-color);
  font-size: 14px;
  cursor: pointer;
}

.theme-btn:hover { border-color: #4285F4; }

.theme-btn.active-theme {
  border-color: #4285F4;
  background: rgba(66, 133, 244, 0.15);
  color: #4285F4;
  font-weight: bold;
}

.logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #ff4444;
  color: white;
  font-size: 15px;
  cursor: pointer;
  font-weight: bold;
}

.logout-btn:hover { background: #cc0000; }

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--modal-bg);
  border-radius: 20px;
  padding: 40px;
  width: 420px;
  max-width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  animation: slideIn 0.3s ease;
}

.add-modal { width: 480px; }

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

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 30px;
  cursor: pointer;
}

.close-btn:hover { color: red; }

.modal-title { color: var(--text-color); font-size: 28px; margin-bottom: 10px; }
.modal-subtitle { color: var(--label-color); font-size: 14px; margin-bottom: 30px; }

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  border: 2px solid var(--panel-border);
  border-radius: 12px;
  background-color: white;
  font-size: 16px;
  color: #333;
  cursor: pointer;
}

.google-btn:hover {
  background-color: #f1f1f1;
  border-color: #4285F4;
  box-shadow: 0 0 15px rgba(66, 133, 244, 0.3);
}

.google-icon { width: 24px; height: 24px; }

.admin-link-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  margin-bottom: 12px;
  border: 2px solid var(--panel-border);
  border-radius: 12px;
  background: var(--rename-bg);
  color: var(--text-color);
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  font-weight: bold;
}

.admin-link-btn:hover {
  border-color: #4285F4;
  background: rgba(66, 133, 244, 0.1);
  transform: translateX(5px);
}

.admin-link-btn span { font-size: 24px; }

.anime-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  padding: 0 40px 40px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.anime-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--card-border);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.anime-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(66, 133, 244, 0.3);
  border-color: #4285F4;
}

.anime-card-img { width: 100%; height: 250px; object-fit: cover; }

.anime-card-title {
  color: var(--text-color);
  padding: 12px;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
}

.anime-card-age { text-align: center; padding-bottom: 10px; }

.age-badge {
  background: #4285F4;
  color: white;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

.schedule-badge {
  display: none;
  background: #34A853;
  color: white;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  margin-left: 8px;
}

.anime-page { max-width: 1000px; margin: 0 auto; padding: 20px 30px; }
.anime-title { color: var(--text-color); font-size: 42px; margin-bottom: 20px; }
.anime-top { display: flex; gap: 30px; margin-bottom: 40px; }

.anime-image {
  width: 250px;
  height: 360px;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid var(--card-border);
  flex-shrink: 0;
}

.anime-details { flex: 1; }
.anime-desc { color: var(--text-secondary); font-size: 16px; line-height: 1.7; margin-bottom: 20px; }
.anime-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.section-block { margin-bottom: 40px; }
.section-title { color: var(--text-color); font-size: 24px; margin-bottom: 15px; }

.custom-select {
  width: 100%;
  max-width: 500px;
  padding: 12px 16px;
  font-size: 16px;
  border: 2px solid var(--panel-border);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--text-color);
  outline: none;
  cursor: pointer;
  font-family: arial;
}

.custom-select:focus { border-color: #4285F4; }

.player-container { margin-top: 20px; }

.video-iframe {
  width: 100%;
  max-width: 800px;
  height: 450px;
  border: none;
  border-radius: 12px;
  margin-bottom: 15px;
  background: #000;
}

.player-selector-row { margin-bottom: 15px; }

.player-selector-label {
  color: var(--text-color);
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 8px;
  display: block;
}

.player-selector {
  padding: 10px 14px;
  font-size: 15px;
  border: 2px solid var(--panel-border);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--text-color);
  outline: none;
  cursor: pointer;
  font-family: arial;
  min-width: 250px;
}

.player-selector:focus { border-color: #4285F4; }

.scan-container {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scan-iframe {
  width: 100%;
  max-width: 750px;
  height: 1100px;
  border: none;
  display: block;
  margin: 0;
  padding: 0;
}

.form-page {
  max-width: 600px;
  margin: 30px auto;
  padding: 30px;
  background: var(--panel-bg);
  border-radius: 20px;
  border: 1px solid var(--panel-border);
}

.form-title { color: var(--text-color); font-size: 28px; margin-bottom: 25px; text-align: center; }
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  color: var(--text-color);
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-hint { color: var(--label-color); font-size: 12px; margin-bottom: 10px; }

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--rename-border);
  border-radius: 10px;
  background: var(--rename-bg);
  color: var(--text-color);
  font-size: 15px;
  outline: none;
  font-family: arial;
}

.form-input:focus { border-color: #4285F4; }

.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--rename-border);
  border-radius: 10px;
  background: var(--rename-bg);
  color: var(--text-color);
  font-size: 15px;
  outline: none;
  font-family: arial;
  min-height: 120px;
  resize: vertical;
}

.form-textarea:focus { border-color: #4285F4; }

.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--rename-border);
  border-radius: 10px;
  background: var(--rename-bg);
  color: var(--text-color);
  font-size: 15px;
  outline: none;
  font-family: arial;
  cursor: pointer;
}

.form-select:focus { border-color: #4285F4; }

.image-preview {
  margin-top: 10px;
  max-width: 200px;
  max-height: 280px;
  border-radius: 10px;
  border: 2px solid var(--panel-border);
  object-fit: cover;
}

.save-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  background: #4285F4;
  color: white;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  font-family: arial;
}

.save-btn:hover { background: #3367d6; }

.iframe-entry, .page-entry {
  margin-bottom: 15px;
  padding: 15px;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background: var(--rename-bg);
}

.entry-label {
  display: block;
  color: #4285F4;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 8px;
}

.iframe-entry .form-textarea,
.page-entry .form-textarea {
  min-height: 80px;
  font-family: monospace;
  font-size: 13px;
  margin-bottom: 8px;
}

.remove-row-btn {
  width: auto;
  height: auto;
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 6px;
  border: none;
  background: #ff4444;
  color: white;
  cursor: pointer;
}

.remove-row-btn:hover { background: #cc0000; }

.add-row-btn {
  width: 100%;
  padding: 10px;
  border: 2px dashed var(--panel-border);
  border-radius: 10px;
  background: transparent;
  color: #4285F4;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  font-family: arial;
}

.add-row-btn:hover {
  border-color: #4285F4;
  background: rgba(66, 133, 244, 0.1);
}

.no-anime {
  text-align: center;
  color: var(--label-color);
  font-size: 18px;
  margin-top: 60px;
}

.anime-card-container {
  position: relative;
}

.anime-card-container .anime-card {
  display: block;
}

.delete-card-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 35px;
  height: 35px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 68, 68, 0.9);
  color: white;
  font-size: 16px;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.anime-card-container:hover .delete-card-btn { opacity: 1; }
.delete-card-btn:hover { background: #cc0000; transform: scale(1.1); }

.admin-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.edit-anime-btn {
  border: none;
  border-radius: 10px;
  font-size: 14px;
  background-color: #4285F4;
  color: white;
  padding: 8px 16px;
  font-family: arial;
  cursor: pointer;
  font-weight: bold;
}

.edit-anime-btn:hover { background: #3367d6; }

.delete-anime-btn {
  border: none;
  border-radius: 10px;
  font-size: 14px;
  background-color: #ff4444;
  color: white;
  padding: 8px 16px;
  font-family: arial;
  cursor: pointer;
  font-weight: bold;
}

.delete-anime-btn:hover { background: #cc0000; }

.select-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.select-row .custom-select {
  flex: 1;
  min-width: 200px;
}

.edit-item-btn {
  border: none;
  border-radius: 8px;
  font-size: 16px;
  background-color: #4285F4;
  color: white;
  padding: 10px 14px;
  cursor: pointer;
}

.edit-item-btn:hover { background: #3367d6; }

.delete-item-btn {
  border: none;
  border-radius: 8px;
  font-size: 16px;
  background-color: #ff4444;
  color: white;
  padding: 10px 14px;
  cursor: pointer;
}

.delete-item-btn:hover { background: #cc0000; }

.confirm-modal { width: 400px; }

.confirm-buttons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  justify-content: center;
}

.confirm-yes-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  background: #ff4444;
  color: white;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  font-family: arial;
}

.confirm-yes-btn:hover { background: #cc0000; }

.confirm-no-btn {
  padding: 12px 24px;
  border: 2px solid var(--panel-border);
  border-radius: 10px;
  background: var(--rename-bg);
  color: var(--text-color);
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  font-family: arial;
}

.confirm-no-btn:hover { border-color: #4285F4; }

.edit-modal {
  width: 550px;
  max-height: 85vh;
  overflow-y: auto;
  text-align: left;
}

.edit-modal .modal-title { text-align: center; }

.edit-preview {
  margin-top: 10px;
  max-width: 150px;
  max-height: 200px;
  border-radius: 8px;
  border: 2px solid var(--panel-border);
  object-fit: cover;
}

.iframe-wrapper { margin-bottom: 15px; }

.iframe-wrapper iframe {
  width: 100%;
  max-width: 800px;
  height: 450px;
  border: none;
  border-radius: 12px;
  background: #000;
  display: block;
}

.scan-wrapper { margin: 0; padding: 0; line-height: 0; }

.scan-wrapper iframe {
  width: 100%;
  max-width: 750px;
  height: 1100px;
  border: none;
  display: block;
  margin: 0;
  padding: 0;
}

.report-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 30px auto;
  padding: 12px 24px;
  border: 2px solid #ff9800;
  border-radius: 12px;
  background: rgba(255, 152, 0, 0.1);
  color: #ff9800;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  font-family: arial;
}

.report-btn:hover {
  background: rgba(255, 152, 0, 0.2);
  border-color: #e68a00;
}

.report-modal {
  width: 480px;
  text-align: left;
}

.report-modal .modal-title { text-align: center; }

.report-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--rename-border);
  border-radius: 10px;
  background: var(--rename-bg);
  color: var(--text-color);
  font-size: 15px;
  outline: none;
  font-family: arial;
  min-height: 120px;
  resize: vertical;
  margin-bottom: 15px;
}

.report-textarea:focus { border-color: #ff9800; }

.report-submit-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: #ff9800;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  font-family: arial;
}

.report-submit-btn:hover { background: #e68a00; }

.legal-footer {
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

.legal-link {
  color: #4285F4;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
}

.legal-link:hover { text-decoration: underline; }

.legal-page {
  max-width: 800px;
  margin: 30px auto;
  padding: 30px;
  background: var(--panel-bg);
  border-radius: 20px;
  border: 1px solid var(--panel-border);
}

.legal-page h1 {
  color: var(--text-color);
  font-size: 32px;
  margin-bottom: 25px;
  text-align: center;
}

.legal-page h2 {
  color: #4285F4;
  font-size: 20px;
  margin-top: 25px;
  margin-bottom: 10px;
}

.legal-page p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 15px;
}

.legal-page a { color: #4285F4; }

.legal-copyright {
  text-align: center;
  color: var(--text-color);
  font-size: 24px;
  font-weight: bold;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--divider-color);
}

/* === VIP === */

.vip-badge {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  margin-left: 8px;
  display: inline-block;
}

.vip-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: bold;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.anime-card.vip-locked .anime-card-img {
  filter: brightness(0.6);
}

.vip-lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.vip-lock-icon {
  font-size: 50px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.vip-status-active {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 10px;
}

.vip-status-icon { font-size: 28px; }

.vip-status-info { display: flex; flex-direction: column; }

.vip-status-label {
  color: #FFD700;
  font-size: 14px;
  font-weight: bold;
}

.vip-status-date {
  color: var(--label-color);
  font-size: 12px;
}

.vip-status-inactive {
  color: var(--label-color);
  font-size: 13px;
  text-align: center;
  padding: 8px;
}

.vip-code-row { display: flex; gap: 8px; }

.vip-code-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--rename-border);
  border-radius: 8px;
  background: var(--rename-bg);
  color: var(--text-color);
  font-size: 14px;
  outline: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.vip-code-input:focus { border-color: #FFD700; }

.vip-code-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
  font-size: 14px;
  cursor: pointer;
  font-weight: bold;
}

.vip-code-btn:hover { background: linear-gradient(135deg, #FFA500, #FF8C00); }

.vip-required-modal { width: 450px; }
.vip-required-icon { font-size: 60px; margin-bottom: 15px; }

.vip-required-title {
  color: #FFD700;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.vip-required-text {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.vip-modal-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  background: var(--rename-bg);
  color: var(--text-color);
  font-size: 16px;
  outline: none;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: monospace;
  margin-bottom: 15px;
}

.vip-modal-input:focus { border-color: #FFD700; }

.vip-modal-activate-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  font-family: arial;
  margin-bottom: 10px;
}

.vip-modal-activate-btn:hover { background: linear-gradient(135deg, #FFA500, #FF8C00); }

.vip-modal-back-btn {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--panel-border);
  border-radius: 12px;
  background: transparent;
  color: var(--text-color);
  font-size: 15px;
  cursor: pointer;
  font-family: arial;
}

.vip-modal-back-btn:hover { border-color: #4285F4; }

.admin-link-btn.vip-gen-btn {
  border-color: rgba(255, 215, 0, 0.3);
  background: rgba(255, 215, 0, 0.05);
}

.admin-link-btn.vip-gen-btn:hover {
  border-color: #FFD700;
  background: rgba(255, 215, 0, 0.1);
}

.vip-gen-modal {
  width: 520px;
  text-align: left;
  max-height: 85vh;
  overflow-y: auto;
}

.vip-gen-modal .modal-title { text-align: center; }

.generated-code-display {
  background: rgba(255, 215, 0, 0.1);
  border: 2px solid #FFD700;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-top: 15px;
}

.generated-code-text {
  font-family: monospace;
  font-size: 22px;
  font-weight: bold;
  color: #FFD700;
  letter-spacing: 2px;
  margin-bottom: 10px;
  user-select: all;
}

.generated-code-duration {
  color: var(--text-secondary);
  font-size: 14px;
}

.copy-code-btn {
  margin-top: 10px;
  padding: 8px 20px;
  border: none;
  border-radius: 8px;
  background: #4285F4;
  color: white;
  font-size: 14px;
  cursor: pointer;
  font-weight: bold;
}

.copy-code-btn:hover { background: #3367d6; }

.vip-codes-list {
  max-height: 300px;
  overflow-y: auto;
  margin-top: 15px;
}

.vip-code-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  margin-bottom: 8px;
  background: var(--rename-bg);
  font-size: 13px;
}

.vip-code-item.used { opacity: 0.5; }

.vip-code-item-code {
  font-family: monospace;
  font-weight: bold;
  color: #FFD700;
  font-size: 13px;
}

.vip-code-item-info {
  color: var(--label-color);
  font-size: 11px;
}

.vip-code-item-delete {
  background: #ff4444;
  border: none;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}

.vip-toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vip-toggle {
  position: relative;
  width: 50px;
  height: 26px;
  cursor: pointer;
}

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

.vip-slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--rename-bg);
  border: 2px solid var(--panel-border);
  border-radius: 26px;
  transition: 0.3s;
}

.vip-slider:before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-color);
  top: 2px;
  left: 3px;
  transition: 0.3s;
}

.vip-toggle input:checked + .vip-slider {
  background: rgba(255, 215, 0, 0.3);
  border-color: #FFD700;
}

.vip-toggle input:checked + .vip-slider:before {
  transform: translateX(23px);
  background: #FFD700;
}

.vip-toggle-label {
  color: var(--text-color);
  font-size: 14px;
  font-weight: bold;
}

.vip-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: bold;
  margin-left: 6px;
}

@media (max-width: 768px) {
  .main-title { font-size: 50px; }
  .anime-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    padding: 0 15px 20px 15px;
  }
  .anime-top { flex-direction: column; align-items: center; }
  .anime-image { width: 200px; height: 280px; }
  .search-container { flex: 1; }
  .video-iframe { height: 250px; }
  .scan-iframe { height: 600px; }
  .form-page { margin: 15px; }
  .notif-panel { width: 300px; right: -50px; }
  .vip-gen-modal { width: 95%; }
}
