/* ============================================================================
   Human Nature - Dark Colonial Theme
   ============================================================================ */

:root {
    --bg-primary: #0d0f13;
    --bg-secondary: #161a22;
    --bg-card: #1c2028;
    --bg-input: #12151b;
    --border: #2a2f3a;
    --border-focus: #8b7355;
    --text-primary: #e8e0d4;
    --text-secondary: #9a8e7e;
    --text-muted: #6b6158;
    --accent: #c9a96e;
    --accent-hover: #dbbe82;
    --accent-dark: #8b7355;
    --danger: #b34040;
    --danger-hover: #cc4c4c;
    --success: #4a8c5c;
    --success-hover: #5aa06c;
    --gold: #d4a843;
    --shadow: rgba(0, 0, 0, 0.5);
}

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

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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* Background layer */
.page-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('../images/starfield.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
}

/* Layout */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.page-landing .container {
    max-width: 1140px;
}

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

.main-content {
    flex: 1;
    padding: 2rem 0;
}

/* ============================================================================
   Header / Navigation
   ============================================================================ */

.site-header {
    background-color: rgba(13, 15, 19, 0.95);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    backdrop-filter: blur(10px);
    z-index: 1000;
}

/* Fixed transparent header on landing page only */
.page-landing .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(13, 15, 19, 0.6);
    border-bottom-color: transparent;
    transition: background-color 0.3s, border-color 0.3s;
}

.page-landing .site-header.header-scrolled {
    background-color: rgba(13, 15, 19, 0.95);
    border-bottom-color: var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.75rem;
}

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

.site-logo span {
    font-size: 1.25rem;
    color: var(--accent);
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Hamburger toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: transform 0.3s, opacity 0.3s;
}

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

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

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

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

/* ============================================================================
   Hero
   ============================================================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(13, 15, 19, 0.4) 0%,
        rgba(13, 15, 19, 0.2) 40%,
        rgba(13, 15, 19, 0.6) 80%,
        rgba(13, 15, 19, 1) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem 1.5rem;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(201, 169, 110, 0.2);
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 0.5rem 2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(201, 169, 110, 0.3), inset 0 0 20px rgba(201, 169, 110, 0.1);
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 20px rgba(201, 169, 110, 0.3), inset 0 0 20px rgba(201, 169, 110, 0.1); }
    50% { box-shadow: 0 0 30px rgba(201, 169, 110, 0.5), inset 0 0 25px rgba(201, 169, 110, 0.15); }
}

.hero-logo {
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto 1.5rem;
    filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.6));
}

.hero-title {
    font-size: 3.5rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
}

.hero-tagline {
    color: #fff;
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-cta-text {
    color: #fff;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

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

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    opacity: 0.6;
    animation: bounce 2s infinite;
    z-index: 1;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================================
   Sections (shared)
   ============================================================================ */

.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.section-divider {
    width: 60px;
    height: 2px;
    background: var(--accent);
    margin: 0 auto 1.25rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
    font-style: italic;
}

/* ============================================================================
   About
   ============================================================================ */

.section-about {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-text strong {
    color: var(--accent);
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ============================================================================
   Features
   ============================================================================ */

.section-features {
    background-color: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s;
}

.feature-card:hover {
    border-color: var(--accent-dark);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.25rem;
    color: var(--accent);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--accent);
    stroke-width: 1.5;
}

.feature-card h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================================================
   World Showcase (Cities)
   ============================================================================ */

.section-world {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.world-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.city-card {
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    transition: border-color 0.3s, transform 0.3s;
}

.city-card:hover {
    border-color: var(--accent-dark);
    transform: translateY(-4px);
}

.city-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.city-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.city-card:hover .city-image img {
    transform: scale(1.05);
}

.city-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 15, 19, 0.8) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.city-label {
    color: var(--accent);
    font-size: 1.25rem;
    letter-spacing: 1px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.city-info {
    padding: 1.25rem 1.5rem;
}

.city-info h3 {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.city-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================================================
   Screenshots
   ============================================================================ */

.section-screenshots {
    background-color: var(--bg-primary);
    padding-bottom: 3rem;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.screenshot {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: border-color 0.3s;
}

.screenshot:hover {
    border-color: var(--accent-dark);
}

.screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================================================
   Founders Packs
   ============================================================================ */

.section-founders {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.founders-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
}

.founder-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    transition: border-color 0.3s, transform 0.3s;
}

.founder-card:hover {
    border-color: var(--accent-dark);
    transform: translateY(-4px);
}

.founder-featured {
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: 0 8px 40px rgba(201, 169, 110, 0.15);
}

.founder-featured:hover {
    border-color: var(--accent-hover);
    transform: scale(1.05) translateY(-4px);
}

.founder-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent);
    color: var(--bg-primary);
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    white-space: nowrap;
}

.founder-tier {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.founder-price {
    margin-bottom: 1.5rem;
}

.price-amount {
    font-size: 2.5rem;
    color: var(--text-primary);
    font-weight: bold;
}

.founder-perks {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.founder-perks li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(42, 47, 58, 0.5);
    padding-left: 1.75rem;
    position: relative;
}

.founder-perks li:last-child {
    border-bottom: none;
}

.perk-yes::before,
.perk-no::before {
    position: absolute;
    left: 0;
    font-size: 0.85rem;
}

.perk-yes {
    color: var(--text-secondary);
}

.perk-yes::before {
    content: "\2713";
    color: var(--success);
}

.perk-no {
    color: var(--text-muted);
}

.perk-no::before {
    content: "\2014";
    color: var(--text-muted);
}

/* ============================================================================
   Checkout
   ============================================================================ */

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    max-width: 860px;
    margin: 1rem auto;
    align-items: start;
}

.checkout-pack-name {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.checkout-pack-price {
    font-size: 2.25rem;
    color: var(--text-primary);
    font-weight: bold;
    margin-bottom: 1.5rem;
}

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

.checkout-perks li {
    padding: 0.45rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(42, 47, 58, 0.4);
}

.checkout-perks li:last-child {
    border-bottom: none;
}

.checkout-perks li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--success);
    font-size: 0.85rem;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: bold;
}

.square-card-field {
    min-height: 46px;
    background-color: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
}

.checkout-secure-note {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    justify-content: center;
    margin-top: 1.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   Final CTA
   ============================================================================ */

.section-cta {
    background-color: var(--bg-primary);
    padding: 5rem 0;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.cta-content h2 {
    font-size: 1.75rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================================
   Footer
   ============================================================================ */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    background-color: var(--bg-secondary);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo {
    height: 32px;
    width: auto;
    opacity: 0.7;
}

.footer-name {
    color: var(--accent);
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

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

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

.footer-copy {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ============================================================================
   Fade-in Animation
   ============================================================================ */

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children in grids */
.features-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.features-grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.features-grid .fade-in:nth-child(4) { transition-delay: 0.3s; }
.features-grid .fade-in:nth-child(5) { transition-delay: 0.4s; }
.features-grid .fade-in:nth-child(6) { transition-delay: 0.5s; }

.founders-grid .fade-in:nth-child(2) { transition-delay: 0.15s; }
.founders-grid .fade-in:nth-child(3) { transition-delay: 0.3s; }

.world-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.world-grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.world-grid .fade-in:nth-child(4) { transition-delay: 0.3s; }

/* ============================================================================
   Typography
   ============================================================================ */

h1, h2, h3, h4 {
    color: var(--text-primary);
    font-weight: normal;
    letter-spacing: 0.5px;
}

h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* ============================================================================
   Cards
   ============================================================================ */

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.card-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.card-header h2 {
    margin-bottom: 0;
    color: var(--accent);
}

/* ============================================================================
   Forms
   ============================================================================ */

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.form-control {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background-color: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--border-focus);
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239a8e7e' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}

select.form-control option {
    background-color: #1c2028;
    color: #e8e0d4;
}

/* ============================================================================
   Buttons
   ============================================================================ */

.btn {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
}

.btn-lg {
    padding: 0.9rem 2.5rem;
    font-size: 1.05rem;
}

.btn-primary {
    background-color: var(--accent-dark);
    color: var(--text-primary);
    border-color: var(--accent);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--text-secondary);
    border-color: var(--border);
}

.btn-secondary:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.btn-danger {
    background-color: var(--danger);
    color: var(--text-primary);
    border-color: var(--danger);
}

.btn-danger:hover {
    background-color: var(--danger-hover);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

.nav-links .btn-register,
.btn-register {
    color: #111 !important;
    background-color: var(--accent);
    border-color: var(--accent);
    font-weight: bold;
}

.nav-links .btn-register:hover,
.btn-register:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #111 !important;
}

/* ============================================================================
   Alerts
   ============================================================================ */

.alert {
    padding: 0.85rem 1rem;
    border-radius: 4px;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    border: 1px solid;
}

.alert-error {
    background-color: rgba(179, 64, 64, 0.15);
    border-color: var(--danger);
    color: #e07070;
}

.alert-success {
    background-color: rgba(74, 140, 92, 0.15);
    border-color: var(--success);
    color: #7acc8e;
}

.alert-info {
    background-color: rgba(139, 115, 85, 0.15);
    border-color: var(--accent-dark);
    color: var(--accent);
}

/* ============================================================================
   Landing page (old — kept for other pages referencing these classes)
   ============================================================================ */

.landing-hero {
    text-align: center;
    padding: 6rem 0 4rem;
}

.landing-hero .logo-large {
    max-width: 280px;
    height: auto;
    margin-bottom: 1.5rem;
}

.landing-hero h1 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.landing-hero .tagline {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    font-style: italic;
}

.landing-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.landing-actions .btn {
    min-width: 160px;
    padding: 0.8rem 2rem;
    font-size: 1rem;
}

/* ============================================================================
   Auth forms
   ============================================================================ */

.auth-container {
    max-width: 440px;
    margin: 3rem auto;
}

.auth-container .card {
    padding: 2.5rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.25rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================================================
   Account Hero Banner
   ============================================================================ */

.account-hero {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.account-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.account-hero-name {
    font-size: 2rem;
    color: var(--text-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.account-hero-badge {
    display: inline-block;
    padding: 0.3rem 1.25rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
    border: 1px solid var(--accent-dark);
    color: var(--accent);
    background-color: rgba(201, 169, 110, 0.1);
}

.account-badge-9 {
    border-color: var(--danger);
    color: #e07070;
    background-color: rgba(179, 64, 64, 0.15);
}

.account-hero-stats {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}

.account-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.account-hero-stat:first-child {
    justify-self: end;
}

.account-hero-stat:last-child {
    justify-self: start;
}

.account-hero-stat-value {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--text-primary);
}

.account-hero-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.account-hero-divider {
    width: 1px;
    height: 2.5rem;
    background-color: var(--border);
}

@media (max-width: 480px) {
    .account-hero-name {
        font-size: 1.4rem;
    }

    .account-hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .account-hero-stat:first-child,
    .account-hero-stat:last-child {
        justify-self: center;
    }

    .account-hero-divider {
        width: 60px;
        height: 1px;
    }
}

/* ============================================================================
   Dashboard
   ============================================================================ */

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.5rem;
    text-align: center;
}

.stat-card .stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.stat-card .stat-value {
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: bold;
}

.license-display {
    background-color: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.license-display .reveal-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8rem;
    white-space: nowrap;
    transition: all 0.2s;
}

.license-display .reveal-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ============================================================================
   Store
   ============================================================================ */

.token-packages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.token-package {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: border-color 0.2s;
}

.token-package:hover {
    border-color: var(--accent);
}

.token-package .amount {
    font-size: 2rem;
    color: var(--gold);
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.token-package .label {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.token-package .price {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

/* ============================================================================
   Tables
   ============================================================================ */

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 0.65rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

table th {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: normal;
}

table td {
    font-size: 0.9rem;
}

table tbody tr:hover {
    background-color: rgba(201, 169, 110, 0.05);
}

/* ============================================================================
   Utility
   ============================================================================ */

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-gold { color: var(--gold); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ============================================================================
   Responsive
   ============================================================================ */

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .founders-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .founder-featured {
        transform: scale(1.02);
    }

    .founder-featured:hover {
        transform: scale(1.02) translateY(-4px);
    }
}

@media (max-width: 768px) {
    /* Nav */
    .nav-toggle {
        display: flex;
    }

    .nav-main {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--bg-secondary);
        border-left: 1px solid var(--border);
        transition: right 0.3s;
        z-index: 1000;
        padding: 5rem 1.5rem 2rem;
        overflow-y: auto;
    }

    .nav-main.nav-open {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border);
        font-size: 1rem;
    }

    .nav-links .btn {
        margin-top: 0.5rem;
        text-align: center;
    }

    /* Hero */
    .hero-title {
        font-size: 2rem;
        letter-spacing: 3px;
    }

    .hero-logo {
        max-width: 200px;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: -1;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    /* World */
    .world-grid {
        grid-template-columns: 1fr;
    }

    /* Screenshots */
    .screenshots-grid {
        grid-template-columns: 1fr;
    }

    /* Founders */
    .founders-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .founder-featured {
        transform: none;
        order: -1;
    }

    .founder-featured:hover {
        transform: translateY(-4px);
    }

    /* Dashboard */
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    /* Store */
    .token-packages {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Old landing */
    .landing-hero h1 {
        font-size: 1.8rem;
    }

    .landing-actions {
        flex-direction: column;
        align-items: center;
    }

    /* Section spacing */
    .section {
        padding: 3.5rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
        letter-spacing: 2px;
    }

    .hero-badge {
        font-size: 0.7rem;
    }

    .hero-logo {
        max-width: 160px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .price-amount {
        font-size: 2rem;
    }

    .cta-content {
        padding: 2rem 1.25rem;
    }
}

/* ============================================================================
   Modals
   ============================================================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    max-width: 440px;
    width: 90%;
}

.modal-content h3 {
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* ============================================================================
   Account Change Buttons
   ============================================================================ */

.account-field-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.account-field-row .form-control {
    flex: 1;
    cursor: default;
}

.btn-change {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.3rem 0.75rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: inherit;
    white-space: nowrap;
    transition: all 0.2s;
}

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

.modal-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}
