﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Sora:wght@500;600;700&display=swap');

:root {
  --page-max-width: 1280px;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);
  --font-stack: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-heading: "Sora", "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Currency.fun Brand Colors */
  --bg-base: #0F172A;
  --bg-panel: #1D2538;
  --bg-panel-dark: #111827;
  --bg-panel-gradient: linear-gradient(180deg, #1D2538 0%, #111827 100%);

  --color-bg: #0F172A;
  --color-surface: #1D2538;
  --color-surface-alt: #111827;
  --color-card: #1D2538;
  --color-overlay: rgba(15, 23, 42, 0.85);
  --color-border: rgba(255, 255, 255, 0.04);
  --color-border-strong: rgba(255, 255, 255, 0.08);

  /* Accent Colors */
  --accent-blue: #3BA3F2;
  --accent-violet: #6D5DFB;
  --accent-mint: #10D8A3;
  --accent-gold: #FACC15;
  --accent-orange: #FB6A46;

  --color-primary: #6D5DFB;
  --color-primary-soft: rgba(109, 93, 251, 0.16);
  --color-primary-strong: rgba(109, 93, 251, 0.28);
  --color-accent: #FACC15;
  --color-accent-soft: rgba(250, 204, 21, 0.16);
  --color-danger: #FB6A46;
  --color-success: #10D8A3;
  --color-warning: #FACC15;

  /* Text Colors */
  --text-heading: #F1F5F9;
  --text-strong: #F1F5F9;
  --text-default: #CBD5E1;
  --text-body: #CBD5E1;
  --text-muted: #94A3B8;
  --text-soft: #94A3B8;

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --radius-panel: 14px;
  --radius-button: 10px;
  --radius-image: 12px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-elevated: 0 12px 30px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.35);
  --shadow-medium: 0 12px 30px rgba(0, 0, 0, 0.35);
  --shadow-strong: 0 12px 30px rgba(0, 0, 0, 0.35);

  --transition: 150ms ease;
  --transition-fast: 150ms ease;
  --transition-slow: 250ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: var(--font-stack);
  font-weight: 400;
  color: var(--text-body);
  line-height: 1.65;
  background: radial-gradient(circle at top, rgba(59, 163, 242, 0.08), transparent 40%) var(--bg-base);
  background-attachment: fixed;
}

main {
  padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page > main {
  flex: 1;
}

.page--landing main {
  display: flex;
  align-items: center;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

input,
textarea,
select {
  background: rgba(13, 18, 36, 0.8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  color: var(--text-default);
  transition: border-color var(--transition), background-color var(--transition);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.85;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(18, 26, 48, 0.92);
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.is-hidden,
[hidden] {
  display: none !important;
}

.container {
  width: min(var(--page-max-width), 100% - 2 * var(--gutter));
  margin: 0 auto;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 4vw, 2.5rem);
  padding: clamp(1rem, 3vw, 1.5rem) var(--gutter);
  background: rgba(4, 9, 20, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(135, 153, 202, 0.16);
  box-shadow: 0 18px 45px rgba(2, 5, 14, 0.55);
}

.brand {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.brand-logo {
  height: 2.5rem;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
}

.nav-link {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 0.3rem;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.nav-link:hover {
  color: var(--text-strong);
}

.nav-link.active {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.auth-controls {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.user-menu {
  position: relative;
}

.user-menu__trigger {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.8rem;
  background: transparent;
  border: 1px solid rgba(124, 92, 255, 0.25);
  border-radius: var(--radius-pill);
  transition: border-color var(--transition), background-color var(--transition);
}

.user-menu__trigger:hover {
  border-color: rgba(124, 92, 255, 0.45);
  background: rgba(124, 92, 255, 0.1);
}

.usdc-balance-pill {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-pill);
  transition: border-color var(--transition), background-color var(--transition);
}

.usdc-balance-pill:hover {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.12);
}

.usdc-balance-pill__amount {
  font-weight: 700;
  color: var(--accent-mint);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.user-menu__name {
  font-weight: 600;
}

.user-menu__wallet {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-soft);
}

.user-menu__chevron {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.user-menu__dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  display: none;
  min-width: 200px;
  padding: 0.75rem;
  background: var(--color-surface);
  border: 1px solid rgba(124, 92, 255, 0.2);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.user-menu--open .user-menu__dropdown {
  display: grid;
  gap: 0.4rem;
}

.user-menu__item {
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-default);
  transition: background-color var(--transition);
}

.user-menu__item:hover {
  background: rgba(124, 92, 255, 0.18);
}

.primary-button,
.ghost-button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-button);
  border: none;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    filter var(--transition-fast),
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.primary-button {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-violet));
  color: #F8FAFC;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.primary-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.primary-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.ghost-button {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-body);
}

.ghost-button:hover {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text-heading);
}

.link-button {
  padding: 0;
  border: none;
  background: none;
  color: var(--color-accent);
}

.subtitle {
  margin: 0.4rem 0 0;
  max-width: 60ch;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Home Page Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: clamp(3rem, 6vw, 6rem) 0;
  min-height: 70vh;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-heading);
  margin: 0;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-body);
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.hero-button {
  padding: 1rem 2rem;
  font-size: 0.9rem;
}

.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-card-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.5));
  animation: float 6s ease-in-out infinite;
}

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

/* Features Section */
.features-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 4rem 0;
}

.feature-card {
  padding: 2rem;
  border-radius: var(--radius-panel);
  background: var(--bg-panel-gradient);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-elevated);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.08);
}

.feature-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-heading);
  margin: 0;
}

.feature-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-body);
  margin: 0;
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
  text-align: center;
  border-radius: var(--radius-panel);
  background: var(--bg-panel-gradient);
  border: 1px solid rgba(255, 255, 255, 0.04);
  margin: 3rem 0;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--text-heading);
  margin: 0;
}

.cta-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0;
}

/* How It Works Section */
.how-it-works-section {
  padding: 2rem 0;
  background: var(--bg-panel-gradient);
  border-radius: var(--radius-panel);
  border: 1px solid rgba(255, 255, 255, 0.04);
  margin: 3rem 0;
}

.how-it-works-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--text-heading);
}

.how-it-works-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.how-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.how-step--right {
  direction: ltr;
}

.how-step__image {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.how-step__img {
  width: 70%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

.how-step__content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.how-step__number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-mint);
  opacity: 0.3;
  line-height: 1;
}

.how-step__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0;
}

.how-step__description {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-body);
  margin: 0;
}

.how-it-works-cta {
  text-align: center;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .how-step {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .how-step__image {
    order: -1;
  }
}

/* FAQ Section */
.faq-section {
  padding: 3rem 0;
  background: var(--bg-panel-gradient);
  border-radius: var(--radius-panel);
  border: 1px solid rgba(255, 255, 255, 0.04);
  margin: 3rem 0;
}

.faq-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-heading);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: all 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.6);
}

.faq-item[open] {
  border-color: var(--accent-mint);
  background: rgba(15, 23, 42, 0.7);
}

.faq-question {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-heading);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--accent-mint);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent-mint);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  content: '−';
  transform: rotate(0deg);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-answer {
  padding-top: 1rem;
  margin-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-answer p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-body);
  margin: 0;
}

.faq-answer a {
  color: var(--accent-mint);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.faq-answer a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 968px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-image {
    order: -1;
  }
}

.panel,
.card {
  border-radius: var(--radius-lg);
  background: var(--color-card);
  border: 1px solid rgba(124, 92, 255, 0.18);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.panel header h1,
.panel header h2,
.card header h1,
.card header h2 {
  margin: 0;
  color: var(--text-strong);
}

.panel--address .subtitle {
  margin-bottom: 0.5rem;
}

.panel--address .helper-text {
  margin-bottom: 1rem;
  color: rgba(226, 232, 240, 0.75);
}

.address-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.address-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.address-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.address-form input {
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  background: rgba(15, 23, 42, 0.55);
  color: #f8fafc;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.address-form input:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.address-form .helper-text {
  font-size: 0.8rem;
  line-height: 1.3;
  color: rgba(226, 232, 240, 0.7);
  margin: 0;
}

.address-form .form-actions {
  display: flex;
  justify-content: flex-end;
}

.chat-status,
.purchase-status {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.chat-status.error,
.purchase-status.error {
  color: var(--color-danger);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(8, 12, 24, 0.78);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(124, 92, 255, 0.18);
}

.data-table thead {
  background: rgba(124, 92, 255, 0.12);
}

.data-table th,
.data-table td {
  padding: 0.95rem 1.1rem;
  font-size: 0.9rem;
  text-align: left;
  border-bottom: 1px solid rgba(124, 92, 255, 0.12);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: rgba(124, 92, 255, 0.08);
}

.inventory-card {
  display: grid;
  gap: 1.5rem;
}

.inventory-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}

.inventory-card__subtitle {
  margin-top: 0.45rem;
}

.inventory-stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.inventory-stat {
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  background: rgba(6, 10, 24, 0.75);
  border: 1px solid rgba(124, 92, 255, 0.15);
  display: grid;
  gap: 0.4rem;
}

.inventory-stat__label {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.inventory-stat__value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
}

/* Inventory Tabs */
.inventory-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid rgba(124, 92, 255, 0.15);
  padding-bottom: 0;
  margin-bottom: 1.5rem;
}

.inventory-tab {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: -2px;
}

.inventory-tab:hover {
  color: var(--text-primary);
  background: rgba(124, 92, 255, 0.05);
}

.inventory-tab--active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
  font-weight: 600;
}

.inventory-list-wrapper {
  border-radius: var(--radius-md);
  border: 1px solid rgba(124, 92, 255, 0.16);
  background: rgba(6, 11, 22, 0.85);
  overflow: hidden;
}

.inventory-actions {
  display: flex;
  gap: 0.45rem;
}

.inventory-action-button {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(124, 92, 255, 0.2);
  padding: 0.45rem 0.75rem;
  background: transparent;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.inventory-action-button:hover {
  background: rgba(124, 92, 255, 0.16);
}

.inventory-action-button--primary {
  background: var(--accent-gold);
  color: #1a1a2e;
  border-color: var(--accent-gold);
  font-weight: 600;
}

.inventory-action-button--primary:hover {
  background: #d4af37;
  color: #1a1a2e;
  border-color: #d4af37;
}

.inventory-photo-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid rgba(124, 92, 255, 0.15);
}

/* Inventory Filters */
.inventory-filters {
  padding: 1rem 1.25rem;
  background: rgba(6, 10, 24, 0.5);
  border-radius: var(--radius-md);
  border: 1px solid rgba(124, 92, 255, 0.12);
}

.inventory-filter-row {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 1fr 0.8fr;
  gap: 1rem;
  align-items: end;
}

.inventory-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.inventory-filter-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  font-weight: 500;
}

.inventory-filter-input,
.inventory-filter-select {
  padding: 0.6rem 0.85rem;
  background: rgba(6, 10, 24, 0.8);
  border: 1px solid rgba(124, 92, 255, 0.2);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
}

.inventory-filter-input:focus,
.inventory-filter-select:focus {
  outline: none;
  border-color: var(--color-accent);
}

.inventory-filter-input--small {
  max-width: 120px;
}

/* Sortable Table Headers */
.data-table th.sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: background-color 0.2s ease;
}

.data-table th.sortable:hover {
  background: rgba(124, 92, 255, 0.1);
}

.data-table th.sortable.sort-asc .sort-indicator::after {
  content: " ▲";
  color: var(--color-accent);
}

.data-table th.sortable.sort-desc .sort-indicator::after {
  content: " ▼";
  color: var(--color-accent);
}

.sort-indicator {
  margin-left: 0.3rem;
  font-size: 0.7em;
  opacity: 0.5;
}

.data-table th.sortable.sort-asc .sort-indicator,
.data-table th.sortable.sort-desc .sort-indicator {
  opacity: 1;
}

/* Pack Usage Badge */
.pack-usage-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  background: rgba(124, 92, 255, 0.15);
  border: 1px solid rgba(124, 92, 255, 0.3);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  color: var(--color-accent);
  margin: 0.15rem 0.25rem 0.15rem 0;
  white-space: nowrap;
}

.pack-usage-badge--available {
  background: rgba(76, 175, 80, 0.15);
  border-color: rgba(76, 175, 80, 0.3);
  color: #4caf50;
}

.pack-usage-badge--sold {
  background: rgba(158, 158, 158, 0.15);
  border-color: rgba(158, 158, 158, 0.3);
  color: #9e9e9e;
}

.pack-usage-cell {
  max-width: 200px;
}

/* Inventory Pagination */
.inventory-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: rgba(6, 10, 24, 0.5);
  border-radius: var(--radius-md);
  border: 1px solid rgba(124, 92, 255, 0.12);
  margin-top: 1rem;
}

.inventory-pagination__info {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.inventory-pagination__controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.inventory-pagination__button {
  padding: 0.4rem 0.8rem;
  background: rgba(6, 10, 24, 0.8);
  border: 1px solid rgba(124, 92, 255, 0.2);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.inventory-pagination__button:hover:not(:disabled) {
  background: rgba(124, 92, 255, 0.2);
  border-color: var(--color-accent);
}

.inventory-pagination__button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.inventory-pagination__button.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #000;
  font-weight: 600;
}

.inventory-pagination__pages {
  display: flex;
  gap: 0.25rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .inventory-filter-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
}

@media (max-width: 640px) {
  .inventory-filter-row {
    grid-template-columns: 1fr;
  }

  .inventory-pagination {
    flex-direction: column;
    gap: 1rem;
  }
}

.stream-controls-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stream-controls-section {
  border-radius: var(--radius-md);
  border: 1px solid rgba(124, 92, 255, 0.18);
  background: rgba(8, 12, 26, 0.75);
  padding: 1.35rem;
  display: grid;
  gap: 0.9rem;
}

.stream-controls-title {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-strong);
}

.stream-session-info {
  display: grid;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.stream-controls-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.stream-queue-list {
  display: grid;
  gap: 0.75rem;
}

.stream-queue-item {
  border-radius: var(--radius-md);
  border: 1px solid rgba(124, 92, 255, 0.14);
  background: rgba(12, 18, 34, 0.85);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.stream-queue-item__info {
  display: grid;
  gap: 0.25rem;
}

.stream-queue-item__name {
  font-weight: 600;
  color: var(--text-strong);
}

.stream-queue-item__wallet,
.stream-queue-item__meta {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.stream-queue-remove {
  border: 1px solid rgba(245, 87, 108, 0.45);
  color: var(--color-danger);
  background: transparent;
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.75rem;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.stream-queue-remove:hover {
  background: rgba(245, 87, 108, 0.12);
}

.admin-shell {
  display: grid;
  gap: clamp(1.8rem, 4vw, 2.4rem);
}

.admin-shell__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.admin-tabs {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(124, 92, 255, 0.26);
  padding-bottom: 0.75rem;
  margin-bottom: 0.5rem;
  overflow-x: auto;
}

.admin-tabs::-webkit-scrollbar {
  display: none;
}

.admin-tab {
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.1rem;
  background: rgba(124, 92, 255, 0.12);
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  transition: border-color var(--transition), color var(--transition), background-color var(--transition), box-shadow var(--transition);
}

.admin-tab:hover {
  color: var(--text-default);
  border-color: rgba(124, 92, 255, 0.28);
}

.admin-tab:focus-visible {
  outline: 2px solid rgba(124, 92, 255, 0.45);
  outline-offset: 2px;
}

.admin-tab.is-active {
  color: var(--color-accent);
  border-color: rgba(124, 92, 255, 0.35);
  background: rgba(124, 92, 255, 0.2);
  box-shadow: 0 12px 28px rgba(10, 8, 30, 0.35);
}

.admin-tabpanel {
  display: none;
  gap: clamp(1.5rem, 3vw, 2rem);
  min-width: 0;
}

.admin-tabpanel.is-active {
  display: grid;
}

.admin-overview-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.4rem);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.admin-overview-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(124, 92, 255, 0.2);
  background: rgba(8, 13, 26, 0.82);
  padding: 1rem 1.2rem;
  display: grid;
  gap: 0.4rem;
}

.admin-overview-card__label {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.admin-overview-card__value {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-strong);
}

.admin-overview-card__meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.admin-overview-card__action {
  margin-top: 0.5rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-gold);
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-overview-card__action:hover {
  background: rgba(255, 215, 0, 0.15);
  border-color: var(--accent-gold);
  color: var(--text-strong);
}

.admin-status {
  margin: clamp(1rem, 2vw, 1.5rem) 0 0;
}

.admin-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(124, 92, 255, 0.28);
  background: rgba(124, 92, 255, 0.14);
  color: var(--color-primary);
}

.admin-status-pill--live {
  border-color: rgba(78, 225, 139, 0.4);
  background: rgba(78, 225, 139, 0.18);
  color: #0f5132;
}

.admin-status-pill--offline {
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-soft);
}

.admin-users-card {
  display: grid;
  gap: 1.25rem;
}

.watch-live-container {
  width: min(1440px, 100% - 2 * var(--gutter));
  margin: 0 auto;
}

.watch-live-panel {
  display: grid;
  gap: clamp(1.8rem, 4vw, 2.2rem);
}

.watch-live-banner {
  display: grid;
  gap: 0.55rem;
  border-radius: var(--radius-lg);
  background: rgba(9, 14, 30, 0.88);
  border: 1px solid rgba(124, 92, 255, 0.25);
  padding: 0.55rem clamp(0.85rem, 2vw, 1.15rem);
  box-shadow: var(--shadow-soft);
}

.watch-live-banner__row {
  display: grid;
  gap: clamp(0.45rem, 0.8vw, 0.7rem);
  align-items: center;
}

.watch-live-banner__row--primary {
  grid-template-columns:
    minmax(0, 1.05fr)
    minmax(0, 0.9fr)
    minmax(0, 1.4fr)
    minmax(0, 0.9fr)
    minmax(0, 0.9fr)
    minmax(0, 0.9fr);
}

.watch-live-banner__row--secondary {
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.watch-live-banner__item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.watch-live-banner__label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.watch-live-banner__value {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.watch-live-banner__value--current {
  background: rgba(78, 225, 139, 0.18);
  color: #0f5132;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(78, 225, 139, 0.35);
  padding: 0.25rem 0.65rem;
}

.watch-live-banner__item--next .watch-live-banner__value {
  border-radius: var(--radius-pill);
  border: 1px dashed rgba(243, 181, 107, 0.32);
  padding: 0.25rem 0.6rem;
  background: rgba(243, 181, 107, 0.1);
  color: var(--color-accent);
}

.watch-live-banner__item--accent {
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(243, 181, 107, 0.28);
  background: rgba(243, 181, 107, 0.12);
  padding: 0.35rem 0.55rem;
}

.watch-live-banner__item--accent .watch-live-banner__value {
  background: rgba(255, 255, 255, 0.18);
  color: #2f2213;
  border-radius: var(--radius-pill);
  padding: 0.22rem 0.65rem;
  font-size: 0.9rem;
}

.watch-live-offer-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.watch-live-offer-button {
  min-width: 118px;
  padding-inline: 0.85rem;
}

.watch-live-offer-status {
  margin: 0 0 0 auto;
  font-size: 0.74rem;
  color: rgba(42, 32, 18, 0.7);
  white-space: nowrap;
}

.watch-live-offer-status.error {
  color: #7f1d1d;
}

.watch-live-layout {
  display: grid;
  gap: clamp(1.4rem, 3vw, 2rem);
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: stretch;
}

.watch-live-stream {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(124, 92, 255, 0.25);
  background: rgba(6, 10, 22, 0.88);
  aspect-ratio: 16 / 9;
  min-height: clamp(220px, 36vw, 360px);
  max-height: 24rem;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.watch-live-stream__placeholder {
  text-align: center;
  display: grid;
  gap: 0.7rem;
  padding: 1.5rem;
}

.watch-live-stream__badge {
  align-self: center;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(124, 92, 255, 0.18);
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.watch-live-chat {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(124, 92, 255, 0.22);
  background: rgba(8, 13, 26, 0.88);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 2.8vw, 1.65rem);
  max-height: 24rem;
}

.chat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  padding-right: 0.3rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 92, 255, 0.5) transparent;
}

.chat-message {
  padding: 0.65rem 0.25rem;
  border-bottom: 1px solid rgba(124, 92, 255, 0.16);
  display: grid;
  gap: 0.25rem;
}

.chat-message:last-child {
  border-bottom: none;
}

.chat-message__meta {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-accent);
}

.chat-message__text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-default);
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-message--bot {
  background: rgba(124, 92, 255, 0.08);
  border-radius: 6px;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid rgba(124, 92, 255, 0.25);
}

.chat-message--bot .chat-message__meta {
  color: #7c5cff;
}

.chat-message--bot .chat-message__text {
  font-weight: 500;
}

.chat-form {
  display: flex;
  flex-direction: column;
}

.chat-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(10, 16, 32, 0.88);
  border: 1px solid rgba(124, 92, 255, 0.25);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.chat-input-wrapper:focus-within {
  border-color: rgba(124, 92, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.18);
}

.chat-input-wrapper textarea {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  resize: none;
  outline: none;
  min-height: 24px;
  max-height: 120px;
}

.chat-input-wrapper textarea::placeholder {
  color: var(--text-soft);
}

.chat-send-icon {
  background: rgba(124, 92, 255, 0.2);
  border: 1px solid rgba(124, 92, 255, 0.4);
  border-radius: 6px;
  color: #7c5cff;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.chat-send-icon:hover:not(:disabled) {
  background: rgba(124, 92, 255, 0.3);
  border-color: rgba(124, 92, 255, 0.6);
  transform: translateX(2px);
}

.chat-send-icon:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.chat-form__row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.chat-input {
  flex: 1;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(124, 92, 255, 0.25);
  background: rgba(10, 16, 32, 0.88);
  padding: 0.7rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.chat-input::placeholder {
  color: var(--text-soft);
}

.chat-input:focus {
  outline: none;
  border-color: rgba(124, 92, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.18);
}

.chat-send-button {
  padding: 0.65rem 1.2rem;
}

.watch-live-feed {
  display: grid;
  gap: 1.1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(124, 92, 255, 0.2);
  background: rgba(8, 14, 28, 0.92);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}

.watch-live-feed__header h2 {
  margin: 0;
}

.watch-live-feed__empty {
  margin: 0;
  color: var(--text-soft);
}

.watch-live-feed__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.watch-live-feed__item {
  display: grid;
  gap: 0.7rem 1.5rem;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  padding: 0.9rem 0;
  border-top: 1px solid rgba(124, 92, 255, 0.16);
}

.watch-live-feed__item:first-child {
  border-top: none;
}

.watch-live-feed__card {
  display: grid;
  gap: 0.3rem;
}

.watch-live-feed__title {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-strong);
}

.watch-live-feed__subtitle {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.watch-live-feed__meta,
.watch-live-feed__details {
  display: grid;
  gap: 0.4rem;
}

.watch-live-feed__value {
  font-weight: 600;
  color: var(--color-accent);
}

.watch-live-feed__rarity {
  font-size: 0.75rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.watch-live-feed__user {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.watch-live-feed__timestamp {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.public-drop-card {
  border-radius: var(--radius-lg);
  background: rgba(10, 15, 30, 0.94);
  border: 1px solid rgba(124, 92, 255, 0.22);
  padding: clamp(1.4rem, 3vw, 2rem);
  display: grid;
  gap: 1.25rem;
  box-shadow: var(--shadow-soft);
}

.public-drop-card__header {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.public-drop-card__title {
  margin: 0;
  font-size: 1.4rem;
  color: var(--text-strong);
}

.public-drop-card__status {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(84, 207, 255, 0.18);
  color: #58cffd;
  border: 1px solid rgba(84, 207, 255, 0.35);
}

.public-drop-card__meta {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.public-drop-card__meta-item {
  display: grid;
  gap: 0.3rem;
}

.public-drop-card__meta-label {
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.public-drop-card__meta-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-default);
}

.public-drop-card__hits {
  display: grid;
  gap: 0.65rem;
}

.public-drop-card__hits-value {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--text-muted);
}

.public-drop-card__rarities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.public-drop-card__rarity-pill {
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.8rem;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.25);
  display: grid;
  gap: 0.25rem;
}

.public-drop-card__rarity-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-default);
}

.public-drop-card__rarity-count,
.public-drop-card__rarity-range {
  font-size: 0.72rem;
  color: var(--text-soft);
}

.public-drop-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.public-drop-card__button {
  flex: 1 1 200px;
}

.public-drop-list,
.drop-list {
  display: grid;
  gap: clamp(1.25rem, 2.8vw, 1.75rem);
}

.drop-summary-list {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.4rem);
}

.drop-summary-card {
  display: grid;
  gap: 0.75rem;
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(124, 92, 255, 0.18);
  background: rgba(8, 13, 28, 0.88);
  box-shadow: 0 18px 38px rgba(6, 10, 24, 0.28);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.drop-summary-card:hover {
  border-color: rgba(124, 92, 255, 0.4);
  box-shadow: 0 20px 44px rgba(6, 10, 24, 0.38);
}

.drop-summary-card--live {
  border-color: rgba(84, 207, 255, 0.5);
  box-shadow: 0 22px 48px rgba(84, 207, 255, 0.28);
}

.drop-summary-card__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.drop-summary-card__title {
  margin: 0;
  font-size: 1.15rem;
  color: var(--text-strong);
}

.drop-summary-card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  border: 1px solid rgba(124, 92, 255, 0.38);
  background: rgba(124, 92, 255, 0.18);
}

.drop-summary-card__status[data-state="open"] {
  border-color: rgba(84, 207, 255, 0.4);
  background: rgba(84, 207, 255, 0.14);
  color: #58cffd;
}

.drop-summary-card__status[data-state="soldout"],
.drop-summary-card__status[data-state="closed"] {
  border-color: rgba(243, 181, 107, 0.4);
  background: rgba(243, 181, 107, 0.18);
  color: var(--color-accent);
}

.drop-summary-card__status[data-state="draft"] {
  color: var(--text-soft);
}

.drop-summary-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem clamp(0.8rem, 2vw, 1.4rem);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.drop-summary-card__meta strong {
  font-weight: 600;
  color: var(--text-default);
  margin-right: 0.35rem;
}

.drop-summary-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.drop-summary-card__action {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(124, 92, 255, 0.32);
  background: rgba(124, 92, 255, 0.14);
  color: var(--text-default);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.55rem 1.2rem;
  transition: background var(--transition), border-color var(--transition),
    color var(--transition);
}

.drop-summary-card__action:hover {
  background: rgba(124, 92, 255, 0.22);
  border-color: rgba(124, 92, 255, 0.5);
}

.drop-summary-card__action:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  z-index: 1000;
  background: rgba(3, 6, 18, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 18, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal__content {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: min(90vh, 960px);
  overflow: hidden auto;
  border-radius: var(--radius-panel);
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: var(--bg-panel-gradient);
  box-shadow: var(--shadow-elevated);
  padding: clamp(1.2rem, 3vw, 2rem);
  display: grid;
  gap: 1.1rem;
}

.modal__content--wide {
  width: min(900px, 100%);
}

.drop-detail-body {
  display: grid;
  gap: 1.4rem;
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.modal__header h2 {
  margin: 0;
  font-size: 1.4rem;
}

.modal__close-button {
  border: none;
  background: rgba(124, 92, 255, 0.14);
  color: var(--text-default);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.6rem;
  line-height: 1;
}

.card-detail-modal__content {
  width: min(520px, 100%);
}

.card-detail-modal__body {
  display: grid;
  gap: 1.25rem;
  justify-items: center;
}

.card-detail-modal__flip {
  width: min(320px, 80vw);
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.45);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.6), rgba(30, 41, 59, 0.6));
}

.card-detail-modal__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.card-detail-modal__value {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-gold);
}

/* Delete Pack Modal Styles */
.delete-pack-modal__message {
  font-size: 1rem;
  color: var(--text-default);
  margin-bottom: 1.5rem;
}

.delete-pack-modal__warning {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-panel);
  padding: 1.25rem;
  margin-top: 1rem;
}

.delete-pack-modal__warning strong {
  display: block;
  color: #ef4444;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.delete-pack-modal__warning p {
  margin: 0.5rem 0;
  color: var(--text-muted);
}

.delete-pack-modal__warning ul {
  list-style: none;
  padding-left: 0;
  margin: 0.75rem 0 0 0;
}

.delete-pack-modal__warning ul li {
  color: var(--text-default);
  padding: 0.35rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.delete-pack-modal__warning ul li::before {
  content: "•";
  position: absolute;
  left: 0.5rem;
  color: #ef4444;
  font-weight: bold;
}

.purchase-form {
  display: grid;
  gap: 1.25rem;
}

.purchase-form__row {
  display: grid;
  gap: 0.45rem;
}

.purchase-form__inputs {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.purchase-form input[type="number"] {
  width: 120px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(124, 92, 255, 0.28);
  background: rgba(10, 16, 32, 0.9);
  padding: 0.6rem 0.9rem;
  text-align: center;
}

.purchase-form__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(124, 92, 255, 0.18);
  background: rgba(124, 92, 255, 0.12);
}

.purchase-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.purchase-entry,
.offer-entry {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(124, 92, 255, 0.18);
  background: rgba(8, 13, 24, 0.82);
  padding: 1.25rem;
  display: grid;
  gap: 0.9rem;
}

.purchase-entry__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.purchase-entry__title {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-strong);
}

.purchase-entry__status {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.purchase-entry--refunded {
  border-color: rgba(245, 87, 108, 0.4);
  background: rgba(245, 87, 108, 0.12);
}

.purchase-entry__details {
  display: grid;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.purchase-entry__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.offer-entry__field {
  display: grid;
  gap: 0.3rem;
}

.offer-entry__label {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.offer-entry__value {
  font-size: 1rem;
  color: var(--text-default);
}

.offer-entry__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.offer-entry__status {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.drop-card-entry {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(124, 92, 255, 0.2);
  background: rgba(10, 16, 32, 0.9);
  padding: 1.5rem;
  display: grid;
  gap: 1.1rem;
}

.drop-card-entry__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.drop-card-entry__title {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text-strong);
}

.drop-card-entry__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.drop-card-entry__button {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(124, 92, 255, 0.32);
  background: rgba(124, 92, 255, 0.14);
  color: var(--text-default);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 1.2rem;
  transition: background var(--transition), border-color var(--transition),
    color var(--transition);
}

.drop-card-entry__button:hover {
  background: rgba(124, 92, 255, 0.25);
  border-color: rgba(124, 92, 255, 0.5);
}

.drop-card-entry__button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.drop-card-entry__button--delete {
  border-color: rgba(245, 87, 108, 0.38);
  background: rgba(245, 87, 108, 0.16);
  color: var(--color-danger);
}

.drop-card-entry__button--delete:hover {
  border-color: rgba(245, 87, 108, 0.55);
  background: rgba(245, 87, 108, 0.2);
}

.drop-card-entry__button--refund {
  border-color: rgba(243, 181, 107, 0.38);
  background: rgba(243, 181, 107, 0.16);
  color: var(--color-accent);
}

.drop-card-entry__button--refund:hover {
  border-color: rgba(243, 181, 107, 0.5);
  background: rgba(243, 181, 107, 0.22);
}

.drop-card-entry__status {
  align-self: flex-start;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(84, 207, 255, 0.18);
  color: #58cffd;
  border: 1px solid rgba(84, 207, 255, 0.3);
}

.drop-card-entry--streaming {
  border-color: rgba(84, 207, 255, 0.4);
  box-shadow: 0 16px 36px rgba(84, 207, 255, 0.22);
}

.drop-card-entry__purchases {
  display: grid;
  gap: 0.75rem;
}

.drop-card-entry__purchases-title {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.drop-card-entry__purchases-empty {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.drop-purchase-list__entry {
  display: grid;
  gap: 0.35rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(124, 92, 255, 0.16);
  background: rgba(6, 11, 22, 0.82);
  padding: 0.85rem 1rem;
}

.drop-purchase-list__entry--refunded {
  border-color: rgba(245, 87, 108, 0.4);
  background: rgba(245, 87, 108, 0.12);
}

.drop-purchase-list__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(245, 87, 108, 0.18);
  color: var(--color-danger);
}

.rarity-breakdown__title {
  margin: 0;
  font-size: 1.02rem;
  color: var(--text-strong);
}

.rarity-breakdown__list,
.drop-item-list,
.drop-selected-list,
.public-drop-buyer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.rarity-breakdown__item,
.drop-item-list__item,
.drop-selected-list__item,
.public-drop-buyer-list__item {
  border-radius: var(--radius-md);
  border: 1px solid rgba(124, 92, 255, 0.16);
  background: rgba(8, 13, 26, 0.8);
  padding: 0.85rem 1rem;
  display: grid;
  gap: 0.4rem;
}

.drop-selected-list__details {
  display: grid;
  gap: 0.3rem;
}

.drop-item-list__title,
.drop-selected-list__title {
  font-weight: 600;
  color: var(--text-default);
}

.drop-item-list__meta,
.drop-selected-list__meta {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.drop-item-list__rarity,
.drop-selected-list__value {
  font-size: 0.85rem;
  color: var(--color-accent);
}

.drop-inventory-item {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(124, 92, 255, 0.2);
  background: rgba(10, 14, 28, 0.9);
  padding: 0.85rem 1rem;
  display: grid;
  gap: 0.3rem;
  text-align: left;
}

.drop-inventory-item--selected {
  border-color: rgba(84, 207, 255, 0.45);
  background: rgba(84, 207, 255, 0.12);
}

.drop-inventory-item--locked {
  opacity: 0.6;
  cursor: not-allowed;
}

.drop-inventory-item__title {
  font-weight: 600;
  color: var(--text-default);
}

.drop-inventory-item__value {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.drop-rarity-settings {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(124, 92, 255, 0.18);
  background: rgba(9, 15, 30, 0.72);
}

.drop-rarity-settings__header {
  display: grid;
  gap: 0.4rem;
}

.drop-rarity-settings__hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.drop-rarity-grid {
  display: grid;
  gap: 0.75rem;
}

.drop-rarity-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.drop-rarity-row__label {
  flex: 0 0 120px;
  font-weight: 600;
  color: var(--text-default);
}

.drop-rarity-row__inputs {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.drop-rarity-row__inputs input {
  width: min(120px, 100%);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(124, 92, 255, 0.28);
  background: rgba(8, 12, 24, 0.92);
  color: var(--text-default);
}

.drop-rarity-row__separator {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.drop-countdown-settings {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  margin-top: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(124, 92, 255, 0.2);
  background: rgba(8, 14, 28, 0.86);
}

.drop-countdown-settings__header {
  display: grid;
  gap: 0.4rem;
}

.drop-countdown-settings__hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.drop-countdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}

.drop-countdown-field {
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.drop-countdown-field input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(124, 92, 255, 0.28);
  background: rgba(7, 11, 22, 0.92);
  color: var(--text-default);
}

.drop-countdown-form {
  display: grid;
  gap: 1rem;
}

.public-drop-buyer-list__item {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.public-drop-buyer-list__pack {
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(124, 92, 255, 0.16);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.public-drop-buyer-list__name {
  font-weight: 600;
  color: var(--text-default);
}

.public-drop-buyer-list__wallet,
.public-drop-buyer-list__timestamp {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.public-drop-modal__body {
  display: grid;
  gap: 1.5rem;
}

.public-drop-modal__buyers {
  display: grid;
  gap: 0.85rem;
}

.public-drop-modal__summary {
  display: grid;
  gap: 0.65rem;
}

.public-drop-modal__buyers-empty {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.confetti-piece {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: var(--color-accent);
  pointer-events: none;
}

.coming-soon {
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(124, 92, 255, 0.35);
  background: rgba(8, 13, 26, 0.8);
  padding: clamp(1.8rem, 3.5vw, 2.4rem);
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
}

.chat-messages::-webkit-scrollbar {
  width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(124, 92, 255, 0.35);
  border-radius: 12px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 92, 255, 0.55);
}

.chat-status:empty {
  display: none;
}

.chat-form--locked .chat-input,
.chat-form--locked .chat-send-button {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 1100px) {
  .top-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .watch-live-layout,
  .stream-controls-grid {
    grid-template-columns: 1fr;
  }

  .watch-live-banner__row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .top-nav {
    padding: 1rem clamp(1rem, 3vw, 1.5rem);
  }

  .hero-card {
    padding: 2.4rem 1.8rem;
  }

  .hero-actions,
  .watch-live-offer-actions,
  .purchase-form__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-button,
  .ghost-button,
  .watch-live-offer-button {
    width: 100%;
  }

  .watch-live-banner__row {
    grid-template-columns: 1fr;
  }

  .watch-live-feed__item {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 540px) {
  .public-drop-card__header,
  .purchase-form__inputs {
    flex-direction: column;
    align-items: stretch;
  }
}
.page--digital-packs .panel + .panel {
  margin-top: 1.5rem;
}

.digital-packs__hero {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.08), rgba(243, 181, 107, 0.08));
}

.digital-packs__hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  font-weight: 600;
}

.digital-packs__hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.digital-packs-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.digital-packs-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.digital-packs-left .panel {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.digital-packs-right {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.digital-packs-right .panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.digital-packs-right .chat-layout {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.digital-packs-right .chat-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.digital-packs-right .chat-messages {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
}

.panel--hero-pack {
  flex: 0 0 auto;
  height: 1180px;
  display: flex;
  flex-direction: column;
}

.panel--hero-pack .digital-pack-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.panel__description {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-body);
  max-width: 100%;
}

.panel__description p {
  margin: 0 0 0.75rem 0;
}

.panel__description p:last-child {
  margin-bottom: 0;
}

.panel__description strong {
  color: var(--text-heading);
  font-weight: 600;
}

.panel__description-highlight {
  padding: 0.75rem;
  background: rgba(59, 130, 246, 0.1);
  border-left: 3px solid rgba(59, 130, 246, 0.5);
  border-radius: 4px;
  font-size: 0.9rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-body);
}

.feature-list svg {
  flex-shrink: 0;
}

.panel--recent-pulls {
  margin-top: 0;
}

.digital-packs-secondary {
  display: grid;
  gap: 1.5rem;
}

.digital-packs-secondary__item {
  height: 100%;
}

.digital-packs__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.digital-packs__meta strong {
  color: var(--text-default);
  font-weight: 600;
}

.digital-packs__odds {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.digital-packs__odds li {
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface-alt);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.digital-packs__odds h3 {
  margin: 0;
  font-size: 1rem;
}

.digital-packs__odds span {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-accent);
}

.digital-packs__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.digital-packs-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-card);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}

/* Rarity-based card border colors */
.digital-packs-card--common {
  border-color: rgba(148, 163, 184, 0.5);
  box-shadow: 0 0 12px rgba(148, 163, 184, 0.15);
}

.digital-packs-card--uncommon {
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.15);
}

.digital-packs-card--rare {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.15);
}

.digital-packs-card--epic {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.15);
}

.digital-packs-card--legendary {
  border-color: rgba(234, 179, 8, 0.5);
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.2);
}

.digital-packs-card__media {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: rgba(255, 255, 255, 0.02);
}

.digital-packs-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.digital-packs-card__media img.is-hidden {
  display: none;
}

.digital-packs-card__badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(4, 6, 13, 0.7);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.digital-packs-card__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.digital-packs-card__meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.card-value-highlight {
  color: var(--accent-mint);
  font-size: 1.1rem;
  font-weight: 700;
}

.digital-packs__pulls {
  display: grid;
  gap: 0.75rem;
}

/* Recently Pulled Carousel */
.recent-pulls-carousel {
  width: 100%;
  overflow: hidden;
}

.recent-pulls-carousel__scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
}

.recent-pulls-carousel__scroll::-webkit-scrollbar {
  height: 8px;
}

.recent-pulls-carousel__scroll::-webkit-scrollbar-track {
  background: transparent;
}

.recent-pulls-carousel__scroll::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 4px;
}

.recent-pulls-carousel__scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.5);
}

.recent-pull-card {
  flex: 0 0 200px;
  scroll-snap-align: start;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.recent-pull-card:hover {
  transform: translateY(-4px);
  border-color: rgba(248, 250, 252, 0.4);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.4);
}

.recent-pull-card__image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: rgba(15, 23, 42, 0.6);
}

.recent-pull-card__info {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.recent-pull-card__rarity {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  width: fit-content;
}

.recent-pull-card__name {
  font-size: 0.9rem;
  font-weight: 500;
  color: #f8fafc;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.recent-pull-card__value {
  font-size: 0.85rem;
  font-weight: 600;
  color: #10b981;
  letter-spacing: 0.02em;
}

.recent-pull-card__username {
  font-size: 0.75rem;
  color: rgba(226, 232, 240, 0.7);
  margin-top: auto;
}

/* Rarity color variants for carousel cards */
.recent-pull-card--common {
  border-color: rgba(203, 213, 225, 0.3);
}

.recent-pull-card--uncommon {
  border-color: rgba(134, 239, 172, 0.3);
}

.recent-pull-card--rare {
  border-color: rgba(147, 197, 253, 0.3);
}

.recent-pull-card--epic {
  border-color: rgba(196, 181, 253, 0.3);
}

.recent-pull-card--legendary {
  border-color: rgba(253, 224, 71, 0.3);
  box-shadow: 0 0 20px rgba(253, 224, 71, 0.1);
}

/* View All card */
.recent-pull-card--view-all {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(147, 51, 234, 0.15) 100%);
  border-color: rgba(59, 130, 246, 0.4);
  justify-content: center;
  align-items: center;
  text-decoration: none;
  min-height: 220px;
}

.recent-pull-card--view-all:hover {
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.2);
}

.recent-pull-card__view-all-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.recent-pull-card__view-all-icon {
  font-size: 2.5rem;
  color: #60a5fa;
  font-weight: bold;
}

.recent-pull-card__view-all-text {
  font-size: 1rem;
  font-weight: 600;
  color: #f8fafc;
  letter-spacing: 0.05em;
}

.digital-packs-pull {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  background: var(--color-surface-alt);
}

.digital-packs-pull__media {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.digital-packs-pull__title {
  margin: 0;
  font-weight: 600;
}

.digital-packs-pull__meta {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.digital-packs__verify {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.digital-packs__verify .field {
  flex: 1;
  min-width: 200px;
}

.digital-packs__verify-output {
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.digital-packs__fairness {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
}

.digital-packs__fairness-entry {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  background: var(--color-card);
  font-size: 0.85rem;
  line-height: 1.4;
}

.digital-packs__fairness-entry code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  display: inline-block;
  margin-top: 0.2rem;
  word-break: break-all;
}

.digital-pack-list {
  display: grid;
  gap: var(--space-lg);
}

.digital-pack-option {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  background: var(--color-card);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.digital-pack-option__header {
  display: flex;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.digital-pack-option__eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  margin-bottom: 0.25rem;
}

.digital-pack-option__title {
  margin: 0;
}

.digital-pack-option__meta {
  margin: 0.25rem 0 0;
  color: var(--gray-600);
}

.digital-pack-option__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
}

.digital-pack-option__status {
  margin: 0;
  font-size: 0.85rem;
  color: var(--gray-600);
}

.digital-pack-option__section {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-md);
}

.digital-pack-option__section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-sm);
}

.digital-pack-option__odds {
  list-style: none;
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

.digital-pack-option__odds li {
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.6rem;
  font-size: 0.9rem;
}

.digital-pack-overview {
  display: grid;
  gap: var(--space-md);
}

.digital-pack-overview__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  background: var(--color-card);
}
.digital-pack-overview__item h3 {
  margin: 0;
}
.digital-pack-overview__item p {
  margin: 0.25rem 0;
  color: var(--gray-600);
}

.digital-pack-overview__actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.digital-pack-overview__actions button {
  flex: 0 0 auto;
}

/* ================================
   Admin Pack Cards - Redesigned
   ================================ */

/* Coming Soon Controls - Compact */
.coming-soon-card-compact {
  padding: 1rem 1.25rem !important;
}

.coming-soon-header-compact h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-strong);
  margin: 0 0 0.75rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.coming-soon-toggles-compact {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.coming-soon-toggle-compact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.coming-soon-toggle-compact span {
  font-size: 0.9rem;
  color: var(--text-strong);
  font-weight: 500;
}

/* Admin Pack Grid */
.digital-pack-overview-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

/* Empty State */
.admin-pack-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-elevated);
  border: 2px dashed var(--border);
  border-radius: 12px;
  color: var(--text-muted);
  grid-column: 1 / -1;
}

.admin-pack-empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.admin-pack-empty-state p {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--text-strong);
}

.admin-pack-empty-state small {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Admin Pack Card - Compact */
.admin-pack-card {
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s ease;
  padding: 0.75rem 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.admin-pack-card:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

/* Compact Main Layout */
.admin-pack-compact__main {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Compact Header */
.admin-pack-compact__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-pack-compact__thumbnail {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.admin-pack-compact__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.admin-pack-compact__pin {
  color: #fbbf24;
  font-size: 1rem;
}

.admin-pack-compact__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-strong);
}

/* Card Header */
.admin-pack-card__header {
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
  border-bottom: 1px solid var(--border);
}

.admin-pack-card__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-pack-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-strong);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.admin-pack-pinned-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #000;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
}

/* Compact Actions */
.admin-pack-compact__actions {
  display: flex;
  gap: 0.5rem;
}

.admin-pack-icon-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.75rem;
  font-weight: 600;
}

.admin-pack-icon-btn:hover {
  background: var(--bg-page);
  border-color: var(--accent-gold);
  transform: translateY(-1px);
}

.admin-pack-icon-btn--primary {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #000;
  font-weight: 700;
}

.admin-pack-icon-btn--primary:hover {
  background: #d4a127;
  border-color: #d4a127;
  transform: translateY(-1px);
}

.admin-pack-icon-btn--success {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.admin-pack-icon-btn--success:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

.admin-pack-icon-btn--warning {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}

.admin-pack-icon-btn--warning:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-1px);
}

.admin-pack-icon-btn--danger {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.admin-pack-icon-btn--danger:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  transform: translateY(-1px);
}

.admin-pack-icon-btn--disabled {
  background: rgba(107, 114, 128, 0.1);
  border-color: rgba(107, 114, 128, 0.2);
  color: #6b7280;
  cursor: not-allowed;
  opacity: 0.6;
}

.admin-pack-icon-btn--disabled:hover {
  background: rgba(107, 114, 128, 0.1);
  border-color: rgba(107, 114, 128, 0.2);
}

.admin-pack-text-btn {
  min-width: 80px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Compact Stats */
.admin-pack-compact__stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-subtle);
}

.admin-pack-compact__stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-pack-compact__stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.admin-pack-compact__stat-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-strong);
  font-family: 'Courier New', monospace;
}

.stat-positive {
  color: #10b981 !important;
}

.stat-negative {
  color: #ef4444 !important;
}

/* Status Badge */
.admin-pack-status {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.admin-pack-status--live {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.admin-pack-status--paused {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.admin-pack-status--restocking {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.admin-pack-status--soldout {
  background: rgba(107, 114, 128, 0.15);
  color: #6b7280;
  border: 1px solid rgba(107, 114, 128, 0.3);
}

/* Card Body */
.admin-pack-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
}

/* Section */
.admin-pack-section {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1rem;
}

.admin-pack-section__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-pack-section__icon {
  font-size: 1.1rem;
}

.admin-pack-section__title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* Stats Grid */
.admin-pack-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}

.admin-pack-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-pack-stat__label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.admin-pack-stat__value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-strong);
  font-family: 'Courier New', monospace;
}

.admin-pack-stat__value--positive {
  color: #10b981;
}

.admin-pack-stat__value--negative {
  color: #ef4444;
}

/* Card Actions */
.admin-pack-card__actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  padding: 1rem;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.admin-pack-btn {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.admin-pack-btn--primary {
  background: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
}

.admin-pack-btn--primary:hover {
  background: #d4a127;
  border-color: #d4a127;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(218, 165, 32, 0.3);
}

.admin-pack-btn--ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-strong);
}

.admin-pack-btn--ghost:hover {
  background: var(--bg-card);
  border-color: var(--accent-gold);
}

.admin-pack-btn--success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.admin-pack-btn--success:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10b981;
}

.admin-pack-btn--warning {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}

.admin-pack-btn--warning:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: #f59e0b;
}

.admin-pack-btn--danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.admin-pack-btn--danger:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
}

/* Responsive */
@media (max-width: 768px) {
  .digital-pack-overview-grid {
    grid-template-columns: 1fr;
  }

  .admin-pack-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

.digital-pack-inventory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.modal__eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(148, 163, 184, 0.9);
  margin: 0 0 0.35rem;
}

.digital-pack-drop-modal {
  width: min(960px, 95vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.digital-pack-drop-modal__body {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.digital-pack-drop-modal__footer {
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--color-border);
  background: rgba(15, 23, 42, 0.95);
}

.digital-pack-drop-submit {
  width: 100%;
}

.digital-pack-drop-step {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.92);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.08);
}

.digital-pack-drop-step h3 {
  margin: 0 0 0.35rem;
}

.digital-pack-drop-step__eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(94, 234, 212, 0.85);
  margin: 0 0 0.25rem;
  display: inline-block;
}

.digital-pack-drop-step .helper-text {
  margin-bottom: 1rem;
}

/* Step Header */
.digital-pack-step-header {
  margin-bottom: 1rem;
}

/* Two-Column Layout for Step 1 */
.digital-pack-step-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
  align-items: start;
}

.digital-pack-step-main {
  flex: 1;
}

.digital-pack-step-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Compact Field Grid */
.field-grid-compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.field-grid-compact .field:first-child {
  grid-column: 1 / -1;
}

/* Pack Image Upload - Compact */
.pack-image-upload-compact {
  background: var(--bg-elevated);
  border: 2px dashed var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.pack-image-upload-label {
  display: block;
  cursor: pointer;
  position: relative;
}

.pack-image-upload-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1rem 0.5rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.pack-image-preview-compact {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-page);
  border-radius: 6px;
  overflow: hidden;
}

.pack-image-preview-compact img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pack-image-remove-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.pack-image-remove-btn:hover {
  background: rgba(239, 68, 68, 0.9);
  border-color: rgba(239, 68, 68, 1);
}

.pack-image-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  height: 140px;
  transition: all 0.2s ease;
}

.pack-image-upload-label:hover .pack-image-upload-placeholder {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--accent-gold);
}

.pack-image-upload-icon {
  font-size: 2rem;
  opacity: 0.5;
}

.pack-image-upload-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* EV Preview - Compact */
.digital-pack-ev-preview-compact {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
}

.digital-pack-ev-preview-compact h4 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ev-preview-grid-compact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ev-preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  background: var(--bg-card);
  border-radius: 4px;
}

.ev-preview-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.ev-preview-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-strong);
  font-family: 'Courier New', monospace;
}

.ev-preview-value--delta {
  color: var(--text-muted);
}

.ev-preview-status-compact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: var(--bg-card);
  border-radius: 4px;
  margin-top: 0.25rem;
}

.ev-preview-status-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ev-preview-warning {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 4px;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #f59e0b;
}

.warning-icon {
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .digital-pack-step-layout {
    grid-template-columns: 1fr;
  }

  .field-grid-compact {
    grid-template-columns: 1fr;
  }
}

.digital-pack-drop-step .inventory-form {
  margin: 0;
}

.digital-pack-drop-step .form-actions {
  justify-content: flex-start;
}

.digital-pack-inventory-modal {
  width: min(720px, 92vw);
  max-height: 85vh;
  border-radius: var(--radius-md);
  overflow: visible;
  background: #0b1124;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.8);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.digital-pack-inventory-modal .modal__header {
  flex-shrink: 0;
  margin-bottom: 1rem;
}

.digital-pack-inventory-modal .helper-text,
.digital-pack-inventory-modal .digital-pack-inventory-stats,
.digital-pack-inventory-modal .inventory-ev-indicator {
  flex-shrink: 0;
}

.digital-pack-inventory-modal .drop-inventory-list {
  max-height: 600px;
  min-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
  margin-top: 1rem;
  flex: 1 1 auto;
  padding-right: 0.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  align-content: start;
}

/* Compact inventory stats */
.inventory-modal-stats-compact {
  display: flex;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin: 1rem 0;
  flex-wrap: wrap;
  align-items: center;
}

.inventory-stat-compact {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 80px;
}

.inventory-stat-compact--highlight {
  padding: 0.5rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 4px;
}

.inventory-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.inventory-stat-compact strong {
  font-size: 1rem;
  color: var(--text-strong);
  font-family: 'Courier New', monospace;
}

.inventory-stat-status {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 150px;
  justify-content: center;
}

.inventory-stat-status-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.ev-indicator-label--success .inventory-stat-status-text,
.inventory-stat-status-text.ev-indicator-label--success {
  color: #10b981;
}

.ev-indicator-label--warning .inventory-stat-status-text,
.inventory-stat-status-text.ev-indicator-label--warning {
  color: #f59e0b;
}

.digital-pack-inventory-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.digital-pack-inventory-stats__item {
  padding: 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(13, 18, 34, 0.85);
}

.digital-pack-inventory-stats__item p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.digital-pack-inventory-stats__item strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.1rem;
}


.digital-range-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 800px;
}

.digital-pack-odds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.digital-range-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto minmax(140px, 1fr) auto minmax(160px, 1fr);
  gap: 0.75rem;
  align-items: center;
}

@media (max-width: 768px) {
  .digital-range-row {
    grid-template-columns: 1fr;
  }
  .digital-range-row span {
    justify-self: start;
  }
}

.digital-range-row input {
  width: 100%;
}

.digital-range-row__threshold-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.ghost-button.warning-button {
  border-color: var(--color-warning);
  color: var(--color-warning);
}

.ghost-button.warning-button:hover {
  background: rgba(251, 191, 36, 0.12);
}

.digital-packs-admin-pools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.digital-packs-admin-pool {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  background: var(--color-surface-alt);
}

.digital-packs-admin-pool h4 {
  margin: 0 0 0.25rem;
}

.digital-packs-admin-card-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.digital-packs-admin-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  background: var(--color-card);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}

.digital-packs-admin-card strong {
  font-size: 1rem;
}

.digital-packs-admin-card__meta {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.digital-packs-admin-card__actions {
  margin-left: auto;
  display: flex;
  gap: 0.5rem;
}

.digital-packs-admin-card__actions button {
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
}

@media (min-width: 768px) {
  .digital-packs__hero {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .digital-packs__hero-actions {
    align-items: flex-end;
  }

}

@media (min-width: 1024px) {
  .digital-packs-layout {
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    align-items: flex-start;
  }

  .digital-pack-chat {
    position: sticky;
    top: 1.5rem;
  }
}

/* Digital packs refresh */
.digital-pack-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.digital-pack-card {
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-panel);
  padding: 1.5rem 1.25rem;
  background: var(--bg-panel-gradient);
  box-shadow: var(--shadow-elevated);
  color: var(--text-heading);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.digital-pack-card:hover {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  transform: translateY(-2px);
}
.digital-pack-card__status {
  font-size: 0.8rem;
  color: rgba(226, 232, 240, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}
.digital-pack-card__meta {
  margin: 0;
  color: rgba(226, 232, 240, 0.85);
  font-size: 0.9rem;
}
.digital-pack-card__image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin: 0.5rem auto;
  display: block;
}
.digital-pack-mini {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 340px;
  cursor: pointer;
}
.digital-pack-mini h3 {
  margin: 0;
  font-size: 1.2rem;
}
.digital-pack-mini__price {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #f8fafc;
}
.digital-pack-mini__actions {
  margin-top: auto;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.digital-pack-mini__actions button {
  flex: 1 1 140px;
}

.digital-pack-card--coming-soon {
  cursor: not-allowed;
  position: relative;
  overflow: hidden;
}

.digital-pack-card--coming-soon:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-elevated);
}

/* Pinned pack styling - featured pack with special glow */
.digital-pack-card--pinned {
  position: relative;
  border: 2px solid #10b981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3), 0 16px 40px rgba(0, 0, 0, 0.45);
  animation: pinnedGlow 3s ease-in-out infinite;
}

.digital-pack-card--pinned::after {
  content: "Featured";
  position: absolute;
  top: -0.45rem;
  left: 1.25rem;
  background: #10b981;
  color: #0f172a;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 0.35rem 1rem;
  border-radius: 0.35rem;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  pointer-events: none;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 1;
}

.digital-pack-card--pinned::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #10b981, #059669, #10b981, #059669);
  background-size: 300% 300%;
  border-radius: var(--radius-panel);
  z-index: -1;
  animation: gradientShift 4s ease infinite;
  opacity: 0.5;
}

.digital-pack-card--pinned:hover {
  border-color: #10b981;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.5), 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: none;
}

@keyframes pinnedGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3), 0 16px 40px rgba(0, 0, 0, 0.45);
  }
  50% {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.5), 0 16px 40px rgba(0, 0, 0, 0.45);
  }
}

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

.digital-pack-card__blur-content {
  filter: blur(6px);
  opacity: 0.5;
  pointer-events: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.digital-pack-card__coming-soon-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.3);
}

.coming-soon-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  padding: 0.75rem 1.5rem;
  background: rgba(29, 37, 56, 0.85);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Scrollable Pack Container */
.digital-pack-scroll-container {
  max-height: 572px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: 1rem;
  padding-right: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.digital-pack-scroll-container::-webkit-scrollbar {
  width: 6px;
}

.digital-pack-scroll-container::-webkit-scrollbar-track {
  background: transparent;
}

.digital-pack-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.digital-pack-scroll-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

.digital-pack-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* Hero Pack Styles - List Style with Thumbnail */
.digital-pack-hero {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0;
}

.digital-pack-hero .digital-pack-card {
  max-width: 100%;
  width: 100%;
  padding: 1rem 1.5rem;
  min-height: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.digital-pack-hero .digital-pack-card__image {
  width: 80px;
  height: 80px;
  margin: 0;
  flex-shrink: 0;
  border-radius: 6px;
}

.digital-pack-hero .digital-pack-mini {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  min-height: auto;
  cursor: pointer;
}

.digital-pack-hero .digital-pack-mini__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.digital-pack-mini__top-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-right: 6rem;
}

.digital-pack-mini__title-section {
  flex: 1;
}

.digital-pack-mini__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  color: #f8fafc;
}

.digital-pack-mini__stats {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.digital-pack-stat {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.digital-pack-stat__label {
  font-size: 0.75rem;
  color: rgba(226, 232, 240, 0.7);
}

.digital-pack-stat__value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f8fafc;
}

.pack-rarity-odds {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.3rem;
  overflow-x: auto;
  flex-shrink: 1;
  min-width: 0;
}

.pack-rarity-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.5rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  border: 1px solid;
  flex-shrink: 0;
  line-height: 1.2;
  text-align: center;
}

.pack-rarity-badge--common {
  background: rgba(148, 163, 184, 0.15);
  border-color: rgba(148, 163, 184, 0.4);
  color: #cbd5e1;
}

.pack-rarity-badge--uncommon {
  background: rgba(134, 239, 172, 0.15);
  border-color: rgba(134, 239, 172, 0.4);
  color: #86efac;
}

.pack-rarity-badge--rare {
  background: rgba(147, 197, 253, 0.15);
  border-color: rgba(147, 197, 253, 0.4);
  color: #93c5fd;
}

.pack-rarity-badge--epic {
  background: rgba(196, 181, 253, 0.15);
  border-color: rgba(196, 181, 253, 0.4);
  color: #c4b5fd;
}

.pack-rarity-badge--legendary {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fbbf24;
}

.pack-rarity-badge--mythic {
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.4);
  color: #f87171;
}

.digital-pack-hero .digital-pack-mini__price {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
}

.digital-pack-hero .digital-pack-card__status {
  font-size: 0.7rem;
  margin-bottom: 0.2rem;
  color: rgba(226, 232, 240, 0.75);
}

.digital-pack-hero .digital-pack-mini__actions {
  flex-direction: row;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
}

.digital-pack-hero .digital-pack-mini__actions button {
  flex: 0 1 auto;
  width: auto;
  font-size: 0.7rem;
  padding: 0.45rem 0.65rem;
  white-space: nowrap;
}

/* Reduce padding on hero pack panel */
.panel--hero-pack {
  padding: 1rem;
}

@media (max-width: 767px) {
  .digital-pack-hero .digital-pack-card {
    flex-direction: column;
    padding: 1rem;
    text-align: center;
  }

  .digital-pack-hero .digital-pack-card__image {
    width: 120px;
    height: 120px;
    margin: 0 auto;
  }

  .digital-pack-hero .digital-pack-mini {
    flex-direction: column;
    align-items: center;
  }

  .digital-pack-hero .digital-pack-mini__info {
    text-align: center;
    align-items: center;
  }

  .digital-pack-hero .digital-pack-mini h3 {
    font-size: 1.1rem;
    text-align: center;
  }
}

/* Floating Chat Button - Hidden on digital packs page */
.page--digital-packs .floating-chat-button {
  display: none;
}

.floating-chat-button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border: none;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
  transition: all 0.3s ease;
  z-index: 1000;
  color: white;
}

.floating-chat-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.floating-chat-button__icon {
  font-size: 1.5rem;
  line-height: 1;
}

.floating-chat-button__text {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}

/* Floating Chat Modal */
.floating-chat-modal {
  position: fixed;
  bottom: 5.5rem;
  right: 2rem;
  width: 400px;
  max-width: calc(100vw - 4rem);
  max-height: 600px;
  z-index: 1001;
  animation: slideUp 0.3s ease;
}

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

.floating-chat-modal__content {
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.floating-chat-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.floating-chat-modal__header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.floating-chat-modal__close {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: rgba(226, 232, 240, 0.75);
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.floating-chat-modal__close:hover {
  background: rgba(148, 163, 184, 0.1);
  color: #f8fafc;
}

.floating-chat-modal .chat-layout {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.floating-chat-modal .chat-panel {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

/* Hide sidebar chat on digital packs page */
.digital-pack-chat {
  display: none;
}

/* Responsive layout for digital packs */
@media (max-width: 1024px) {
  .digital-packs-layout {
    grid-template-columns: 1fr;
  }

  .digital-packs-right {
    order: 2;
  }

  .digital-packs-left {
    order: 1;
  }
}

@media (max-width: 640px) {
  .floating-chat-modal {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    max-height: 80vh;
    border-radius: 16px 16px 0 0;
  }

  .floating-chat-button {
    bottom: 1rem;
    right: 1rem;
    width: 56px;
    height: 56px;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}

.pack-modal {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 18, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 150;
}

.pack-modal[hidden] {
  display: none;
}

.pack-modal__backdrop {
  position: absolute;
  inset: 0;
}

.pack-modal__dialog {
  position: relative;
  background: #0a1224;
  border-radius: 24px;
  padding: 2rem;
  padding-right: 1.5rem;
  width: min(900px, 95vw);
  max-height: min(85vh, 800px);
  overflow-y: auto;
  box-shadow: 0 35px 80px rgba(6, 8, 20, 0.75);
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.3);
  scrollbar-gutter: stable;
}

/* Custom scrollbar styling */
.pack-modal__dialog::-webkit-scrollbar {
  width: 8px;
}

.pack-modal__dialog::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  margin: 24px 0;
}

.pack-modal__dialog::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.pack-modal__dialog::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Firefox scrollbar */
.pack-modal__dialog {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) rgba(255, 255, 255, 0.05);
}

.pack-modal__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.pack-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: transparent;
  font-size: 2rem;
  cursor: pointer;
  color: rgba(248, 250, 252, 0.5);
  transition: color 0.2s ease;
  z-index: 10;
  line-height: 1;
  padding: 0.25rem;
}

.pack-modal__close:hover {
  color: rgba(248, 250, 252, 0.9);
}

/* Hero Section */
.pack-modal__hero {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pack-modal__image {
  width: 150px;
  height: 150px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.pack-modal__hero-info {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 1.5rem;
}

.pack-modal__hero-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.pack-modal__hero-right {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;
}

.pack-modal__status-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.pack-modal__title {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-heading);
  font-family: var(--font-heading);
}

.pack-modal__price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-mint);
  margin: 0;
}

.pack-modal__buy-button {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  white-space: nowrap;
}

.pack-modal__status {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: rgba(226, 232, 240, 0.6);
}

.pack-modal__queue {
  margin: 0.5rem 0 1rem;
  font-weight: 600;
  color: var(--color-warning, #fbbf24);
}
.pack-modal__queue.is-hidden {
  display: none;
}

/* Stats Grid */
.pack-modal__stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.pack-stat {
  background: var(--bg-panel-gradient);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.pack-stat:hover {
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.pack-stat__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.pack-stat__value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
}

.pack-modal__section {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding-top: 1.25rem;
}

.pack-modal__section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-heading);
  margin: 0 0 1rem 0;
  font-family: var(--font-heading);
}

.pack-modal__footer {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.shipping-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}

.shipping-modal[hidden] {
  display: none;
}

.shipping-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 24, 0.75);
  backdrop-filter: blur(6px);
}

.shipping-modal__dialog {
  position: relative;
  width: min(540px, 90vw);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(124, 92, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 24px 60px rgba(6, 10, 24, 0.65);
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  z-index: 1;
}

.shipping-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.shipping-modal__description {
  margin: 0;
  color: rgba(226, 232, 240, 0.75);
  font-size: 0.9rem;
  line-height: 1.4;
}

.shipping-modal__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.shipping-modal__form input {
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: #f8fafc;
  padding: 0.65rem 0.8rem;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.shipping-modal__form input:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.shipping-modal__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.shipping-modal__summary {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.shipping-modal__summary-lines {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.shipping-modal__summary-line {
  margin: 0;
  font-size: 1rem;
  color: #f8fafc;
}

.shipping-modal__summary-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.shipping-modal__fee-section {
  text-align: center;
  padding: 1rem;
  background: rgba(52, 211, 153, 0.06);
  border-radius: 8px;
  border: 1px solid rgba(52, 211, 153, 0.15);
}

.shipping-modal__fee-amount {
  font-size: 1.75rem;
  font-weight: 700;
  color: #34d399;
  margin-bottom: 0.25rem;
}

.shipping-modal__fee-amount span {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.6);
}

.shipping-modal__fee-note {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.7);
  line-height: 1.4;
}

/* Server Hash Modal Styles */
.pack-modal__dialog--hash {
  max-width: 600px;
}

.server-hash-info {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
}

.server-hash-info .helper-text {
  margin: 0;
  line-height: 1.6;
}

.server-hash-display {
  margin-bottom: 1.5rem;
}

.field__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted, #9ca3af);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hash-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  padding: 0.75rem;
}

.hash-value {
  flex: 1;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  color: #10b981;
  word-break: break-all;
  line-height: 1.4;
  background: none;
  border: none;
  padding: 0;
}

.icon-button {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 6px;
  padding: 0.5rem;
  cursor: pointer;
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.icon-button:hover {
  background: rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.6);
  color: #93c5fd;
}

.icon-button:active {
  transform: scale(0.95);
}

.server-hash-timer {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
}

.timer-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.timer-label {
  font-size: 0.875rem;
  color: var(--text-muted, #9ca3af);
}

.timer-value {
  font-size: 1.25rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #10b981;
}

.timer-value.warning {
  color: #f59e0b;
}

.timer-value.expired {
  color: #ef4444;
}

.progress-bar {
  height: 6px;
  background: rgba(148, 163, 184, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  transition: width 1s linear;
  border-radius: 3px;
}

.progress-bar__fill.warning {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.progress-bar__fill.expired {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.server-hash-details {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
}

.detail-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
  margin: 0;
}

.detail-list dt {
  font-weight: 500;
  color: var(--text-muted, #9ca3af);
  font-size: 0.875rem;
}

.detail-list dd {
  margin: 0;
  color: var(--text-primary, #e5e7eb);
  font-size: 0.875rem;
}

.detail-list dd.monospace {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  color: #60a5fa;
}

.rarity-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
  overflow-x: auto;
}

.rarity-box {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rarity-box:hover {
  border-color: rgba(148, 163, 184, 0.4);
}

.rarity-box__label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted, #6b7280);
  margin: 0;
}

.rarity-box__odds {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  line-height: 1;
}

.rarity-box__range {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-body);
  margin: 0;
  white-space: nowrap;
}

.rarity-box__meta {
  font-size: 0.75rem;
  color: var(--text-muted, #6b7280);
  margin: 0;
}

/* Rarity-specific colors for rarity boxes */
.rarity-box--common {
  border-color: rgba(148, 163, 184, 0.4);
  background: rgba(148, 163, 184, 0.1);
}

.rarity-box--common .rarity-box__label,
.rarity-box--common .rarity-box__odds {
  color: #cbd5e1;
}

.rarity-box--uncommon {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.1);
}

.rarity-box--uncommon .rarity-box__label,
.rarity-box--uncommon .rarity-box__odds {
  color: #86efac;
}

.rarity-box--rare {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.1);
}

.rarity-box--rare .rarity-box__label,
.rarity-box--rare .rarity-box__odds {
  color: #93c5fd;
}

.rarity-box--epic {
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.1);
}

.rarity-box--epic .rarity-box__label,
.rarity-box--epic .rarity-box__odds {
  color: #c4b5fd;
}

.rarity-box--legendary {
  border-color: rgba(234, 179, 8, 0.4);
  background: rgba(234, 179, 8, 0.1);
}

.rarity-box--legendary .rarity-box__label,
.rarity-box--legendary .rarity-box__odds {
  color: #fde047;
}

body.modal-open {
  overflow: hidden;
}

.digital-pack-chat .chat-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page--digital-packs .panel {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
}

.digital-packs__hero {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
  background: radial-gradient(
      120% 220% at 10% -10%,
      rgba(76, 29, 149, 0.55),
      transparent
    ),
    rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(124, 92, 255, 0.35);
  color: #f8fafc;
}
.digital-packs__hero .helper-text,
.digital-packs__hero .subtitle {
  color: rgba(248, 250, 252, 0.75);
}

.digital-pack-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.chat-panel {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 16px;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(18px);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  color: #f8fafc;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 0.75rem;
  color: #f8fafc;
}

.chat-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-form textarea {
  background: rgba(15, 23, 42, 0.6);
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.4);
}
.chat-form textarea::placeholder {
  color: rgba(226, 232, 240, 0.5);
}

.chat-form__actions {
  display: flex;
  gap: 0.75rem;
}

.emoji-panel {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.emoji-option {
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  background: rgba(15, 23, 42, 0.4);
  color: #f8fafc;
  cursor: pointer;
}

#confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
}

.pack-reveal {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 18, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 200; /* Higher than nav bar (100) to ensure it covers everything */
}
.pack-reveal[hidden] {
  display: none;
}
.pack-reveal__backdrop {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.pack-reveal__dialog {
  position: relative;
  width: min(640px, 100%);
  height: 650px; /* Fixed height during reveal to prevent jumping */
  background: var(--bg-panel-gradient);
  border-radius: 24px;
  padding: 2rem;
  color: #f8fafc;
  box-shadow: 0 40px 120px rgba(6, 8, 20, 0.65);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  display: flex;
  flex-direction: column;
  transition: width 0.4s ease, height 0.4s ease;
}

/* Wider modal when showing buyback offer (value stage) */
.pack-reveal__dialog--expanded {
  width: min(900px, 95%);
  max-width: 900px;
  height: auto;
  min-height: 650px;
}
.pack-reveal__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}
.pack-reveal__status {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: rgba(248, 250, 252, 0.7);
  margin-bottom: 0.4rem;
}
.pack-reveal__close {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  color: rgba(248, 250, 252, 0.7);
  cursor: pointer;
}
.pack-reveal__skip {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}
.pack-reveal__skip:hover {
  opacity: 1;
}
.pack-reveal__body {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  flex: 1; /* Allow body to grow and fill available space */
  justify-content: flex-start; /* Fixed positioning to prevent shifting */
  padding-top: 1.5rem; /* Position content consistently */
}
.pack-reveal__cta {
  align-self: center;
  min-width: 220px;
}
.pack-reveal__card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  transition: transform 0.3s ease;
  text-align: center;
}
.pack-reveal__card.is-hidden {
  display: none;
}
.pack-reveal__image {
  width: min(320px, 70vw);
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(248, 250, 252, 0.2);
  background: rgba(15, 23, 42, 0.6);
  transition: opacity 0.4s ease;
}
.pack-reveal__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.pack-reveal__image img.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.pack-reveal__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* Fixed positioning to prevent shifting */
  padding-top: 1.5rem; /* Position content consistently */
  min-height: 450px; /* Consistent body height */
}

.pack-reveal__details {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f8fafc;
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(0);
}

.pack-reveal__details--large {
  font-size: 1.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pack-reveal__details--fade-out {
  opacity: 0;
  transform: translateY(-10px);
}

.pack-reveal__details--fade-in {
  animation: fadeIn 0.6s ease forwards;
}

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

/* Rarity-specific colors for reveal details */
.pack-reveal__card[data-rarity="common"][data-stage="value"] .pack-reveal__details {
  color: #cbd5e1;
}

.pack-reveal__card[data-rarity="uncommon"][data-stage="value"] .pack-reveal__details {
  color: #86efac;
}

.pack-reveal__card[data-rarity="rare"][data-stage="value"] .pack-reveal__details {
  color: #93c5fd;
}

.pack-reveal__card[data-rarity="epic"][data-stage="value"] .pack-reveal__details {
  color: #c4b5fd;
}

.pack-reveal__card[data-rarity="legendary"][data-stage="value"] .pack-reveal__details {
  color: #fde047;
}

.pack-reveal__value {
  font-size: 2.2rem;
  font-weight: 700;
  color: #fbbf24;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.pack-reveal__value.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Removed rarity-based colors from pack reveal details to avoid spoiling the reveal */
.pack-reveal__actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}
.pack-reveal__actions[hidden] {
  display: none;
}

/* Pack Reveal Fairness Section */
.pack-reveal__fairness {
  margin-top: 1.5rem;
}
.pack-reveal__fairness[hidden] {
  display: none;
}
.pack-reveal__fairness-details {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
}
.pack-reveal__fairness-summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #f8fafc;
  background: rgba(34, 197, 94, 0.1);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  transition: background 0.2s ease;
}
.pack-reveal__fairness-summary:hover {
  background: rgba(34, 197, 94, 0.15);
}
.pack-reveal__fairness-icon {
  font-size: 1.1rem;
  color: #22c55e;
}
.pack-reveal__fairness-content {
  padding: 1.25rem;
}
.pack-reveal__fairness-description {
  font-size: 0.9rem;
  color: rgba(248, 250, 252, 0.8);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.pack-reveal__fairness-hashes {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.fairness-hash-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 8px;
}
.fairness-hash-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.fairness-hash-value {
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  color: #fbbf24;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fairness-copy-button {
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 6px;
  color: #f8fafc;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.fairness-copy-button:hover {
  background: rgba(148, 163, 184, 0.25);
  border-color: rgba(148, 163, 184, 0.4);
}
.pack-reveal__fairness-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.pack-reveal__fairness-actions .ghost-button {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

/* Pack Reveal Card Layouts */
.pack-reveal__card-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* Fixed positioning to match body */
  gap: 1.5rem;
  min-height: 450px;
  /* No transition on container - only text should fade */
}

.pack-reveal__card-final {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  align-items: start;
}

.pack-reveal__card-final[hidden] {
  display: none;
}

.pack-reveal__card-left {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.pack-reveal__image-final {
  width: 100%;
  max-width: 350px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.5), rgba(30, 41, 59, 0.5));
}

.pack-reveal__image-final img {
  width: 100%;
  height: auto;
  display: block;
}

.pack-reveal__image-final .card-flip {
  width: 100%;
  aspect-ratio: 3 / 4;
}

.card-flip {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1000px;
  cursor: pointer;
}

.card-flip__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}

.card-flip--flipped .card-flip__inner {
  transform: rotateY(180deg);
}

.card-flip__front,
.card-flip__back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: inherit;
  overflow: hidden;
}

.card-flip__back {
  transform: rotateY(180deg);
}

.card-flip__front img,
.card-flip__back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-flip__hint {
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  background: rgba(15, 23, 42, 0.8);
  color: #f8fafc;
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  pointer-events: none;
}

.pack-reveal__card-right {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pack-reveal__card-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0;
}

.pack-reveal__card-header h3 {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.2;
}

.pack-reveal__card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.pack-reveal__card-series {
  font-size: 0.9rem;
  color: rgba(248, 250, 252, 0.7);
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.pack-reveal__rarity-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 2px solid;
}

.pack-reveal__rarity-badge--common {
  background: rgba(148, 163, 184, 0.15);
  border-color: #94a3b8;
  color: #cbd5e1;
}

.pack-reveal__rarity-badge--uncommon {
  background: rgba(34, 197, 94, 0.15);
  border-color: #22c55e;
  color: #4ade80;
}

.pack-reveal__rarity-badge--rare {
  background: rgba(59, 130, 246, 0.15);
  border-color: #3b82f6;
  color: #60a5fa;
}

.pack-reveal__rarity-badge--epic {
  background: rgba(168, 85, 247, 0.15);
  border-color: #a855f7;
  color: #c084fc;
}

.pack-reveal__rarity-badge--legendary {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.2));
  border-color: #fbbf24;
  color: #fcd34d;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

.pack-reveal__rarity-badge--mythic {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(168, 85, 247, 0.2));
  border-color: #ec4899;
  color: #f9a8d4;
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
}

.pack-reveal__card-stats {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 1rem;
}

.pack-reveal__stat-row,
.pack-reveal__stat-row--highlight {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.pack-reveal__stat-row {
  background: rgba(15, 23, 42, 0.3);
}

.pack-reveal__stat-row--highlight {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(16, 185, 129, 0.15));
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.pack-reveal__stat-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(248, 250, 252, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pack-reveal__stat-row--highlight .pack-reveal__stat-label {
  color: #4ade80;
  font-weight: 600;
}

.pack-reveal__stat-row span:last-child,
.pack-reveal__stat-row--highlight span:last-child {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f8fafc;
}

.pack-reveal__stat-row--highlight span:last-child {
  color: #4ade80;
  font-size: 1.25rem;
}

.pack-reveal__fairness-compact {
  background: rgba(15, 23, 42, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 1rem;
}

.pack-reveal__fairness-compact-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.8);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pack-reveal__fairness-compact-icon {
  color: #22c55e;
  font-size: 1rem;
}

.pack-reveal__fairness-compact-hashes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fairness-compact-hash {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  padding: 0.5rem;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 6px;
}

.fairness-compact-hash-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.6);
  min-width: 110px;
}

.fairness-compact-hash-value {
  font-family: 'Courier New', monospace;
  color: #fbbf24;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.fairness-compact-copy-btn {
  padding: 0.35rem;
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 4px;
  color: rgba(248, 250, 252, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fairness-compact-copy-btn:hover {
  background: rgba(148, 163, 184, 0.25);
  border-color: rgba(148, 163, 184, 0.4);
  color: #f8fafc;
}

.fairness-compact-copy-btn svg {
  width: 14px;
  height: 14px;
}

.pack-reveal__verify-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pack-reveal__verify-link:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #93c5fd;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .pack-reveal__card-final {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .pack-reveal__image-final {
    max-width: 280px;
  }

  .pack-reveal__card-header h3 {
    font-size: 1.5rem;
  }
}

/* Pack Reveal Timer Warning - Compact */
.pack-reveal-timer-warning {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 152, 0, 0.1);
  border: 1px solid rgba(255, 152, 0, 0.3);
  border-radius: var(--radius-md);
  margin: 1rem 0 0 0;
}

.pack-reveal-timer-warning[hidden] {
  display: none;
}

.pack-reveal-timer-warning__icon {
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

.pack-reveal-timer-warning__content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pack-reveal-timer-warning__title {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pack-reveal-timer {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-gold);
  font-family: 'Courier New', monospace;
  margin: 0;
}

.pack-reveal-timer--warning {
  color: #ff9800;
  animation: timerPulse 1s ease-in-out infinite;
}

@keyframes timerPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.pack-reveal-timer-warning__text {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.3;
  flex: 1 1 100%;
}

@media (max-width: 900px) {
  .digital-pack-chat .chat-layout {
    gap: 0.75rem;
  }
}

/* ===== EV PREVIEW & LIVE CALCULATOR STYLES ===== */

/* EV Preview Section - Step 1 */
.digital-pack-ev-preview {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.digital-pack-ev-preview h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.95);
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.digital-pack-ev-preview__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.ev-preview-stat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ev-preview-stat__label {
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ev-preview-stat__value {
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.95);
}

.ev-preview-stat__value--delta {
  color: rgba(148, 163, 184, 0.9);
}

.ev-preview-stat__value--positive {
  color: #10b981;
}

.ev-preview-stat__value--negative {
  color: #ef4444;
}

.ev-preview-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-indicator--pending {
  background: #94a3b8;
}

.status-indicator--success {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.status-indicator--error {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.status-indicator--warning {
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.ev-preview-warning {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #fca5a5;
}

.warning-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Live EV Calculator - Step 3 */
.digital-pack-live-ev {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.live-ev-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.live-ev-header h4 {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.95);
  margin: 0;
}

.live-ev-comparison {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.live-ev-stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.live-ev-stat--primary {
  border-left: 3px solid #8b5cf6;
  padding-left: 0.75rem;
}

.live-ev-label {
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.live-ev-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.95);
}

.live-ev-value--large {
  font-size: 1.75rem;
  color: #8b5cf6;
}

.live-ev-value--delta {
  color: rgba(148, 163, 184, 0.9);
}

.live-ev-value--positive {
  color: #10b981;
}

.live-ev-value--negative {
  color: #ef4444;
}

.live-ev-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

/* Live EV Breakdown Table */
.live-ev-breakdown {
  margin-top: 1rem;
}

.live-ev-breakdown h5 {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.95);
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.live-ev-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.live-ev-table thead {
  background: rgba(15, 23, 42, 0.8);
}

.live-ev-table th {
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.95);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.live-ev-table td {
  padding: 0.5rem 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  color: rgba(226, 232, 240, 0.9);
}

.live-ev-table tfoot td {
  padding-top: 0.75rem;
  border-top: 2px solid rgba(148, 163, 184, 0.2);
  font-weight: 600;
}

/* Rarity Badges */
.rarity-badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid rgba(0, 0, 0, 0.8);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.rarity-badge--common {
  background: rgba(148, 163, 184, 0.9);
  color: #0f172a;
}

.rarity-badge--uncommon {
  background: rgba(34, 197, 94, 0.9);
  color: #0f172a;
}

.rarity-badge--rare {
  background: rgba(59, 130, 246, 0.9);
  color: #ffffff;
}

.rarity-badge--epic {
  background: rgba(168, 85, 247, 0.9);
  color: #ffffff;
}

.rarity-badge--legendary {
  background: rgba(234, 179, 8, 0.9);
  color: #0f172a;
}

/* EV Suggestions */
.ev-suggestions {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 6px;
  padding: 1rem;
  margin-top: 1.5rem;
}

.ev-suggestions h5 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fbbf24;
  margin: 0 0 0.75rem;
}

.ev-suggestions ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ev-suggestions li {
  padding: 0.5rem 0;
  color: #fcd34d;
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.ev-suggestions li::before {
  content: "→";
  color: #fbbf24;
  font-weight: bold;
  flex-shrink: 0;
}

/* Enhanced Inventory Modal Stats */
.digital-pack-inventory-stats__item--highlight {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 6px;
  padding: 0.5rem;
}

.delta-value {
  color: rgba(148, 163, 184, 0.9);
}

.delta-value--positive {
  color: #10b981;
}

.delta-value--negative {
  color: #ef4444;
}

.delta-value--neutral {
  color: #94a3b8;
}

/* EV Indicator Bar */
.inventory-ev-indicator {
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 6px;
}

.ev-indicator-bar {
  position: relative;
  height: 24px;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.ev-indicator-fill {
  height: 100%;
  background: #94a3b8;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.ev-indicator-fill--success {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.ev-indicator-fill--warning {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.ev-indicator-target {
  position: absolute;
  top: 0;
  left: 100%;
  height: 100%;
  width: 2px;
  background: #8b5cf6;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.6);
}

.ev-indicator-label {
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.9);
  text-align: center;
}

.ev-indicator-label--success {
  color: #10b981;
}

.ev-indicator-label--warning {
  color: #f59e0b;
}

/* Enhanced inventory item with rarity badge */
.drop-inventory-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.drop-inventory-item .rarity-badge {
  justify-self: start;
}

/* Inventory Card Thumbnails */
.inventory-card-thumbnail {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  padding: 0;
}

.inventory-card-thumbnail:hover:not(:disabled) {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.inventory-card-thumbnail--selected {
  border-color: rgba(84, 207, 255, 0.6);
  background: rgba(84, 207, 255, 0.1);
}

.inventory-card-thumbnail--locked {
  opacity: 0.5;
  cursor: not-allowed;
}

.inventory-card-thumbnail__image {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.inventory-card-thumbnail__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inventory-card-thumbnail__no-image {
  font-size: 2.5rem;
  opacity: 0.3;
}

.inventory-card-thumbnail__rarity {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 0.65rem;
  padding: 0.25rem 0.5rem;
  z-index: 1;
}

.inventory-card-thumbnail__lock {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 1.25rem;
  z-index: 1;
}

.inventory-card-thumbnail__content {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.inventory-card-thumbnail__title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-strong);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.inventory-card-thumbnail__value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-gold);
  font-family: 'Courier New', monospace;
}

.inventory-card-thumbnail__set {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .live-ev-comparison {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .digital-pack-ev-preview__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .live-ev-table {
    font-size: 0.75rem;
  }

  .live-ev-table th,
  .live-ev-table td {
    padding: 0.5rem;
  }
}

/* Danger Button for Delete Actions */
.danger-button {
  color: #ef4444 !important;
  border-color: #ef4444 !important;
}

.danger-button:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.1) !important;
  border-color: #dc2626 !important;
  color: #dc2626 !important;
}

.danger-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Activity Page */
.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.activity-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.activity-item:hover {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(148, 163, 184, 0.3);
  transform: translateX(4px);
}

.activity-item__image {
  width: 100px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.6);
}

.activity-item__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(148, 163, 184, 0.4);
  font-weight: bold;
}

.activity-item__info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.activity-item__card-name {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #f8fafc;
}

.activity-item__meta {
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.85);
  line-height: 1.6;
}

.activity-item__user {
  font-weight: 600;
  color: #60a5fa;
}

.activity-item__rarity {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.activity-item__pack {
  font-weight: 500;
  color: #f8fafc;
}

.activity-item__time {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.7);
}

.activity-item__value {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  min-width: 100px;
}

.activity-item__value strong {
  font-size: 1.75rem;
  font-weight: 700;
  color: #10b981;
  white-space: nowrap;
}

/* Rarity border variants for activity items */
.activity-item--common {
  border-left: 3px solid rgba(203, 213, 225, 0.5);
}

.activity-item--uncommon {
  border-left: 3px solid rgba(134, 239, 172, 0.5);
}

.activity-item--rare {
  border-left: 3px solid rgba(147, 197, 253, 0.5);
}

.activity-item--epic {
  border-left: 3px solid rgba(196, 181, 253, 0.5);
}

.activity-item--legendary {
  border-left: 3px solid rgba(253, 224, 71, 0.5);
  box-shadow: 0 0 20px rgba(253, 224, 71, 0.1);
}

.activity-feed__load-more {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  padding: 2rem 0;
}

.activity-feed__load-more button {
  min-width: 200px;
}

/* ================================
   Verify Page Styles
   ================================ */

.verify-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 1rem 0;
}

.verify-section {
  padding: 2rem;
  background: rgba(30, 41, 59, 0.3);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.verify-section h2 {
  margin: 0 0 1.5rem 0;
  font-size: 1.75rem;
  color: #f8fafc;
}

.verify-section p {
  line-height: 1.8;
  color: rgba(226, 232, 240, 0.9);
  margin-bottom: 1rem;
}

.verify-section ul {
  margin: 1rem 0;
  padding-left: 2rem;
  line-height: 1.8;
  color: rgba(226, 232, 240, 0.9);
}

.verify-section li {
  margin-bottom: 0.5rem;
}

.verify-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.verify-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 8px;
  border-left: 3px solid #3b82f6;
}

.verify-step__number {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-radius: 50%;
  font-size: 1.75rem;
  font-weight: bold;
  color: white;
  flex-shrink: 0;
}

.verify-step__content h3 {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  color: #f8fafc;
}

.verify-step__content p,
.verify-step__content ul {
  color: rgba(226, 232, 240, 0.9);
}

.verify-guarantees {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.verify-guarantee {
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.verify-guarantee h3 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  color: #f8fafc;
}

.verify-guarantee p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.85);
  line-height: 1.6;
}

.verify-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
  margin: 2rem 0;
}

.verify-form .field {
  flex: 1;
}

.verify-form button {
  align-self: flex-start;
}

.verify-status {
  min-height: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: -1rem 0 0;
}

.verify-status.is-error {
  color: #f87171;
}

.verify-status.is-success {
  color: #34d399;
}

.verify-result {
  margin-top: 2rem;
}

.weights-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.weights-meta strong {
  color: var(--text-default);
  font-weight: 600;
}

.weights-table-wrapper {
  margin-top: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  overflow-x: auto;
}

.verify-weights-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 600px;
}

.verify-weights-table th,
.verify-weights-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.verify-weights-table th {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  color: var(--text-soft);
  background: rgba(15, 23, 42, 0.5);
}

.verify-weights-table tbody tr:last-child td {
  border-bottom: none;
}

.verify-success,
.verify-error {
  padding: 2rem;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.verify-success {
  border-left: 3px solid #10b981;
}

.verify-error {
  border-left: 3px solid #ef4444;
}

.verify-success h3 {
  margin: 0 0 1.5rem 0;
  color: #10b981;
  font-size: 1.5rem;
}

.verify-error h3 {
  margin: 0 0 1rem 0;
  color: #ef4444;
  font-size: 1.25rem;
}

.verify-detail-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(30, 41, 59, 0.4);
  border-radius: 8px;
}

.verify-detail-section h4 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  color: #f8fafc;
}

.verify-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.verify-detail-grid div {
  padding: 0.75rem;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 6px;
  font-size: 0.9rem;
}

.verify-detail-grid strong {
  color: #94a3b8;
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.verify-detail-item {
  margin: 1.5rem 0;
}

.verify-detail-item strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #94a3b8;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.verify-code-block {
  display: block;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: #10b981;
  word-break: break-all;
  line-height: 1.6;
}

.verify-detail-section--success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.verify-detail-section--success p {
  color: #f8fafc;
  margin: 0.5rem 0;
}

.verify-section--faq {
  background: rgba(15, 23, 42, 0.4);
}

.verify-faq {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: rgba(30, 41, 59, 0.4);
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.verify-faq:hover {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(148, 163, 184, 0.3);
}

.verify-faq summary {
  font-weight: 600;
  font-size: 1.05rem;
  color: #f8fafc;
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.verify-faq summary::-webkit-details-marker {
  display: none;
}

.verify-faq summary::before {
  content: '▶';
  display: inline-block;
  margin-right: 0.75rem;
  transition: transform 0.2s ease;
  color: #3b82f6;
}

.verify-faq[open] summary::before {
  transform: rotate(90deg);
}

.verify-faq p {
  margin: 1rem 0 0 0;
  padding-left: 2rem;
  color: rgba(226, 232, 240, 0.85);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .verify-step {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .verify-step__number {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .verify-guarantees {
    grid-template-columns: 1fr;
  }

  .verify-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   Fairness Proof Modal Styles
   ============================================================================ */

.pack-modal__dialog--fairness {
  max-width: 700px;
}

.fairness-proof {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.fairness-proof__item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fairness-proof__value {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
}

.fairness-card-name {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text-primary);
}

.fairness-card-rarity {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fairness-card-rarity.rarity-common {
  background: rgba(156, 163, 175, 0.2);
  color: rgb(156, 163, 175);
}

.fairness-card-rarity.rarity-uncommon {
  background: rgba(34, 197, 94, 0.2);
  color: rgb(34, 197, 94);
}

.fairness-card-rarity.rarity-rare {
  background: rgba(59, 130, 246, 0.2);
  color: rgb(59, 130, 246);
}

.fairness-card-rarity.rarity-epic {
  background: rgba(168, 85, 247, 0.2);
  color: rgb(168, 85, 247);
}

.fairness-card-rarity.rarity-legendary {
  background: rgba(251, 191, 36, 0.2);
  color: rgb(251, 191, 36);
}

.fairness-proof__verify {
  margin-top: 0.5rem;
  padding: 1.5rem;
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  text-align: center;
}

.fairness-proof__instructions {
  margin: 0 0 1rem 0;
  line-height: 1.6;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.fairness-proof__instructions strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Hash container for fairness proof */
.fairness-proof .hash-container {
  flex: 1;
}

.fairness-proof .hash-value {
  font-size: 0.875rem;
  word-break: break-all;
  line-height: 1.5;
  max-height: 100px;
  overflow-y: auto;
}

/* Responsive fairness modal */
@media (max-width: 768px) {
  .pack-modal__dialog--fairness {
    max-width: 95vw;
    margin: 1rem;
  }

  .fairness-card-name {
    font-size: 1rem;
  }

  .fairness-proof .hash-value {
    font-size: 0.75rem;
  }

  .fairness-proof__instructions {
    font-size: 0.875rem;
  }
}

/* ============================================================================
   Pre-Payment Modal - Circular Timer
   ============================================================================ */

.pack-modal__dialog--square {
  max-width: 500px;
  aspect-ratio: 1;
}

#pre-payment-modal .pack-modal__dialog--square {
  width: min(96vw, 700px);
  min-height: 520px;
  max-height: 660px;
  aspect-ratio: auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.pack-modal__section--centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  width: 100%;
}

#pre-payment-modal .pack-modal__section--centered {
  padding: 0.5rem 0 0;
  flex: 1;
}

#pre-payment-modal .pack-modal__section--centered::before,
#pre-payment-modal .pack-modal__section--centered::after {
  display: none;
}

#pre-payment-modal .pack-modal__section--centered::-webkit-scrollbar {
  display: none;
}

.pre-payment-header {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
}

.pre-payment-header .pack-modal__close {
  margin-left: auto;
}

.pre-payment-heading {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: 100%;
  text-align: center;
}

.pre-payment-title {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.pre-payment-meta {
  font-size: 0.9rem;
  line-height: 1.35;
  text-transform: none;
  color: var(--text-muted);
  margin: 0;
  white-space: nowrap;
}

.circular-timer {
  position: relative;
  width: 250px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circular-timer__svg {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.circular-timer__background {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 8;
}

.circular-timer__progress {
  fill: none;
  stroke: #3b82f6;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 565.48;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.1s linear;
}

.circular-timer__content {
  position: relative;
  text-align: center;
  z-index: 1;
}

.circular-timer__time {
  font-size: 4rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.circular-timer__label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
}

.pre-payment-hashes {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 12, 26, 0.6);
  padding: 0.65rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
}

.pre-payment-hash-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
}

.pre-payment-hash-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  white-space: nowrap;
}

.pre-payment-hash-value {
  flex: 1;
  font-size: clamp(0.52rem, 0.85vw, 0.65rem);
  font-family: var(--font-mono, 'Space Mono', monospace);
  color: var(--text-primary);
  word-break: break-all;
  overflow-wrap: break-word;
  text-align: right;
  line-height: 1.4;
}

/* Hide the Click to Open button (auto-reveal now) */
#pack-reveal-start {
  display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  .pack-modal__dialog--square {
    max-width: 95vw;
    aspect-ratio: auto;
  }

  .circular-timer {
    width: 200px;
    height: 200px;
  }

  .circular-timer__time {
    font-size: 3rem;
  }

  .pre-payment-hash-value {
    font-size: 0.5625rem;
  }
}

/* ============================================================================
   Compact Fairness Modal
   ============================================================================ */

#fairness-proof-modal .pack-modal__dialog--compact {
  width: min(95vw, 780px);
  max-width: min(95vw, 780px);
  max-height: calc(100vh - 2rem);
  padding: 1.85rem 2.2rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#fairness-proof-modal .pack-modal__section {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  max-height: none;
  overflow: visible;
}

.fairness-proof-compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  padding: 0.75rem 0;
}

.fairness-proof-compact__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  width: 100%;
}

.fairness-compact-card-name {
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.fairness-compact-card-rarity {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fairness-compact-card-rarity.rarity-common {
  background: rgba(156, 163, 175, 0.2);
  color: rgb(156, 163, 175);
}

.fairness-compact-card-rarity.rarity-uncommon {
  background: rgba(34, 197, 94, 0.2);
  color: rgb(34, 197, 94);
}

.fairness-compact-card-rarity.rarity-rare {
  background: rgba(59, 130, 246, 0.2);
  color: rgb(59, 130, 246);
}

.fairness-compact-card-rarity.rarity-epic {
  background: rgba(168, 85, 247, 0.2);
  color: rgb(168, 85, 247);
}

.fairness-compact-card-rarity.rarity-legendary {
  background: rgba(251, 191, 36, 0.2);
  color: rgb(251, 191, 36);
}

.fairness-proof-compact__message {
  margin: 0;
  line-height: 1.4;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.fairness-proof-compact__hashes {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
}

.fairness-hash-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.25);
  text-align: left;
}

.fairness-hash-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
}

.fairness-hash-value {
  font-family: var(--font-mono, 'Space Mono', monospace);
  font-size: 0.75rem;
  color: var(--text-default);
  word-break: break-all;
  text-align: left;
  width: 100%;
}

.fairness-copy-button {
  font-size: 0.72rem;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.fairness-copy-button:hover {
  border-color: rgba(148, 163, 184, 0.8);
  color: #93c5fd;
}

.fairness-copy-button:disabled {
  opacity: 0.6;
  cursor: default;
}

.fairness-hash-row .fairness-copy-button {
  align-self: flex-end;
}

.fairness-proof-compact__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.fairness-proof-compact__actions .ghost-button,
.fairness-proof-compact__actions .primary-button {
  flex: 1;
  min-width: 150px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

@media (max-width: 768px) {
  .pack-modal__dialog--compact {
    max-width: 95vw;
  }

  .fairness-proof-compact__actions .ghost-button,
  .fairness-proof-compact__actions .primary-button {
    min-width: 100px;
  }
}

/* Transaction Complete Modal */
.tx-complete-content {
  text-align: center;
}

.tx-complete-success-icon {
  margin: 0 auto 1.5rem;
  display: flex;
  justify-content: center;
  animation: scaleIn 0.4s ease-out;
}

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

.tx-complete-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.tx-complete-amount {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 12px;
}

.tx-complete-amount-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tx-complete-amount-value {
  font-size: 2rem;
  font-weight: 700;
  color: #22c55e;
}

.tx-complete-signature {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.tx-complete-signature-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tx-complete-signature-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.75rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
}

.tx-complete-signature-value {
  flex: 1;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: #fbbf24;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tx-complete-actions {
  margin-top: 1rem;
}

/* Admin Authentication Gate */
.admin-auth-gate {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.admin-auth-gate__content {
  max-width: 500px;
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 3rem 2rem;
}

.admin-auth-gate__icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.admin-auth-gate__title {
  font-size: 1.75rem;
  color: var(--text-strong);
  margin-bottom: 1rem;
}

.admin-auth-gate__description {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.admin-auth-gate__status {
  padding: 1rem;
  border-radius: 4px;
  font-size: 0.95rem;
  margin-top: 1rem;
}

.admin-auth-gate__status.loading {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
}

.admin-auth-gate__status.error {
  background: rgba(244, 67, 54, 0.1);
  color: #f44336;
}

.admin-auth-gate__status.success {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
}

.admin-auth-gate__wallet {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  word-break: break-all;
  margin-bottom: 1.5rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

/* Toast Notification System */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  min-width: 280px;
  max-width: 400px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  pointer-events: all;
  animation: toastSlideIn 0.3s ease-out;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toast--success {
  border-left: 4px solid #4caf50;
}

.toast--error {
  border-left: 4px solid #f44336;
}

.toast--info {
  border-left: 4px solid var(--accent-gold);
}

.toast__icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.toast__message {
  flex: 1;
  font-size: 0.95rem;
  color: var(--text-strong);
  line-height: 1.4;
}

.toast--dismissing {
  animation: toastSlideOut 0.3s ease-in forwards;
}

@keyframes toastSlideIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastSlideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .toast-container {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
  }

  .toast {
    min-width: auto;
    max-width: 100%;
  }
}

/* Hide old status elements since we're using toasts now */
#digital-pack-status,
[data-status="wallet"] {
  display: none !important;
}

/* Admin Overview Sections */
.admin-overview-section {
  margin-bottom: 2.5rem;
}

.admin-overview-section__title {
  font-size: 1.1rem;
  color: var(--text-strong);
  margin-bottom: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.admin-overview-grid--3col {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.admin-overview-card--highlight {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
  border-left: 3px solid var(--accent-gold);
}

.admin-overview-card--success {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(76, 175, 80, 0.05) 100%);
  border-left: 3px solid #4caf50;
}

.admin-overview-card--warning {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.1) 0%, rgba(255, 152, 0, 0.05) 100%);
  border-left: 3px solid #ff9800;
}

.admin-overview-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .admin-overview-grid {
    grid-template-columns: 1fr;
  }

  .admin-overview-grid--3col {
    grid-template-columns: 1fr;
  }
}

/* Payout Mode Toggle Section */
.admin-payout-mode-section {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.08) 0%, rgba(255, 193, 7, 0.03) 100%);
  border-radius: 8px;
  border: 1px solid rgba(255, 193, 7, 0.3);
  transition: background 0.3s, border-color 0.3s;
}

.admin-payout-mode-section--manual {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.12) 0%, rgba(255, 193, 7, 0.05) 100%);
  border-color: rgba(255, 193, 7, 0.4);
}

.admin-payout-mode-section--automatic {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.12) 0%, rgba(76, 175, 80, 0.05) 100%);
  border-color: rgba(76, 175, 80, 0.4);
}

.admin-payout-mode-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.admin-payout-mode-info {
  flex: 1;
}

.admin-payout-mode-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-strong);
  margin: 0 0 0.5rem 0;
}

.admin-payout-mode-description {
  font-size: 0.9rem;
  color: var(--text-medium);
  margin: 0;
}

.admin-payout-mode-controls {
  display: flex;
  align-items: center;
}

.admin-payout-mode-toggle {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Toggle Switch Component */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 28px;
}

.toggle-switch--labeled {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: auto;
  height: auto;
}

.toggle-switch input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch__slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 193, 7, 0.8);
  transition: 0.3s;
  border-radius: 28px;
}

.toggle-switch__slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-switch__slider {
  background-color: #4caf50;
}

.toggle-switch input:checked + .toggle-switch__slider::before {
  transform: translateX(28px);
}

.toggle-switch input:focus + .toggle-switch__slider {
  box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.3);
}

.toggle-switch input:checked:focus + .toggle-switch__slider {
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.3);
}

.toggle-switch input:disabled + .toggle-switch__slider {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Toggle Switch Options/Labels */
.toggle-switch__option {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-medium);
  transition: color 0.3s;
  user-select: none;
}

.toggle-switch--labeled .toggle-switch__slider {
  position: relative;
  width: 56px;
  height: 28px;
  display: inline-block;
}

.toggle-switch--labeled .toggle-switch__option--left {
  color: rgba(255, 193, 7, 0.9);
  font-weight: 700;
}

.toggle-switch--labeled input:checked ~ .toggle-switch__option--left {
  color: var(--text-medium);
  font-weight: 600;
}

.toggle-switch--labeled .toggle-switch__option--right {
  color: var(--text-medium);
  font-weight: 600;
}

.toggle-switch--labeled input:checked ~ .toggle-switch__option--right {
  color: #4caf50;
  font-weight: 700;
}

/* Payout Mode Verification Modal */
.payout-mode-modal-warning {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 152, 0, 0.1);
  border-left: 4px solid #ff9800;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.payout-mode-modal-warning__icon {
  font-size: 2rem;
  line-height: 1;
}

.payout-mode-modal-warning__content {
  flex: 1;
}

.payout-mode-modal-warning__message {
  margin: 0 0 1rem 0;
  color: var(--text-strong);
  font-size: 0.95rem;
  line-height: 1.6;
}

.payout-mode-modal-warning__message strong {
  color: #ff9800;
  font-weight: 600;
}

.payout-mode-modal-warning__note {
  margin: 0;
  color: var(--text-medium);
  font-size: 0.875rem;
  font-style: italic;
}

.payout-mode-modal-confirmation {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
}

.payout-mode-modal-confirmation__label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-strong);
  user-select: none;
}

.payout-mode-modal-confirmation__checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent-gold);
}

/* Compact Payout Mode Toggle */
.admin-payout-mode-section--compact {
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
}

.admin-payout-mode-card--compact {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-payout-mode-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-strong);
  white-space: nowrap;
}

.admin-payout-mode-status {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-payout-mode-status--on {
  color: #4caf50;
  background: rgba(76, 175, 80, 0.15);
}

.admin-payout-mode-status--off {
  color: #ff9800;
  background: rgba(255, 152, 0, 0.15);
}

/* Beta Access Section */
.admin-beta-section {
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.08) 0%, rgba(33, 150, 243, 0.03) 100%);
  border-radius: 8px;
  border: 1px solid rgba(33, 150, 243, 0.25);
  transition: background 0.3s, border-color 0.3s;
}

.admin-beta-section--active {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.15) 0%, rgba(33, 150, 243, 0.06) 100%);
  border-color: rgba(33, 150, 243, 0.45);
}

.admin-beta-header {
  margin-bottom: 0.75rem;
}

.admin-beta-toggle-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-beta-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-strong, #f8fafc);
  white-space: nowrap;
}

.admin-beta-description {
  font-size: 0.8rem;
  color: var(--text-medium, #94a3b8);
  margin: 0.5rem 0 0 0;
  opacity: 0.8;
}

.admin-beta-whitelist {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-beta-whitelist__title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-strong, #f8fafc);
  margin: 0 0 0.75rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.admin-beta-whitelist__count {
  font-weight: 400;
  opacity: 0.6;
}

.admin-beta-whitelist__add {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.admin-beta-whitelist__input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: var(--text-strong, #f8fafc);
  font-size: 0.85rem;
  font-family: monospace;
}

.admin-beta-whitelist__input::placeholder {
  color: var(--text-medium, #94a3b8);
  opacity: 0.5;
}

.admin-beta-whitelist__input:focus {
  outline: none;
  border-color: rgba(33, 150, 243, 0.5);
  box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.15);
}

.admin-beta-whitelist__error {
  font-size: 0.8rem;
  color: #f44336;
  margin-bottom: 0.5rem;
}

.admin-beta-whitelist__list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 300px;
  overflow-y: auto;
}

.admin-beta-whitelist__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.6rem;
  margin-bottom: 0.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-beta-whitelist__item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.admin-beta-whitelist__info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  overflow: hidden;
  min-width: 0;
  flex: 1;
}

.admin-beta-whitelist__address {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--text-strong, #f8fafc);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-beta-whitelist__meta {
  font-size: 0.7rem;
  color: var(--text-muted, #94a3b8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-beta-whitelist__remove {
  background: none;
  border: none;
  color: #f44336;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.admin-beta-whitelist__remove:hover {
  opacity: 1;
  background: rgba(244, 67, 54, 0.15);
}

.admin-beta-whitelist__empty {
  font-size: 0.8rem;
  color: var(--text-medium, #94a3b8);
  opacity: 0.5;
  text-align: center;
  padding: 1rem 0;
  margin: 0;
}

.primary-button--compact {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .admin-beta-whitelist__add {
    flex-direction: column;
  }

  .admin-beta-whitelist__address {
    font-size: 0.7rem;
  }

  .admin-beta-whitelist__meta {
    font-size: 0.65rem;
  }
}

/* Beta Access Modal */
.beta-access-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.beta-access-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 18, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.beta-access-modal__content {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  border-radius: var(--radius-panel, 12px);
  border: 1px solid rgba(33, 150, 243, 0.3);
  background: var(--bg-panel-gradient, linear-gradient(145deg, #1a1e2e 0%, #141824 100%));
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 60px rgba(33, 150, 243, 0.08);
  padding: 2rem;
  text-align: center;
}

.beta-access-modal__icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.beta-access-modal__title {
  margin: 0 0 1rem 0;
  font-size: 1.4rem;
  color: var(--text-strong, #f8fafc);
  font-weight: 700;
}

.beta-access-modal__message {
  font-size: 0.95rem;
  color: var(--text-default, #cbd5e1);
  line-height: 1.5;
  margin: 0 0 0.5rem 0;
}

.beta-access-modal__message strong {
  color: rgba(33, 150, 243, 0.9);
}

.beta-access-modal__submessage {
  font-size: 0.82rem;
  color: var(--text-medium, #94a3b8);
  margin: 0 0 1.5rem 0;
  opacity: 0.8;
}

.beta-access-modal__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.beta-access-modal__btn {
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.1s;
}

.beta-access-modal__btn:active {
  transform: scale(0.97);
}

.beta-access-modal__btn--proceed {
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
  color: #fff;
}

.beta-access-modal__btn--proceed:hover {
  background: linear-gradient(135deg, #42a5f5 0%, #2196f3 100%);
}

.beta-access-modal__btn--cancel {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-medium, #94a3b8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.beta-access-modal__btn--cancel:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-default, #cbd5e1);
}

/* Payments Tab */
.admin-payments-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-payments-count {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-medium);
  white-space: nowrap;
}

/* Payment Filters */
.admin-payments-filters {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-payments-filter-btn {
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: transparent;
  color: var(--text-medium);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-payments-filter-btn:hover {
  border-color: rgba(255, 193, 7, 0.3);
  color: var(--text-strong);
}

.admin-payments-filter-btn--active {
  background: rgba(255, 193, 7, 0.15);
  border-color: rgba(255, 193, 7, 0.4);
  color: var(--accent-gold);
  font-weight: 600;
}

/* Payment List */
.admin-payments-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.admin-payment-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.15s;
}

.admin-payment-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.admin-payment-item:last-child {
  border-bottom: none;
}

.admin-payment-item__info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}

.admin-payment-item__card {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-strong);
}

.admin-payment-item__details {
  font-size: 0.8rem;
  color: var(--text-medium);
}

.admin-payment-item__sig {
  font-size: 0.75rem;
  color: rgba(76, 175, 80, 0.8);
  text-decoration: none;
  font-family: monospace;
  transition: color 0.2s;
}

.admin-payment-item__sig:hover {
  color: #4caf50;
  text-decoration: underline;
}

.admin-payment-item__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.admin-payment-item__amount {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-gold);
  white-space: nowrap;
  min-width: 60px;
  text-align: right;
}

.admin-payment-item__status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
  min-width: 65px;
  text-align: center;
}

.admin-payment-status--pending {
  color: #ff9800;
  background: rgba(255, 152, 0, 0.15);
}

.admin-payment-status--completed {
  color: #4caf50;
  background: rgba(76, 175, 80, 0.15);
}

.admin-payment-status--failed {
  color: #f44336;
  background: rgba(244, 67, 54, 0.15);
}

.admin-payment-status--cancelled {
  color: var(--text-medium);
  background: rgba(255, 255, 255, 0.06);
}

/* Action Buttons */
.admin-payment-item__actions {
  display: flex;
  gap: 0.4rem;
}

.admin-payment-action-btn {
  padding: 0.3rem 0.65rem;
  border: 1px solid;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.admin-payment-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.admin-payment-action-btn--process {
  color: #4caf50;
  border-color: rgba(76, 175, 80, 0.4);
  background: rgba(76, 175, 80, 0.1);
}

.admin-payment-action-btn--process:hover:not(:disabled) {
  background: rgba(76, 175, 80, 0.25);
}

.admin-payment-action-btn--cancel {
  color: #f44336;
  border-color: rgba(244, 67, 54, 0.4);
  background: rgba(244, 67, 54, 0.1);
}

.admin-payment-action-btn--cancel:hover:not(:disabled) {
  background: rgba(244, 67, 54, 0.25);
}

@media (max-width: 768px) {
  .admin-payout-mode-card--compact {
    flex-wrap: wrap;
  }

  .admin-payments-header-actions {
    flex-wrap: wrap;
  }

  .admin-payment-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .admin-payment-item__right {
    width: 100%;
    justify-content: space-between;
  }

  .admin-payments-filters {
    flex-wrap: wrap;
  }
}

/* Site Notification Banner (Public) */
.site-notification {
  width: 100%;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: slideDown 0.3s ease-out;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.site-notification--green {
  background: #4caf50;
}

.site-notification--yellow {
  background: #ffc107;
}

.site-notification--red {
  background: #f44336;
}

.site-notification__content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.site-notification__icon {
  display: none;
}

.site-notification__text {
  font-size: 0.9rem;
  color: #000;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

.site-notification__text a {
  color: #000;
  text-decoration: underline;
  font-weight: 600;
  transition: opacity 0.2s;
}

.site-notification__text a:hover {
  opacity: 0.7;
}

.site-notification__text b,
.site-notification__text strong {
  font-weight: 700;
}

/* Admin Notification Control Panel - Compact */
.admin-notification-section {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-notification-card {
  display: flex;
  flex-direction: column;
}

.admin-notification-main {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.admin-notification-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-notification-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-strong);
  margin: 0;
}

.admin-notification-input {
  width: 100%;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.4;
  resize: vertical;
  transition: border-color 0.2s;
}

.admin-notification-input:focus {
  outline: none;
  border-color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.08);
}

.admin-notification-help {
  margin-top: 0.5rem;
}

.admin-notification-help small {
  font-size: 0.75rem;
  color: var(--text-soft);
  line-height: 1.4;
}

.admin-notification-help code {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-family: var(--font-mono, 'Courier New', monospace);
  font-size: 0.7rem;
  color: var(--accent-gold);
  margin: 0 0.25rem;
  white-space: nowrap;
}

.admin-notification-controls-compact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-end;
}

.admin-notification-control-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-notification-control-label {
  font-size: 0.85rem;
  color: var(--text-medium);
  font-weight: 600;
}

.admin-notification-color-buttons {
  display: flex;
  gap: 0.5rem;
}

.admin-notification-color-btn {
  cursor: pointer;
  position: relative;
}

.admin-notification-color-btn input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.admin-notification-color-dot {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
}

.admin-notification-color-btn input:checked + .admin-notification-color-dot {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.3);
}

.admin-notification-color-btn:hover .admin-notification-color-dot {
  transform: scale(1.1);
}

.admin-notification-color-dot--green {
  background: #4caf50;
}

.admin-notification-color-dot--yellow {
  background: #ffc107;
}

.admin-notification-color-dot--red {
  background: #f44336;
}

#notification-status-text {
  min-width: 50px;
  text-align: right;
}

.toggle-switch--small {
  width: 48px;
  height: 24px;
}

.toggle-switch--small .toggle-switch__slider {
  width: 48px;
  height: 24px;
}

.toggle-switch--small .toggle-switch__slider::before {
  width: 16px;
  height: 16px;
}

.toggle-switch--small input:checked + .toggle-switch__slider::before {
  transform: translateX(24px);
}

.admin-notification-buttons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.icon-button {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background 0.2s;
}

.icon-button:hover {
  background: rgba(244, 67, 54, 0.1);
}

.primary-button--compact {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .admin-notification-main {
    flex-direction: column;
  }

  .admin-notification-controls-compact {
    align-items: stretch;
  }

  .admin-notification-buttons {
    width: 100%;
    justify-content: space-between;
  }
}

/* ================================
   Shipping Management
   ================================ */

/* Filters */
.shipping-filters {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.shipping-filters__group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.shipping-filter-btn {
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.shipping-filter-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-strong);
}

.shipping-filter-btn--active {
  background: var(--accent-gold);
  color: #1a1a2e;
  border-color: var(--accent-gold);
  font-weight: 600;
}

/* Shipping Orders List */
.admin-shipping-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.user-shipping-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.shipping-order-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  transition: all 0.2s ease;
}

.admin-shipping-list .shipping-order-card {
  cursor: pointer;
}

.admin-shipping-list .shipping-order-card:hover {
  background: var(--bg-elevated);
  border-color: var(--accent-gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.shipping-order-card--pending {
  border-left: 4px solid #ff9800;
}

.shipping-order-card--processing {
  border-left: 4px solid #2196f3;
}

.shipping-order-card--shipped {
  border-left: 4px solid #4caf50;
}

.shipping-order-card--delivered {
  border-left: 4px solid var(--text-muted);
}

.shipping-order-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.shipping-order-card__order-id {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-strong);
  font-family: 'Courier New', monospace;
}

.shipping-order-card__status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.shipping-order-card__status--pending {
  background: rgba(255, 152, 0, 0.15);
  color: #ff9800;
}

.shipping-order-card__status--processing {
  background: rgba(33, 150, 243, 0.15);
  color: #2196f3;
}

.shipping-order-card__status--shipped {
  background: rgba(76, 175, 80, 0.15);
  color: #4caf50;
}

.shipping-order-card__status--delivered {
  background: rgba(158, 158, 158, 0.15);
  color: var(--text-muted);
}

.shipping-order-card__body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.shipping-order-card__field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.shipping-order-card__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.shipping-order-card__value {
  font-size: 0.95rem;
  color: var(--text-strong);
}

.shipping-order-card__value--muted {
  color: var(--text-muted);
}

.shipping-order-card__tracking {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: var(--bg-page);
  border-radius: 4px;
}

.shipping-order-card__tracking-link {
  color: var(--accent-gold);
  text-decoration: none;
  font-size: 0.9rem;
  font-family: 'Courier New', monospace;
}

.shipping-order-card__tracking-link:hover {
  text-decoration: underline;
}

/* Shipping Management Modal */
.shipping-manage-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-height: 70vh;
  overflow-y: auto;
  padding: 1rem;
}

.shipping-manage-section {
  background: var(--bg-elevated);
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.shipping-manage-section h3 {
  font-size: 1rem;
  color: var(--text-strong);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  opacity: 0.7;
}

.shipping-manage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.shipping-manage-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.shipping-manage-field label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.shipping-manage-field div {
  font-size: 0.95rem;
  color: var(--text-strong);
}

.shipping-manage-address {
  line-height: 1.6;
  color: var(--text-strong);
}

.shipping-manage-status-group {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
}

.shipping-manage-tracking-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.shipping-manage-history {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.shipping-history-item {
  display: flex;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--bg-card);
  border-radius: 6px;
  border-left: 3px solid var(--accent-gold);
}

.shipping-history-item__timestamp {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'Courier New', monospace;
  min-width: 150px;
}

.shipping-history-item__content {
  flex: 1;
}

.shipping-history-item__status {
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 0.25rem;
}

.shipping-history-item__note {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Tab Badge */
.admin-tab__badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.125rem 0.5rem;
  background: #ff9800;
  color: white;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .shipping-manage-grid,
  .shipping-manage-status-group,
  .shipping-manage-tracking-grid {
    grid-template-columns: 1fr;
  }

  .shipping-order-card__body {
    grid-template-columns: 1fr;
  }
}

/* ================================
   User Offers Page Redesign
   ================================ */

/* Page header */
.offers-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

/* Auth gate */
.auth-gate {
  text-align: center;
  padding: 3rem 1rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.auth-gate__message {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Search */
.offers-search {
  flex: 1;
  min-width: 200px;
}

.offers-search-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: var(--bg-page);
  border: 2px solid var(--border);
  border-radius: 6px;
  color: var(--text-default);
  font-size: 0.9rem;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15);
}

.offers-search-input:focus {
  outline: none;
  border-color: var(--accent-gold);
}

/* Offers list - thin horizontal cards */
.offers-list-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

/* User offer card - thin horizontal design */
.user-offer-card {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.user-offer-card:hover {
  background: var(--bg-elevated);
  border-color: rgba(124, 92, 255, 0.5);
  box-shadow: 0 4px 12px rgba(124, 92, 255, 0.15);
  transform: translateY(-1px);
}

.user-offer-card__image {
  width: 80px;
  height: 110px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.7rem;
  text-align: center;
}

.user-offer-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.user-offer-card__image--empty {
  padding: 0.5rem;
}

.user-offer-card__flip {
  width: 100%;
  height: 100%;
}

/* Status badge - above card title, width fits content */
.user-offer-card__status {
  padding: 0.25rem 0.65rem;
  border-radius: 12px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  display: inline-block;
  margin-bottom: 0.35rem;
  align-self: flex-start;
  width: fit-content;
}

.user-offer-card__status--pending-user {
  background: rgba(255, 152, 0, 0.15);
  color: #ff9800;
}

.user-offer-card__status--pending-admin {
  background: rgba(33, 150, 243, 0.15);
  color: #2196f3;
}

.user-offer-card__status--approved {
  background: rgba(76, 175, 80, 0.15);
  color: #4caf50;
}

.user-offer-card__status--declined {
  background: rgba(244, 67, 54, 0.15);
  color: #f44336;
}

.user-offer-card__status--ship-requested,
.user-offer-card__status--shipped {
  background: rgba(156, 39, 176, 0.15);
  color: #9c27b0;
}

/* Card info - compact inline */
.user-offer-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.user-offer-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-strong);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-offer-card__meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

.user-offer-card__amount {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin: 0;
  white-space: nowrap;
}

/* Time info - compact inline */
.user-offer-card__time {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  min-width: 120px;
}

.user-offer-card__time-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.user-offer-card__timer {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-gold);
  font-family: 'Courier New', monospace;
  margin: 0;
}

.user-offer-card__timer--warning {
  color: #ff9800;
  animation: timerPulse 1s ease-in-out infinite;
}

.user-offer-card__timer--expired {
  color: #f44336;
}

.user-offer-card__date {
  font-size: 0.8rem;
  color: var(--text-default);
  margin: 0;
}

/* Actions - compact inline */
.user-offer-card__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.user-offer-card__actions .primary-button,
.user-offer-card__actions .secondary-button {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  white-space: nowrap;
}

.user-offer-card__status-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .user-offer-card {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .user-offer-card__image {
    width: 100%;
    max-width: 220px;
    height: auto;
    aspect-ratio: 3 / 4;
    justify-self: center;
  }

  .user-offer-card__time {
    align-items: flex-start;
  }

  .user-offer-card__actions {
    width: 100%;
  }

  .user-offer-card__actions .primary-button,
  .user-offer-card__actions .secondary-button {
    flex: 1;
  }
}

/* ================================
   Buyback Offers Controls
   ================================ */

.offers-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 1rem;
}

.offers-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.offers-filter-btn {
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.offers-filter-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-strong);
}

.offers-filter-btn--active {
  background: var(--accent-gold);
  color: #1a1a2e;
  border-color: var(--accent-gold);
  font-weight: 600;
}

.offers-sort {
  display: flex;
  align-items: center;
}

.offers-sort-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.offers-sort-select {
  padding: 0.5rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-strong);
  font-size: 0.9rem;
  cursor: pointer;
}

.offers-sort-select:focus {
  outline: none;
  border-color: var(--accent-gold);
}

/* Offers List */
.admin-offers-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-offer-entry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

.admin-offer-entry::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.admin-offer-entry:last-child::after {
  display: none;
}

.admin-offer-entry:hover {
  background: var(--bg-elevated);
  border-color: rgba(124, 92, 255, 0.5);
  box-shadow: 0 4px 12px rgba(124, 92, 255, 0.15);
  transform: translateY(-2px);
}

.admin-offer-entry__field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-offer-entry__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.admin-offer-entry__value {
  font-size: 0.95rem;
  color: var(--text-strong);
  font-weight: 500;
}

.admin-offer-entry__actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  align-items: center;
}

.offer-entry__status {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
  padding: 0.5rem 0;
}

.offer-entry__status--muted {
  color: var(--text-muted);
  opacity: 0.7;
}

.offer-entry__status--success {
  color: #4ade80;
  font-weight: 600;
  font-style: normal;
}

/* Offers Pagination */
.offers-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 1rem;
}

.offers-pagination__info {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.offers-pagination__controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.offers-page-btn {
  padding: 0.5rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-strong);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 40px;
}

.offers-page-btn:hover:not(:disabled) {
  background: var(--bg-elevated);
  border-color: var(--accent-gold);
}

.offers-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.offers-page-current {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--text-strong);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .offers-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .offers-sort {
    width: 100%;
  }

  .offers-sort-label {
    width: 100%;
    justify-content: space-between;
  }

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

  .offers-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .offers-pagination__controls {
    justify-content: center;
  }
}

/* ================================
   Users Tab Controls
   ================================ */

.inventory-card__header-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0.75rem;
}

.inventory-card__header-compact h2 {
  margin: 0;
  font-size: 1.25rem;
}

.users-controls-compact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.users-search-input-compact {
  flex: 1;
  min-width: 200px;
  padding: 0.5rem 0.75rem;
  background: var(--bg-page);
  border: 2px solid var(--border);
  border-radius: 6px;
  color: var(--text-strong);
  font-size: 0.9rem;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15);
}

.users-search-input-compact:focus {
  outline: none;
  border-color: var(--accent-gold);
  background: var(--bg-card);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(197, 165, 114, 0.1);
}

.users-search-input-compact::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.users-filter-btn {
  padding: 0.4rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.users-filter-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-strong);
}

.users-filter-btn--active {
  background: var(--accent-gold);
  color: #1a1a2e;
  border-color: var(--accent-gold);
  font-weight: 600;
}

.users-sort-select-compact {
  padding: 0.4rem 0.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-strong);
  font-size: 0.85rem;
  cursor: pointer;
}

.users-sort-select-compact:focus {
  outline: none;
  border-color: var(--accent-gold);
}

/* Users Pagination */
.users-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 1rem;
}

.users-pagination__info {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.users-pagination__controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.users-page-btn {
  padding: 0.5rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-strong);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 40px;
}

.users-page-btn:hover:not(:disabled) {
  background: var(--bg-elevated);
  border-color: var(--accent-gold);
}

.users-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.users-page-current {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--text-strong);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .users-controls {
    gap: 0.75rem;
  }

  .users-sort-label {
    width: 100%;
    justify-content: space-between;
  }

  .users-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .users-pagination__controls {
    justify-content: center;
  }
}


/* Loading Spinner Animation */
.spinner {
  animation: spin 1s linear infinite;
}

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

.tx-complete-loading-icon,
.tx-complete-success-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.tx-complete-loading-icon[hidden],
.tx-complete-success-icon[hidden] {
  display: none;
}

/* ===== Shipping Cart Icon (Navbar) ===== */
.shipping-cart-icon {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-pill);
  color: #60a5fa;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
  cursor: pointer;
}

.shipping-cart-icon:hover {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(59, 130, 246, 0.5);
  transform: scale(1.03);
}

.shipping-cart-icon svg {
  flex-shrink: 0;
}

.shipping-cart-icon__timer {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #93c5fd;
}

.shipping-cart-icon--urgent {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.12);
  animation: cart-pulse 1.5s ease-in-out infinite;
}

.shipping-cart-icon--urgent svg {
  color: #f59e0b;
}

.shipping-cart-icon--urgent .shipping-cart-icon__timer {
  color: #fbbf24;
}

.shipping-cart-icon--expired {
  border-color: rgba(107, 114, 128, 0.3);
  background: rgba(107, 114, 128, 0.08);
  opacity: 0.6;
}

@keyframes cart-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* ===== Shipping Fee Choice Modal ===== */
.shipping-fee-choice-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
}

.shipping-fee-choice-modal {
  background: var(--surface-1, #1a1a2e);
  border: 1px solid var(--border, #2d2d44);
  border-radius: 1rem;
  padding: 2rem;
  max-width: 420px;
  width: 90%;
  text-align: center;
}

.shipping-fee-choice-modal h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  color: var(--text-primary, #fff);
}

.shipping-fee-choice-modal p {
  margin: 0 0 1.5rem;
  color: var(--text-soft, #a0a0b8);
  font-size: 0.9rem;
  line-height: 1.5;
}

.shipping-fee-choice-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.shipping-fee-choice-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}

/* ===== Shipping Progress Modal ===== */
.shipping-progress-modal {
  text-align: center;
  padding: 2.5rem 2rem;
}

.shipping-progress-spinner {
  margin-bottom: 1.5rem;
}

.shipping-progress-text {
  color: var(--text-soft, #a0a0b8);
  font-size: 1rem;
  margin: 0;
}

/* ===== Shipping Success Modal ===== */
.shipping-success-modal {
  text-align: center;
  padding: 2rem;
  max-width: 440px;
}

.shipping-success-checkmark {
  margin-bottom: 1rem;
}

.shipping-success-modal h3 {
  margin: 0 0 0.25rem;
  font-size: 1.4rem;
  color: #34d399;
}

.shipping-success-order-id {
  font-family: var(--font-mono, monospace);
  font-size: 0.85rem;
  color: var(--text-soft, #a0a0b8);
  margin: 0 0 1rem;
}

.shipping-success-info {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-soft, #a0a0b8);
  margin: 0 0 1rem;
}

.shipping-success-solscan {
  display: inline-block;
  font-size: 0.8rem;
  color: #60a5fa;
  text-decoration: none;
  margin-bottom: 1.5rem;
}

.shipping-success-solscan:hover {
  text-decoration: underline;
}

/* ===== Shipping Order Card (User View) - Multi-card ===== */
.shipping-order-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border, #2d2d44);
}

.shipping-order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.6rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.5rem;
  font-size: 0.85rem;
}

.shipping-order-item__name {
  color: var(--text-primary, #fff);
  font-weight: 500;
}

.shipping-order-item__fee {
  color: var(--accent-mint, #10b981);
  font-weight: 600;
}

.shipping-order-item__sig {
  font-size: 0.75rem;
}

.shipping-order-item__sig a {
  color: #60a5fa;
  text-decoration: none;
}

.shipping-order-item__sig a:hover {
  text-decoration: underline;
}

.shipping-order-bundling {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 0.5rem;
}

.shipping-order-bundling__timer {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: #60a5fa;
}

.shipping-order-bundling__actions {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.shipping-order-bundling__actions button {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 0.4rem;
}

.shipping-order-total {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border, #2d2d44);
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.shipping-order-total__label {
  color: var(--text-soft, #a0a0b8);
}

.shipping-order-total__amount {
  color: var(--accent-mint, #10b981);
  font-weight: 700;
}

/* ===== Admin Shipping Fee Settings ===== */
.admin-shipping-fee-settings {
  margin-bottom: 1rem;
}

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

.input-with-unit {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.input-with-unit .field__input {
  flex: 1;
  min-width: 0;
}

.input-unit {
  color: var(--text-soft, #a0a0b8);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

/* Pending status style for shipping orders */
.shipping-order-card__status--pending {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}
