/* CLT YouTube Pro Web - Style Sheet */

:root {
  --bg-primary: #0f0f0f;
  --bg-secondary: #181818;
  --bg-card: #212121;
  --bg-hover: #2a2a2a;
  --accent-red: #ff0000;
  --accent-red-hover: #cc0000;
  --accent-green: #00e676;
  --text-main: #f1f1f1;
  --text-sub: #aaaaaa;
  --border-color: #333333;
  --header-height: 58px;
}

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

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

/* Header */
#header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 16px;
}

.header-left {
  display: flex;
  align-items: center;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.logo-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #fff;
}

.highlight {
  color: var(--accent-red);
}

.badge-web {
  background: linear-gradient(135deg, #ff0033, #ff4b2b);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* Search Container */
.header-center {
  flex: 1;
  max-width: 620px;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  background-color: #121212;
  border: 1px solid var(--border-color);
  border-radius: 40px 0 0 40px;
  padding: 0 14px;
  height: 40px;
  transition: border-color 0.2s;
}

.search-input-wrap:focus-within {
  border-color: var(--accent-red);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.search-icon {
  color: #777;
  margin-right: 8px;
  flex-shrink: 0;
}

#search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
}

#search-input::placeholder {
  color: #888;
}

.btn-clear {
  background: transparent;
  border: none;
  color: #aaa;
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
}

.btn-clear:hover {
  color: #fff;
}

.search-btn {
  background-color: #222;
  border: 1px solid var(--border-color);
  border-left: none;
  border-radius: 0 40px 40px 0;
  height: 40px;
  padding: 0 20px;
  color: #aaa;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.search-btn:hover {
  background-color: #333;
  color: #fff;
}

/* Suggestions Dropdown */
.suggestions-list {
  position: absolute;
  top: 44px;
  left: 0;
  right: 60px;
  background-color: #212121;
  border: 1px solid #383838;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  list-style: none;
  z-index: 1000;
  overflow: hidden;
}

.suggestions-list li {
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #eee;
  transition: background 0.15s;
}

.suggestions-list li:hover {
  background-color: #333;
  color: var(--accent-red);
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.install-btn {
  background: linear-gradient(135deg, #00c853, #00e676);
  color: #000;
  font-weight: 700;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 230, 118, 0.3);
}

.install-btn:hover {
  background: linear-gradient(135deg, #00b248, #00c853);
  color: #000;
  transform: translateY(-1px);
}

.pro-shield {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #12281a;
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.shield-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

.header-btn {
  background-color: var(--bg-hover);
  border: 1px solid var(--border-color);
  color: #ddd;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.header-btn.active {
  background-color: #2b1111;
  border-color: var(--accent-red);
  color: #ff7777;
}

/* Quick Filter Chips & Horizontal Topics Bar */
.topics-bar-container {
  display: flex;
  align-items: center;
  position: relative;
  background: var(--bg-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 14px;
  gap: 8px;
  margin-bottom: 16px;
  border-radius: 12px;
}

.topics-bar-container .chips-bar {
  flex: 1;
  padding: 4px 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  background: transparent;
}

.topics-bar-container .chips-bar::-webkit-scrollbar {
  display: none;
}
.topics-bar-container .chips-bar {
  scrollbar-width: none;
}

.btn-scroll-topics {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  user-select: none;
}

.btn-scroll-topics:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

.chips-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background-color: var(--bg-primary);
  overflow-x: auto;
  white-space: nowrap;
}

.chips-bar::-webkit-scrollbar {
  height: 4px;
}
.chips-bar::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

.chip {
  background-color: var(--bg-card);
  border: 1px solid #333;
  color: #ddd;
  padding: 7px 15px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chip:hover {
  background-color: #333;
  color: #fff;
}

.chip-special {
  background-color: #1a291f;
  border-color: #284730;
  color: #00e676;
  font-weight: 600;
}

.chip-special:hover {
  background-color: #223d2b;
  color: #00ff88;
}

.chip-special.active {
  background-color: #00e676;
  color: #000;
  border-color: #00e676;
}

.chip.active {
  background-color: #f1f1f1;
  color: #0f0f0f;
  font-weight: 600;
  border-color: #fff;
}

/* Thao tác nhanh trên Thẻ Video (Video Card Action Buttons) */
.card-actions-bar {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-card-action {
  flex: 1;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.btn-card-play {
  background: rgba(255, 0, 0, 0.15);
  color: #ff5555;
  border-color: rgba(255, 0, 0, 0.25);
}

.btn-card-play:hover {
  background: var(--accent-red);
  color: #fff;
}

.btn-card-audio {
  background: rgba(0, 230, 118, 0.12);
  color: #00e676;
  border-color: rgba(0, 230, 118, 0.2);
}

.btn-card-audio:hover {
  background: #00e676;
  color: #000;
}

/* Main Content */
#main-content {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 16px 24px;
}

/* Player Wrapper */
.player-wrapper {
  margin-bottom: 28px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.player-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background-color: #141414;
  border-bottom: 1px solid var(--border-color);
}

.now-playing-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-green);
}

.player-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ctrl-btn {
  background-color: #242424;
  border: 1px solid #3a3a3a;
  color: #eee;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.ctrl-btn:hover {
  background-color: #383838;
}

.ctrl-btn.close {
  background-color: #2b1111;
  border-color: #ff3333;
  color: #ff8888;
}

.ctrl-btn.close:hover {
  background-color: #ff3333;
  color: #fff;
}

.volume-boost-group {
  position: relative;
}

.vol-popover {
  position: absolute;
  top: 36px;
  right: 0;
  background-color: #1f1f1f;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 12px;
  width: 170px;
  z-index: 100;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}

.popover-title {
  font-size: 11px;
  color: #aaa;
  margin-bottom: 6px;
  text-align: center;
}

.vol-popover input[type="range"] {
  width: 100%;
  accent-color: var(--accent-red);
  cursor: pointer;
}

.vol-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #888;
  margin-top: 4px;
}

/* Iframe Aspect Box (16:9) */
.iframe-aspect-box {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  background-color: #000;
}

.iframe-aspect-box iframe,
#yt-player-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-info-box {
  padding: 16px;
}

.video-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.video-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-sub);
}

.video-author {
  color: #fff;
  font-weight: 600;
}

.meta-dot {
  color: #555;
}

.badge-sponsor-live {
  margin-left: auto;
  background-color: #182e1c;
  color: var(--accent-green);
  border: 1px solid var(--accent-green);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

/* Grid Section */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.results-count {
  font-size: 13px;
  color: var(--text-sub);
}

/* Video Grid Cards */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.video-card {
  background-color: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
  border-color: #383838;
}

.card-thumb-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background-color: #111;
  overflow: hidden;
}

.card-thumb-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.video-card:hover .card-thumb-wrap img {
  transform: scale(1.05);
}

.card-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background-color: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-channel {
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 4px;
}

.card-meta {
  font-size: 12px;
  color: #888;
  margin-top: auto;
}

/* Spinner */
.spinner-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  gap: 12px;
  color: var(--text-sub);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #222;
  border-top-color: var(--accent-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(18, 18, 18, 0.95);
  color: var(--accent-green);
  border: 1px solid var(--accent-green);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 230, 118, 0.3);
  z-index: 9999;
  pointer-events: none;
  animation: fadeIn 0.3s ease;
}

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

.hidden {
  display: none !important;
}

/* Intro Button (Angular Style) */
.intro-btn {
  background: rgba(229, 53, 171, 0.15) !important;
  color: #fff !important;
  border: 1px solid rgba(229, 53, 171, 0.4) !important;
  font-weight: 600 !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.intro-btn:hover {
  background: linear-gradient(135deg, #e535ab, #ff5252) !important;
  border-color: transparent !important;
  box-shadow: 0 0 14px rgba(229, 53, 171, 0.5);
  transform: translateY(-1px);
}

/* VIP Glow Button */
.vip-glow-btn {
  background: linear-gradient(135deg, #ffd700, #ff8c00) !important;
  color: #111 !important;
  font-weight: 700 !important;
  border: 1px solid #ffe066 !important;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
  animation: pulseGold 2.5s infinite;
}

@keyframes pulseGold {
  0% { box-shadow: 0 0 8px rgba(255, 215, 0, 0.3); }
  50% { box-shadow: 0 0 16px rgba(255, 215, 0, 0.7); }
  100% { box-shadow: 0 0 8px rgba(255, 215, 0, 0.3); }
}

/* Modal Overlay & Box */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

.modal-box {
  background: #181818;
  border: 1px solid #333;
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.modal-box-large {
  max-width: 860px;
}

.modal-header {
  padding: 16px 20px;
  background: #202020;
  border-bottom: 1px solid #2e2e2e;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 17px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close {
  background: transparent;
  border: none;
  color: #aaa;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.modal-close:hover {
  background: #333;
  color: #fff;
}

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

.modal-footer {
  padding: 14px 20px;
  background: #202020;
  border-top: 1px solid #2e2e2e;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-divider {
  border: none;
  border-top: 1px solid #2e2e2e;
  margin: 20px 0;
}

/* Settings Section */
.settings-section h4 {
  font-size: 15px;
  color: #fff;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-desc {
  font-size: 13px;
  color: #999;
  margin-bottom: 14px;
}

.input-inline-group {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.input-inline-group input,
.pay-input-group input,
.admin-input-wrap input,
.grant-inline-form input {
  flex: 1;
  background: #111;
  border: 1px solid #383838;
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
}

.input-inline-group input:focus,
.pay-input-group input:focus,
.admin-input-wrap input:focus,
.grant-inline-form input:focus {
  border-color: var(--accent-red);
}

.form-select,
.grant-inline-form select {
  width: 100%;
  background: #111;
  border: 1px solid #383838;
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-red);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--accent-red-hover);
}

.btn-secondary {
  background: #333;
  color: #eee;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #444;
}

.btn-outline {
  background: transparent;
  color: #aaa;
  border: 1px solid #444;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-outline:hover {
  background: #2a2a2a;
  color: #fff;
}

.btn-danger {
  background: #d32f2f;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-danger:hover {
  background: #b71c1c;
}

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

/* Account Status Card */
.account-status-card {
  background: #202020;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 14px;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.badge-free {
  background: #3a3a3a;
  color: #bbb;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.badge-vip {
  background: linear-gradient(135deg, #ffd700, #ff9800);
  color: #111;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.status-subtext {
  margin-top: 8px;
  font-size: 12px;
  color: #00e676;
}

/* Pricing Plans Grid */
.pricing-plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.plan-card {
  position: relative;
  background: #1f1f1f;
  border: 2px solid #333;
  border-radius: 10px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.plan-card:hover {
  border-color: #555;
  transform: translateY(-2px);
}

.plan-card.active {
  border-color: var(--accent-red);
  background: #241d1d;
  box-shadow: 0 4px 20px rgba(255, 0, 0, 0.2);
}

.plan-badge {
  position: absolute;
  top: -10px;
  right: 14px;
  background: var(--accent-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
}

.plan-badge.gold {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #111;
}

.plan-card h4 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 8px;
}

.plan-price {
  font-size: 24px;
  font-weight: 800;
  color: #00e676;
  margin-bottom: 14px;
}

.plan-price .currency {
  font-size: 14px;
  font-weight: 600;
  margin-left: 2px;
}

.plan-price .cycle {
  font-size: 13px;
  color: #888;
  font-weight: 400;
}

.plan-features {
  list-style: none;
  font-size: 13px;
  color: #ccc;
  margin-bottom: 16px;
  flex: 1;
}

.plan-features li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.plan-radio-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-top: auto;
}

/* Payment Section */
.payment-section h4 {
  font-size: 15px;
  color: #fff;
  margin-bottom: 12px;
}

.payment-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.pay-tab {
  flex: 1;
  background: #242424;
  border: 1px solid #383838;
  color: #ccc;
  padding: 10px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.pay-tab:hover {
  background: #2e2e2e;
  color: #fff;
}

.pay-tab.active {
  background: #2c2520;
  border-color: #ff9800;
  color: #ffb74d;
}

.pay-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.pay-input-group label {
  font-size: 13px;
  color: #aaa;
}

.btn-create-invoice {
  width: 100%;
  background: linear-gradient(135deg, #00c853, #00e676);
  color: #0b1f10;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(0, 230, 118, 0.3);
}

.btn-create-invoice:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 230, 118, 0.4);
}

/* Payment Display Box */
.payment-display-area {
  margin-top: 18px;
  background: #141414;
  border: 1px dashed #444;
  border-radius: 8px;
  padding: 18px;
  text-align: center;
}

.qr-box-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.qr-image {
  max-width: 260px;
  width: 100%;
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.qr-bank-details {
  text-align: left;
  font-size: 13px;
  color: #ddd;
  background: #202020;
  padding: 12px 16px;
  border-radius: 6px;
  width: 100%;
  max-width: 420px;
  border: 1px solid #333;
}

.qr-bank-details p {
  margin-bottom: 6px;
}

.qr-bank-details strong {
  color: #00e676;
}

.order-code-highlight {
  color: #ffd700 !important;
  font-family: monospace;
  font-size: 15px;
  font-weight: 800;
}

.paypal-box-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.paypal-btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0070ba;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 15px;
  box-shadow: 0 4px 15px rgba(0, 112, 186, 0.4);
  transition: background 0.2s;
}

.paypal-btn-link:hover {
  background: #005ea6;
}

.paypal-email-note {
  font-size: 12px;
  color: #aaa;
  max-width: 440px;
  line-height: 1.5;
}

/* PayPal Currency Conversion & Link Box */
.paypal-link-box {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  width: 100%;
}

.paypal-copy-input {
  flex: 1;
  background: #0f172a;
  border: 1px solid #334155;
  color: #38bdf8;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-family: monospace;
  outline: none;
}

.paypal-copy-input:focus {
  border-color: #38bdf8;
}

.btn-copy-paypal {
  background: #1e293b;
  border: 1px solid #475569;
  color: #f1f5f9;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-copy-paypal:hover {
  background: #334155;
  color: #38bdf8;
  border-color: #38bdf8;
}

.payment-radio.active {
  border-color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.08) !important;
}

.pricing-card.active {
  border-color: #00e676 !important;
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.25) !important;
  transform: translateY(-2px);
}

.polling-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #ffd700;
  font-weight: 600;
  margin-top: 8px;
}

.polling-dot {
  width: 8px;
  height: 8px;
  background: #ffd700;
  border-radius: 50%;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Admin Verification Section */
.admin-verification-section {
  background: #1d1b18;
  border: 1px solid #4a3e20;
  border-radius: 8px;
  padding: 16px;
}

.admin-check-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-check-header h4 {
  font-size: 14px;
  color: #ffd700;
}

.admin-hint {
  font-size: 12px;
  color: #999;
}

.admin-input-wrap {
  display: flex;
  gap: 10px;
}

.btn-admin-verify {
  background: #d4a017;
  color: #111;
  font-weight: 700;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-admin-verify:hover {
  background: #e6b12a;
}

/* Admin Management Panel */
.admin-management-panel {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #4a3e20;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #292418;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid #635021;
}

.badge-admin {
  background: #ffd700;
  color: #111;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 8px;
}

.admin-welcome-text {
  font-size: 13px;
  color: #fff;
  font-weight: 600;
}

.admin-quick-grant {
  background: #211e19;
  border: 1px solid #3d341e;
  border-radius: 6px;
  padding: 12px 14px;
}

.admin-quick-grant h5,
.admin-orders-list-wrap h5 {
  font-size: 13px;
  color: #ffd700;
  margin-bottom: 10px;
}

.grant-inline-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.grant-inline-form input {
  flex: 2;
  min-width: 180px;
}

.grant-inline-form select {
  flex: 1;
  min-width: 140px;
}

/* Admin Table */
.table-responsive {
  overflow-x: auto;
  max-height: 280px;
  border: 1px solid #333;
  border-radius: 6px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.admin-table th {
  background: #252525;
  color: #bbb;
  padding: 10px 8px;
  border-bottom: 1px solid #383838;
  position: sticky;
  top: 0;
}

.admin-table td {
  padding: 8px;
  border-bottom: 1px solid #282828;
  color: #ddd;
}

.admin-table tr:hover {
  background: #242424;
}

.badge-order-pending {
  background: #ff9800;
  color: #111;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
}

.badge-order-completed {
  background: #00e676;
  color: #0b1f10;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
}

/* Backup & Restore Wrap */
.backup-actions-wrap {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Modal Shortcuts & Kbd */
.modal-box-shortcuts {
  max-width: 600px;
}

.shortcuts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.shortcut-item {
  background: #202020;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.shortcut-desc {
  font-size: 13px;
  color: #ddd;
}

.keys-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

kbd {
  background: #333;
  color: #ff4081;
  border: 1px solid #444;
  box-shadow: 0 2px 0 #111;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
}

@media (max-width: 600px) {
  .shortcuts-grid {
    grid-template-columns: 1fr;
  }
}

/* User Auth Zone & Google Login Button */
.user-auth-zone {
  display: flex;
  align-items: center;
  position: relative;
}

.btn-google-login {
  background: #ffffff !important;
  color: #1f1f1f !important;
  font-weight: 700 !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ddd !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.2s;
}

.btn-google-login:hover {
  background: #f1f1f1 !important;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.google-icon {
  flex-shrink: 0;
}

/* Header User Profile Card */
.header-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #242424;
  border: 1px solid #3d3d3d;
  padding: 4px 12px 4px 6px;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.2s;
}

.header-user-card:hover {
  background: #2e2e2e;
  border-color: #555;
}

.user-avatar-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4285F4, #34A853);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  text-transform: uppercase;
  box-shadow: 0 0 8px rgba(66, 133, 244, 0.4);
}

.user-info-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.user-email-short {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-badge {
  font-size: 10px;
  font-weight: 700;
  color: #bbb;
}

.user-badge.vip {
  color: #ffd700;
}

.user-badge.admin {
  color: #ff5252;
}

/* Modal Login Box */
.modal-box-login {
  max-width: 480px;
}

.login-form-box {
  background: #202020;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 18px;
}

.form-group-login {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.form-group-login label {
  font-size: 13px;
  color: #ccc;
  font-weight: 600;
}

.gmail-input-wrapper {
  display: flex;
  gap: 8px;
}

.gmail-input-wrapper input {
  flex: 1;
  background: #111;
  border: 1px solid #444;
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
}

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

.btn-domain {
  background: #2c2c2c;
  color: #4285F4;
  border: 1px solid #444;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.btn-domain:hover {
  background: #383838;
}

.btn-block-login {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  font-size: 15px;
}

.login-perks-box {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 14px;
  border: 1px solid #2a2a2a;
}

.login-perks-box h5 {
  font-size: 13px;
  color: #ffd700;
  margin-bottom: 8px;
}

.login-perks-box ul {
  list-style: none;
  font-size: 12px;
  color: #bbb;
}

.login-perks-box ul li {
  margin-bottom: 6px;
  line-height: 1.5;
}

/* User Profile Popover */
.user-profile-popover {
  position: fixed;
  top: 64px;
  right: 16px;
  width: 290px;
  background: #1e1e1e;
  border: 1px solid #383838;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8);
  z-index: 10001;
  overflow: hidden;
  animation: fadeIn 0.2s ease;
}

.profile-popover-header {
  padding: 16px;
  background: #242424;
  border-bottom: 1px solid #333;
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-popover-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4285F4, #34A853);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.profile-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.profile-email {
  font-size: 12px;
  color: #999;
}

.profile-status-bar {
  padding: 12px 16px;
  background: #191919;
  border-bottom: 1px solid #2e2e2e;
}

.expiry-subtext {
  font-size: 11px;
  color: #00e676;
  margin-top: 4px;
}

.profile-popover-actions {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-btn-action {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: #ddd;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}

.profile-btn-action:hover {
  background: #2a2a2a;
  color: #fff;
}

.profile-btn-action.danger {
  color: #ff5252;
}

.profile-btn-action.danger:hover {
  background: rgba(255, 82, 82, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
  #header {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 14px;
    gap: 10px;
  }
  .header-left {
    width: 100%;
    justify-content: space-between;
  }
  .header-center {
    order: 3;
    max-width: 100%;
    width: 100%;
  }
  .header-right {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .pricing-plans-grid {
    grid-template-columns: 1fr;
  }
  .grant-inline-form {
    flex-direction: column;
  }
  .admin-input-wrap {
    flex-direction: column;
  }
  .input-inline-group {
    flex-direction: column;
  }
  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
  }
  #main-content {
    padding: 12px;
  }
}

/* ========================================================
   LEFT SIDEBAR MENU & EXPAND / COLLAPSE STYLING
   ======================================================== */

.btn-sidebar-toggle {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  transition: background 0.2s, transform 0.15s;
}

.btn-sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.05);
}

/* Badge Đếm Lùi Dùng Thử 30 Phút */
.trial-timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 152, 0, 0.15);
  border: 1px solid rgba(255, 152, 0, 0.4);
  color: #ffb74d;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.trial-timer-badge:hover {
  background: rgba(255, 152, 0, 0.25);
  border-color: #ffa726;
  box-shadow: 0 0 12px rgba(255, 152, 0, 0.35);
}

.trial-timer-badge.vip-unlimited {
  background: rgba(0, 230, 118, 0.15);
  border-color: rgba(0, 230, 118, 0.4);
  color: #00e676;
}

.trial-dot {
  width: 7px;
  height: 7px;
  background: #ff9800;
  border-radius: 50%;
  box-shadow: 0 0 8px #ff9800;
  animation: pulseTrial 1.5s infinite;
}

.trial-timer-badge.vip-unlimited .trial-dot {
  background: #00e676;
  box-shadow: 0 0 8px #00e676;
}

@keyframes pulseTrial {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

/* App Layout: Sidebar + Main Viewport */
.app-layout-wrapper {
  display: flex;
  min-height: calc(100vh - 64px);
  position: relative;
  padding-bottom: 78px; /* Chừa không gian cho Footer Player Bar */
}

/* Sidebar Styling */
.app-sidebar {
  width: 250px;
  background: #121216;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  height: calc(100vh - 64px);
  position: sticky;
  top: 64px;
  overflow-y: auto;
  overflow-x: hidden;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  z-index: 99;
}

.app-sidebar::-webkit-scrollbar {
  width: 6px;
}
.app-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.sidebar-inner {
  padding: 12px 8px 30px;
}

.sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 12px 6px;
}

.sidebar-section-title {
  padding: 8px 12px 4px;
  font-size: 11px;
  font-weight: 700;
  color: #71717a;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity 0.2s;
}

/* Sidebar Item */
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #e4e4e7;
  background: transparent;
  border: none;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  width: 100%;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateX(2px);
}

.sidebar-item.active {
  background: rgba(255, 0, 0, 0.15);
  color: #ff4e45;
  font-weight: 700;
}

.sidebar-item.highlight-vip {
  color: #ffd700;
}
.sidebar-item.highlight-vip:hover {
  background: rgba(255, 215, 0, 0.12);
}

.sidebar-item.external-link {
  color: #38bdf8;
}
.sidebar-item.external-link:hover {
  background: rgba(56, 189, 248, 0.12);
}

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

.sidebar-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.external-icon {
  font-size: 12px;
  opacity: 0.6;
  margin-left: auto;
}

/* Sidebar Collapsed State (Thu Gọn) */
body.sidebar-collapsed .app-sidebar {
  width: 72px;
}

body.sidebar-collapsed .sidebar-label,
body.sidebar-collapsed .sidebar-section-title,
body.sidebar-collapsed .external-icon {
  display: none !important;
}

body.sidebar-collapsed .sidebar-item {
  justify-content: center;
  padding: 12px 0;
  gap: 0;
}

body.sidebar-collapsed .sidebar-icon {
  font-size: 20px;
  margin: 0;
}

.app-main-viewport {
  flex: 1;
  min-width: 0;
  overflow-x: hidden;
}

/* ========================================================
   AUDIO-ONLY / NGHE NHẠC NỀN VISUALIZER
   ======================================================== */

.audio-only-visualizer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #1e1b4b 0%, #09090b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 30px;
  z-index: 5;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.8);
}

.vinyl-disk-wrapper {
  position: relative;
  flex-shrink: 0;
}

.vinyl-disk {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: repeating-radial-gradient(
    #18181b,
    #18181b 3px,
    #27272a 4px,
    #18181b 5px
  );
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 0 4px #09090b;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vinyl-disk.rotating {
  animation: spinVinyl 12s linear infinite;
}

.vinyl-disk.paused {
  animation-play-state: paused;
}

@keyframes spinVinyl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.vinyl-artwork {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.vinyl-hole {
  position: absolute;
  width: 16px;
  height: 16px;
  background: #09090b;
  border-radius: 50%;
  border: 2px solid #52525b;
}

.audio-mode-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 480px;
}

.audio-mode-badge {
  font-size: 11px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.8px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 4px 10px;
  border-radius: 20px;
  align-self: flex-start;
}

.audio-mode-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.audio-mode-author {
  font-size: 13px;
  color: #a1a1aa;
  margin: 0;
}

.audio-waves {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 24px;
  margin: 6px 0;
}

.wave-bar {
  width: 4px;
  background: linear-gradient(180deg, #38bdf8, #818cf8);
  border-radius: 2px;
  animation: wavePulse 1.2s ease-in-out infinite alternate;
}

.wave-bar:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.wave-bar:nth-child(2) { height: 80%; animation-delay: 0.3s; }
.wave-bar:nth-child(3) { height: 60%; animation-delay: 0.2s; }
.wave-bar:nth-child(4) { height: 100%; animation-delay: 0.5s; }
.wave-bar:nth-child(5) { height: 70%; animation-delay: 0.4s; }
.wave-bar:nth-child(6) { height: 90%; animation-delay: 0.6s; }
.wave-bar:nth-child(7) { height: 50%; animation-delay: 0.2s; }
.wave-bar:nth-child(8) { height: 75%; animation-delay: 0.3s; }

@keyframes wavePulse {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

.btn-restore-video {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
  transition: all 0.2s;
}

.btn-restore-video:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* ========================================================
   BOTTOM PERSISTENT FOOTER PLAYER BAR
   ======================================================== */

.app-footer-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 74px;
  background: rgba(18, 18, 22, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.6);
  animation: slideUpFooter 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpFooter {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* Cột Trái */
.footer-player-left {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 28%;
  min-width: 200px;
}

.footer-thumb-box {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
}

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

.footer-thumb-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
  font-size: 14px;
}

.footer-thumb-box:hover .footer-thumb-overlay {
  opacity: 1;
}

.footer-track-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.footer-track-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.footer-track-title:hover {
  text-decoration: underline;
}

.footer-track-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.footer-track-author {
  font-size: 11.5px;
  color: #a1a1aa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-audio-pill {
  font-size: 10px;
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 700;
}

.footer-icon-btn {
  background: transparent;
  border: none;
  color: #a1a1aa;
  font-size: 16px;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.footer-icon-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

/* Cột Giữa */
.footer-player-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 44%;
  max-width: 620px;
  gap: 6px;
}

.footer-btn-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-btn-action {
  background: transparent;
  border: none;
  color: #e4e4e7;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.15s;
}

.footer-btn-action:hover {
  color: #fff;
  transform: scale(1.1);
}

.btn-subtext {
  font-size: 9px;
  font-weight: 700;
  margin-top: -2px;
}

.footer-btn-playpause {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.footer-btn-playpause:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.45);
}

.footer-btn-speed {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffd700;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.footer-btn-speed:hover {
  background: rgba(255, 215, 0, 0.2);
}

.footer-btn-bg-audio {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}

.footer-btn-bg-audio:hover {
  background: rgba(56, 189, 248, 0.25);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.footer-btn-bg-audio.active {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #fff;
  border-color: #38bdf8;
}

/* Timeline Tiến Trình */
.footer-timeline-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.footer-time {
  font-size: 11px;
  color: #a1a1aa;
  font-variant-numeric: tabular-nums;
  width: 32px;
  text-align: center;
}

.footer-progress-bar-bg {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  transition: height 0.15s;
}

.footer-progress-bar-bg:hover {
  height: 6px;
}

.footer-progress-bar-fill {
  height: 100%;
  background: #ff0000;
  border-radius: 2px;
  position: relative;
  transition: width 0.1s linear;
}

.footer-progress-bar-bg:hover .footer-progress-bar-fill::after {
  content: '';
  position: absolute;
  right: -5px;
  top: -3px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
}

/* Cột Phải */
.footer-player-right {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 28%;
  justify-content: flex-end;
}

.footer-slider-vol {
  width: 90px;
  height: 4px;
  accent-color: #00e676;
  cursor: pointer;
}

.footer-btn-boost {
  background: rgba(0, 230, 118, 0.15);
  border: 1px solid rgba(0, 230, 118, 0.4);
  color: #00e676;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.footer-btn-boost:hover {
  background: rgba(0, 230, 118, 0.28);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.4);
}

/* ========================================================
   MODAL HẾT THỜI GIAN DÙNG THỬ 30 PHÚT
   ======================================================== */

.modal-trial-box {
  max-width: 540px;
  border: 1px solid rgba(255, 215, 0, 0.4);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 215, 0, 0.2);
}

.trial-expired-banner {
  text-align: center;
  padding: 10px 0 16px;
}

.banner-crown {
  font-size: 48px;
  margin-bottom: 8px;
  animation: crownBounce 2s infinite ease-in-out;
}

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

.trial-expired-banner h4 {
  font-size: 18px;
  color: #ffd700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.trial-expired-banner p {
  font-size: 13.5px;
  color: #d1d5db;
  margin-bottom: 18px;
  line-height: 1.5;
}

.trial-pricing-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.trial-plan-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 16px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.trial-plan-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  border-color: #ffd700;
}

.trial-plan-card.best {
  border-color: #ffd700;
  background: rgba(255, 215, 0, 0.08);
}

.badge-best {
  position: absolute;
  top: -10px;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
}

.plan-type {
  font-size: 13px;
  font-weight: 600;
  color: #a1a1aa;
}

.plan-price {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 6px 0 2px;
}

.trial-plan-card.best .plan-price {
  color: #ffd700;
}

.plan-unit {
  font-size: 11px;
  color: #71717a;
}

.trial-payment-note {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #94a3b8;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px 14px;
  border-radius: 8px;
}

/* ========================================================
   RESPONSIVE CHO SIDEBAR & FOOTER BAR
   ======================================================== */

@media (max-width: 900px) {
  .app-sidebar {
    position: fixed;
    top: 64px;
    bottom: 74px;
    height: auto;
    transform: translateX(-100%);
    box-shadow: 8px 0 24px rgba(0, 0, 0, 0.8);
  }

  body.sidebar-expanded .app-sidebar {
    transform: translateX(0);
  }

  body.sidebar-collapsed .app-sidebar {
    transform: translateX(-100%);
    width: 250px;
  }

  .footer-player-left { width: 35%; }
  .footer-player-center { width: 50%; }
  .footer-player-right { display: none; }
}

@media (max-width: 600px) {
  .trial-timer-badge { display: none; }
  .footer-player-left { width: 50%; }
  .footer-player-center { width: 45%; }
  .footer-timeline-wrap { display: none; }
  .footer-btn-speed, .footer-btn-bg-audio { display: none; }
}

/* ========================================================
   IN-APP CALENDAR VIEWER & COMPOSITE SIDEBAR ITEM
   ======================================================== */

.sidebar-item-composite {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.sidebar-item-main {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 10px 0 0 10px;
  color: #38bdf8;
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-item-main:hover {
  background: rgba(56, 189, 248, 0.12);
  color: #fff;
}

.sidebar-item-ext-btn {
  padding: 10px 10px;
  border-radius: 0 10px 10px 0;
  color: #71717a;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-item-ext-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
}

body.sidebar-collapsed .sidebar-item-composite {
  justify-content: center;
}
body.sidebar-collapsed .sidebar-item-ext-btn {
  display: none !important;
}
body.sidebar-collapsed .sidebar-item-main {
  border-radius: 10px;
  padding: 12px 0;
  justify-content: center;
}

/* Modal Fullscreen Cho Lịch */
.modal-box-fullscreen {
  max-width: 95vw;
  width: 1200px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(56, 189, 248, 0.15);
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cal-nav-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #d1d5db;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.cal-nav-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.cal-nav-btn.active {
  background: #0284c7;
  color: #fff;
  border-color: #38bdf8;
}

.btn-cal-ext {
  color: #38bdf8;
  font-size: 12px;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.2s;
}

.btn-cal-ext:hover {
  background: rgba(56, 189, 248, 0.15);
}

.calendar-loading-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #71717a;
  font-size: 14px;
  pointer-events: none;
  z-index: 1;
}

/* Khung Thông Tin Thuê Bao Khách Hàng */
.customer-sub-box {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.sub-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sub-box-badge {
  background: #334155;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
}

.sub-box-badge.vip {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.sub-user-email {
  font-size: 13px;
  font-weight: 600;
  color: #38bdf8;
}

.sub-box-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.sub-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sub-lbl {
  font-size: 11px;
  color: #94a3b8;
}

.sub-val {
  font-size: 13px;
  color: #f1f5f9;
}

.sub-renew-alert {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sub-renew-alert.expired {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
}
