* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(135deg, #0f172a, #111827 45%, #1d4ed8);
  color: #f8fafc;
  min-height: 100vh;
}

.container {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.card {
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
  margin-bottom: 20px;
}

.hero h1,
.files-header h2 {
  margin: 0 0 12px;
}

.hero {
  text-align: center;
}

.header-logo {
  display: block;
  max-width: min(280px, 100%);
  height: auto;
  margin: 0 auto 18px;
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.22);
  color: #dbeafe;
}

.redeem-card {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.redeem-overview {
  margin-top: 16px;
}

.redeem-open-link.hidden {
  display: none;
}

.eyebrow {
  margin: 0 0 10px;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.muted {
  margin: 0;
  color: #cbd5e1;
}

.inline-link {
  color: #93c5fd;
}

.activation-form label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}

.row,
.files-header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

input,
select,
button {
  border-radius: 12px;
  border: none;
  font-size: 1rem;
}

input {
  flex: 1 1 260px;
  padding: 14px 16px;
  background: #e2e8f0;
  color: #0f172a;
}

select {
  width: 100%;
  padding: 14px 16px;
  background: #e2e8f0;
  color: #0f172a;
}

button {
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 700;
  background: #2563eb;
  color: white;
}

button.secondary {
  background: #334155;
}

button.warning-button {
  background: #f59e0b;
  color: #1f2937;
}

button.danger-button {
  background: #dc2626;
  color: white;
}

button:hover {
  filter: brightness(1.06);
}

.status {
  margin: 14px 0 0;
  color: #fde68a;
}

.status.success {
  color: #86efac;
}

.status.error {
  color: #fca5a5;
}

.activation-details {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.detail-box {
  padding: 16px;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
}

.detail-label {
  display: block;
  color: #93c5fd;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.detail-box strong {
  display: block;
  line-height: 1.4;
}

.admin-login-card {
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.2), transparent 32%),
    radial-gradient(circle at bottom left, rgba(34, 197, 94, 0.12), transparent 28%),
    rgba(15, 23, 42, 0.88);
  position: relative;
  overflow: hidden;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  box-shadow:
    0 28px 70px rgba(15, 23, 42, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.admin-login-card.admin-session-active {
  border-color: rgba(96, 165, 250, 0.3);
}

.admin-login-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.02) 50%, transparent 100%);
  pointer-events: none;
}

.admin-login-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(320px, 440px);
  gap: 24px;
  align-items: stretch;
  margin-top: 18px;
}

.admin-login-side {
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(37, 99, 235, 0.22), rgba(15, 23, 42, 0.4));
  border: 1px solid rgba(96, 165, 250, 0.22);
  position: relative;
  z-index: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.admin-login-side h3 {
  margin: 14px 0 10px;
  font-size: 1.45rem;
}

.admin-login-badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(147, 197, 253, 0.14);
  color: #bfdbfe;
  border: 1px solid rgba(147, 197, 253, 0.2);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-login-tips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  margin-bottom: 18px;
}

.admin-login-tip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
  font-size: 0.9rem;
}

.admin-login-feature-list {
  display: grid;
  gap: 12px;
}

.admin-login-feature {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.admin-login-feature strong,
.admin-login-feature span {
  display: block;
}

.admin-login-feature strong {
  margin-bottom: 6px;
  color: #dbeafe;
}

.admin-login-feature span {
  color: #cbd5e1;
  font-size: 0.95rem;
}

.admin-login-panel {
  padding: 28px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 24px 50px rgba(15, 23, 42, 0.34);
  position: relative;
  z-index: 1;
}

.admin-login-caption {
  margin: 0 0 12px;
  text-align: center;
  color: #93c5fd;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-login-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.35), rgba(255, 255, 255, 0.04));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.admin-login-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  font-size: 1.6rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(96, 165, 250, 0.28);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.16);
}

.admin-login-title {
  margin: 0 0 8px;
  text-align: center;
  font-size: 1.35rem;
}

.admin-login-subtitle {
  text-align: center;
  margin-bottom: 18px;
}

.admin-input-group + .admin-input-group {
  margin-top: 14px;
}

.admin-login-row {
  justify-content: flex-start;
}

.admin-login-field-note {
  margin: -2px 0 8px;
  color: #94a3b8;
  font-size: 0.9rem;
}

.admin-input-wrap {
  gap: 10px;
  flex-wrap: nowrap;
  padding: 6px 8px 6px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.admin-input-wrap:focus-within {
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow:
    0 0 0 4px rgba(37, 99, 235, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.admin-input-icon {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.18);
}

.admin-login-panel input {
  flex: 1 1 auto;
  background: transparent;
  color: #f8fafc;
  border: none;
  box-shadow: none;
  padding: 14px 10px 14px 4px;
}

.admin-login-panel input::placeholder {
  color: #94a3b8;
}

.admin-login-button {
  width: 100%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  min-height: 52px;
}

.admin-login-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.34);
}

.admin-login-actions {
  align-items: stretch;
}

.admin-login-actions .admin-login-button,
.admin-login-actions .secondary {
  flex: 1 1 200px;
}

.admin-otp-timer {
  margin: 10px 4px 0;
  color: #fcd34d;
  font-size: 0.9rem;
}

.admin-login-note {
  margin: 14px 0 0;
  text-align: center;
  color: #93c5fd;
  font-size: 0.9rem;
}

.admin-login-foot {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.admin-login-foot span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
  font-size: 0.88rem;
}

#admin-logout-button {
  min-width: 110px;
}

.hidden {
  display: none;
}

.files-browser-card {
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 26%),
    rgba(15, 23, 42, 0.82);
}

.files-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.overview-chip {
  padding: 16px;
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.overview-label {
  display: block;
  color: #93c5fd;
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.overview-chip strong {
  display: block;
  line-height: 1.45;
  word-break: break-word;
}

.files-browser-note {
  margin: 14px 2px 0;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.files {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.files.empty {
  color: #cbd5e1;
}

.files-empty-state {
  padding: 28px 22px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.52);
  border: 1px dashed rgba(148, 163, 184, 0.2);
  text-align: center;
}

.files-empty-state strong,
.files-empty-state span {
  display: block;
}

.files-empty-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.files-empty-state span {
  margin-top: 8px;
  color: #cbd5e1;
}

.folder-group {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.42));
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 20px;
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.folder-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #93c5fd;
  font-weight: 700;
  word-break: break-word;
  cursor: pointer;
  list-style: none;
  padding: 4px 2px;
}

.folder-heading::-webkit-details-marker {
  display: none;
}

.folder-heading::before {
  content: '▸';
  color: #f8fafc;
  margin-right: 8px;
}

.folder-group[open] .folder-heading::before {
  content: '▾';
}

.folder-name-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.folder-icon {
  flex: 0 0 auto;
}

.folder-count {
  color: #dbeafe;
  font-size: 0.82rem;
  white-space: nowrap;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.16);
}

.folder-files {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.folder-section {
  display: grid;
  gap: 12px;
}

.folder-section + .folder-section {
  margin-top: 8px;
}

.folder-section-label {
  margin: 2px 2px 0;
  color: #93c5fd;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.folder-level-1,
.folder-level-2,
.folder-level-3,
.folder-level-4,
.folder-level-5 {
  margin-left: 16px;
}

.folder-level-1 {
  border-color: rgba(96, 165, 250, 0.2);
}

.folder-level-2 {
  border-color: rgba(125, 211, 252, 0.2);
}

.folder-level-3,
.folder-level-4,
.folder-level-5 {
  border-color: rgba(148, 163, 184, 0.18);
}

.file-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: rgba(30, 41, 59, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.file-item:hover {
  transform: translateY(-1px);
  border-color: rgba(96, 165, 250, 0.24);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.file-meta strong,
.file-meta span {
  display: block;
}

.file-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(74, 222, 128, 0.16);
  color: #bbf7d0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.file-meta span {
  color: #cbd5e1;
  word-break: break-word;
}

.download-link {
  text-decoration: none;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #f0fdf4;
  font-weight: 700;
  padding: 12px 14px;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.2);
}

.disk-search-wrap {
  margin-top: 18px;
}

.disk-list-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.disk-list-grid.empty {
  grid-template-columns: 1fr;
}

.disk-file-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.14);
  display: grid;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.disk-file-card strong,
.disk-file-card span {
  display: block;
  min-width: 0;
}

.disk-file-card span {
  color: #cbd5e1;
  word-break: break-word;
}

.disk-file-card strong {
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.disk-file-path {
  min-height: 40px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.disk-catalog {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.disk-catalog.empty {
  grid-template-columns: 1fr;
}

.catalog-folder-group {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.44));
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.catalog-folder-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.catalog-folder-header > div {
  min-width: 0;
}

.catalog-folder-label {
  display: block;
  color: #93c5fd;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.catalog-folder-header h3 {
  margin: 0;
  font-size: 1.05rem;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.catalog-folder-count {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.16);
  color: #dbeafe;
  font-size: 0.84rem;
}

.catalog-file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.admin-result {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.admin-codes {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.admin-codes.empty {
  color: #cbd5e1;
}

.admin-code-item {
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 8px;
}

.admin-code-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

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

.admin-code-main strong,
.admin-code-main span,
.admin-code-meta span {
  display: block;
}

.admin-code-meta {
  color: #cbd5e1;
}

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

/* ===== Codes toolbar (search + tabs) ===== */
.admin-codes-toolbar {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.admin-codes-search-wrap {
  flex: 1 1 200px;
  max-width: 320px;
}

.admin-codes-search-wrap input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: .92rem;
}

.admin-codes-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.codes-tab {
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(30, 41, 59, .7);
  border: 1px solid rgba(148, 163, 184, .14);
  color: #94a3b8;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .22s ease;
}

.codes-tab:hover {
  border-color: rgba(96, 165, 250, .28);
  color: #dbeafe;
  background: rgba(37, 99, 235, .1);
}

.codes-tab.active {
  background: rgba(37, 99, 235, .22);
  border-color: rgba(96, 165, 250, .35);
  color: #dbeafe;
}

/* ===== Codes compact table ===== */
.codes-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, .12);
  background: rgba(15, 23, 42, .5);
}

.codes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}

.codes-table thead {
  background: rgba(30, 41, 59, .7);
  border-bottom: 1px solid rgba(148, 163, 184, .16);
  position: sticky;
  top: 0;
  z-index: 1;
}

.codes-table th {
  padding: 12px 10px;
  text-align: left;
  color: #93c5fd;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.codes-table-row {
  border-bottom: 1px solid rgba(148, 163, 184, .06);
  transition: background .18s ease;
}

.codes-table-row:hover {
  background: rgba(37, 99, 235, .06);
}

.codes-table-row:last-child {
  border-bottom: none;
}

.codes-table td {
  padding: 10px 10px;
  vertical-align: middle;
  white-space: nowrap;
}

.codes-table-code {
  font-family: 'Consolas', 'Courier New', monospace;
  letter-spacing: .02em;
  color: #dbeafe;
}

.codes-table-code strong {
  font-weight: 700;
}

.codes-table-access {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #cbd5e1;
  font-size: .84rem;
}

.codes-table-date {
  font-size: .82rem;
  color: #94a3b8;
}

.codes-table-device {
  text-align: center;
  font-size: 1rem;
}

.codes-table-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.codes-table-actions button {
  padding: 6px 10px;
  font-size: .8rem;
  border-radius: 8px;
  min-width: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ===== Status badges ===== */
.code-status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 700;
  text-transform: capitalize;
}

.code-status-available {
  background: rgba(34, 197, 94, .14);
  border: 1px solid rgba(74, 222, 128, .18);
  color: #bbf7d0;
}

.code-status-claimed {
  background: rgba(96, 165, 250, .16);
  border: 1px solid rgba(147, 197, 253, .2);
  color: #bfdbfe;
}

.code-status-expired {
  background: rgba(239, 68, 68, .14);
  border: 1px solid rgba(252, 165, 165, .16);
  color: #fecaca;
}

/* ===== Pagination ===== */
.codes-page-btn {
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(30, 41, 59, .7);
  border: 1px solid rgba(148, 163, 184, .14);
  color: #94a3b8;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  min-width: 34px;
  transition: all .18s ease;
}

.codes-page-btn:hover:not(.disabled) {
  background: rgba(37, 99, 235, .16);
  border-color: rgba(96, 165, 250, .26);
  color: #dbeafe;
}

.codes-page-btn.active {
  background: rgba(37, 99, 235, .28);
  border-color: rgba(96, 165, 250, .4);
  color: #f8fafc;
}

.codes-page-btn.disabled {
  opacity: .35;
  cursor: default;
  pointer-events: none;
}

.codes-page-info {
  color: #94a3b8;
  font-size: .82rem;
  padding: 0 6px;
}

.admin-codes-footer {
  margin-top: 14px;
}

/* ===== Animations ===== */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(37, 99, 235, 0);
  }
}

@keyframes shimmerBorder {
  0% {
    background-position: -400% 0;
  }
  100% {
    background-position: 400% 0;
  }
}

@keyframes bgGradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

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

@keyframes otpPulse {
  0%, 100% {
    opacity: 1;
    color: #fcd34d;
  }
  50% {
    opacity: .55;
    color: #fbbf24;
  }
}

@keyframes statusBlink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .6;
  }
}

@keyframes successPop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes sweepLine {
  0% {
    left: -100%;
  }
  100% {
    left: 200%;
  }
}

@keyframes codeItemReveal {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== Body animated background ===== */
body {
  background: linear-gradient(135deg, #0f172a, #0c1929 20%, #111827 45%, #1a2456 65%, #0f172a 85%, #1e1b4b);
  background-size: 400% 400%;
  animation: bgGradientShift 18s ease infinite;
}

/* ===== Card entry animations ===== */
.card.hero {
  animation: fadeSlideDown .55s ease-out both;
}

.admin-login-card {
  animation: fadeSlideUp .6s ease-out .15s both;
}

#admin-panel-card {
  animation: fadeSlideUp .55s ease-out both;
}

#admin-codes-card {
  animation: fadeSlideUp .55s ease-out .08s both;
}

/* ===== Shimmer border on login card ===== */
.admin-login-card {
  position: relative;
  overflow: hidden;
}

.admin-login-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1.5px;
  background: linear-gradient(
    120deg,
    transparent 25%,
    rgba(96, 165, 250, .35) 45%,
    rgba(147, 197, 253, .55) 50%,
    rgba(96, 165, 250, .35) 55%,
    transparent 75%
  );
  background-size: 400% 400%;
  animation: shimmerBorder 6s linear infinite;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.admin-login-card.admin-session-active::before {
  background: linear-gradient(
    120deg,
    transparent 20%,
    rgba(34, 197, 94, .3) 40%,
    rgba(74, 222, 128, .45) 50%,
    rgba(34, 197, 94, .3) 60%,
    transparent 80%
  );
  background-size: 400% 400%;
  animation: shimmerBorder 5s linear infinite;
}

/* ===== Admin login icon float ===== */
.admin-login-icon {
  animation: iconFloat 3s ease-in-out infinite;
}

/* ===== Login button pulse ===== */
.admin-login-button {
  animation: pulseGlow 3s ease-in-out infinite;
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease, background .3s ease !important;
}

.admin-login-button:hover {
  transform: translateY(-2px) scale(1.02) !important;
}

/* ===== Input focus enhanced glow ===== */
.admin-input-wrap {
  transition: border-color .3s ease, box-shadow .3s ease, transform .25s ease, background .25s ease !important;
}

.admin-input-wrap:focus-within {
  border-color: rgba(96, 165, 250, .55) !important;
  box-shadow:
    0 0 0 5px rgba(37, 99, 235, .16),
    0 0 24px rgba(37, 99, 235, .1),
    inset 0 1px 0 rgba(255, 255, 255, .05) !important;
  transform: translateY(-2px) !important;
  background: rgba(255, 255, 255, .06) !important;
}

/* ===== OTP timer animation ===== */
.admin-otp-timer:not(.hidden) {
  animation: otpPulse 1.6s ease-in-out infinite;
}

/* ===== Feature card hover ===== */
.admin-login-feature {
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease !important;
  cursor: default;
}

.admin-login-feature:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(96, 165, 250, .3);
  box-shadow: 0 8px 24px rgba(37, 99, 235, .14);
  background: rgba(30, 41, 59, .65);
}

/* ===== Badge & tip hover ===== */
.admin-login-tip,
.admin-login-foot span {
  transition: transform .22s ease, background .22s ease, border-color .22s ease !important;
  cursor: default;
}

.admin-login-tip:hover,
.admin-login-foot span:hover {
  transform: translateY(-2px);
  background: rgba(37, 99, 235, .14);
  border-color: rgba(96, 165, 250, .24);
}

.admin-login-badge {
  transition: transform .22s ease, box-shadow .22s ease !important;
}

.admin-login-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, .16);
}

/* ===== Panel card reveal ===== */
#admin-panel-card,
#admin-codes-card {
  transition: opacity .4s ease, transform .4s ease !important;
}

#admin-panel-card.hidden,
#admin-codes-card.hidden {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

#admin-panel-card:not(.hidden),
#admin-codes-card:not(.hidden) {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Code item staggered reveal ===== */
.admin-code-item {
  animation: codeItemReveal .4s ease-out both;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease !important;
}

.admin-code-item:nth-child(1) { animation-delay: .05s; }
.admin-code-item:nth-child(2) { animation-delay: .1s; }
.admin-code-item:nth-child(3) { animation-delay: .15s; }
.admin-code-item:nth-child(4) { animation-delay: .2s; }
.admin-code-item:nth-child(5) { animation-delay: .25s; }
.admin-code-item:nth-child(6) { animation-delay: .3s; }
.admin-code-item:nth-child(7) { animation-delay: .35s; }
.admin-code-item:nth-child(8) { animation-delay: .4s; }
.admin-code-item:nth-child(9) { animation-delay: .45s; }
.admin-code-item:nth-child(10) { animation-delay: .5s; }

.admin-code-item:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, .28);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .22);
}

/* ===== Create code result pop ===== */
#create-code-result:not(.hidden) {
  animation: scaleIn .35s ease-out both;
}

/* ===== Status message transition ===== */
.status {
  transition: color .35s ease, opacity .3s ease !important;
}

.status.success {
  animation: successPop .4s ease-out;
}

/* ===== Button hover scale ===== */
button:not(.admin-login-button) {
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease, background .25s ease !important;
}

button:not(.admin-login-button):hover {
  transform: translateY(-1px);
}

button:not(.admin-login-button):active {
  transform: translateY(0) scale(.97);
}

.admin-login-button:active {
  transform: scale(.96) !important;
}

/* ===== Logout button slide ===== */
#admin-logout-button {
  transition: opacity .3s ease, transform .3s ease !important;
}

#admin-logout-button.hidden {
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
}

#admin-logout-button:not(.hidden) {
  opacity: 1;
  transform: translateX(0);
}

/* ===== Overview chip hover ===== */
.overview-chip {
  transition: transform .22s ease, border-color .22s ease, background .22s ease !important;
}

.overview-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, .22);
  background: rgba(30, 41, 59, .95);
}

/* ===== Select dropdown hover ===== */
select {
  transition: border-color .22s ease, box-shadow .22s ease !important;
  cursor: pointer;
}

select:focus {
  border-color: rgba(96, 165, 250, .5);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
  outline: none;
}

/* ===== Amount input enhanced ===== */
#code-amount {
  max-width: 130px;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease !important;
}

#code-amount:focus {
  transform: translateY(-1px);
}

/* ===== Detail box hover ===== */
.detail-box {
  transition: transform .22s ease, border-color .22s ease, background .22s ease !important;
}

.detail-box:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, .2);
  background: rgba(30, 41, 59, .96);
}

/* ===== Section divider sweep ===== */
#admin-panel-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, .45), transparent);
  animation: sweepLine 4s ease-in-out infinite;
  pointer-events: none;
}

#admin-panel-card {
  position: relative;
  overflow: hidden;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, .6);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb {
  background: rgba(96, 165, 250, .25);
  border-radius: 8px;
  transition: background .22s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(96, 165, 250, .4);
}

@media (max-width: 640px) {
  .container {
    padding: 24px 0;
  }

  .admin-login-grid {
    grid-template-columns: 1fr;
  }

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

  .download-link {
    width: 100%;
    text-align: center;
  }

  .hero-link-button {
    width: 100%;
  }

  /* Disable heavy animations on mobile */
  .admin-login-card::before,
  .admin-login-icon,
  .admin-login-button {
    animation: none;
  }

  .admin-code-item {
    animation: fadeIn .3s ease-out both;
    animation-delay: 0s;
  }
}
/* ===== Main page hero enhancements ===== */
.main-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 60% 20%, rgba(37, 99, 235, .18), transparent 55%),
              radial-gradient(circle at 30% 80%, rgba(34, 197, 94, .08), transparent 42%),
              rgba(15, 23, 42, .88);
}

.hero-glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, .3), transparent 70%);
  animation: heroGlowPulse 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes heroGlowPulse {
  0%, 100% { transform: scale(1); opacity: .6; }
  50% { transform: scale(1.2); opacity: .35; }
}

.hero-desc {
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btn-icon {
  display: inline-block;
  margin-right: 4px;
}

.hero-link-button {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease !important;
  position: relative;
  z-index: 1;
}

.hero-link-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, .18);
  border-color: rgba(96, 165, 250, .4);
}

.hero-link-primary {
  background: linear-gradient(135deg, rgba(37, 99, 235, .5), rgba(29, 78, 216, .35));
  border-color: rgba(96, 165, 250, .3) !important;
  box-shadow: 0 8px 22px rgba(37, 99, 235, .22);
}

.hero-link-primary:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, .6), rgba(29, 78, 216, .45));
  box-shadow: 0 14px 32px rgba(37, 99, 235, .3);
}

/* ===== Activation card ===== */
.activation-main-card {
  background: radial-gradient(circle at top left, rgba(37, 99, 235, .12), transparent 40%),
              radial-gradient(circle at bottom right, rgba(34, 197, 94, .06), transparent 36%),
              rgba(15, 23, 42, .84);
  animation: fadeSlideUp .5s ease-out .1s both;
}

.activation-card-inner {
  display: flex;
  flex-direction: column;
}

.activation-input-row {
  align-items: flex-end;
  gap: 12px;
}

.activation-input-wrap {
  flex: 1 1 300px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(148, 163, 184, .18);
  transition: border-color .28s ease, box-shadow .28s ease, transform .25s ease, background .25s ease;
}

.activation-input-wrap:focus-within {
  border-color: rgba(96, 165, 250, .5);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, .12), 0 0 22px rgba(37, 99, 235, .08);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .06);
}

.activation-input-icon {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(37, 99, 235, .16);
  border: 1px solid rgba(96, 165, 250, .18);
}

.activation-input-wrap input {
  flex: 1 1 auto;
  background: transparent;
  color: #f8fafc;
  border: none;
  box-shadow: none;
  padding: 14px 10px 14px 4px;
}

.activation-input-wrap input::placeholder {
  color: #94a3b8;
  font-family: 'Consolas', 'Courier New', monospace;
  letter-spacing: .04em;
}

.activation-unlock-btn {
  padding: 14px 24px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  font-weight: 700;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(37, 99, 235, .26);
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease !important;
  min-height: 52px;
}

.activation-unlock-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 34px rgba(37, 99, 235, .34);
}

.activation-unlock-btn:active {
  transform: scale(.96) !important;
}

.field-note {
  margin: 0 0 10px;
  font-size: .9rem;
}

/* ===== Detail status pill ===== */
.detail-status-pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1px solid rgba(148, 163, 184, .2);
  transition: all .3s ease;
}

.pill-inactive {
  background: rgba(148, 163, 184, .12);
  color: #94a3b8;
  border-color: rgba(148, 163, 184, .2);
}

.pill-available {
  background: rgba(34, 197, 94, .14);
  color: #bbf7d0;
  border-color: rgba(74, 222, 128, .2);
}

.pill-claimed {
  background: rgba(96, 165, 250, .16);
  color: #bfdbfe;
  border-color: rgba(147, 197, 253, .22);
  animation: pillPulse 2s ease-in-out infinite;
}

.pill-expired {
  background: rgba(239, 68, 68, .14);
  color: #fecaca;
  border-color: rgba(252, 165, 165, .2);
}

@keyframes pillPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(96, 165, 250, .25); }
  50% { box-shadow: 0 0 0 8px rgba(96, 165, 250, 0); }
}

/* ===== Activation details card ===== */
.activation-details-card {
  animation: fadeSlideUp .45s ease-out .15s both;
}

/* ===== Files header actions ===== */
.files-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.files-header-actions button {
  padding: 10px 14px;
  font-size: .88rem;
}

/* ===== Progress bar ===== */
.files-progress {
  margin: 14px 0 4px;
  height: 4px;
  border-radius: 4px;
  background: rgba(148, 163, 184, .1);
  overflow: hidden;
  transition: opacity .35s ease;
}

.files-progress.hidden {
  opacity: 0;
  height: 0;
  margin: 0;
}

.files-progress-bar {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #2563eb, #3b82f6, #60a5fa);
  background-size: 200% 100%;
  animation: progressShimmer 1.4s linear infinite;
  width: 0%;
  transition: width .35s ease-out;
}

@keyframes progressShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: 0 0; }
}

/* ===== File & folder reveal animations ===== */
.anim-fade-up {
  opacity: 0;
  transform: translateY(16px);
}

.anim-fade-up.anim-visible {
  animation: fadeUpReveal .4s ease-out forwards;
}

.anim-scale-in {
  opacity: 0;
  transform: scale(.94);
  animation: scaleInReveal .4s ease-out forwards;
}

@keyframes fadeUpReveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleInReveal {
  from {
    opacity: 0;
    transform: scale(.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== Enhanced file item ===== */
.file-item {
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease !important;
}

.file-item:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, .28);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .2);
  background: rgba(30, 41, 59, .92);
}

/* ===== Enhanced overview chip ===== */
.overview-chip strong {
  transition: color .3s ease;
}

/* ===== Download link enhanced ===== */
.download-link {
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease !important;
}

.download-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(22, 163, 74, .3);
  filter: brightness(1.08);
}
/* ===== Redeem warning ===== */
.redeem-warning {
  margin: 12px auto 0;
  max-width: 600px;
  color: #fcd34d;
  font-size: .9rem;
  font-weight: 600;
  background: rgba(251, 191, 36, .08);
  border: 1px solid rgba(251, 191, 36, .18);
  border-radius: 12px;
  padding: 10px 16px;
  text-align: center;
  animation: fadeSlideUp .5s ease-out .2s both;
}

/* ===== Step indicators ===== */
.redeem-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 24px;
  padding: 0 8px;
  animation: fadeSlideUp .45s ease-out .15s both;
}

.redeem-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all .35s ease;
  opacity: .4;
}

.redeem-step.active {
  opacity: 1;
}

.redeem-step.done {
  opacity: .7;
}

.redeem-step-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(148, 163, 184, .14);
  border: 2px solid rgba(148, 163, 184, .2);
  color: #94a3b8;
  font-weight: 700;
  font-size: .9rem;
  transition: all .35s ease;
}

.redeem-step.active .redeem-step-num {
  background: rgba(37, 99, 235, .25);
  border-color: rgba(96, 165, 250, .5);
  color: #dbeafe;
  box-shadow: 0 0 16px rgba(37, 99, 235, .25);
}

.redeem-step.done .redeem-step-num {
  background: rgba(34, 197, 94, .2);
  border-color: rgba(74, 222, 128, .35);
  color: #bbf7d0;
}

.redeem-step-label {
  font-size: .76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #94a3b8;
  transition: color .35s ease;
}

.redeem-step.active .redeem-step-label {
  color: #dbeafe;
}

.redeem-step.done .redeem-step-label {
  color: #bbf7d0;
}

.redeem-step-line {
  width: 48px;
  height: 2px;
  background: rgba(148, 163, 184, .14);
  margin: 0 8px 22px;
  border-radius: 2px;
  transition: background .35s ease;
}

/* ===== Redeem main card ===== */
.redeem-main-card {
  background: radial-gradient(circle at top left, rgba(37, 99, 235, .12), transparent 40%),
              radial-gradient(circle at bottom right, rgba(34, 197, 94, .06), transparent 36%),
              rgba(15, 23, 42, .86);
  animation: fadeSlideUp .5s ease-out .2s both;
}

/* ===== Redeem progress ===== */
.redeem-progress {
  margin: -4px 0 14px;
  height: 4px;
  border-radius: 4px;
  background: rgba(148, 163, 184, .08);
  overflow: hidden;
  transition: opacity .35s ease;
}

.redeem-progress.hidden {
  opacity: 0;
  height: 0;
  margin: 0;
}

.redeem-progress-bar {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #2563eb, #3b82f6, #60a5fa);
  background-size: 200% 100%;
  animation: progressShimmer 1.4s linear infinite;
  width: 0%;
  transition: width .35s ease-out;
}

/* ===== Redeem input ===== */
.redeem-input-row {
  align-items: flex-end;
  gap: 12px;
}

.redeem-input-wrap {
  flex: 1 1 300px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(148, 163, 184, .18);
  transition: border-color .28s ease, box-shadow .28s ease, transform .25s ease, background .25s ease;
}

.redeem-input-wrap:focus-within {
  border-color: rgba(96, 165, 250, .5);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, .12), 0 0 22px rgba(37, 99, 235, .08);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .06);
}

.redeem-input-icon {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(37, 99, 235, .16);
  border: 1px solid rgba(96, 165, 250, .18);
}

.redeem-input-wrap input {
  flex: 1 1 auto;
  background: transparent;
  color: #f8fafc;
  border: none;
  box-shadow: none;
  padding: 14px 10px 14px 4px;
}

.redeem-input-wrap input::placeholder {
  color: #94a3b8;
  font-family: 'Consolas', 'Courier New', monospace;
  letter-spacing: .04em;
}

/* ===== Search ===== */
.redeem-search-wrap {
  margin-bottom: 14px;
}

.redeem-search-wrap input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: .92rem;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(148, 163, 184, .18);
  color: #f8fafc;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.redeem-search-wrap input::placeholder {
  color: #94a3b8;
}

.redeem-search-wrap input:focus {
  border-color: rgba(96, 165, 250, .45);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .1);
}

/* ===== Folder grid cards ===== */
.redeem-folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
  padding: 4px 2px;
}

.redeem-folder-grid::-webkit-scrollbar {
  width: 6px;
}

.redeem-folder-grid::-webkit-scrollbar-thumb {
  background: rgba(96, 165, 250, .2);
  border-radius: 6px;
}

.redeem-folder-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px 16px;
  color: #94a3b8;
  font-size: .95rem;
}

.redeem-folder-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(30, 41, 59, .65);
  border: 2px solid rgba(148, 163, 184, .1);
  color: #cbd5e1;
  cursor: pointer;
  font-size: .85rem;
  text-align: left;
  transition: all .2s ease;
  animation: fadeSlideUp .35s ease-out both;
}

.redeem-folder-card:hover {
  border-color: rgba(96, 165, 250, .3);
  background: rgba(37, 99, 235, .1);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .2);
}

.redeem-folder-card.selected {
  border-color: rgba(34, 197, 94, .5);
  background: rgba(34, 197, 94, .1);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .12);
}

.redeem-folder-card-icon {
  font-size: 1.4rem;
}

.redeem-folder-card-brand {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(96, 165, 250, .12);
  border: 1px solid rgba(147, 197, 253, .14);
  color: #93c5fd;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.redeem-folder-card-name {
  color: #e2e8f0;
  font-weight: 600;
  word-break: break-word;
  line-height: 1.3;
}

/* ===== Redeem actions ===== */
.redeem-actions-row {
  margin-top: 16px;
  gap: 10px;
}

.redeem-submit-btn {
  padding: 14px 28px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  font-weight: 700;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(22, 163, 74, .26);
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease, opacity .25s ease !important;
  min-height: 52px;
}

.redeem-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 34px rgba(22, 163, 74, .34);
}

.redeem-submit-btn:active:not(:disabled) {
  transform: scale(.96) !important;
}

.redeem-submit-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
  filter: grayscale(.3);
}

.redeem-status-text {
  margin-top: 14px;
}

/* ===== Success panel ===== */
.redeem-success {
  margin-top: 20px;
  padding: 24px;
  border-radius: 20px;
  background: radial-gradient(circle at 30% 20%, rgba(34, 197, 94, .12), transparent 50%),
              rgba(15, 23, 42, .7);
  border: 1px solid rgba(74, 222, 128, .2);
  text-align: center;
  animation: scaleIn .45s ease-out both;
}

.redeem-success.hidden {
  display: none;
}

.redeem-success-check {
  font-size: 3rem;
  margin-bottom: 8px;
  animation: successPop .6s ease-out .1s both;
}

.redeem-success-title {
  margin: 0 0 8px;
  font-size: 1.4rem;
  color: #bbf7d0;
}

.redeem-success-desc {
  margin-bottom: 16px;
}

.redeem-success-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.redeem-countdown-text {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 1.05rem;
  color: #fcd34d;
}

/* ===== Redeem open link ===== */
.redeem-open-link {
  display: inline-flex;
}

.redeem-open-link.hidden {
  display: none;
}

.redeem-input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 1.05rem;
}

.field-note {
  margin: 0 0 10px;
  font-size: .9rem;
}

/* ===== Folder card stagger animation ===== */
.redeem-folder-card:nth-child(1) { animation-delay: .02s; }
.redeem-folder-card:nth-child(2) { animation-delay: .04s; }
.redeem-folder-card:nth-child(3) { animation-delay: .06s; }
.redeem-folder-card:nth-child(4) { animation-delay: .08s; }
.redeem-folder-card:nth-child(5) { animation-delay: .1s; }
.redeem-folder-card:nth-child(6) { animation-delay: .12s; }
.redeem-folder-card:nth-child(7) { animation-delay: .14s; }
.redeem-folder-card:nth-child(8) { animation-delay: .16s; }
.redeem-folder-card:nth-child(9) { animation-delay: .18s; }
.redeem-folder-card:nth-child(10) { animation-delay: .2s; }

@media (max-width: 640px) {
  .redeem-folder-grid {
    grid-template-columns: 1fr;
    max-height: 260px;
  }

  .redeem-step-line {
    width: 28px;
  }

  .redeem-steps {
    gap: 0;
  }
}
/* ===== Disk list main card ===== */
.disk-list-main-card {
  background: radial-gradient(circle at top left, rgba(37, 99, 235, .1), transparent 40%),
              rgba(15, 23, 42, .84);
  animation: fadeSlideUp .5s ease-out .15s both;
}

/* ===== Disk progress ===== */
.disk-progress {
  margin: -4px 0 14px;
  height: 4px;
  border-radius: 4px;
  background: rgba(148, 163, 184, .08);
  overflow: hidden;
  transition: opacity .35s ease;
}

.disk-progress.hidden {
  opacity: 0;
  height: 0;
  margin: 0;
}

.disk-progress-bar {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #2563eb, #3b82f6, #60a5fa);
  background-size: 200% 100%;
  animation: progressShimmer 1.4s linear infinite;
  width: 0%;
  transition: width .35s ease-out;
}

/* ===== Disk toolbar ===== */
.disk-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  flex-wrap: wrap;
}

.disk-search-wrap {
  flex: 1 1 280px;
}

.disk-search-wrap input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: .92rem;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(148, 163, 184, .18);
  color: #f8fafc;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.disk-search-wrap input::placeholder {
  color: #94a3b8;
}

.disk-search-wrap input:focus {
  border-color: rgba(96, 165, 250, .45);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .1);
}

.disk-result-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .14);
  border: 1px solid rgba(96, 165, 250, .2);
  color: #93c5fd;
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ===== Disk brand sections ===== */
.disk-brand-section {
  margin-bottom: 18px;
}

.disk-brand-section + .disk-brand-section {
  margin-top: 6px;
}

.disk-brand-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(30, 41, 59, .55);
  border: 1px solid rgba(148, 163, 184, .1);
  border-left: 4px solid;
  margin-bottom: 10px;
}

.disk-brand-icon {
  font-size: 1.2rem;
}

.disk-brand-name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.disk-brand-meta {
  margin-left: auto;
  color: #94a3b8;
  font-size: .8rem;
}

/* ===== Catalog folder group ===== */
.catalog-folder-group {
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(15, 23, 42, .52), rgba(15, 23, 42, .36));
  border: 1px solid rgba(148, 163, 184, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .02);
  margin-bottom: 10px;
  transition: border-color .22s ease, box-shadow .22s ease;
}

.catalog-folder-group:hover {
  border-color: rgba(96, 165, 250, .16);
}

.catalog-folder-header-summary {
  cursor: pointer;
  list-style: none;
  display: block;
}

.catalog-folder-header-summary::-webkit-details-marker {
  display: none;
}

.catalog-folder-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.catalog-folder-header > div {
  min-width: 0;
}

.catalog-folder-header h3 {
  margin: 0;
  font-size: .95rem;
  word-break: break-word;
  overflow-wrap: anywhere;
  color: #e2e8f0;
}

.catalog-folder-label {
  display: block;
  color: #93c5fd;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.catalog-folder-count {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .12);
  border: 1px solid rgba(96, 165, 250, .14);
  color: #dbeafe;
  font-size: .78rem;
  white-space: nowrap;
}

.catalog-file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
  margin-top: 12px;
  align-items: stretch;
}

/* ===== Disk file card ===== */
.disk-file-card {
  padding: 14px;
  border-radius: 14px;
  background: rgba(30, 41, 59, .7);
  border: 1px solid rgba(148, 163, 184, .1);
  display: grid;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.disk-file-card:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, .22);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .18);
  background: rgba(30, 41, 59, .88);
}

.disk-file-card strong {
  display: block;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.3;
  color: #f1f5f9;
  font-size: .9rem;
}

.disk-file-path {
  min-height: 36px;
  word-break: break-word;
  overflow-wrap: anywhere;
  color: #94a3b8;
  font-size: .78rem;
}

.disk-file-size {
  color: #64748b;
  font-size: .8rem;
  font-weight: 600;
}

/* ===== File badge ===== */
.file-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  width: -moz-fit-content;
  width: fit-content;
}

/* ===== animation classes for disk-list ===== */
.anim-fade-up {
  opacity: 0;
  transform: translateY(12px);
}

.anim-fade-up.anim-visible {
  animation: fadeUpReveal .38s ease-out forwards;
}

.anim-scale-in {
  opacity: 0;
  transform: scale(.95);
  animation: scaleInReveal .4s ease-out forwards;
}

@keyframes fadeUpReveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleInReveal {
  from { opacity: 0; transform: scale(.95); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 640px) {
  .catalog-file-grid {
    grid-template-columns: 1fr;
  }

  .disk-brand-header {
    flex-wrap: wrap;
  }

  .disk-brand-meta {
    margin-left: 0;
    width: 100%;
  }
}
/* ===== Toast notifications ===== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  pointer-events: none;
  max-width: min(400px, calc(100vw - 48px));
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, .94);
  border: 1px solid rgba(148, 163, 184, .18);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .4);
  backdrop-filter: blur(14px);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(20px) scale(.96);
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

.toast.toast-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast.toast-hiding {
  opacity: 0;
  transform: translateX(40px) scale(.94);
}

.toast-icon { font-size: 1.1rem; flex-shrink: 0; }
.toast-msg { flex: 1 1 auto; font-size: .88rem; color: #e2e8f0; line-height: 1.35; }
.toast-close {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: .9rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: color .2s ease, background .2s ease;
}
.toast-close:hover { color: #f8fafc; background: rgba(255,255,255,.06); }

.toast-success { border-left: 3px solid #22c55e; }
.toast-error { border-left: 3px solid #ef4444; }
.toast-info { border-left: 3px solid #3b82f6; }
.toast-warn { border-left: 3px solid #f59e0b; }

/* ===== Dashboard ===== */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.dashboard-stat {
  padding: 18px 16px;
  border-radius: 16px;
  background: rgba(30, 41, 59, .7);
  border: 1px solid rgba(148, 163, 184, .12);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  animation: fadeSlideUp .4s ease-out both;
}

.dashboard-stat:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, .22);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .18);
}

.dashboard-stat-label {
  display: block;
  color: #94a3b8;
  font-size: .78rem;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.dashboard-stat strong {
  font-size: 1.8rem;
  font-weight: 800;
  color: #f1f5f9;
}

.dash-available strong { color: #4ade80; }
.dash-claimed strong { color: #60a5fa; }
.dash-expired strong { color: #f87171; }
.dash-redeem strong { color: #facc15; }

.dashboard-stat:nth-child(1) { animation-delay: .02s; }
.dashboard-stat:nth-child(2) { animation-delay: .08s; }
.dashboard-stat:nth-child(3) { animation-delay: .14s; }
.dashboard-stat:nth-child(4) { animation-delay: .2s; }
.dashboard-stat:nth-child(5) { animation-delay: .26s; }

/* ===== Bulk action bar ===== */
.admin-bulk-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin-top: 10px;
  border-radius: 12px;
  background: rgba(30, 41, 59, .45);
  border: 1px solid rgba(148, 163, 184, .08);
  flex-wrap: wrap;
}

.admin-bulk-bar.hidden { display: none; }

.bulk-select-all-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #cbd5e1;
  font-size: .85rem;
}

.bulk-select-all-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #3b82f6;
  cursor: pointer;
}

.bulk-count {
  font-size: .82rem;
  color: #93c5fd;
  font-weight: 600;
}

#delete-selected-button {
  padding: 8px 16px;
  font-size: .85rem;
  border-radius: 10px;
}

/* ===== Table checkboxes ===== */
.codes-th-check {
  width: 40px;
  text-align: center;
  padding: 8px !important;
}

.codes-th-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #3b82f6;
  cursor: pointer;
  margin: 0;
}

.code-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #3b82f6;
  cursor: pointer;
}

/* ===== Detail countdown ===== */
.detail-countdown-text {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .02em;
}

@media (max-width: 640px) {
  .toast-container {
    right: 10px;
    bottom: 14px;
    left: 10px;
    max-width: none;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-stat strong { font-size: 1.4rem; }
}
/* ===== Theme toggle ===== */
.theme-toggle-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 23, 42, .8);
  border: 1px solid rgba(148, 163, 184, .18);
  backdrop-filter: blur(10px);
  font-size: 1.1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .22s ease, box-shadow .22s ease;
}
.theme-toggle-btn:hover { transform: scale(1.1); box-shadow: 0 4px 14px rgba(0,0,0,.3); }

/* ===== Expiry warning bar ===== */
.expiry-warning {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9998;
  padding: 10px 16px;
  text-align: center;
  background: rgba(251, 191, 36, .12);
  border-bottom: 1px solid rgba(251, 191, 36, .2);
  color: #fcd34d;
  font-weight: 600;
  font-size: .88rem;
  backdrop-filter: blur(8px);
  animation: slideDownWarn .35s ease-out;
}
.expiry-warning.hidden { display: none; }
@keyframes slideDownWarn { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* ===== Remember code ===== */
.activation-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.remember-code-wrap { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: .82rem; color: #94a3b8; user-select: none; font-weight: 400; }
.remember-code-wrap input[type="checkbox"] { width: 16px; height: 16px; accent-color: #3b82f6; cursor: pointer; }

/* ===== Quick stats ===== */
.quick-stats { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(34, 197, 94, .08); border: 1px solid rgba(74, 222, 128, .14); color: #bbf7d0; font-size: .85rem; font-weight: 600; animation: fadeSlideUp .35s ease-out; }
.quick-stats.hidden { display: none; }

/* ===== Details toggle ===== */
.details-toggle-btn {
  position: absolute;
  top: 14px; right: 14px;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 10px;
  background: rgba(30, 41, 59, .55); border: 1px solid rgba(148, 163, 184, .12);
  color: #94a3b8; font-size: .82rem; cursor: pointer;
  transition: all .22s ease;
}
.details-toggle-btn:hover { border-color: rgba(96, 165, 250, .22); color: #dbeafe; }
.details-toggle-icon { font-size: .7rem; }
#details-card { position: relative; }

/* ===== Copy code ===== */
.detail-box-copy { cursor: pointer; position: relative; }
.detail-box-copy .copy-hint {
  display: none; position: absolute; top: 6px; right: 8px;
  padding: 2px 8px; border-radius: 6px;
  background: rgba(37, 99, 235, .2); border: 1px solid rgba(96, 165, 250, .2);
  color: #93c5fd; font-size: .7rem; font-weight: 600;
}
.detail-box-copy:hover .copy-hint { display: block; }
.detail-box-copy.copied .copy-hint { display: block; background: rgba(34, 197, 94, .2); border-color: rgba(74, 222, 128, .2); color: #bbf7d0; }

/* ===== Files toolbar ===== */
.files-toolbar { display: flex; gap: 10px; margin: 14px 0 0; flex-wrap: wrap; align-items: center; }
.files-search-wrap { flex: 1 1 200px; position: relative; display: flex; align-items: center; }
.files-search-wrap input {
  width: 100%; padding: 10px 36px 10px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(148, 163, 184, .18);
  color: #f8fafc; font-size: .88rem;
  transition: border-color .22s ease, box-shadow .22s ease;
}
.files-search-wrap input:focus { border-color: rgba(96, 165, 250, .45); box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
.files-search-wrap input::placeholder { color: #64748b; }
.clear-search-btn {
  position: absolute; right: 6px;
  padding: 4px 8px; border-radius: 8px; background: rgba(148,163,184,.1); border: none;
  color: #94a3b8; cursor: pointer; font-size: .8rem;
  transition: color .2s ease, background .2s ease;
}
.clear-search-btn:hover { color: #f8fafc; background: rgba(239, 68, 68, .15); }
.clear-search-btn.hidden { display: none; }
.files-sort-wrap select { padding: 10px 14px; border-radius: 12px; font-size: .85rem; }

/* ===== Filter chips ===== */
.filter-chips { display: flex; gap: 6px; margin: 10px 0 6px; flex-wrap: wrap; }
.filter-chip {
  padding: 5px 12px; border-radius: 999px;
  background: rgba(30, 41, 59, .55); border: 1px solid rgba(148, 163, 184, .12);
  color: #94a3b8; font-size: .78rem; font-weight: 600; cursor: pointer;
  transition: all .18s ease;
}
.filter-chip:hover { border-color: rgba(96, 165, 250, .22); color: #dbeafe; }
.filter-chip.active { background: rgba(37, 99, 235, .2); border-color: rgba(96, 165, 250, .35); color: #dbeafe; }
.filter-chip-count { opacity: .6; font-size: .7rem; margin-left: 2px; }

/* ===== Breadcrumb ===== */
.breadcrumb { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 8px 12px; margin-bottom: 4px; border-radius: 10px; background: rgba(30, 41, 59, .35); border: 1px solid rgba(148, 163, 184, .06); }
.breadcrumb.hidden { display: none; }
.breadcrumb-item { font-size: .8rem; color: #93c5fd; font-weight: 600; }
.breadcrumb-sep { color: #475569; font-size: .85rem; margin: 0 2px; }

/* ===== Download state ===== */
.file-downloaded { opacity: .72; }
.file-downloaded:hover { opacity: 1; }
.dl-done { background: rgba(34, 197, 94, .14) !important; border-color: rgba(74, 222, 128, .2) !important; color: #bbf7d0 !important; }
.dl-done:hover { background: rgba(34, 197, 94, .22) !important; }

/* ===== Shortcut hints ===== */
.shortcut-hints { margin: 6px 0 2px; font-size: .76rem; color: #475569; }
.shortcut-hints kbd { padding: 1px 6px; border-radius: 5px; background: rgba(148, 163, 184, .1); border: 1px solid rgba(148, 163, 184, .14); font-family: inherit; font-size: .74rem; }

/* ===== light theme override ===== */
[data-theme="light"] body {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0 30%, #f8fafc 50%, #e0e7ff 70%, #f1f5f9);
  color: #0f172a;
}
[data-theme="light"] .card { background: rgba(255, 255, 255, .8); border-color: rgba(148, 163, 184, .15); box-shadow: 0 8px 32px rgba(0,0,0,.04); }
[data-theme="light"] .muted { color: #475569; }
[data-theme="light"] .eyebrow { color: #2563eb; }
[data-theme="light"] h1, [data-theme="light"] h2, [data-theme="light"] h3 { color: #0f172a; }
[data-theme="light"] input, [data-theme="light"] select { background: #fff; color: #0f172a; border-color: #cbd5e1; }
[data-theme="light"] .files-search-wrap input { background: #fff; color: #0f172a; border-color: #cbd5e1; }
[data-theme="light"] .shortcut-hints { color: #64748b; }
[data-theme="light"] .theme-toggle-btn { background: rgba(255,255,255,.8); border-color: #cbd5e1; }
[data-theme="light"] .expiry-warning { background: rgba(251, 191, 36, .15); }
[data-theme="light"] .file-item { background: rgba(248,250,252,.9); border-color: rgba(203,213,225,.3); color:#0f172a; }
[data-theme="light"] .file-item strong { color:#0f172a; }
[data-theme="light"] .folder-group { background: rgba(248,250,252,.7); }
[data-theme="light"] .folder-heading strong { color:#0f172a; }
[data-theme="light"] .download-link { background: #2563eb; color: #fff; }
[data-theme="light"] .detail-box { background: rgba(248,250,252,.7); border-color: rgba(203,213,225,.2); }
[data-theme="light"] .quick-stats { background: rgba(34,197,94,.08); }
[data-theme="light"] .filter-chip { background: rgba(241,245,249,.7); color: #475569; }
[data-theme="light"] .filter-chip.active { background: rgba(37,99,235,.12); color: #2563eb; }
[data-theme="light"] .overview-chip { background: rgba(248,250,252,.7); }
[data-theme="light"] .overview-chip strong { color:#0f172a; }
[data-theme="light"] .breadcrumb { background: rgba(241,245,249,.5); }
[data-theme="light"] .breadcrumb-item { color: #2563eb; }
[data-theme="light"] .activation-input-wrap { background: rgba(255,255,255,.6); }
[data-theme="light"] .activation-input-wrap input { color: #0f172a; }
[data-theme="light"] button.secondary { background: #e2e8f0; color: #0f172a; }
[data-theme="light"] .status { color: #475569; }
