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

:root {
    --bg: #0a0a0a;
    --gold: #d4af37;
    --gold-light: #f4e5b5;
    --bronze: #8b7355;
    --text: #c9a961;
}

body {
    font-family: Georgia, 'Segoe UI', serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    cursor: default;
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 100000;
    transition: transform 0.15s ease;
    box-shadow: 0 0 20px var(--gold);
    display: none;
}

@media (pointer: fine) {
    .cursor {
        display: block;
    }
    * {
        cursor: none !important;
    }
}

.cursor-trail {
    width: 8px;
    height: 8px;
    background: linear-gradient(45deg, var(--gold-light), var(--bronze));
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    animation: fadeTrail 0.5s ease-out;
}

@keyframes fadeTrail {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0);
    }
}

@keyframes emberGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    }
    50% {
        text-shadow: 0 0 40px rgba(244, 229, 181, 0.8);
    }
}

/* Animated Background */
#canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.35);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.8));
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: rotate(180deg) scale(1.15);
    filter: drop-shadow(0 0 25px rgba(212, 175, 55, 1));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(45deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: emberGlow 3.2s ease-in-out infinite;
}

.logo-subtitle {
    font-size: 12px;
    color: var(--bronze);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    margin-left: 30px;
    transition: all 0.3s;
    position: relative;
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--gold);
    transform: translateY(-2px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, var(--gold-light), var(--gold));
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.admin-link {
    opacity: 0.6;
    font-size: 14px;
}

.nav-links a.admin-link:hover {
    opacity: 1;
}

.nav-links a.admin-link::after {
    display: none;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    z-index: 1;
}

.hero h1 {
    font-size: 64px;
    margin-bottom: 30px;
    background: linear-gradient(45deg, var(--gold-light), var(--gold), var(--bronze));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: emberGlow 2s ease-in-out infinite;
    font-weight: 900;
    max-width: 900px;
    line-height: 1.1;
}

.hero p {
    font-size: 20px;
    margin: 0 auto 50px;
    color: var(--gold-light);
    max-width: 650px;
    line-height: 1.6;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    font-family: Georgia, serif;
    display: inline-block;
}

.btn-primary {
    background: var(--gold);
    color: var(--bg);
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
    background: var(--gold-light);
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--bg);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

/* Philosophy Section */
.philosophy {
    position: relative;
    padding: 100px 50px;
    text-align: center;
    z-index: 1;
}

.philosophy h2 {
    font-size: 48px;
    margin-bottom: 50px;
    background: linear-gradient(45deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.philosophy-body {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.philosophy-body p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 25px;
}

/* Architecture Section */
.architecture {
    position: relative;
    padding: 100px 50px;
    z-index: 1;
}

.architecture h2 {
    font-size: 48px;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(45deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.arch-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.arch-grid.arch-grid-three {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1150px;
}

.arch-card {
    background: rgba(212, 175, 55, 0.05);
    padding: 40px 30px;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s;
}

.arch-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3);
}

.arch-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.arch-card h3 {
    font-size: 22px;
    color: var(--gold);
    margin-bottom: 15px;
}

.arch-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
}

/* Meet Pacey Section */
.meet-pacey {
    position: relative;
    padding: 100px 50px;
    z-index: 1;
    text-align: center;
}

.meet-pacey h2 {
    font-size: 48px;
    margin-bottom: 30px;
    text-align: center;
    background: linear-gradient(45deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.meet-pacey-body {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text);
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.video-embed {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 60px rgba(212, 175, 55, 0.15);
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

/* Legal Section */
.legal {
    position: relative;
    padding: 100px 50px;
    z-index: 1;
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}

.legal h2 {
    font-size: 48px;
    margin-bottom: 40px;
    text-align: center;
    background: linear-gradient(45deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legal h3 {
    font-size: 28px;
    color: var(--gold);
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 10px;
}

.legal h4 {
    font-size: 20px;
    color: var(--gold-light);
    margin-top: 25px;
    margin-bottom: 10px;
}

.legal p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 15px;
}

/* Footer */
footer {
    position: relative;
    padding: 80px 50px 60px;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    z-index: 1;
}

.footer-headline {
    font-size: 40px;
    margin-bottom: 25px;
    background: linear-gradient(45deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-body {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text);
    max-width: 700px;
    margin: 0 auto 40px;
}

.footer-cta {
    margin-bottom: 40px;
}

.footer-copy {
    color: var(--bronze);
    font-size: 14px;
    margin-bottom: 10px;
}

footer p {
    margin: 10px 0;
    color: var(--text);
}

.social-links {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.2);
}

.social-links a svg {
    width: 28px;
    height: 28px;
    fill: var(--gold);
    transition: fill 0.3s;
}

.social-links a:hover svg {
    fill: var(--gold-light);
}

/* Sovereign Shield Section */
.version-tag {
    text-align: center;
    font-family: monospace;
    color: var(--bronze);
    margin-bottom: 50px;
    letter-spacing: 1px;
}

.quote {
    font-style: italic;
    text-align: center;
    font-size: 22px;
    color: var(--gold-light);
    margin: 40px 0;
    padding: 20px;
    border-left: 3px solid var(--gold);
    border-right: 3px solid var(--gold);
    background: rgba(212, 175, 55, 0.05);
}

/* Downloads Section */
.download-meta {
    font-family: monospace;
    font-size: 13px;
    color: var(--bronze);
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.download-action {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.download-action .btn {
    padding: 12px 28px;
    font-size: 15px;
}

.btn-disabled {
    background: transparent;
    color: var(--bronze);
    border: 2px dashed rgba(212, 175, 55, 0.35);
    cursor: not-allowed;
    opacity: 0.75;
}

.btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Step gating — locked/done states are only ever applied by downloads.js, so the page
   renders fully unlocked when JavaScript is unavailable. */
.download-intro {
    text-align: center;
    color: var(--bronze);
    font-size: 16px;
    font-style: italic;
    letter-spacing: 0.5px;
    max-width: 700px;
    margin: -35px auto 55px;
}

.download-step {
    display: inline-block;
    font-family: monospace;
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 20px;
    padding: 4px 14px;
    margin-bottom: 18px;
}

.download-done {
    display: none;
    margin-left: 10px;
    color: var(--gold-light);
}

.download-card.is-done .download-done {
    display: inline;
}

.download-card.is-done .download-step {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.12);
}

.download-card.is-locked {
    opacity: 0.55;
}

.download-card.is-locked:hover {
    transform: none;
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: none;
}

.download-locked-btn {
    display: none;
}

.download-card.is-locked .download-locked-btn {
    display: inline-block;
}

.download-card.is-locked .download-action .btn:not(.download-locked-btn) {
    display: none;
}

.download-lock {
    display: none;
    margin-top: 16px;
    line-height: 1.6;
    font-family: monospace;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--bronze);
}

.download-card.is-locked .download-lock {
    display: block;
}

.download-reset {
    display: none;
    text-align: center;
    margin: 70px auto 0;
}

.download-reset.is-available {
    display: block;
}

.download-reset-btn {
    display: inline-block;
    padding: 11px 26px;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 30px;
    color: var(--bronze);
    font-family: Georgia, serif;
    font-size: 13px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
}

.download-reset-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(212, 175, 55, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.15);
}

/* Customer access gate (payment wall) */
.access-panel {
    max-width: 760px;
    margin: -20px auto 65px;
    padding: 45px 40px;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 15px;
    text-align: center;
}

.access-seal {
    font-size: 30px;
    line-height: 1;
    margin-bottom: 20px;
    filter: grayscale(1) sepia(1) saturate(4) hue-rotate(-8deg);
}

.access-seal-open {
    color: var(--gold);
    filter: none;
    text-shadow: 0 0 18px rgba(212, 175, 55, 0.5);
}

.access-panel h3 {
    color: var(--gold);
    font-size: 20px;
    letter-spacing: 4px;
    margin-bottom: 18px;
}

.access-copy {
    max-width: 520px;
    margin: 0 auto;
    color: var(--text);
    font-size: 15px;
    line-height: 1.8;
    opacity: 0.85;
}

.access-form {
    margin-top: 32px;
}

.access-label {
    display: block;
    font-family: monospace;
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--bronze);
    margin-bottom: 12px;
}

.access-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.access-input {
    flex: 1 1 300px;
    max-width: 360px;
    padding: 14px 20px;
    background: rgba(10, 10, 10, 0.75);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    color: var(--gold-light);
    font-family: monospace;
    font-size: 15px;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
    transition: all 0.3s;
}

.access-input::placeholder {
    color: rgba(139, 115, 85, 0.6);
    letter-spacing: 2px;
}

.access-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.18);
}

.access-submit {
    padding: 14px 34px;
    font-size: 15px;
    letter-spacing: 2px;
    cursor: pointer;
}

.access-submit:disabled {
    opacity: 0.5;
    cursor: wait;
}

.access-status {
    min-height: 20px;
    margin-top: 16px;
    font-family: monospace;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--bronze);
}

.access-status.is-error {
    color: #c96a5a;
}

.access-status.is-ok {
    color: var(--gold-light);
}

.access-buy {
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.access-buy-link {
    display: inline-block;
    color: var(--gold);
    font-size: 14px;
    letter-spacing: 3px;
    text-decoration: none;
    transition: all 0.3s;
}

.access-buy-link:hover {
    color: var(--gold-light);
    text-shadow: 0 0 14px rgba(212, 175, 55, 0.45);
}

.access-buy-note {
    display: block;
    margin-top: 10px;
    color: var(--bronze);
    font-size: 13px;
    font-style: italic;
}

.access-panel.is-unlocked {
    padding: 30px 34px;
}

/* A class-level display beats the UA rule for [hidden], so restore it explicitly. */
.access-unlocked[hidden] {
    display: none;
}

.access-unlocked {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    text-align: left;
}

.access-unlocked .access-seal {
    margin-bottom: 0;
}

.access-unlocked-body {
    flex: 1 1 320px;
}

.access-unlocked h3 {
    margin-bottom: 8px;
}

.access-unlocked .access-copy {
    margin: 0;
    max-width: none;
}

.access-signout {
    padding: 9px 22px;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 30px;
    color: var(--bronze);
    font-family: Georgia, serif;
    font-size: 12px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
}

.access-signout:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(212, 175, 55, 0.08);
}

/* Behind the wall the whole grid reads as sealed, not just the individual steps. */
.download-grid.is-paywalled {
    opacity: 0.75;
}

@media (max-width: 600px) {
    .access-panel {
        padding: 35px 22px;
    }

    .access-unlocked {
        text-align: center;
        justify-content: center;
    }
}

/* Download Manager (admin) */
.admin-shell {
    max-width: 820px;
    margin: 0 auto;
}

.admin-gate,
.admin-block {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 15px;
    padding: 35px 30px;
    margin-bottom: 30px;
}

.admin-heading {
    font-size: 20px;
    color: var(--gold);
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.admin-gate-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.admin-field {
    margin-bottom: 22px;
}

.admin-row {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.admin-row .admin-field {
    flex: 1 1 180px;
}

.admin-label {
    display: block;
    font-family: monospace;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--bronze);
    margin-bottom: 8px;
}

.admin-label-spaced {
    margin-top: 18px;
}

.admin-input {
    width: 100%;
    padding: 13px 16px;
    background: rgba(10, 10, 10, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 8px;
    color: var(--text);
    font-family: Georgia, serif;
    font-size: 15px;
    transition: border-color 0.3s;
}

.admin-input:focus {
    outline: none;
    border-color: var(--gold);
}

.admin-textarea {
    resize: vertical;
    line-height: 1.6;
}

.admin-file {
    padding: 11px 14px;
    font-family: monospace;
    font-size: 13px;
}

.admin-gate-row .admin-input {
    flex: 1 1 260px;
    width: auto;
}

.admin-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    cursor: pointer;
}

.admin-check input {
    margin-top: 4px;
    accent-color: var(--gold);
    width: 16px;
    height: 16px;
}

.admin-note {
    font-size: 13px;
    line-height: 1.7;
    color: var(--bronze);
    margin-top: 12px;
}

.admin-note code {
    font-family: monospace;
    color: var(--gold);
}

.admin-note.is-error {
    color: #d98c6a;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.admin-actions .btn {
    padding: 12px 28px;
    font-size: 15px;
}

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.admin-item {
    position: relative;
    padding: 22px 150px 22px 22px;
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 10px;
    background: rgba(10, 10, 10, 0.5);
}

.admin-item-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    color: var(--gold);
    font-size: 17px;
}

.admin-badge {
    font-family: monospace;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--bronze);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 3px 10px;
}

.admin-item-meta {
    font-family: monospace;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--bronze);
    margin-top: 10px;
    word-break: break-all;
}

.admin-item-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
    margin-top: 12px;
}

.admin-remove {
    position: absolute;
    top: 22px;
    right: 22px;
    padding: 9px 20px;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 30px;
    color: var(--bronze);
    font-family: Georgia, serif;
    font-size: 12px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
}

.admin-remove:hover {
    border-color: #d98c6a;
    color: #d98c6a;
    background: rgba(217, 140, 106, 0.08);
}

.admin-status {
    min-height: 24px;
    text-align: center;
    font-family: monospace;
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--bronze);
}

.admin-status.is-ok {
    color: var(--gold-light);
}

.admin-status.is-error {
    color: #d98c6a;
}

/* Pacey Widget */
.pacey-launcher {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border: 2px solid var(--gold);
    border-radius: 30px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    color: var(--gold);
    font-family: Georgia, serif;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.25);
    transition: all 0.3s;
}

.pacey-launcher:hover {
    background: var(--gold);
    color: var(--bg);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.pacey-panel {
    position: fixed;
    bottom: 95px;
    right: 25px;
    z-index: 9000;
    width: 370px;
    max-width: calc(100vw - 50px);
    max-height: 70vh;
    display: none;
    flex-direction: column;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 15px;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 60px rgba(212, 175, 55, 0.2);
    overflow: hidden;
}

.pacey-panel.is-open {
    display: flex;
}

.pacey-header {
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.pacey-header h3 {
    font-size: 20px;
    background: linear-gradient(45deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pacey-badge {
    display: block;
    margin-top: 6px;
    font-family: monospace;
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--bronze);
    text-transform: uppercase;
}

.pacey-log {
    flex: 1;
    overflow-y: auto;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pacey-msg {
    font-size: 15px;
    line-height: 1.6;
    padding: 12px 15px;
    border-radius: 10px;
    max-width: 90%;
}

.pacey-msg-bot {
    align-self: flex-start;
    background: rgba(212, 175, 55, 0.07);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--text);
}

.pacey-msg-user {
    align-self: flex-end;
    background: rgba(212, 175, 55, 0.18);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: var(--gold-light);
}

.pacey-msg a {
    color: var(--gold);
}

.pacey-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 20px 14px;
}

.pacey-chip {
    padding: 7px 13px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 20px;
    background: transparent;
    color: var(--text);
    font-family: Georgia, serif;
    font-size: 13px;
    transition: all 0.3s;
}

.pacey-chip:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.pacey-form {
    display: flex;
    gap: 10px;
    padding: 14px 20px 18px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.pacey-input {
    flex: 1;
    padding: 11px 14px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 8px;
    background: rgba(212, 175, 55, 0.05);
    color: var(--gold-light);
    font-family: Georgia, serif;
    font-size: 15px;
}

.pacey-input:focus {
    outline: none;
    border-color: var(--gold);
}

.pacey-send {
    padding: 11px 18px;
    border: none;
    border-radius: 8px;
    background: var(--gold);
    color: var(--bg);
    font-family: Georgia, serif;
    font-weight: bold;
    font-size: 15px;
    transition: all 0.3s;
}

.pacey-send:hover {
    background: var(--gold-light);
}

/* Issued access codes */
.code-issued {
    margin: 24px 0 8px;
    padding: 20px 22px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 10px;
}

.code-issued-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-top: 12px;
}

.code-value {
    flex: 1 1 240px;
    font-family: monospace;
    font-size: 19px;
    letter-spacing: 3px;
    color: var(--gold-light);
    word-break: break-all;
}

.code-copy {
    flex: 0 0 auto;
}

.admin-item.is-revoked {
    opacity: 0.5;
}

.admin-item.is-revoked .admin-badge {
    color: #c96a5a;
    border-color: rgba(201, 106, 90, 0.4);
}

/* ==========================================================================
   Customer Payment & Stripe Pricing Tiers
   ========================================================================== */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto 60px;
    align-items: stretch;
}

.pricing-card {
    background: rgba(212, 175, 55, 0.05);
    padding: 40px 32px;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.22);
    display: flex;
    flex-direction: column;
    transition: all 0.35s ease;
    position: relative;
    backdrop-filter: blur(8px);
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.25);
}

.pricing-card.is-popular {
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.09) 0%, rgba(10, 10, 10, 0.95) 100%);
    border: 1.5px solid var(--gold);
    box-shadow: 0 0 35px rgba(212, 175, 55, 0.2);
}

.pricing-card.is-popular:hover {
    box-shadow: 0 14px 50px rgba(212, 175, 55, 0.35);
}

.pricing-card-header {
    margin-bottom: 20px;
}

.pricing-badge-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.pricing-step {
    font-family: monospace;
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 20px;
    padding: 3px 12px;
    text-transform: uppercase;
}

.pricing-badge {
    font-family: monospace;
    font-size: 11px;
    letter-spacing: 2px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold-light);
    border: 1px solid rgba(212, 175, 55, 0.35);
    text-transform: uppercase;
}

.pricing-badge.is-popular-badge {
    background: var(--gold);
    color: var(--bg);
    border-color: var(--gold-light);
    font-weight: bold;
}

.pricing-title {
    font-size: 24px;
    color: var(--gold);
    margin-bottom: 6px;
    font-weight: 700;
}

.pricing-tagline {
    font-family: monospace;
    font-size: 12px;
    letter-spacing: 1.5px;
    color: var(--bronze);
    text-transform: uppercase;
}

.pricing-cost-block {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 18px 0 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.pricing-price {
    font-size: 40px;
    font-weight: 900;
    color: var(--gold-light);
    background: linear-gradient(45deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.pricing-period {
    font-family: monospace;
    font-size: 12px;
    color: var(--bronze);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pricing-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 24px;
}

.pricing-features-wrap {
    flex: 1 1 auto;
    margin-bottom: 28px;
}

.pricing-features-label {
    font-family: monospace;
    font-size: 11px;
    letter-spacing: 2.5px;
    color: var(--bronze);
    text-transform: uppercase;
    margin-bottom: 14px;
}

.pricing-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
}

.pricing-check {
    color: var(--gold);
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
    line-height: 1.6;
}

.pricing-cta-wrap {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.pricing-btn {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    font-size: 15px;
    letter-spacing: 1.5px;
}

.pricing-btn-subtext {
    font-family: monospace;
    font-size: 11px;
    color: var(--bronze);
    letter-spacing: 0.5px;
}

/* Payment workflow */
.payment-workflow {
    margin: 80px auto 0;
    max-width: 1250px;
    text-align: center;
}

.payment-workflow-title {
    font-size: 30px;
    margin-bottom: 40px;
    background: linear-gradient(45deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

.workflow-step-num {
    font-family: monospace;
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 14px;
    text-transform: uppercase;
}

/* Stripe Customer & Invoicing Portal Panel */
.payment-portal-panel {
    max-width: 1250px;
    margin: 70px auto 0;
    padding: 38px 40px;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.payment-portal-left {
    display: flex;
    align-items: center;
    gap: 22px;
    flex: 1 1 450px;
}

.portal-seal {
    font-size: 32px;
    color: var(--gold);
    line-height: 1;
}

.portal-info h4 {
    color: var(--gold);
    font-size: 17px;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.portal-info p {
    color: var(--text);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

.payment-portal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.portal-btn {
    padding: 12px 26px;
    font-size: 14px;
    letter-spacing: 1px;
}

/* Stripe Trust & Guarantee Bar */
.stripe-trust-bar {
    max-width: 1250px;
    margin: 60px auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 25px;
    padding: 28px 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.18);
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.trust-icon {
    font-size: 24px;
    color: var(--gold);
    line-height: 1;
}

.trust-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.trust-text strong {
    color: var(--gold-light);
    font-size: 14px;
    font-family: Georgia, serif;
}

.trust-text span {
    color: var(--bronze);
    font-size: 12px;
    font-family: monospace;
    letter-spacing: 0.5px;
}

.payment-banner {
    max-width: 900px;
    margin: -15px auto 40px;
    padding: 15px 22px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 13px;
    letter-spacing: 1px;
    text-align: center;
}

.payment-banner.is-cancelled {
    background: rgba(201, 106, 90, 0.12);
    border: 1px solid rgba(201, 106, 90, 0.4);
    color: #d98c6a;
}

.payment-banner.is-info {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--gold-light);
}

.payment-footer-nav {
    text-align: center;
    margin-top: 50px;
    color: var(--bronze);
    font-size: 15px;
}

.inline-gold-link {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px dashed var(--gold);
    transition: all 0.2s;
}

.inline-gold-link:hover {
    color: var(--gold-light);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

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

    .payment-portal-panel {
        text-align: center;
        justify-content: center;
        padding: 30px 24px;
    }

    .payment-portal-left {
        flex-direction: column;
        text-align: center;
    }

    .payment-portal-actions {
        justify-content: center;
    }

    .stripe-trust-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .trust-item {
        flex-direction: column;
        text-align: center;
    }

    .trust-text {
        text-align: center;
    }
}

