/* ==========================================================================
   DESIGN SYSTEM VARIABLES & RESETS
   ========================================================================== */
:root {
  /* Admin Panel Themes (Sleek SaaS Light) */
  --bg-color: #F8FAFC;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  
  --primary: #4F46E5; /* Royal Tech Indigo */
  --primary-hover: #4338CA;
  --primary-light: #EEF2F6;
  
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  
  --text-title: #0F172A;
  --text-primary: #334155;
  --text-secondary: #64748B;
  
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -4px rgba(0,0,0,0.05);
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* Alerts & Notices (Floating Toast Style) */
.notice {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  min-width: 320px;
  max-width: 90vw;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  word-wrap: break-word;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border: 1px solid transparent;
  animation: noticeSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes noticeSlideIn {
  from { transform: translate(-50%, -20px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}
.notice.ok { background: #ECFDF5; border-color: #A7F3D0; color: #065F46; }
.notice.error { background: #FEF2F2; border-color: #FCA5A5; color: #991B1B; }
.notice.warn { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }

/* Status Pills */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 3px 10px; font-size: 12px; font-weight: 500; border-radius: 9999px; border: 1px solid transparent;
  white-space: nowrap;
}
.pill.green { background: #D1FAE5; color: #065F46; }
.pill.red { background: #FEE2E2; color: #991B1B; }
.pill.blue { background: #DBEAFE; color: #1E40AF; }

/* Form Elements */
input, select, textarea {
  font-family: inherit;
  font-size: 14px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-title);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  outline: none;
}
input, select { height: 36px; }
textarea { padding: 10px 12px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

label {
  display: block; font-size: 14px; color: var(--text-title); margin-bottom: 8px; font-weight: 500;
}
label .desc { font-weight: normal; font-size: 12px; color: var(--text-secondary); margin-left: 4px; }

/* Buttons */
button, .btn-primary, .btn-secondary {
  font-family: inherit; font-size: 14px; cursor: pointer; transition: all 0.2s;
  background: transparent; border: none; padding: 0; outline: none;
}

.btn-primary, #loginBtn, #searchCardBtn, .modal-footer button[type="submit"], #openCreateProductBtn, #searchInventoryBtn, #searchLogBtn {
  background: var(--primary); color: #fff;
  padding: 6px 16px; height: 36px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 500;
}
.btn-primary:hover, #loginBtn:hover, #searchCardBtn:hover, .modal-footer button[type="submit"]:hover, #openCreateProductBtn:hover, #searchInventoryBtn:hover, #searchLogBtn:hover { background: var(--primary-hover); }

.btn-secondary, #clearBtn, #resetCardSearchBtn, #resetInventorySearchBtn, #resetLogSearchBtn, #copyCodesBtn, #openImportInventoryBtn, #openGenerateCardBtn, .table-actions button, #logoutBtn, .modal-footer button.btn-secondary, #cancelProductBtn, .btn-clear-history {
  background: #fff; border: 1px solid var(--border); color: var(--text-primary);
  padding: 6px 16px; height: 36px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 500;
}
.btn-secondary:hover, #clearBtn:hover, #resetCardSearchBtn:hover, #resetInventorySearchBtn:hover, #resetLogSearchBtn:hover, #copyCodesBtn:hover, #openImportInventoryBtn:hover, #openGenerateCardBtn:hover, .table-actions button:hover, #logoutBtn:hover, .modal-footer button.btn-secondary:hover, #cancelProductBtn:hover, .btn-clear-history:hover {
  color: var(--primary); border-color: var(--primary); background: var(--primary-light);
}

.btn-danger, .table-actions button.danger, #cleanupAssignedInventoryBtn {
  color: var(--error);
  border: 1px solid var(--error);
  background: #fff;
  padding: 6px 16px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}
.btn-danger:hover, .table-actions button.danger:hover, #cleanupAssignedInventoryBtn:hover {
  background: #FEF2F2;
  color: var(--error);
  border-color: var(--error);
}

/* Tables */
.table-container { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; min-height: 0; }
table { width: 100%; border-collapse: collapse; text-align: left; table-layout: fixed; }
th { background: #F8FAFC; color: var(--text-title); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 6px 16px; border-bottom: 1px solid var(--border); color: var(--text-primary); vertical-align: middle; word-break: break-all; }
tbody tr { height: calc((100vh - 231px) / 12); min-height: 48px; }
tbody tr:hover { background: #F8FAFC; }
tbody tr:last-child td { border-bottom: 1px solid var(--border); }
/* Force the table to occupy 100% height when there are exactly 12 rows, pulling the bottom border to the very bottom of the container to overlap with the pagination border */
.table-container:has(tbody tr:first-child:nth-last-child(12)) table {
  height: 100%;
}
.empty-cell { text-align: center; color: var(--text-secondary); padding: 48px !important; font-size: 14px; }

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }


/* ==========================================================================
   BUYER CARD PORTAL (PREMIUM GLASSMORPHISM DARK-TECH THEME)
   ========================================================================== */
/* --- Default Theme: Sage Mint (鼠尾草绿) --- */
.buyer-body {
  --blob1: rgba(134, 188, 120, 0.35);
  --blob2: rgba(100, 200, 180, 0.25);
  --blob3: rgba(180, 220, 160, 0.30);
  --primary-buyer: #6B9E5E;
  --primary-hover: #5A8A4E;
  --accent-glow: rgba(107, 158, 94, 0.25);
  --text-main: #3D5438;
  --text-sub: #5A7054;

  background: #F0F2F0;
  color: var(--text-sub);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- Theme: Scandinavian Slate (石板灰蓝) --- */
.buyer-body.theme-slate {
  --blob1: rgba(100, 140, 190, 0.35);
  --blob2: rgba(130, 170, 210, 0.25);
  --blob3: rgba(80, 120, 180, 0.20);
  --primary-buyer: #4B6584;
  --primary-hover: #3B5575;
  --accent-glow: rgba(75, 101, 132, 0.25);
  --text-main: #2C3E50;
  --text-sub: #4F5D73;
  background: #EDF0F3;
}

/* --- Theme: Sakura Powder (樱花粉砂) --- */
.buyer-body.theme-rose {
  --blob1: rgba(220, 160, 155, 0.35);
  --blob2: rgba(240, 180, 170, 0.25);
  --blob3: rgba(200, 140, 150, 0.22);
  --primary-buyer: #B0807A;
  --primary-hover: #9A6A64;
  --accent-glow: rgba(176, 128, 122, 0.25);
  --text-main: #5A3D3A;
  --text-sub: #7D5955;
  background: #F4EFEE;
}

/* --- Theme: Chamomile Cream (燕麦麦香) --- */
.buyer-body.theme-cream {
  --blob1: rgba(200, 185, 130, 0.35);
  --blob2: rgba(220, 200, 140, 0.25);
  --blob3: rgba(180, 170, 120, 0.22);
  --primary-buyer: #918260;
  --primary-hover: #7D6F50;
  --accent-glow: rgba(145, 130, 96, 0.25);
  --text-main: #4A4230;
  --text-sub: #6B6248;
  background: #F3F1EC;
}

/* --- Theme: Lavender Fog (薰衣草雾紫) --- */
.buyer-body.theme-lavender {
  --blob1: rgba(150, 140, 200, 0.35);
  --blob2: rgba(180, 170, 230, 0.25);
  --blob3: rgba(130, 120, 190, 0.22);
  --primary-buyer: #7B6FA8;
  --primary-hover: #675C96;
  --accent-glow: rgba(123, 111, 168, 0.25);
  --text-main: #3E3660;
  --text-sub: #5A5280;
  background: #F0EEF5;
}

/* --- Floating Ambient Blobs --- */
.glass-blobs {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
  transition: background 1.2s ease;
}

.blob-1 {
  width: 420px; height: 420px;
  background: var(--blob1);
  top: -10%; left: -5%;
  animation: floatBlob1 22s ease-in-out infinite;
}

.blob-2 {
  width: 350px; height: 350px;
  background: var(--blob2);
  top: 50%; right: -10%;
  animation: floatBlob2 26s ease-in-out infinite;
}

.blob-3 {
  width: 300px; height: 300px;
  background: var(--blob3);
  bottom: -5%; left: 30%;
  animation: floatBlob3 30s ease-in-out infinite;
}

@keyframes floatBlob1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(80px, 60px) scale(1.1); }
  50% { transform: translate(40px, 120px) scale(0.95); }
  75% { transform: translate(-30px, 50px) scale(1.05); }
}

@keyframes floatBlob2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-60px, -40px) scale(1.08); }
  50% { transform: translate(-100px, 30px) scale(0.92); }
  75% { transform: translate(-30px, -80px) scale(1.03); }
}

@keyframes floatBlob3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, -50px) scale(1.12); }
  50% { transform: translate(-40px, -30px) scale(0.9); }
  75% { transform: translate(30px, 40px) scale(1.06); }
}

/* --- Layout --- */
.buyer-layout {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

.buyer-main {
  width: 100%;
  max-width: 680px;
}

.buyer-card-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeInDown 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

/* --- Frosted Glass Card --- */
.redeem-card {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  width: 100%;
  position: relative;
  transition: background 0.4s ease;
}

.redeem-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.redeem-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.5px;
  transition: color 0.4s ease;
}

.badge {
  background: rgba(255, 255, 255, 0.6);
  color: var(--primary-buyer);
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
  transition: all 0.4s ease;
}

.form-group label {
  color: var(--text-sub);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
  font-weight: 500;
  transition: color 0.4s ease;
}

.form-group label .tip {
  color: var(--text-sub);
  opacity: 0.6;
  font-size: 12px;
}

.textarea-wrapper {
  position: relative;
}

/* --- Glass Inputs --- */
.buyer-layout textarea {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  color: var(--text-main);
  padding: 16px;
  font-size: 15px;
  font-family: 'JetBrains Mono', monospace;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
  width: 100%;
}

.buyer-layout textarea::placeholder {
  color: var(--text-sub);
  opacity: 0.45;
}

.buyer-layout textarea:focus {
  border-color: var(--primary-buyer);
  box-shadow: 0 0 0 4px var(--accent-glow), inset 0 1px 3px rgba(0, 0, 0, 0.03);
  background: rgba(255, 255, 255, 0.8);
  outline: none;
}

/* --- Glass Format Selectors --- */
.format-box {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.buyer-layout .format-option {
  flex: 1;
  min-width: 160px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.buyer-layout .format-option input { display: none; }

.buyer-layout .format-option svg {
  color: var(--text-sub);
  opacity: 0.5;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.buyer-layout .option-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.buyer-layout .format-option .title {
  color: var(--text-sub);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 0;
  transition: color 0.3s ease;
}

.buyer-layout .format-option .desc {
  color: var(--text-sub);
  opacity: 0.6;
  font-size: 11px;
  transition: color 0.3s ease;
}

/* Format Selected State */
.buyer-layout .format-option.selected {
  border-color: var(--primary-buyer);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 16px var(--accent-glow);
}
.buyer-layout .format-option.selected .title { color: var(--text-main); }
.buyer-layout .format-option.selected svg { color: var(--primary-buyer); opacity: 1; }
.buyer-layout .format-option.selected .desc { opacity: 0.8; }

/* --- Toast Floating Notice --- */
.toast-notice {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  z-index: 100;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  min-width: 260px;
  line-height: 1.5;
  white-space: pre-line;
  animation: toastShow 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes toastShow {
  from { opacity: 0; transform: translate(-50%, -40%) scale(0.95); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.toast-notice.ok { border-color: #10B981; color: #065F46; background: rgba(236, 253, 245, 0.95); }
.toast-notice.error { border-color: #EF4444; color: #991B1B; background: rgba(254, 242, 242, 0.95); }
.toast-notice.warn { border-color: #F59E0B; color: #92400E; background: rgba(255, 251, 235, 0.95); }

/* --- Action Buttons --- */
.buyer-layout .actions-row {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

#redeemBtn {
  flex: 1;
  background: var(--primary-buyer);
  color: #fff;
  border-radius: var(--radius);
  height: 48px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  box-shadow: 0 4px 16px var(--accent-glow);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#redeemBtn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--accent-glow);
  background: var(--primary-hover);
}

#redeemBtn:active {
  transform: translateY(0);
}

#redeemBtn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  filter: grayscale(0.3);
}

.buyer-layout .btn-clear {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--text-sub);
  border-radius: var(--radius);
  padding: 0 20px;
  height: 48px;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}
.buyer-layout .btn-clear:hover {
  background: rgba(255, 255, 255, 0.65);
  color: var(--text-main);
}

/* --- Glass History Panel --- */
.history-panel {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: background 0.4s ease;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.history-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  transition: color 0.4s ease;
}

.btn-clear-history {
  height: 24px !important;
  font-size: 11px !important;
  padding: 0 8px !important;
  border-radius: 4px !important;
  background: rgba(255, 255, 255, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  color: var(--text-sub) !important;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-clear-history:hover {
  color: #EF4444 !important;
  border-color: rgba(239, 68, 68, 0.25) !important;
  background: rgba(254, 242, 242, 0.8) !important;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 280px;
  overflow-y: auto;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  backdrop-filter: blur(6px);
  transition: all 0.2s ease;
}
.history-item:hover {
  background: rgba(255, 255, 255, 0.55);
}

.history-item.expired {
  opacity: 0.5;
}

.item-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 12px;
  transition: color 0.4s ease;
}

.item-sub {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--text-sub);
  opacity: 0.7;
}

.history-status {
  font-size: 11px;
  font-weight: 500;
}

.history-status.active {
  color: var(--primary-buyer);
}

.history-status.expired {
  color: var(--text-sub);
}

.btn-history-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-buyer);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 2px 10px var(--accent-glow);
}

.btn-history-download:hover:not([disabled]) {
  background: var(--primary-hover);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-history-download[disabled] {
  background: rgba(255, 255, 255, 0.4);
  color: var(--text-sub);
  box-shadow: none;
  cursor: not-allowed;
}

/* --- Theme Dot Switcher --- */
.theme-dot {
  outline: none;
}
.theme-dot:hover {
  transform: scale(1.2);
}
.theme-dot.active {
  transform: scale(1.35);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.9), 0 2px 8px rgba(0,0,0,0.15) !important;
}


/* ==========================================================================
   SKIN 2: CYBERPUNK NEON (赛博霓虹)
   ========================================================================== */
.buyer-body.skin-cyber {
  background: #0a0e1a;
  color: #8899aa;
}
.skin-cyber .glass-blobs { display: none; }

/* Cyber grid overlay */
.skin-cyber::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background:
    linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.skin-cyber .redeem-card {
  background: rgba(10, 14, 30, 0.85);
  border: 1px solid rgba(0, 255, 255, 0.2);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.06), inset 0 1px 0 rgba(0, 255, 255, 0.1);
  backdrop-filter: blur(20px);
}

/* Scanline animation */
.skin-cyber .redeem-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(transparent 50%, rgba(0, 255, 255, 0.01) 50%);
  background-size: 100% 4px;
  pointer-events: none;
  border-radius: inherit;
  animation: scanlines 8s linear infinite;
}
@keyframes scanlines {
  0% { background-position: 0 0; }
  100% { background-position: 0 100%; }
}

.skin-cyber .redeem-header h2 {
  color: #00ffff;
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
  font-family: 'JetBrains Mono', monospace;
}

.skin-cyber .badge {
  background: rgba(0, 255, 255, 0.1);
  color: #00ffff;
  border-color: rgba(0, 255, 255, 0.3);
  backdrop-filter: none;
}

.skin-cyber .form-group label { color: #6688aa; }
.skin-cyber .form-group label .tip { color: #445566; opacity: 1; }

.skin-cyber .buyer-layout textarea {
  background: rgba(0, 10, 20, 0.6);
  border-color: rgba(0, 255, 255, 0.15);
  color: #c0f0ff;
  backdrop-filter: none;
  font-family: 'JetBrains Mono', monospace;
}
.skin-cyber .buyer-layout textarea::placeholder { color: #334455; opacity: 1; }
.skin-cyber .buyer-layout textarea:focus {
  border-color: #00ffff;
  box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.15), 0 0 20px rgba(0, 255, 255, 0.1);
  background: rgba(0, 10, 20, 0.8);
}

.skin-cyber .format-option {
  background: rgba(0, 10, 20, 0.5) !important;
  border-color: rgba(0, 255, 255, 0.1) !important;
  backdrop-filter: none !important;
}
.skin-cyber .format-option .title { color: #6688aa !important; }
.skin-cyber .format-option .desc { color: #445566 !important; opacity: 1 !important; }
.skin-cyber .format-option svg { color: #335566 !important; }

.skin-cyber .format-option.selected {
  border-color: #00ffff !important;
  background: rgba(0, 255, 255, 0.05) !important;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.08) !important;
}
.skin-cyber .format-option.selected .title { color: #00ffff !important; }
.skin-cyber .format-option.selected svg { color: #00ffff !important; opacity: 1 !important; }

.skin-cyber #redeemBtn {
  background: linear-gradient(135deg, #00c8ff 0%, #cc00ff 100%);
  box-shadow: 0 4px 20px rgba(0, 200, 255, 0.25), 0 4px 20px rgba(204, 0, 255, 0.15);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.skin-cyber #redeemBtn:hover:not(:disabled) {
  box-shadow: 0 6px 30px rgba(0, 200, 255, 0.4), 0 6px 30px rgba(204, 0, 255, 0.25);
}

.skin-cyber .btn-clear {
  background: rgba(0, 10, 20, 0.5) !important;
  border-color: rgba(0, 255, 255, 0.15) !important;
  color: #6688aa !important;
  backdrop-filter: none !important;
}
.skin-cyber .btn-clear:hover {
  border-color: rgba(0, 255, 255, 0.4) !important;
  color: #00ffff !important;
}

.skin-cyber .history-panel {
  background: rgba(10, 14, 30, 0.8);
  border-color: rgba(0, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.04);
}
.skin-cyber .history-header h3 { color: #00ffff; text-shadow: 0 0 12px rgba(0,255,255,0.2); }
.skin-cyber .history-item {
  background: rgba(0, 10, 20, 0.4) !important;
  border-color: rgba(0, 255, 255, 0.08) !important;
  backdrop-filter: none !important;
}
.skin-cyber .history-item:hover { background: rgba(0, 255, 255, 0.05) !important; }
.skin-cyber .item-title { color: #8899bb !important; }
.skin-cyber .item-sub { color: #445566 !important; }
.skin-cyber .btn-history-download { background: linear-gradient(135deg, #00c8ff, #cc00ff); box-shadow: 0 2px 12px rgba(0,200,255,0.2); }
.skin-cyber .btn-clear-history { background: rgba(0,10,20,0.4) !important; border-color: rgba(0,255,255,0.1) !important; color: #556677 !important; }

.skin-cyber .toast-notice { background: rgba(10,14,30,0.95) !important; border-color: rgba(0,255,255,0.2) !important; color: #c0f0ff !important; backdrop-filter: blur(20px) !important; }
.skin-cyber .toast-notice.ok { border-color: #00ff88 !important; color: #00ff88 !important; background: rgba(0,30,20,0.95) !important; }
.skin-cyber .toast-notice.error { border-color: #ff0055 !important; color: #ff0055 !important; background: rgba(30,0,10,0.95) !important; }




/* ==========================================================================
   SKIN: STARFIELD OBSERVATORY (星空观测) — Canvas Rendered
   ========================================================================== */
.buyer-body.skin-starfield {
  background: radial-gradient(ellipse at 50% 30%, #0f0a28 0%, #08051a 50%, #030208 100%);
  background-attachment: fixed;
  color: #8090b0;
}
.skin-starfield .glass-blobs { display: none; }

.starfield-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

.skin-starfield .buyer-layout { position: relative; z-index: 1; }

.skin-starfield .redeem-card {
  background: rgba(8, 8, 24, 0.65);
  border: 1px solid rgba(100, 120, 180, 0.12);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(100, 120, 180, 0.08);
  backdrop-filter: blur(20px);
}

.skin-starfield .redeem-header h2 {
  color: #c0d0f0;
  text-shadow: 0 0 20px rgba(140, 160, 220, 0.2);
}

.skin-starfield .badge {
  background: rgba(100, 120, 180, 0.1);
  color: #8898c8;
  border-color: rgba(100, 120, 180, 0.2);
  backdrop-filter: none;
}

.skin-starfield .form-group label { color: #6878a0; }
.skin-starfield .form-group label .tip { color: #4a5878; opacity: 1; }

.skin-starfield .buyer-layout textarea {
  background: rgba(5, 5, 15, 0.7);
  border-color: rgba(100, 120, 180, 0.1);
  color: #a0b0d0;
  backdrop-filter: none;
}
.skin-starfield .buyer-layout textarea::placeholder { color: #2a3858; opacity: 1; }
.skin-starfield .buyer-layout textarea:focus {
  border-color: rgba(100, 120, 180, 0.3);
  box-shadow: 0 0 0 3px rgba(100, 120, 180, 0.08);
}

.skin-starfield .format-option {
  background: rgba(5, 5, 15, 0.5) !important;
  border-color: rgba(100, 120, 180, 0.08) !important;
  backdrop-filter: none !important;
}
.skin-starfield .format-option .title { color: #6878a0 !important; }
.skin-starfield .format-option .desc { color: #4a5878 !important; opacity: 1 !important; }
.skin-starfield .format-option svg { color: #4a5878 !important; }
.skin-starfield .format-option.selected {
  border-color: rgba(100, 120, 180, 0.25) !important;
  background: rgba(100, 120, 180, 0.06) !important;
}
.skin-starfield .format-option.selected .title { color: #a0b8e8 !important; }
.skin-starfield .format-option.selected svg { color: #a0b8e8 !important; opacity: 1 !important; }

.skin-starfield #redeemBtn {
  background: linear-gradient(135deg, #3a4a8a 0%, #5a3a8a 50%, #4a5aaa 100%);
  box-shadow: 0 4px 20px rgba(80, 60, 140, 0.3);
}
.skin-starfield #redeemBtn:hover:not(:disabled) {
  box-shadow: 0 6px 30px rgba(80, 60, 140, 0.45);
}

.skin-starfield .btn-clear {
  background: rgba(5,5,15,0.5) !important;
  border-color: rgba(100,120,180,0.1) !important;
  color: #6878a0 !important;
  backdrop-filter: none !important;
}

.skin-starfield .history-panel {
  background: rgba(8, 8, 24, 0.6);
  border-color: rgba(100, 120, 180, 0.08);
  backdrop-filter: blur(20px);
}
.skin-starfield .history-header h3 { color: #a0b0d0; }
.skin-starfield .history-item {
  background: rgba(5,5,15,0.4) !important;
  border-color: rgba(100,120,180,0.06) !important;
  backdrop-filter: none !important;
}
.skin-starfield .history-item:hover { background: rgba(100,120,180,0.05) !important; }
.skin-starfield .item-title { color: #8898c8 !important; }
.skin-starfield .item-sub { color: #4a5878 !important; }
.skin-starfield .btn-history-download { background: linear-gradient(135deg, #3a4a8a, #5a3a8a); }
.skin-starfield .btn-clear-history { background: rgba(5,5,15,0.4) !important; border-color: rgba(100,120,180,0.08) !important; color: #4a5878 !important; }
.skin-starfield .toast-notice { background: rgba(8,8,24,0.95) !important; border-color: rgba(100,120,180,0.15) !important; color: #a0b0d0 !important; }


/* ==========================================================================
   FLOATING SKIN SWITCHER (屏幕右上角)
   ========================================================================== */
.skin-switcher-fab {
  position: fixed;
  top: 20px; right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  font-family: 'Inter', sans-serif;
}

.skin-fab-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
}
.skin-fab-btn:hover { transform: scale(1.1); }
.skin-fab-btn.open { transform: rotate(45deg) scale(1.1); }

.skin-cyber .skin-fab-btn {
  background: rgba(10,14,30,0.8);
  box-shadow: 0 4px 20px rgba(0,255,255,0.1);
}
.skin-starfield .skin-fab-btn {
  background: rgba(8,8,24,0.8);
  box-shadow: 0 4px 20px rgba(100,120,180,0.08);
}

.skin-panel {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  animation: panelSlideIn 0.25s ease both;
  min-width: 180px;
}
.skin-panel.show { display: flex; }

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

.skin-cyber .skin-panel {
  background: rgba(10,14,30,0.9);
  border-color: rgba(0,255,255,0.15);
}
.skin-starfield .skin-panel {
  background: rgba(8,8,24,0.9);
  border-color: rgba(100,120,180,0.12);
}


.skin-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
}
.skin-option:hover {
  background: rgba(0,0,0,0.04);
}
.skin-cyber .skin-option:hover { background: rgba(0,255,255,0.06); }
.skin-starfield .skin-option:hover { background: rgba(100,120,180,0.06); }

.skin-option.active {
  background: rgba(0,0,0,0.06);
}
.skin-cyber .skin-option.active { background: rgba(0,255,255,0.1); }
.skin-starfield .skin-option.active { background: rgba(100,120,180,0.08); }

.skin-swatch {
  width: 28px; height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.8);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.skin-option-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.skin-option-name {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}
.skin-cyber .skin-option-name { color: #aabbcc; }
.skin-starfield .skin-option-name { color: #8898c8; }

.skin-option-desc {
  font-size: 10px;
  color: #888;
}
.skin-cyber .skin-option-desc { color: #556677; }
.skin-starfield .skin-option-desc { color: #4a5878; }



/* ==========================================================================
   ADMIN PORTAL LAYOUT & COMPONENTS
   ========================================================================== */
#adminPanel {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-color);
}

/* Sidebar Dashboard Navigation */
.sidebar {
  width: 260px;
  background: #fff;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100%;
  flex-shrink: 0;
}

.sidebar-top {
  flex-shrink: 0;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-title);
  letter-spacing: -0.2px;
}

.tabs {
  padding: 0 0 16px 0;
  flex: 1;
  overflow-y: auto;
}

.tabs button {
  width: 100%;
  height: 44px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  text-align: left;
  font-weight: 500;
  transition: all 0.15s ease;
}

.tabs button:hover {
  color: var(--primary);
  background: #F8FAFC;
}

.tabs button.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.sidebar-bottom {
  flex-shrink: 0;
  height: 64px;
  padding: 0 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-bottom a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}
.sidebar-bottom a:hover {
  color: var(--primary);
}

/* Main Area Dashboard Content */
.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.page-header {
  height: 64px;
  background: #fff;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.page-header h1 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.page-header p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-left: 12px;
  font-weight: normal;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.page-body {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: var(--bg-color);
  height: calc(100vh - 64px);
}

.section {
  display: none;
}
.section.active {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

/* Toolbars inside subsections */
.toolbar {
  display: flex;
  gap: 12px;
  padding: 16px 24px;
  background: #FFF;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.toolbar select, .toolbar input {
  height: 32px;
  font-size: 13px;
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  border-top: 1px solid var(--border);
  background: #fff;
  height: 56px;
  box-sizing: border-box;
  margin-top: -1px;
  position: relative;
  z-index: 1;
}

.table-actions button {
  height: 28px;
  font-size: 12px;
  padding: 0 10px;
}

/* Overlay dialog styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  z-index: 1000;
}

.modal-card {
  position: relative;
  background: #fff;
  width: min(520px, 95%);
  border-radius: var(--radius);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.modal-card .notice {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(380px, 90%);
  z-index: 10010;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  margin: 0;
  animation: noticeCenterIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  text-align: center;
  justify-content: center;
  border-radius: 8px;
}
@keyframes noticeCenterIn {
  from { transform: translate(-50%, -45%) scale(0.95); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

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

.modal-card.wide {
  width: min(760px, 95%);
}

.modal-title {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-title);
}

.modal-title button {
  color: var(--text-secondary);
  font-size: 24px;
  line-height: 1;
  background: transparent;
}
.modal-title button:hover {
  color: var(--text-title);
}

.modal-content {
  padding: 24px;
  overflow-y: auto;
  max-height: calc(85vh - 120px);
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: #F8FAFC;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

.form-group {
  margin-bottom: 16px;
}

/* File Upload drag-and-drop box */
.file-area {
  border: 2px dashed var(--border);
  background: #F8FAFC;
  padding: 24px;
  text-align: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  display: block;
  margin: 16px 0;
}
.file-area:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.file-area:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}
.file-area.drag-over {
  border-color: var(--primary);
  background: #EEF2FF;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
.file-area input {
  display: none;
}
.file-input-hidden {
  display: none;
}
.file-summary {
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid var(--border);
}
.file-summary.has-files {
  color: var(--text-title);
  border-color: #C7D2FE;
  background: #F8FAFF;
}
textarea.file-drop-over {
  border-color: var(--primary);
  background: #F8FAFF;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.status-cell {
  text-align: center;
}
.status-cell .pill {
  margin: 0 auto;
}

#cards th,
#cards td {
  vertical-align: middle;
}

#cards .cell-center {
  text-align: center;
}

#cards .cell-mono {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

#cards .card-select-checkbox {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
  vertical-align: middle;
}

#cards .card-code-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

#cards .card-code-text {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

#cards .copy-card-code-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #64748B;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

#cards .copy-card-code-btn:hover {
  background: #F1F5F9;
  color: var(--text-title);
}

#cards .export-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  background: #F1F5F9;
  color: #64748B;
}

#cards .export-pill.exported {
  background: #E0F2FE;
  color: #0369A1;
}

#cards .table-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
}

/* Admin Portal Login Screen Styling */
#loginPanel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg-color);
  padding: 20px;
}

.login-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  animation: loginFadeIn 0.3s ease-out;
}

.login-card h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 8px;
  text-align: center;
}

.login-card p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  text-align: center;
}

.login-card .form-group {
  margin-bottom: 20px;
}

.login-card .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-title);
  margin-bottom: 8px;
}

.login-card #loginBtn {
  width: 100%;
  height: 40px;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
}

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

/* Confirm Modal and Table Button Size Normalization */
#okConfirmBtn {
  background: var(--error) !important;
  color: #fff !important;
  border-color: var(--error) !important;
}
#okConfirmBtn:hover {
  background: #DC2626 !important;
  border-color: #DC2626 !important;
}

#cancelConfirmBtn {
  background: #F1F5F9 !important;
  color: #475569 !important;
  border-color: #E2E8F0 !important;
}
#cancelConfirmBtn:hover {
  background: #E2E8F0 !important;
  color: #334155 !important;
}

.table-actions button,
.table-actions button.danger,
.table-actions button.secondary {
  width: 28px !important;
  height: 28px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: var(--radius-sm) !important;
}

/* Force standard dark border for danger action buttons in lists, highlight only on hover */
.table-actions button.danger {
  border: 1px solid var(--border) !important;
  color: var(--error) !important;
  background: #fff !important;
}
.table-actions button.danger:hover {
  border-color: var(--error) !important;
  background: #FEF2F2 !important;
  color: var(--error) !important;
}


/* Custom Global Product Dropdown Component styling */
.custom-dropdown {
  position: relative;
  width: 100%;
}
.custom-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-title);
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.custom-dropdown-trigger:hover {
  border-color: var(--primary);
  background: #FAFDFE;
}
.custom-dropdown-trigger .chevron {
  color: #64748B;
  transition: transform 0.2s ease;
}
.custom-dropdown.open .custom-dropdown-trigger {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.custom-dropdown.open .chevron {
  transform: rotate(180deg);
  color: var(--primary);
}
.custom-dropdown-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  z-index: 100;
  max-height: 240px;
  overflow-y: auto;
  padding: 6px;
  backdrop-filter: blur(10px);
  animation: dropdownFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.custom-dropdown-option {
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.1s ease;
}
.custom-dropdown-option:hover {
  background: rgba(99, 102, 241, 0.08);
  color: var(--primary);
}
.custom-dropdown-option.selected {
  background: var(--primary);
  color: #fff;
}
@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
