/* ============================================
   Nation SMP - Main Stylesheet
   Dragon network powered by Shadowra
   ============================================ */

/* --- CSS Variables --- */
:root {
    --bg-primary: #0d0b1a;
    --bg-secondary: #13102a;
    --bg-card: #1a1635;
    --bg-card-hover: #221e42;
    --bg-input: #0f0d20;

    --text-primary: #e8e4f0;
    --text-secondary: #9d97b0;
    --text-muted: #6b6580;

    --accent-purple: #8b5cf6;
    --accent-purple-dark: #6d28d9;
    --accent-purple-light: #a78bfa;
    --accent-gold: #f59e0b;
    --accent-gold-light: #fbbf24;
    --accent-red: #ef4444;
    --accent-green: #22c55e;
    --accent-blue: #3b82f6;

    --gradient-purple: linear-gradient(135deg, #6d28d9, #8b5cf6, #a78bfa);
    --gradient-gold: linear-gradient(135deg, #d97706, #f59e0b, #fbbf24);
    --gradient-dark: linear-gradient(180deg, #0d0b1a 0%, #13102a 100%);

    --border-color: #2a2550;
    --border-glow: rgba(139, 92, 246, 0.3);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.15);

    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

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

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

img {
    max-width: 100%;
    height: auto;
}

code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    background: var(--bg-input);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
    color: var(--accent-gold-light);
}

ul {
    list-style: none;
}

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 11, 26, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.nav-brand:hover {
    color: var(--accent-purple-light);
}

.nav-logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.12);
}

.nav-links a.active {
    color: var(--accent-purple-light);
}

.nav-discord {
    display: flex !important;
    align-items: center;
    gap: 6px;
    background: #5865F2 !important;
    color: white !important;
    border-radius: var(--radius-sm) !important;
}

.nav-discord:hover {
    background: #4752c4 !important;
    color: white !important;
}

.discord-icon {
    width: 18px;
    height: 18px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-purple);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.45);
    color: white;
}

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

.btn-secondary:hover {
    background: rgba(139, 92, 246, 0.12);
    color: var(--accent-purple-light);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

.btn-copy {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-copy:hover {
    background: rgba(139, 92, 246, 0.3);
    color: var(--text-primary);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: radial-gradient(ellipse at center, #1a1040 0%, #0d0b1a 70%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><defs><pattern id="p" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="1" cy="1" r="0.5" fill="rgba(139,92,246,0.08)"/></pattern></defs><rect width="100" height="100" fill="url(%23p)"/></svg>');
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 120px 24px 60px;
    max-width: 800px;
}

.hero-logo {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-xl);
    margin-bottom: 24px;
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.2);
    animation: float 6s ease-in-out infinite;
}

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

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 12px;
    line-height: 1.2;
}

.text-accent {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.hero-server-ip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    padding: 12px 24px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    margin-bottom: 32px;
    position: relative;
}

.server-ip-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.server-ip {
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 12px;
    transition: background 0.2s;
    border-radius: var(--radius-sm);
}

.server-ip:hover {
    background: rgba(139, 92, 246, 0.15);
}

.copy-toast {
    position: absolute;
    top: -30px;
    right: 50%;
    transform: translateX(50%);
    background: var(--accent-green);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.copy-toast.show {
    opacity: 1;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Page Header --- */
.page-header {
    padding: 120px 0 40px;
    text-align: center;
    background: radial-gradient(ellipse at center top, #1a1040 0%, var(--bg-primary) 70%);
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* --- Sections --- */
.section {
    padding: 60px 0;
}

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

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* --- Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 48px;
    height: 48px;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--accent-purple-light);
}

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

/* --- Server Status --- */
.status-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-purple);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.status-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.status-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.status-main {
    display: flex;
    align-items: center;
    gap: 20px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}

.status-dot.online {
    background: var(--accent-green);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
    animation: pulse-green 2s ease-in-out infinite;
}

.status-dot.offline {
    background: var(--accent-red);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 12px rgba(34, 197, 94, 0.5); }
    50% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.8); }
}

.status-text {
    font-weight: 600;
    font-size: 0.95rem;
}

.status-text.online { color: var(--accent-green); }
.status-text.offline { color: var(--accent-red); }

.status-server-info h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--accent-gold-light);
}

.status-motd {
    color: var(--text-secondary);
    margin-top: 4px;
}

.status-version {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

.status-players-card h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.player-count {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 12px;
}

.player-count-current {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-green);
    line-height: 1;
}

.player-count-sep {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.player-count-max {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.player-bar-container {
    width: 100%;
    height: 8px;
    background: var(--bg-input);
    border-radius: 4px;
    overflow: hidden;
}

.player-bar {
    height: 100%;
    background: var(--gradient-purple);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.status-connect {
    text-align: center;
}

.status-connect h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.connect-ip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.connect-ip code {
    font-size: 1rem;
    padding: 6px 14px;
}

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

.player-list-section {
    margin-top: 20px;
}

.player-list-section h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.player-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.player-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    transition: background 0.2s;
}

.player-item:hover {
    background: var(--bg-card-hover);
}

.player-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    image-rendering: pixelated;
}

.player-name {
    font-weight: 500;
    color: var(--text-primary);
}

/* Home status widget */
.home-status-widget {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.home-status-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.home-status-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.home-status-right {
    text-align: right;
}

/* --- Store --- */
.store-categories {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.store-cat-btn {
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: var(--radius-xl);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.store-cat-btn:hover,
.store-cat-btn.active {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: white;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.store-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.store-item:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.store-item.featured {
    border-color: var(--accent-gold);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.15);
}

.store-item.hidden {
    display: none;
}

.store-item-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 10px;
    border-radius: var(--radius-xl);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-common { background: #374151; color: #9ca3af; }
.badge-rare { background: rgba(59, 130, 246, 0.2); color: var(--accent-blue); }
.badge-epic { background: rgba(139, 92, 246, 0.2); color: var(--accent-purple-light); }
.badge-legendary { background: rgba(245, 158, 11, 0.2); color: var(--accent-gold-light); }

.store-item-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.store-item h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.store-item > p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.store-item-perks {
    flex: 1;
    margin-bottom: 16px;
}

.store-item-perks li {
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.store-item-perks li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--accent-purple-light);
    font-size: 0.7rem;
}

.store-item-price {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-gold-light);
    margin-bottom: 0;
}

/* --- Coin Wallet --- */
.coin-wallet {
    background: var(--bg-card);
    border: 1px solid var(--accent-gold);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    margin-bottom: 24px;
}

.coin-wallet-login {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.coin-icon {
    font-size: 1em;
}

/* Shadowra Coin icon — scales with text like emojis do */
.sc-icon,
.sc-icon-sm {
    width: 30px;
    height: 30px;
    vertical-align: -0.125em;
    image-rendering: pixelated;
    display: inline;
}

.coin-login-form {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.coin-login-form input {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    width: 200px;
    outline: none;
    transition: border-color 0.2s;
}

.coin-login-form input:focus {
    border-color: var(--accent-gold);
}

.coin-login-form input.input-error {
    border-color: var(--accent-red);
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.coin-wallet-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.coin-wallet-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.coin-wallet-user {
    font-weight: 600;
    color: var(--accent-gold-light);
    font-size: 1.1rem;
}

.coin-wallet-balance {
    display: flex;
    align-items: center;
    gap: 8px;
}

.coin-balance-amount {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold-light);
}

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

/* --- Store Item Prices & Actions --- */
.store-item-prices {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.store-item-coin-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-gold);
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-sm);
    padding: 4px 10px;
}

.store-item-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.btn-coin {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: #0d0b1a;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-coin:hover:not(:disabled) {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
    transform: translateY(-1px);
}

.btn-coin:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* --- Purchase Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--accent-gold);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.15);
}

.modal-box h3 {
    font-family: var(--font-heading);
    color: var(--accent-gold-light);
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.modal-balance {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 8px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.modal-status {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
    min-height: 1.4em;
}

.modal-status.success {
    color: var(--accent-green);
}

.modal-status.error {
    color: var(--accent-red);
}

.store-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.info-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.info-box h3 {
    font-family: var(--font-heading);
    color: var(--accent-purple-light);
    margin-bottom: 12px;
}

.info-box ol {
    padding-left: 20px;
    color: var(--text-secondary);
}

.info-box ol li {
    margin-bottom: 8px;
    list-style: decimal;
}

.info-box p {
    color: var(--text-secondary);
}

/* ============================================
   Auth Pages (Login / Register / Settings)
   ============================================ */

.auth-card {
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.auth-card-header {
    text-align: center;
    padding: 36px 32px 24px;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.08) 0%, transparent 100%);
}

.auth-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid var(--accent-purple);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.auth-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    image-rendering: pixelated;
}

.auth-card-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

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

/* --- Auth Steps (Register) --- */
.auth-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0 32px 24px;
}

.auth-step {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.auth-step.active {
    opacity: 1;
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s;
}

.auth-step.active .step-number {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: #fff;
}

.auth-step.completed .step-number {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: #fff;
}

.step-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.auth-step.active .step-label {
    color: var(--text-primary);
}

.auth-step-line {
    width: 40px;
    height: 2px;
    background: var(--border-color);
    margin: 0 8px;
    flex-shrink: 0;
}

/* --- Auth Form --- */
.auth-form {
    padding: 0 32px 28px;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-icon {
    margin-right: 4px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.form-group input.input-error {
    border-color: var(--accent-red);
}

.form-hint {
    display: block;
    margin-top: 4px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.password-toggle:hover {
    opacity: 1;
}

.password-strength {
    height: 4px;
    background: var(--bg-input);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
}

/* --- Minecraft Verification --- */
.mc-verify-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.mc-verify-avatar {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    image-rendering: pixelated;
}

.mc-verify-info {
    display: flex;
    flex-direction: column;
}

.mc-verify-info strong {
    color: var(--text-primary);
    font-size: 1.05rem;
}

.mc-verify-badge {
    color: var(--accent-green);
    font-size: 0.8rem;
    font-weight: 600;
}

.mc-verify-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.mc-mini-avatar {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    image-rendering: pixelated;
}

.mc-verify-mini span {
    font-weight: 600;
    color: var(--accent-purple-light);
}

.btn-link {
    background: none;
    border: none;
    color: var(--accent-purple-light);
    cursor: pointer;
    font-size: 0.85rem;
    margin-left: auto;
    padding: 0;
}

.btn-link:hover {
    color: var(--accent-gold-light);
    text-decoration: underline;
}

/* --- Auth Alert --- */
.auth-alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.auth-alert.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--accent-red);
}

.auth-alert.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--accent-green);
}

/* --- Auth Buttons --- */
.btn-full {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.spinner-sm {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

/* --- Auth Footer --- */
.auth-footer {
    text-align: center;
    padding: 16px 32px 24px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Auth Success (Register step 3) --- */
.auth-success {
    text-align: center;
    padding: 16px 0;
}

.auth-success-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.auth-success h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--accent-green);
    margin-bottom: 8px;
}

.auth-success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

/* --- Nav Auth --- */
.nav-auth-link {
    background: var(--accent-purple);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.nav-auth-link:hover {
    background: var(--accent-purple-dark);
    color: #fff !important;
    transform: translateY(-1px);
}

.nav-auth-user {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 6px 14px 6px 6px;
    border-radius: var(--radius-xl);
    transition: all 0.2s;
}

.nav-auth-user:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.2);
}

.nav-auth-avatar {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    image-rendering: pixelated;
}

.nav-auth-user span {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-primary);
}

/* --- Settings Page --- */
.settings-profile {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.settings-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    image-rendering: pixelated;
    border: 3px solid var(--accent-purple);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.settings-profile-info {
    flex: 1;
    min-width: 200px;
}

.settings-profile-info h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.settings-email {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.settings-meta {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 4px;
}

.settings-uuid {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.75rem;
}

.settings-coin-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-md);
    padding: 16px 24px;
}

.settings-coin-amount {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-gold-light);
}

.settings-coin-label {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.settings-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.settings-section h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--accent-purple-light);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.settings-form {
    /* matches auth form styling */
}

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

.settings-empty {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 16px 0;
}

.settings-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    color: var(--text-muted);
    padding: 16px 0;
}

/* --- Transaction List --- */
.transaction-list {
    max-height: 300px;
    overflow-y: auto;
}

.transaction-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(42, 37, 80, 0.5);
}

.transaction-row:last-child {
    border-bottom: none;
}

.transaction-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.transaction-desc {
    display: block;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.transaction-date {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.transaction-amount {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.transaction-amount.credit {
    color: var(--accent-green);
}

.transaction-amount.debit {
    color: var(--accent-red);
}

/* --- Coin wallet avatar in store --- */
.coin-wallet-avatar {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    image-rendering: pixelated;
}

/* --- Donate --- */
.donate-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

.donate-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.donate-intro h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.donate-intro p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.donate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
    margin-bottom: 60px;
}

.donate-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s;
}

.donate-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.donate-card-header {
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.donate-card-header.paypal {
    background: linear-gradient(135deg, #003087, #009cde);
    color: white;
}

.donate-card-header.bank {
    background: linear-gradient(135deg, #1a5276, #2e86c1);
    color: white;
}

.donate-card-header h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.donate-card-body {
    padding: 24px 28px;
}

.donate-card-body > p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.donate-amounts {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.donate-amount-btn {
    padding: 10px 20px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
    text-align: center;
    flex: 1;
    min-width: 60px;
}

.donate-amount-btn:hover {
    border-color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple-light);
}

.donate-amount-btn.popular {
    border-color: var(--accent-gold);
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-gold-light);
}

.bank-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bank-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.bank-row:last-child {
    border-bottom: none;
}

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

.bank-value {
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
}

.bank-value.iban {
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.bank-value.highlight {
    color: var(--accent-gold-light);
}

/* --- Donation Tiers --- */
.tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.tier-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    transition: all 0.3s;
}

.tier-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.tier-card.featured {
    border-color: var(--accent-gold);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.15);
}

.tier-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.tier-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.tier-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-gold-light);
    margin-bottom: 16px;
}

.tier-card ul {
    text-align: left;
}

.tier-card ul li {
    padding: 4px 0 4px 16px;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.tier-card ul li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--accent-purple-light);
    font-size: 0.7rem;
}

.tier-note {
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.82rem;
    color: var(--accent-purple-light);
    font-style: italic;
    text-align: center;
}

/* --- Legal / Impressum --- */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.legal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--accent-purple-light);
    margin-top: 28px;
    margin-bottom: 12px;
}

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

.legal-content h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-top: 20px;
    margin-bottom: 8px;
}

.legal-content p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* --- Footer --- */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 48px 0 24px;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-logo {
    width: 120px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

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

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--accent-purple-light);
}

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

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(13, 11, 26, 0.98);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border-color);
    }

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

    .nav-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-logo {
        width: 140px;
        height: 140px;
    }

    .status-grid {
        grid-template-columns: 1fr;
    }

    .status-main {
        flex-direction: column;
        text-align: center;
    }

    .store-grid {
        grid-template-columns: 1fr;
    }

    .coin-wallet-login {
        flex-direction: column;
        align-items: flex-start;
    }

    .coin-wallet-info {
        flex-direction: column;
        text-align: center;
    }

    .store-item-actions {
        flex-direction: column;
    }

    .settings-profile {
        flex-direction: column;
        text-align: center;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .auth-steps {
        padding: 0 16px 20px;
    }

    .step-label {
        display: none;
    }

    .auth-form {
        padding: 0 20px 24px;
    }

    .auth-success-actions {
        flex-direction: column;
    }

    .donate-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .tiers-grid {
        grid-template-columns: 1fr 1fr;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .tiers-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .donate-amounts {
        flex-direction: row;
    }
}

/* --- Server Status Cards Grid --- */
.server-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.2rem;
    margin-top: 1rem;
}

.server-status-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.server-status-card.online {
    border-color: rgba(34, 197, 94, 0.3);
}

.server-status-card.offline {
    border-color: rgba(239, 68, 68, 0.2);
    opacity: 0.75;
}

.server-card-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.server-card-header h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.server-card-icon {
    font-size: 1.4rem;
}

.server-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.server-card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.server-card-label {
    color: var(--text-muted);
}

.server-card-value {
    color: var(--text-secondary);
    font-weight: 500;
}

.server-card-value.online {
    color: var(--accent-green);
}

.server-card-value.offline {
    color: var(--accent-red);
}

.server-card-players {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border-color);
}

.server-player-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 0.2rem 0.5rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.player-avatar-sm {
    width: 16px;
    height: 16px;
    border-radius: 2px;
}

/* --- Store Status Banner --- */
.store-status-banner {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.store-status-banner.online {
    border-color: rgba(34, 197, 94, 0.3);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05), var(--bg-card));
}

.store-status-banner.offline {
    border-color: rgba(239, 68, 68, 0.2);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), var(--bg-card));
}

.store-status-loading {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.store-banner-main {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    flex-wrap: wrap;
}

.store-banner-players {
    color: var(--text-muted);
    margin-left: auto;
    font-size: 0.85rem;
}

.store-banner-servers {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.store-banner-servers .status-dot {
    display: inline-block;
    border-radius: 50%;
    vertical-align: middle;
}

.store-banner-servers .status-dot.online {
    background: var(--accent-green);
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

.store-banner-servers .status-dot.offline {
    background: var(--accent-red);
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.3);
}

.banner-sep {
    color: var(--text-muted);
}

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

    .store-banner-players {
        margin-left: 0;
        width: 100%;
    }
}
