/* TabletopSec - Styles */
:root {
    --red: #dc2626;
    --red-light: #fef2f2;
    --black: #1f2937;
    --black-light: #f3f4f6;
    --blue: #2563eb;
    --blue-light: #eff6ff;
    --orange: #f97316;
    --green: #22c55e;
    --purple: #9333ea;
    --yellow: #eab308;
    --bg: #0f172a;
    --bg-light: #1e293b;
    --bg-card: #1e293b;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #22d3ee;
    --accent-hover: #06b6d4;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.logo-img {
    height: 40px;
    width: auto;
}

.footer-logo {
    height: 32px;
    width: auto;
    margin-bottom: 0.5rem;
}

.product-image-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.hero-image-container {
    max-width: 900px;
    margin: 0 auto 3rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-cta {
    color: var(--bg) !important;
    background: var(--accent);
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 600 !important;
}

.nav-cta:hover {
    background: var(--accent-hover);
}

/* Hero */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-light) 50%, var(--bg) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(34, 211, 238, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.highlight {
    background: linear-gradient(90deg, var(--accent), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-button {
    background: var(--accent);
    color: var(--bg);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.cta-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(34, 211, 238, 0.3);
}

.cta-secondary {
    color: var(--text);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--text-muted);
    border-radius: 8px;
    transition: all 0.2s;
}

.cta-secondary:hover {
    border-color: var(--text);
    background: rgba(255,255,255,0.05);
}

.hero-badges {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 2rem;
    margin-top: auto;
}

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

/* Sections */
section {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

h2 {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 0.75rem;
}

.section-sub {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Components Grid */
.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.component-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid transparent;
    transition: border-color 0.2s, transform 0.15s;
    position: relative;
}

.component-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.component-detail-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--accent);
    margin-top: 0.75rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.component-card:hover .component-detail-hint {
    opacity: 1;
}

.component-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.component-card h3 {
    margin-bottom: 0.5rem;
}

.component-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Dice Section */
.dice-section {
    background: var(--bg-light);
    border-radius: 24px;
    margin: 2rem auto;
    max-width: 1300px;
}

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

.dice-card {
    background: var(--bg);
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid;
}

.dice-card.red { border-color: var(--red); }
.dice-card.black-card { border-color: #6b7280; }
.dice-card.blue-card { border-color: var(--blue); }

.dice-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red-dot { background: var(--red); }
.black-dot { background: #6b7280; }
.blue-dot { background: var(--blue); }

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

.dice-pair {
    display: grid;
    gap: 1rem;
}

.dice-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.dice-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Tokens Section */
.tokens-section {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-light) 100%);
}

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

.token-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
}

.token-colors {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.token-chip {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.black-chip { background: #1f2937; border: 1px solid #374151; }
.red-chip { background: var(--red); }
.white-chip { background: #f8fafc; }
.blue-chip { background: var(--blue); }
.orange-chip { background: var(--orange); }
.green-chip { background: var(--green); }
.purple-chip { background: var(--purple); }
.yellow-chip { background: var(--yellow); }

.token-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.token-examples {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.token-use {
    font-size: 0.9rem;
    color: var(--accent);
}

/* How Section */
.how-section {
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.step {
    text-align: center;
}

.step-num {
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step h3 {
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Example Scenario */
.example-scenario {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.example-scenario h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.scenario-roll {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.roll-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.roll-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    min-width: 50px;
}

.roll {
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
}

.roll.red { background: var(--red); }
.roll.black-roll { background: #374151; }
.roll.blue-roll { background: var(--blue); }

.token {
    padding: 0.35rem 0.65rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.token.position { background: #1f2937; border: 2px solid var(--red); }
.token.risk { background: var(--red); }
.token.mitigation { background: #f8fafc; color: #1f2937; }
.token.asset { background: var(--orange); color: #000; }
.token.action { background: var(--blue); }
.token.compliance { background: var(--green); color: #fff; }
.token.impact { background: var(--purple); color: #fff; }
.token.timeline { background: var(--yellow); color: #000; }

.scenario-text {
    text-align: center;
    color: var(--text-muted);
}

.scenario-text em {
    color: var(--accent);
}

/* Scenario Library Promo */
.scenario-promo-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.scenario-promo-inner {
    text-align: center;
    background: linear-gradient(135deg, rgba(220,38,38,0.04) 0%, rgba(37,99,235,0.04) 100%);
    border: 1px solid rgba(148,163,184,0.15);
    border-radius: 16px;
    padding: 3.5rem 2.5rem;
}
.scenario-promo-badge {
    display: inline-block;
    background: rgba(34,197,94,0.12);
    color: #22c55e;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    border: 1px solid rgba(34,197,94,0.25);
    margin-bottom: 1.2rem;
}
.scenario-promo-inner h2 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.8rem;
    color: var(--text);
}
.scenario-promo-sub {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}
.scenario-promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2.5rem;
    text-align: left;
}
.scenario-promo-card {
    background: var(--bg);
    border: 1px solid rgba(148,163,184,0.15);
    border-radius: 10px;
    padding: 1.3rem;
}
.scenario-promo-icon {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
}
.scenario-promo-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text);
}
.scenario-promo-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.scenario-promo-scenarios {
    margin-bottom: 2rem;
}
.scenario-promo-list-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}
.scenario-promo-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}
.scenario-promo-tag {
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.35rem 0.8rem;
    border-radius: 100px;
    background: var(--bg);
    border: 1px solid rgba(148,163,184,0.2);
    color: var(--text-muted);
}
.scenario-promo-tag.exp {
    border-color: rgba(139,92,246,0.3);
    color: #a78bfa;
    background: rgba(139,92,246,0.06);
}
.scenario-promo-cta {
    display: inline-block;
    background: var(--red);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.scenario-promo-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(220,38,38,0.3);
}
@media (max-width: 768px) {
    .scenario-promo-inner { padding: 2rem 1.2rem; }
    .scenario-promo-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .scenario-promo-grid { grid-template-columns: 1fr; }
}

/* Expansions Section */
.expansions-section {
    background: var(--bg-light);
    border-radius: 24px;
    margin: 2rem auto;
    max-width: 1300px;
}

.expansions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.expansion-card {
    background: var(--bg);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
}

.expansion-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
}

.expansion-card h3 {
    margin-bottom: 0.5rem;
}

.expansion-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.expansion-price {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.expansion-token-count {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 0.25rem;
}

.expansion-cart-btn {
    background: var(--accent);
    color: var(--bg);
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.expansion-cart-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.inline-form {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.inline-form input {
    padding: 0.75rem 1rem;
    border: 1px solid #374151;
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    width: 280px;
}

.inline-form button {
    padding: 0.75rem 1.5rem;
    background: var(--blue);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.inline-form button:hover {
    background: #1d4ed8;
}

/* Token Counts */
.token-counts {
    margin-top: 3rem;
    text-align: center;
}

.token-counts h4 {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.count-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.count-item {
    background: var(--bg);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.count-item.total {
    background: var(--accent);
}

.count-item.total .count-num,
.count-item.total .count-label {
    color: var(--bg);
}

.count-num {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
}

.count-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Configurator Section */
.configurator-section {
    background: var(--bg-light);
    border-radius: 24px;
    margin: 2rem auto;
    max-width: 1200px;
}

.config-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.config-card {
    background: var(--bg);
    border-radius: 12px;
    padding: 1.5rem;
}

.config-card h3 {
    margin-bottom: 0.5rem;
}

.config-card > p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.config-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.config-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid #374151;
    font-size: 0.9rem;
}

.config-list li:last-child {
    border-bottom: none;
}

.cat-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.35rem;
    vertical-align: middle;
}

.config-list li span:last-child {
    color: var(--accent);
    font-weight: 600;
}

.config-pricing {
    margin-bottom: 1rem;
}

.price-tier {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #374151;
}

.price-tier:last-child {
    border-bottom: none;
}

.tier-qty {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.tier-price {
    color: var(--accent);
    font-weight: 600;
}

.config-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-align: center;
}

/* Shop Section */
.shop-section {
    max-width: 1300px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.product-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #374151;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card.featured {
    border-color: var(--accent);
}

.product-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--bg);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.product-badge.secondary {
    background: var(--blue);
}

.placeholder-image {
    background: #374151;
    border-radius: 8px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-details h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.includes {
    list-style: none;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.includes li {
    padding: 0.3rem 0;
    color: var(--text-muted);
}

.addon-list {
    list-style: none;
}

.addon-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #374151;
    font-size: 0.9rem;
}

.addon-list li:last-child {
    border-bottom: none;
}

.price {
    margin-top: auto;
    margin-bottom: 1rem;
}

.amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.shipping {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.buy-button {
    width: 100%;
    background: var(--accent);
    color: var(--bg);
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.buy-button:hover {
    background: var(--accent-hover);
}

.buy-button.secondary {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text);
}

.buy-button.secondary:hover {
    border-color: var(--text);
}

.secure-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 2rem;
}

/* AI Section */
.ai-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg) 100%);
    border-radius: 24px;
    margin: 2rem auto;
    max-width: 800px;
    text-align: center;
}

.ai-content {
    padding: 3rem 2rem;
}

.ai-badge {
    display: inline-block;
    background: var(--blue);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.ai-section h2 {
    margin-bottom: 1rem;
}

.ai-section p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.waitlist-form {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.waitlist-form input {
    padding: 0.875rem 1rem;
    border: 1px solid #374151;
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    width: 300px;
}

.waitlist-form button {
    padding: 0.875rem 1.5rem;
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.waitlist-form button:hover {
    background: var(--accent-hover);
}

/* Ecosystem Section */
.ecosystem-section {
    text-align: center;
    border-top: 1px solid #1e293b;
    padding-top: 4rem;
}

.ecosystem-section h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.ecosystem-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.eco-link {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--text);
    border: 1px solid #374151;
    transition: all 0.2s;
    min-width: 200px;
}

.eco-link:hover {
    border-color: var(--accent);
}

.eco-link strong {
    display: block;
    margin-bottom: 0.25rem;
}

.eco-link span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Footer */
footer {
    border-top: 1px solid #1e293b;
    padding: 3rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo-icon,
.footer-brand .logo-text {
    display: inline;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--accent);
    text-decoration: none;
}

/* ============================================
   MODAL SYSTEM
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-panel {
    background: var(--bg);
    border: 1px solid #374151;
    border-radius: 16px;
    width: 90%;
    max-width: 680px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.25s;
}

.modal-overlay.active .modal-panel {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.75rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: all 0.15s;
    z-index: 1;
}

.modal-close:hover {
    color: var(--text);
    background: rgba(255,255,255,0.1);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.modal-icon {
    font-size: 2rem;
}

.modal-header h3 {
    font-size: 1.5rem;
    margin: 0;
}

.modal-count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.modal-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.modal-how {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--accent);
}

.modal-how strong {
    color: var(--accent);
}

.modal-sub {
    margin-bottom: 1.5rem;
}

.modal-sub h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #374151;
}

.modal-sub-count {
    font-weight: 400;
    opacity: 0.6;
}

.modal-token-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-token-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.15s;
}

.modal-token-item:hover {
    background: var(--bg-light);
}

.modal-token-chip {
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'SF Mono', 'Fira Code', monospace;
    min-width: 85px;
    text-align: center;
    flex-shrink: 0;
}

.modal-token-detail {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.modal-token-full {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.modal-token-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Dice modal specifics */
.modal-die-item {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.modal-die-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.modal-die-type {
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

.modal-die-label {
    font-weight: 600;
    font-size: 1rem;
}

.modal-die-faces {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.modal-die-face {
    background: var(--bg);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #374151;
}

.modal-die-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-style: italic;
}

/* Expansion card clickable */
.expansion-card {
    transition: border-color 0.2s, transform 0.15s;
    border: 1px solid transparent;
}

.expansion-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.expansion-detail-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--accent);
    margin-top: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.expansion-card:hover .expansion-detail-hint {
    opacity: 1;
}

/* Expansion modal extras */
.expansion-modal-scenarios {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.expansion-modal-scenarios strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent);
    font-size: 0.85rem;
}

.expansion-modal-scenarios ul {
    list-style: none;
    padding: 0;
}

.expansion-modal-scenarios li {
    padding: 0.4rem 0;
    padding-left: 1.2rem;
    position: relative;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-bottom: 1px solid #374151;
}

.expansion-modal-scenarios li:last-child {
    border-bottom: none;
}

.expansion-modal-scenarios li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.expansion-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #374151;
}

.expansion-price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.expansion-price-note {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.expansion-modal-cart-btn {
    background: var(--accent);
    color: var(--bg);
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.expansion-modal-cart-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* Component modal (What's in a Kit) */
.component-modal-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.component-highlight-row {
    display: flex;
    gap: 1rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    background: var(--bg-light);
    align-items: baseline;
}

.component-highlight-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    min-width: 140px;
    flex-shrink: 0;
}

.component-highlight-detail {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.component-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #374151;
    gap: 1rem;
    flex-wrap: wrap;
}

.component-included {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Token card clickable hint */
.token-expand-hint {
    font-size: 0.8rem;
    color: var(--accent);
    margin-top: 0.75rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.token-card:hover .token-expand-hint {
    opacity: 1;
}

.token-card {
    transition: border-color 0.2s, transform 0.15s;
    border: 1px solid transparent;
}

.token-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.dice-card {
    transition: transform 0.15s;
}

.dice-card:hover {
    transform: translateY(-2px);
}

/* ============================================
   SCENARIO TABS
   ============================================ */
.scenario-intro {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.scenario-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.scenario-tab {
    background: var(--bg);
    border: 1px solid #374151;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}

.scenario-tab:hover {
    border-color: var(--text-muted);
    color: var(--text);
}

.scenario-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
    font-weight: 600;
}

.scenario-panel {
    display: none;
}

.scenario-panel.active {
    display: block;
}

.scenario-question {
    text-align: center;
    margin-top: 1rem;
    font-size: 1.1rem;
}

.scenario-question em {
    color: var(--accent);
}

/* ============================================
   SHOPPING CART
   ============================================ */

/* Nav cart button */
.nav-cart {
    position: relative;
    background: none;
    border: 1px solid #374151;
    border-radius: 8px;
    color: var(--text);
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.15s;
}

.nav-cart:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--red);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
}

/* Cart slide-out panel */
.cart-slide {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    background: var(--bg);
    border-left: 1px solid #374151;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.cart-slide.active {
    transform: translateX(0);
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.cart-slide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #374151;
}

.cart-slide-header h3 {
    font-size: 1.25rem;
    margin: 0;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.cart-empty-sub {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #374151;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.cart-item-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.cart-item-price {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-qty-btn {
    background: var(--bg-light);
    border: 1px solid #374151;
    color: var(--text);
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.cart-qty-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.cart-qty {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.cart-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0 0.25rem;
    margin-left: 0.25rem;
    transition: color 0.15s;
}

.cart-remove:hover {
    color: var(--red);
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #374151;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cart-total span:last-child {
    color: var(--accent);
}

.cart-checkout-btn {
    width: 100%;
    padding: 0.875rem;
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.cart-checkout-btn:hover {
    background: var(--accent-hover);
}

.cart-checkout-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Cart toast notification */
.cart-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-card);
    border: 1px solid var(--accent);
    color: var(--text);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    z-index: 1100;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.cart-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Config add buttons */
.config-add-btn {
    background: var(--accent);
    color: var(--bg);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 0.5rem;
    transition: all 0.15s;
    line-height: 1;
}

.config-add-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.1);
}

/* ============================================
   FLOATING CART WIDGET
   ============================================ */
.floating-cart {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 900;
    background: var(--accent);
    color: var(--bg);
    border-radius: 50px;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(34, 211, 238, 0.35);
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-cart.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.floating-cart:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 40px rgba(34, 211, 238, 0.45);
}

.floating-cart.bounce {
    animation: cartBounce 0.5s ease;
}

@keyframes cartBounce {
    0%   { transform: translateY(0) scale(1); }
    30%  { transform: translateY(-8px) scale(1.1); }
    50%  { transform: translateY(-4px) scale(1.05); }
    70%  { transform: translateY(-2px) scale(1.02); }
    100% { transform: translateY(0) scale(1); }
}

.float-cart-inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
}

.float-cart-inner .cart-count {
    position: static;
    display: flex;
    min-width: 22px;
    height: 22px;
    font-size: 0.75rem;
    background: var(--bg);
    color: var(--accent);
}

.float-cart-total {
    font-weight: 700;
    font-size: 0.95rem;
}

/* ============================================
   CUSTOM TOKEN PICKER
   ============================================ */
.picker-pricing-bar {
    display: flex;
    gap: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.picker-pricing-bar strong {
    color: var(--accent);
}

.picker-body {
    max-height: 50vh;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.picker-category {
    margin-bottom: 1.5rem;
}

.picker-cat-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #374151;
}

.picker-cat-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.picker-cat-header h4 {
    font-size: 0.9rem;
    flex: 1;
    margin: 0;
}

.picker-add-all {
    font-size: 0.7rem;
    background: none;
    border: 1px solid #374151;
    color: var(--accent);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.15s;
}

.picker-add-all:hover {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

.picker-token-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.35rem;
}

.picker-token {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    transition: background 0.15s;
}

.picker-token:hover {
    background: var(--bg-light);
}

.picker-token.selected {
    background: rgba(34, 211, 238, 0.08);
    border-left: 2px solid var(--accent);
}

.picker-chip {
    padding: 0.2rem 0.45rem;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 700;
    font-family: 'SF Mono', 'Fira Code', monospace;
    min-width: 65px;
    text-align: center;
    flex-shrink: 0;
}

.picker-name {
    font-size: 0.8rem;
    color: var(--text-muted);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.picker-qty-wrap {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.picker-qty-btn {
    background: var(--bg);
    border: 1px solid #374151;
    color: var(--text);
    width: 22px;
    height: 22px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    padding: 0;
}

.picker-qty-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.picker-qty {
    font-weight: 600;
    font-size: 0.8rem;
    min-width: 18px;
    text-align: center;
}

.picker-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #374151;
    gap: 1rem;
    flex-wrap: wrap;
}

.picker-summary {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

#picker-count {
    font-size: 1rem;
    font-weight: 600;
}

#picker-price {
    font-size: 0.85rem;
    color: var(--accent);
}

.picker-actions {
    display: flex;
    gap: 0.5rem;
}

.picker-clear {
    background: none;
    border: 1px solid #374151;
    color: var(--text-muted);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.15s;
}

.picker-clear:hover {
    border-color: var(--text);
    color: var(--text);
}

.picker-add-cart {
    background: var(--accent);
    color: var(--bg);
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
}

.picker-add-cart:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.picker-add-cart:not(:disabled):hover {
    background: var(--accent-hover);
}

/* ============================================
   BULK / MSP-VAR SECTION
   ============================================ */
.bulk-section {
    background: linear-gradient(135deg, #0c1a2e 0%, var(--bg-light) 50%, #0c1a2e 100%);
    border-radius: 24px;
    margin: 2rem auto;
    max-width: 1300px;
    position: relative;
    overflow: hidden;
}

.bulk-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 20%, rgba(34, 211, 238, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.bulk-header {
    text-align: center;
    position: relative;
    z-index: 1;
}

.bulk-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--bg);
    padding: 0.3rem 0.9rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.bulk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.bulk-benefit-card {
    background: var(--bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #374151;
}

.bulk-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.bulk-benefit-card h3 {
    margin-bottom: 1rem;
    font-size: 1.15rem;
}

.bulk-tiers {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bulk-tier {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    background: var(--bg-light);
    font-size: 0.9rem;
}

.bulk-tier.featured-tier {
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid var(--accent);
}

.bulk-tier-qty {
    color: var(--text-muted);
}

.bulk-tier-discount {
    font-weight: 600;
    color: var(--accent);
}

.bulk-features {
    list-style: none;
    padding: 0;
}

.bulk-features li {
    padding: 0.45rem 0;
    border-bottom: 1px solid #374151;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-left: 1.2rem;
    position: relative;
}

.bulk-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

.bulk-features li:last-child {
    border-bottom: none;
}

.bulk-form-wrap {
    background: var(--bg);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #374151;
    position: relative;
    z-index: 1;
}

.bulk-form-wrap h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.bulk-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.bulk-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.bulk-field input,
.bulk-field select {
    width: 100%;
    padding: 0.7rem 0.75rem;
    border: 1px solid #374151;
    border-radius: 6px;
    background: var(--bg-light);
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.15s;
}

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

.bulk-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='%2394a3b8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}

.bulk-submit {
    width: 100%;
    padding: 0.875rem;
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.5rem;
}

.bulk-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.bulk-success {
    text-align: center;
    padding: 2rem;
}

.bulk-success h4 {
    color: var(--accent);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.bulk-success p {
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .hero-badges {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }

    .modal-panel {
        width: 95%;
        max-height: 90vh;
        padding: 1.25rem;
    }

    .modal-token-chip {
        min-width: 70px;
        font-size: 0.7rem;
    }

    .scenario-tabs {
        gap: 0.35rem;
    }

    .scenario-tab {
        font-size: 0.7rem;
        padding: 0.4rem 0.65rem;
    }

    .cart-slide {
        width: 100vw;
    }

    .floating-cart {
        bottom: 1rem;
        right: 1rem;
    }

    .picker-token-grid {
        grid-template-columns: 1fr;
    }

    .picker-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .picker-actions {
        flex-direction: column;
    }

    .bulk-form-row {
        grid-template-columns: 1fr;
    }

    .picker-pricing-bar {
        flex-direction: column;
        gap: 0.5rem;
    }

    .component-highlight-row {
        flex-direction: column;
        gap: 0.25rem;
    }

    .component-highlight-label {
        min-width: unset;
    }

    .component-modal-footer {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

/* ============================================
   HAMBURGER MENU
   ============================================ */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 10;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav {
        flex-direction: row;
        flex-wrap: wrap;
        position: relative;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--bg);
        border-bottom: 1px solid #374151;
        padding: 1rem 2rem;
        gap: 0.75rem;
        z-index: 100;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 0.5rem 0;
    }

    .nav-cta {
        text-align: center;
    }

    .hero-badges {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

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

/* ============================================
   SUBPAGE STYLES
   ============================================ */
.subpage-header {
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-light) 100%);
    text-align: center;
    padding: 4rem 2rem 2rem;
}

.subpage-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.5rem;
}

.subpage-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.subpage-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    min-height: 60vh;
}

/* ============================================
   LEGAL CONTENT (Privacy, Terms)
   ============================================ */
.legal-content h2 {
    font-size: 1.5rem;
    text-align: left;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #374151;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-content ul,
.legal-content ol {
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    line-height: 1.8;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content strong {
    color: var(--text);
}

.legal-content a {
    color: var(--accent);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* ============================================
   SHIPPING TABLE
   ============================================ */
.shipping-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.shipping-table th,
.shipping-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #374151;
}

.shipping-table th {
    background: var(--bg-light);
    color: var(--text);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.shipping-table td {
    color: var(--text-muted);
}

.shipping-table tr:hover td {
    background: rgba(255,255,255,0.02);
}

.shipping-highlight {
    color: var(--accent) !important;
    font-weight: 600;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-category {
    margin-bottom: 2.5rem;
}

.faq-category h2 {
    font-size: 1.3rem;
    text-align: left;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #374151;
}

.faq-item {
    border: 1px solid #374151;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: var(--bg-card);
    border: none;
    color: var(--text);
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    transition: background 0.2s;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question .chevron {
    transition: transform 0.3s;
    color: var(--text-muted);
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.open .faq-question .chevron {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 1rem 1.25rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    border-top: 1px solid #374151;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-answer a {
    color: var(--accent);
    text-decoration: none;
}

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

/* ============================================
   DICE ROLLER SECTION
   ============================================ */
.dice-roller-section {
    text-align: center;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg) 50%, var(--bg-light) 100%);
    border-radius: 24px;
    margin: 2rem auto;
    max-width: 1000px;
    padding: 4rem 2rem;
}

.dice-roller-section h2 {
    margin-bottom: 0.5rem;
}

.dice-slots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.dice-slot {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.dice-slot .dice-slot-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
    margin-bottom: 0.25rem;
}

.dice-slot .dice-slot-value {
    font-size: 1.1rem;
    font-weight: 800;
    min-height: 1.4em;
}

.dice-slot.red-die {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.4);
    color: #fca5a5;
}

.dice-slot.black-die {
    background: rgba(107, 114, 128, 0.1);
    border-color: rgba(107, 114, 128, 0.4);
    color: #d1d5db;
}

.dice-slot.blue-die {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.4);
    color: #93c5fd;
}

.dice-slot.rolling .dice-slot-value {
    animation: diceRoll 0.1s infinite;
}

@keyframes diceRoll {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.roll-btn {
    background: var(--accent);
    color: var(--bg);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 2rem;
}

.roll-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(34, 211, 238, 0.3);
}

.roll-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.dice-result {
    display: none;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
}

.dice-result.visible {
    display: block;
}

.dice-result-narrative {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.dice-result-narrative strong {
    color: var(--text);
}

.dice-result-tokens {
    margin-bottom: 1.5rem;
}

.dice-result-tokens .roll-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: block;
}

.dice-result-tokens .token-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dice-result-tokens .token-chip {
    width: auto;
    height: auto;
    border-radius: 20px;
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #fff;
    background: var(--red);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dice-result-cta {
    display: inline-block;
    background: var(--accent);
    color: var(--bg);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.dice-result-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .dice-slots {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
    }

    .dice-slot {
        width: auto;
        height: 85px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: var(--bg);
    padding: 0.5rem 1rem;
    z-index: 10000;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   SUBPAGE NAV (reusable across subpages)
   ============================================ */
.subpage-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    border-bottom: 1px solid #374151;
    position: sticky;
    top: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    z-index: 100;
}

.subpage-nav .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 700;
}

.subpage-nav .nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.subpage-nav .nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.subpage-nav .nav-links a:hover {
    color: var(--text);
}

@media (max-width: 768px) {
    .subpage-nav {
        flex-wrap: wrap;
        position: relative;
    }

    .subpage-nav .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--bg);
        border-bottom: 1px solid #374151;
        padding: 1rem 2rem;
        gap: 0.75rem;
        z-index: 100;
    }

    .subpage-nav .nav-links.open {
        display: flex;
    }
}

/* ============================================
   SUBPAGE FOOTER (expanded links)
   ============================================ */
.subpage-footer {
    border-top: 1px solid #1e293b;
    padding: 3rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.subpage-footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.subpage-footer .footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.subpage-footer .footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.subpage-footer .footer-links a:hover {
    color: var(--accent);
}

.subpage-footer .footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.subpage-footer .footer-bottom a {
    color: var(--accent);
    text-decoration: none;
}

@media (max-width: 768px) {
    .subpage-footer .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .subpage-footer .footer-links {
        justify-content: center;
    }
}

/* ============================================
   SUCCESS / CANCEL PAGES
   ============================================ */
.result-page {
    text-align: center;
    padding: 4rem 2rem;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.result-page h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.result-page p {
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.result-steps {
    text-align: left;
    max-width: 500px;
    margin: 1.5rem auto;
}

.result-steps li {
    color: var(--text-muted);
    padding: 0.5rem 0;
    line-height: 1.6;
}

.result-ctas {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}
