:root {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-card: #1e2a45;
    --bg-input: #0f0f1a;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #00d4aa;
    --accent-hover: #00b894;
    --accent-glow: rgba(0, 212, 170, 0.3);
    --gold: #fbbf24;
    --gold-hover: #f59e0b;
    --gold-glow: rgba(251, 191, 36, 0.3);
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --success: #22c55e;
    --warning: #f59e0b;
    --info: #3b82f6;
    --border-color: #2d3a52;
    --border-light: #374151;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 20px var(--accent-glow);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-pixel: 'Press Start 2P', monospace;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --navbar-height: 64px;
    --container-max: 1200px;
    --container-wide: 1400px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

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

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

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

ul, ol {
    list-style: none;
}

input, textarea, select, button {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    border: none;
    background: none;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 700;
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-wide {
    max-width: var(--container-wide);
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.flex-wrap {
    flex-wrap: wrap;
}

.flex-col {
    flex-direction: column;
}

.gap-sm { gap: 0.5rem; }
.gap-md { gap: 1rem; }
.gap-lg { gap: 1.5rem; }
.gap-xl { gap: 2rem; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-accent { color: var(--accent); }
.text-gold { color: var(--gold); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }

.font-pixel {
    font-family: var(--font-pixel);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.w-full { width: 100%; }
.hidden { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.announcement-bar {
    background: linear-gradient(90deg, var(--accent), var(--gold), var(--accent));
    background-size: 200% 100%;
    animation: gradientShift 8s ease infinite;
    color: #000;
    font-size: 0.85rem;
    font-weight: 600;
    overflow: hidden;
    height: 32px;
    line-height: 32px;
    position: relative;
    z-index: 1001;
}

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

.announcement-scroll {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: scrollAnnouncement 30s linear infinite;
    gap: 3rem;
    padding-left: 100%;
}

@keyframes scrollAnnouncement {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.announcement-item {
    padding: 0 1rem;
    flex-shrink: 0;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background var(--transition-normal), box-shadow var(--transition-normal);
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
}

.nav-container {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

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

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.nav-logo-img {
    height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
}

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

.nav-link {
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
    background: rgba(0, 212, 170, 0.1);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.theme-switcher {
    display: flex;
    gap: 0.25rem;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    padding: 2px;
}

.theme-btn {
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
    background: transparent;
    color: var(--text-secondary);
}

.theme-btn.active,
.theme-btn:hover {
    background: var(--accent);
    color: #000;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.user-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.admin-link {
    background: var(--gold);
    color: #000;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
}

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

.logout-link:hover {
    color: var(--danger);
}

.nav-btn {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.pixel-btn {
    background: var(--accent);
    color: #000;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
    transition: all var(--transition-fast);
}

.pixel-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
    color: #000;
}

.pixel-btn:active {
    transform: translate(4px, 4px);
    box-shadow: none;
}

.pixel-btn-gold {
    background: var(--gold);
    color: #000;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
    transition: all var(--transition-fast);
}

.pixel-btn-gold:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
    color: #000;
}

.pixel-btn-gold:active {
    transform: translate(4px, 4px);
    box-shadow: none;
}

.main-content {
    padding-top: calc(var(--navbar-height) + 1rem);
    min-height: calc(100vh - 200px);
    position: relative;
    z-index: 1;
}

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition-normal);
}

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

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-body {
    flex: 1;
}

.card-footer {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.card-glow {
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.card-glass {
    background: rgba(30, 42, 69, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    user-select: none;
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 0.8rem 1.75rem;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 15px var(--accent-glow);
    color: #000;
}

.btn-gold {
    background: var(--gold);
    color: #000;
}

.btn-gold:hover {
    background: var(--gold-hover);
    box-shadow: 0 0 15px var(--gold-glow);
    color: #000;
}

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

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

.btn-outline {
    border: 1px solid var(--accent);
    color: var(--accent);
    background: transparent;
}

.btn-outline:hover {
    background: var(--accent);
    color: #000;
}

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

.btn-ghost:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

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

.form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.65rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-select {
    cursor: pointer;
    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='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-error {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.form-hint {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

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

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.form-file {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.form-file:hover {
    border-color: var(--accent);
    background: rgba(0, 212, 170, 0.05);
}

.form-file input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.form-file-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th {
    background: var(--bg-secondary);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    border-bottom: 2px solid var(--border-color);
}

.data-table td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.data-table tbody tr:hover {
    background: rgba(0, 212, 170, 0.05);
}

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

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 2rem;
}

.pagination-btn {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

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

.pagination-btn.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

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

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

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-normal);
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: all var(--transition-fast);
}

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

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

.hero-section {
    text-align: center;
    padding: 4rem 0 3rem;
    position: relative;
}

.hero-title {
    font-family: var(--font-pixel);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroGlow 3s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.3); }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ip {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-pixel);
    font-size: 1rem;
    color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
    margin-bottom: 2rem;
}

.hero-ip .copy-btn {
    background: var(--accent);
    color: #000;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    cursor: pointer;
    font-weight: 700;
    transition: all var(--transition-fast);
}

.hero-ip .copy-btn:hover {
    background: var(--accent-hover);
}

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

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-family: var(--font-pixel);
    font-size: 1.5rem;
    color: var(--accent);
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.bubble-message {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    position: relative;
    margin-bottom: 1rem;
}

.bubble-message::before {
    content: '';
    position: absolute;
    left: 20px;
    bottom: -8px;
    width: 16px;
    height: 16px;
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transform: rotate(45deg);
}

.bubble-message.bubble-right {
    margin-left: 3rem;
    background: rgba(0, 212, 170, 0.1);
    border-color: var(--accent);
}

.bubble-message.bubble-right::before {
    left: auto;
    right: 20px;
    border-right: none;
    border-bottom: none;
    border-left: 1px solid var(--accent);
    border-top: 1px solid var(--accent);
}

.bubble-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.bubble-author img {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    image-rendering: pixelated;
}

.bubble-author-name {
    font-weight: 600;
    font-size: 0.85rem;
}

.bubble-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: auto;
}

.bubble-content {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.bubble-reply {
    margin-left: 2rem;
    margin-top: 0.75rem;
    padding-left: 1rem;
    border-left: 2px solid var(--border-color);
}

.forum-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    overflow: hidden;
}

.forum-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.forum-section-header:hover {
    background: rgba(0, 212, 170, 0.05);
}

.forum-section-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.forum-section-info {
    flex: 1;
}

.forum-section-title {
    font-weight: 700;
    font-size: 1rem;
}

.forum-section-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.forum-section-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.forum-thread {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.forum-thread:hover {
    background: rgba(0, 212, 170, 0.03);
}

.forum-thread:last-child {
    border-bottom: none;
}

.forum-thread-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    image-rendering: pixelated;
    flex-shrink: 0;
}

.forum-thread-info {
    flex: 1;
    min-width: 0;
}

.forum-thread-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.forum-thread-title:hover {
    color: var(--accent);
}

.forum-thread-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.forum-thread-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.thread-tag {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
}

.thread-tag-pin {
    background: var(--gold);
    color: #000;
}

.thread-tag-hot {
    background: var(--danger);
    color: #fff;
}

.thread-tag-solved {
    background: var(--success);
    color: #fff;
}

/* 论坛精致样式 */
.forum-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.forum-section:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.forum-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.forum-section-header:hover {
    background: rgba(0, 212, 170, 0.08);
}

.forum-section-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.forum-section-info {
    flex: 1;
    min-width: 0;
}

.forum-section-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.forum-section-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.forum-section-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: right;
    flex-shrink: 0;
}

.forum-section-stats span {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.forum-section-stats strong {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
}

.forum-thread {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    position: relative;
}

.forum-thread:last-child {
    border-bottom: none;
}

.forum-thread:hover {
    background: rgba(0, 212, 170, 0.05);
}

.forum-thread-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    image-rendering: pixelated;
    flex-shrink: 0;
    border: 2px solid var(--border-color);
    transition: all var(--transition-normal);
}

.forum-thread:hover .forum-thread-avatar {
    border-color: var(--accent);
    transform: scale(1.1);
}

.forum-thread-info {
    flex: 1;
    min-width: 0;
}

.forum-thread-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--transition-fast);
}

.forum-thread-title:hover {
    color: var(--accent);
}

.forum-thread-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    flex-wrap: wrap;
}

.forum-thread-meta a {
    color: var(--text-muted);
    text-decoration: none;
}

.forum-thread-meta a:hover {
    color: var(--accent);
}

.forum-thread-stats {
    display: flex;
    gap: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.forum-thread-stats span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* 帖子详情页样式 */
.post-header {
    margin-bottom: 1.5rem;
}

.post-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.post-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    image-rendering: pixelated;
    border: 2px solid var(--border-color);
}

.post-author-name {
    font-weight: 600;
    color: var(--text-primary);
}

.post-info {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.post-content {
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 1rem;
    padding: 1rem 0;
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.post-tag {
    padding: 0.35rem 0.75rem;
    background: rgba(0, 212, 170, 0.1);
    color: var(--accent);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
}

.post-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.post-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.post-action-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 212, 170, 0.05);
}

/* 评论样式 */
.comment-section {
    margin-top: 2rem;
}

.comment-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all var(--transition-normal);
}

.comment:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    image-rendering: pixelated;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

.comment-author {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.comment-content {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

.comment-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* 回复框样式 */
.reply-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 2rem;
}

.reply-box-title {
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reply-textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    resize: vertical;
    transition: all var(--transition-fast);
}

.reply-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.reply-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .forum-section-header {
        flex-wrap: wrap;
        padding: 1rem;
    }
    
    .forum-section-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .forum-section-stats {
        width: 100%;
        justify-content: space-around;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--border-color);
    }
    
    .forum-thread {
        padding: 0.85rem 1rem;
        flex-wrap: wrap;
    }
    
    .forum-thread-avatar {
        width: 36px;
        height: 36px;
    }
    
    .forum-thread-stats {
        width: 100%;
        justify-content: flex-end;
        margin-top: 0.5rem;
    }
    
    .post-title {
        font-size: 1.35rem;
    }
}

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

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/10;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.gallery-item:hover {
    transform: scale(1.02);
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%, rgba(0,0,0,0.8));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-title {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.gallery-item-author {
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.leaderboard-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.leaderboard-tab {
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.leaderboard-tab:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.leaderboard-tab.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    transition: all var(--transition-fast);
}

.leaderboard-item:hover {
    border-color: var(--accent);
    transform: translateX(4px);
}

.leaderboard-rank {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.leaderboard-rank.gold {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

.leaderboard-rank.silver {
    background: linear-gradient(135deg, #d1d5db, #9ca3af);
    color: #000;
    box-shadow: 0 0 10px rgba(156, 163, 175, 0.4);
}

.leaderboard-rank.bronze {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #fff;
    box-shadow: 0 0 10px rgba(217, 119, 6, 0.4);
}

.leaderboard-rank.normal {
    background: var(--bg-secondary);
    color: var(--text-muted);
}

/* 精致排行榜样式 */
.period-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.period-tab {
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

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

.period-tab.active {
    background: linear-gradient(135deg, var(--accent), var(--gold));
    color: #000;
    border-color: transparent;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.leaderboard-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.leaderboard-item:hover {
    border-color: var(--accent);
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.leaderboard-item:hover::before {
    opacity: 1;
}

.leaderboard-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    image-rendering: pixelated;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
    transition: all var(--transition-normal);
}

.leaderboard-item:hover .leaderboard-avatar {
    transform: scale(1.1);
    border-color: var(--accent);
}

/* 颁奖台样式 */
.podium-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: flex-end;
    justify-items: center;
    margin: 2rem 0;
    padding: 2rem 0;
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.podium-1 {
    order: 2;
}

.podium-2 {
    order: 1;
}

.podium-3 {
    order: 3;
}

.podium-medal {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    animation: float 3s ease-in-out infinite;
}

.podium-1 .podium-medal {
    animation-delay: 0s;
}

.podium-2 .podium-medal {
    animation-delay: 0.5s;
}

.podium-3 .podium-medal {
    animation-delay: 1s;
}

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

.podium-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin-bottom: 0.75rem;
    position: relative;
    transition: all var(--transition-normal);
}

.podium-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid;
    image-rendering: pixelated;
}

.podium-1 .podium-avatar img {
    border-color: var(--gold);
}

.podium-2 .podium-avatar img {
    border-color: #9ca3af;
}

.podium-3 .podium-avatar img {
    border-color: #d97706;
}

.gold-glow {
    animation: goldGlow 2s ease-in-out infinite;
}

.silver-glow {
    animation: silverGlow 2s ease-in-out infinite;
}

.bronze-glow {
    animation: bronzeGlow 2s ease-in-out infinite;
}

@keyframes goldGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(251, 191, 36, 0.4); }
    50% { box-shadow: 0 0 40px rgba(251, 191, 36, 0.8); }
}

@keyframes silverGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(156, 163, 175, 0.4); }
    50% { box-shadow: 0 0 40px rgba(156, 163, 175, 0.8); }
}

@keyframes bronzeGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(217, 119, 6, 0.4); }
    50% { box-shadow: 0 0 40px rgba(217, 119, 6, 0.8); }
}

.podium-name {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    text-align: center;
}

.podium-value {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.podium-base {
    width: 140px;
    background: linear-gradient(180deg, var(--bg-card), var(--bg-secondary));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.podium-1 .podium-base {
    height: 120px;
}

.podium-2 .podium-base {
    height: 90px;
}

.podium-3 .podium-base {
    height: 70px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .podium-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .podium-1,
    .podium-2,
    .podium-3 {
        order: initial;
    }
    
    .podium-avatar {
        width: 70px;
        height: 70px;
    }
    
    .podium-base {
        width: 100px;
    }
    
    .podium-1 .podium-base,
    .podium-2 .podium-base,
    .podium-3 .podium-base {
        height: 60px;
    }
}

.leaderboard-info {
    flex: 1;
    min-width: 0;
}

.leaderboard-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.leaderboard-extra {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.leaderboard-value {
    font-family: var(--font-pixel);
    font-size: 0.8rem;
    color: var(--accent);
    flex-shrink: 0;
}

.skin-viewer {
    text-align: center;
    padding: 1.5rem;
}

.skin-viewer-display {
    position: relative;
    width: 200px;
    height: 400px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skin-viewer-display img {
    max-width: 100%;
    max-height: 100%;
    image-rendering: pixelated;
}

.skin-viewer-controls {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.skin-viewer-controls .btn {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
}

.skin-viewer-controls .btn.active {
    background: var(--accent);
    color: #000;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.loading-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loading-text {
    margin-top: 1rem;
    font-family: var(--font-pixel);
    font-size: 0.75rem;
    color: var(--accent);
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* 精致全局动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

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

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in-delay-1 {
    animation-delay: 0.1s;
    opacity: 0;
}

.fade-in-delay-2 {
    animation-delay: 0.2s;
    opacity: 0;
}

.fade-in-delay-3 {
    animation-delay: 0.3s;
    opacity: 0;
}

/* 精致渐变背景 */
.gradient-bg {
    background: linear-gradient(135deg, 
        rgba(0, 212, 170, 0.1) 0%, 
        rgba(251, 191, 36, 0.1) 50%, 
        rgba(0, 212, 170, 0.1) 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

/* 精致玻璃效果增强 */
.glass-effect {
    background: rgba(30, 42, 69, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 精致阴影效果 */
.shadow-soft {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.shadow-medium {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.shadow-strong {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* 精致悬停效果 */
.hover-lift {
    transition: all var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.hover-glow {
    transition: all var(--transition-normal);
}

.hover-glow:hover {
    box-shadow: 0 0 30px var(--accent-glow);
}

/* 精致边框效果 */
.border-gradient {
    position: relative;
}

.border-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: linear-gradient(135deg, var(--accent), var(--gold), var(--accent));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* 精致滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
    transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* 精致文本选择 */
::selection {
    background: rgba(0, 212, 170, 0.3);
    color: var(--text-primary);
}

/* 精致按钮增强 */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* 精致卡片闪烁效果 */
.card-shimmer {
    background: linear-gradient(90deg, 
        var(--bg-card) 0%, 
        var(--bg-secondary) 50%, 
        var(--bg-card) 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

/* 精致徽章效果 */
.badge-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* 精致图标效果 */
.icon-bounce {
    animation: float 3s ease-in-out infinite;
}

.icon-spin {
    animation: spin 4s linear infinite;
}

/* 精致背景装饰 */
.decorative-dots {
    background-image: radial-gradient(circle, var(--accent) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
}

.decorative-lines {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(0, 212, 170, 0.05) 10px,
        rgba(0, 212, 170, 0.05) 20px
    );
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-secondary) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
    width: 80%;
}

.skeleton-title {
    height: 1.5rem;
    margin-bottom: 0.75rem;
    width: 60%;
}

.skeleton-image {
    aspect-ratio: 16/10;
}

.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-links h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.friend-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

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

.friend-link img {
    width: 20px;
    height: 20px;
    border-radius: 2px;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.server-ip-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.server-ip-section strong {
    font-family: var(--font-pixel);
    font-size: 0.85rem;
    color: var(--accent);
}

.copy-ip-btn {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
}

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

.toast-container {
    position: fixed;
    top: calc(var(--navbar-height) + 1rem);
    right: 1rem;
    z-index: 5000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    animation: toastIn 0.3s ease forwards;
    max-width: 380px;
    font-size: 0.9rem;
}

.toast.toast-out {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100px); }
}

.toast-success { border-left: 3px solid var(--success); }
.toast-error { border-left: 3px solid var(--danger); }
.toast-warning { border-left: 3px solid var(--warning); }
.toast-info { border-left: 3px solid var(--info); }

.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 0.35rem 0.75rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: 100;
    border: 1px solid var(--border-color);
}

.tooltip:hover::after {
    opacity: 1;
}

.notification-bell {
    position: relative;
    cursor: pointer;
    padding: 0.35rem;
}

.notification-bell .bell-icon {
    font-size: 1.2rem;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    background: var(--danger);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    display: none;
}

.notification-dropdown.active {
    display: block;
}

.notification-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast);
}

.notification-item:hover {
    background: rgba(0, 212, 170, 0.05);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background: rgba(0, 212, 170, 0.08);
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0 1rem;
    transition: all var(--transition-fast);
}

.search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-box input {
    flex: 1;
    padding: 0.6rem 0;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box .search-icon {
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    gap: 0.25rem;
}

.tag-accent {
    background: rgba(0, 212, 170, 0.15);
    color: var(--accent);
}

.tag-gold {
    background: rgba(251, 191, 36, 0.15);
    color: var(--gold);
}

.tag-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
}

.badge-accent { background: var(--accent); color: #000; }
.badge-gold { background: var(--gold); color: #000; }
.badge-danger { background: var(--danger); color: #fff; }

.avatar {
    border-radius: var(--radius-sm);
    image-rendering: pixelated;
    border: 2px solid var(--border-color);
}

.avatar-sm { width: 28px; height: 28px; }
.avatar-md { width: 40px; height: 40px; }
.avatar-lg { width: 64px; height: 64px; }
.avatar-xl { width: 96px; height: 96px; }

.divider {
    border: none;
    height: 1px;
    background: var(--border-color);
    margin: 1.5rem 0;
}

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

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state-text {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-muted);
}

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

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

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 600;
}

.tab-bar {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
    gap: 0;
    overflow-x: auto;
}

.tab-item {
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.tab-item:hover {
    color: var(--text-primary);
}

.tab-item.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    border-radius: 999px;
    transition: width var(--transition-slow);
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
    transition: all var(--transition-normal);
}

.stat-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-family: var(--font-pixel);
    font-size: 1.25rem;
    color: var(--accent);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.mini-chart {
    height: 60px;
    margin-top: 0.75rem;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

::selection {
    background: var(--accent);
    color: #000;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

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

.slide-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 1.8rem; }
    .hero-stats { gap: 1.5rem; }
}

@media (max-width: 768px) {
    :root {
        --navbar-height: 56px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 1rem;
        gap: 0.25rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        padding: 0.65rem 1rem;
        width: 100%;
    }

    .nav-right {
        gap: 0.5rem;
    }

    .theme-switcher {
        display: none;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

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

    .hero-title {
        font-size: 1.4rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-ip {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }

    .hero-stats {
        gap: 1rem;
    }

    .hero-stat-value {
        font-size: 1.1rem;
    }

    .leaderboard-item {
        flex-wrap: wrap;
    }

    .forum-thread {
        flex-wrap: wrap;
    }

    .forum-thread-stats {
        width: 100%;
        justify-content: flex-end;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .modal {
        max-width: 95%;
    }

    .notification-dropdown {
        width: 280px;
        right: -1rem;
    }

    .server-ip-section {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 1.1rem;
    }

    .hero-ip {
        font-size: 0.65rem;
    }

    .card {
        padding: 1rem;
    }

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

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

    .pagination {
        flex-wrap: wrap;
    }
}

.chat-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    grid-template-rows: auto 1fr auto;
    height: calc(100vh - var(--navbar-height) - 2rem);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.chat-sidebar {
    grid-row: 1 / -1;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.chat-sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-channel-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    width: 100%;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}

.chat-channel-btn:hover {
    background: rgba(0, 212, 170, 0.05);
    color: var(--text-primary);
}

.chat-channel-btn.active {
    background: rgba(0, 212, 170, 0.1);
    color: var(--accent);
    border-left-color: var(--accent);
}

.chat-channel-btn .channel-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.chat-channel-btn .channel-badge {
    margin-left: auto;
    background: var(--danger);
    color: #fff;
    font-size: 0.65rem;
    padding: 1px 6px;
    border-radius: 999px;
    font-weight: 700;
}

.chat-online-section {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding: 0.75rem;
}

.chat-online-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    padding: 0 0.25rem;
}

.online-user-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.25rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.online-user-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.online-user-item .user-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.online-user-item .user-status-dot.online {
    background: var(--success);
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

.online-user-item .user-status-dot.idle {
    background: var(--warning);
}

.online-user-item .user-status-dot.offline {
    background: var(--text-muted);
}

.online-user-item .online-user-name {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-messages {
    grid-column: 2;
    grid-row: 2;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-message {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.chat-message:hover {
    background: rgba(255, 255, 255, 0.03);
}

.chat-message .msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    image-rendering: pixelated;
    flex-shrink: 0;
}

.chat-message .msg-body {
    flex: 1;
    min-width: 0;
}

.chat-message .msg-header {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.15rem;
}

.chat-message .msg-author {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.chat-message .msg-author.admin {
    color: var(--gold);
}

.chat-message .msg-author.mod {
    color: var(--accent);
}

.chat-message .msg-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.message-type-tag {
    display: inline-block;
    padding: 1px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    font-weight: 600;
    margin-left: 0.25rem;
}

.message-type-tag.system {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
}

.message-type-tag.action {
    background: rgba(251, 191, 36, 0.15);
    color: var(--gold);
}

.message-type-tag.mention {
    background: rgba(0, 212, 170, 0.15);
    color: var(--accent);
}

.chat-message .msg-content {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    word-break: break-word;
}

.chat-message .msg-content img {
    max-width: 300px;
    max-height: 200px;
    border-radius: var(--radius-md);
    margin-top: 0.5rem;
}

.chat-input-area {
    grid-column: 2;
    grid-row: 3;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    background: var(--bg-secondary);
}

.chat-input-area .chat-input {
    flex: 1;
    padding: 0.6rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    resize: none;
    max-height: 120px;
    min-height: 40px;
    line-height: 1.5;
    transition: border-color var(--transition-fast);
}

.chat-input-area .chat-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.chat-input-actions {
    display: flex;
    gap: 0.25rem;
    align-items: flex-end;
}

.chat-input-actions .action-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: all var(--transition-fast);
}

.chat-input-actions .action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.emoji-picker {
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0.75rem;
    display: none;
    z-index: 100;
}

.emoji-picker.active {
    display: block;
}

.emoji-picker-header {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.emoji-category-btn {
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.emoji-category-btn:hover,
.emoji-category-btn.active {
    background: rgba(0, 212, 170, 0.1);
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 2px;
    max-height: 200px;
    overflow-y: auto;
}

.emoji-item {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.emoji-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.2);
}

.chat-rules {
    grid-column: 2;
    grid-row: 1;
    padding: 0.5rem 1rem;
    background: rgba(251, 191, 36, 0.08);
    border-bottom: 1px solid rgba(251, 191, 36, 0.2);
    font-size: 0.8rem;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-rules .rules-icon {
    font-size: 1rem;
}

.chat-rules a {
    color: var(--gold);
    text-decoration: underline;
    font-weight: 600;
}

.market-item-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.market-item-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

.market-item-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    image-rendering: pixelated;
    border-radius: var(--radius-md);
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.market-item-card .item-name {
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.market-item-card .item-lore {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.4;
    flex: 1;
}

.market-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-pixel);
    font-size: 0.9rem;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.market-price .price-icon {
    font-size: 1rem;
}

.market-price .price-original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-family: var(--font-body);
}

.market-seller {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.market-seller img {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
    image-rendering: pixelated;
}

.market-seller .seller-name {
    color: var(--text-secondary);
    font-weight: 600;
}

.sell-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.sell-form .sell-form-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sell-form .sell-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.sell-form .sell-preview .preview-icon {
    font-size: 3rem;
}

.sell-form .sell-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: var(--radius-md);
    margin-top: 1rem;
    font-weight: 600;
}

.sell-form .sell-total .total-label {
    color: var(--text-secondary);
}

.sell-form .sell-total .total-value {
    color: var(--gold);
    font-family: var(--font-pixel);
}

.market-category-tab {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.market-category-tab .cat-btn {
    padding: 0.45rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.market-category-tab .cat-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.market-category-tab .cat-btn.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.trade-history-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    transition: all var(--transition-fast);
}

.trade-history-item:hover {
    border-color: var(--accent);
}

.trade-history-item .trade-type {
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.trade-history-item .trade-type.buy {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.trade-history-item .trade-type.sell {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.trade-history-item .trade-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    flex: 1;
}

.trade-history-item .trade-amount {
    font-family: var(--font-pixel);
    font-size: 0.8rem;
    color: var(--gold);
}

.trade-history-item .trade-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.price-trend-chart {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    min-height: 250px;
}

.price-trend-chart .chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.price-trend-chart .chart-title {
    font-weight: 700;
    font-size: 1rem;
}

.price-trend-chart .chart-period {
    display: flex;
    gap: 0.25rem;
}

.price-trend-chart .period-btn {
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.price-trend-chart .period-btn:hover,
.price-trend-chart .period-btn.active {
    background: var(--accent);
    color: #000;
}

.price-trend-chart canvas {
    width: 100%;
    height: 180px;
}

.vote-site-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vote-site-card:hover {
    border-color: var(--gold);
    box-shadow: 0 0 15px var(--gold-glow);
    transform: translateY(-3px);
}

.vote-site-card .vote-site-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.vote-site-card .vote-site-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.vote-site-card .vote-site-url {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.vote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-hover));
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px var(--gold-glow);
}

.vote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--gold-glow);
}

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

.vote-btn.voted {
    background: var(--bg-secondary);
    color: var(--text-muted);
    box-shadow: none;
}

.vote-reward-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    transition: all var(--transition-fast);
}

.vote-reward-card:hover {
    border-color: var(--gold);
}

.vote-reward-card .reward-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.vote-reward-card .reward-info {
    flex: 1;
}

.vote-reward-card .reward-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.vote-reward-card .reward-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.vote-reward-card .reward-chance {
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 600;
}

.vote-leaderboard-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    transition: all var(--transition-fast);
}

.vote-leaderboard-item:hover {
    border-color: var(--gold);
    transform: translateX(4px);
}

.vote-leaderboard-item .vlb-rank {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
    background: var(--bg-secondary);
    color: var(--text-muted);
}

.vote-leaderboard-item .vlb-rank.top-1 {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
}

.vote-leaderboard-item .vlb-rank.top-2 {
    background: linear-gradient(135deg, #d1d5db, #9ca3af);
    color: #000;
}

.vote-leaderboard-item .vlb-rank.top-3 {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #fff;
}

.vote-leaderboard-item .vlb-name {
    flex: 1;
    font-weight: 600;
    font-size: 0.9rem;
}

.vote-leaderboard-item .vlb-votes {
    font-family: var(--font-pixel);
    font-size: 0.8rem;
    color: var(--gold);
}

.cooldown-timer {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--danger);
    font-weight: 600;
}

.cooldown-timer .cd-icon {
    font-size: 1rem;
}

.cooldown-timer.ready {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
    color: var(--success);
}

.vote-guide-step {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.vote-guide-step:hover {
    border-color: var(--accent);
}

.vote-guide-step .step-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #000;
    font-weight: 800;
    font-size: 0.9rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.vote-guide-step .step-content {
    flex: 1;
}

.vote-guide-step .step-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.vote-guide-step .step-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.monitor-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.monitor-status-indicator.online {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.monitor-status-indicator.offline {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.monitor-status-indicator.starting {
    background: rgba(251, 191, 36, 0.15);
    color: var(--warning);
}

.monitor-status-indicator .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

.monitor-status-indicator.online .status-dot {
    background: var(--success);
}

.monitor-status-indicator.offline .status-dot {
    background: var(--danger);
    animation: none;
}

.monitor-status-indicator.starting .status-dot {
    background: var(--warning);
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.monitor-chart-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    min-height: 220px;
}

.monitor-chart-container .chart-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.monitor-chart-container canvas {
    width: 100%;
    height: 160px;
}

.server-event-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-left: 3px solid var(--border-color);
    margin-bottom: 0.5rem;
    transition: all var(--transition-fast);
}

.server-event-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.server-event-item.event-warning {
    border-left-color: var(--warning);
}

.server-event-item.event-error {
    border-left-color: var(--danger);
}

.server-event-item.event-info {
    border-left-color: var(--info);
}

.server-event-item.event-success {
    border-left-color: var(--success);
}

.server-event-item .event-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.server-event-item .event-body {
    flex: 1;
}

.server-event-item .event-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.server-event-item .event-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.server-event-item .event-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.world-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition-fast);
}

.world-stat-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.world-stat-card .world-icon {
    font-size: 2rem;
    width: 48px;
    text-align: center;
}

.world-stat-card .world-info {
    flex: 1;
}

.world-stat-card .world-name {
    font-weight: 700;
    font-size: 1rem;
}

.world-stat-card .world-players {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.world-stat-card .world-size {
    font-family: var(--font-pixel);
    font-size: 0.8rem;
    color: var(--accent);
}

.plugin-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    transition: all var(--transition-fast);
}

.plugin-item:hover {
    border-color: var(--accent);
}

.plugin-item .plugin-icon {
    font-size: 1.2rem;
    width: 32px;
    text-align: center;
}

.plugin-item .plugin-info {
    flex: 1;
}

.plugin-item .plugin-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.plugin-item .plugin-version {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.plugin-item .plugin-status {
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
}

.plugin-item .plugin-status.enabled {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.plugin-item .plugin-status.disabled {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.hardware-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.hardware-info-grid .hw-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
}

.hardware-info-grid .hw-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.hardware-info-grid .hw-value {
    font-family: var(--font-pixel);
    font-size: 1rem;
    color: var(--accent);
}

.hardware-info-grid .hw-bar {
    height: 4px;
    background: var(--bg-input);
    border-radius: 999px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.hardware-info-grid .hw-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width var(--transition-slow);
}

.hardware-info-grid .hw-bar-fill.normal {
    background: var(--accent);
}

.hardware-info-grid .hw-bar-fill.warning {
    background: var(--warning);
}

.hardware-info-grid .hw-bar-fill.danger {
    background: var(--danger);
}

.auto-refresh-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.6rem;
    background: rgba(0, 212, 170, 0.1);
    border-radius: 999px;
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 600;
}

.auto-refresh-badge .refresh-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse-dot 2s ease-in-out infinite;
}

.map-viewer {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.map-viewer .map-canvas {
    width: 100%;
    height: 500px;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
}

.map-viewer .map-canvas:active {
    cursor: grabbing;
}

.map-viewer .map-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 10;
}

.map-viewer .map-controls .map-ctrl-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.map-viewer .map-controls .map-ctrl-btn:hover {
    background: var(--accent);
    color: #000;
}

.map-world-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.map-world-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.map-world-card .world-preview {
    height: 160px;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.map-world-card .world-card-info {
    padding: 1rem;
}

.map-world-card .world-card-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.map-world-card .world-card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.map-marker {
    position: absolute;
    transform: translate(-50%, -100%);
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 5;
}

.map-marker:hover {
    transform: translate(-50%, -100%) scale(1.2);
    z-index: 10;
}

.map-marker .marker-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.map-marker .marker-label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 0.65rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    margin-top: 2px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.map-marker:hover .marker-label {
    opacity: 1;
}

.coord-calculator {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.coord-calculator .coord-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.coord-calculator .coord-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.coord-calculator .coord-field label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.coord-calculator .coord-field input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-pixel);
    font-size: 0.85rem;
    text-align: center;
}

.coord-calculator .coord-field input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.coord-calculator .coord-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.player-location-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    transition: all var(--transition-fast);
}

.player-location-item:hover {
    border-color: var(--accent);
}

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

.player-location-item .player-name {
    font-weight: 600;
    font-size: 0.9rem;
    flex: 1;
}

.player-location-item .player-coords {
    font-family: var(--font-pixel);
    font-size: 0.7rem;
    color: var(--accent);
}

.player-location-item .player-world {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.achievement-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.achievement-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.achievement-card.unlocked {
    border-color: var(--gold);
    box-shadow: 0 0 15px var(--gold-glow);
}

.achievement-card.locked {
    opacity: 0.6;
}

.achievement-card.locked .achievement-icon {
    filter: grayscale(1);
}

.achievement-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.achievement-card .achievement-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.achievement-card .achievement-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.achievement-progress {
    margin-top: 0.5rem;
}

.achievement-progress .progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.achievement-progress .progress-bar {
    height: 6px;
    background: var(--bg-input);
    border-radius: 999px;
    overflow: hidden;
}

.achievement-progress .progress-fill {
    height: 100%;
    border-radius: 999px;
    transition: width var(--transition-slow);
}

.achievement-rarity {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.achievement-rarity.common {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
}

.achievement-rarity.uncommon {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.achievement-rarity.rare {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.achievement-rarity.epic {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.achievement-rarity.legendary {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    animation: legendary-glow 2s ease-in-out infinite;
}

@keyframes legendary-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(251, 191, 36, 0.3); }
    50% { box-shadow: 0 0 15px rgba(251, 191, 36, 0.6); }
}

.achievement-category {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.achievement-category .ach-cat-btn {
    padding: 0.45rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.achievement-category .ach-cat-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.achievement-category .ach-cat-btn.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.achievement-leaderboard {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.achievement-leaderboard .ach-lb-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.achievement-leaderboard .ach-lb-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border-color);
}

.achievement-leaderboard .ach-lb-item:last-child {
    border-bottom: none;
}

.achievement-leaderboard .ach-lb-item .ach-lb-rank {
    width: 28px;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.achievement-leaderboard .ach-lb-item .ach-lb-rank.top {
    color: var(--gold);
}

.achievement-leaderboard .ach-lb-item .ach-lb-name {
    flex: 1;
    font-weight: 600;
    font-size: 0.9rem;
}

.achievement-leaderboard .ach-lb-item .ach-lb-count {
    font-family: var(--font-pixel);
    font-size: 0.8rem;
    color: var(--accent);
}

.rule-category {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.rule-category .rule-cat-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.rule-category .rule-cat-header:hover {
    background: rgba(0, 212, 170, 0.05);
}

.rule-category .rule-cat-icon {
    font-size: 1.3rem;
    width: 32px;
    text-align: center;
}

.rule-category .rule-cat-title {
    font-weight: 700;
    font-size: 1rem;
    flex: 1;
}

.rule-category .rule-cat-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-input);
    padding: 2px 8px;
    border-radius: 999px;
}

.rule-category .rule-cat-toggle {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.rule-category.open .rule-cat-toggle {
    transform: rotate(180deg);
}

.rule-category .rule-cat-body {
    display: none;
}

.rule-category.open .rule-cat-body {
    display: block;
}

.rule-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast);
}

.rule-item:last-child {
    border-bottom: none;
}

.rule-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.rule-item .rule-number {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-shrink: 0;
    width: 24px;
}

.rule-item .rule-content {
    flex: 1;
}

.rule-item .rule-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.rule-severity {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    margin-top: 0.35rem;
}

.rule-severity.warning {
    background: rgba(251, 191, 36, 0.15);
    color: var(--warning);
}

.rule-severity.forbidden {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.rule-severity.allowed {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.rule-severity.info {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
}

.punishment-level {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
}

.punishment-level .punishment-step {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    position: relative;
}

.punishment-level .punishment-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -2px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--border-color);
}

.punishment-level .punishment-step .step-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.punishment-level .punishment-step .step-value {
    font-weight: 700;
    font-size: 0.85rem;
}

.punishment-level .punishment-step .step-value.warn {
    color: var(--warning);
}

.punishment-level .punishment-step .step-value.mute {
    color: var(--info);
}

.punishment-level .punishment-step .step-value.ban {
    color: var(--danger);
}

.appeal-process {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.appeal-process .appeal-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.appeal-process .appeal-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.appeal-process .appeal-step {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.appeal-process .appeal-step .step-num {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #000;
    font-weight: 800;
    font-size: 0.8rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.appeal-process .appeal-step .step-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.help-category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.help-category-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

.help-category-card .help-cat-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.help-category-card .help-cat-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.help-category-card .help-cat-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.help-article-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.help-article-item:hover {
    border-color: var(--accent);
    transform: translateX(4px);
}

.help-article-item .article-icon {
    font-size: 1.2rem;
    width: 32px;
    text-align: center;
    flex-shrink: 0;
}

.help-article-item .article-info {
    flex: 1;
}

.help-article-item .article-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.help-article-item .article-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.help-article-item .article-arrow {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.faq-category .faq-cat-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--accent);
}

.faq-item.open {
    border-color: var(--accent);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

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

.faq-question .faq-q-icon {
    font-size: 1rem;
    color: var(--accent);
    flex-shrink: 0;
}

.faq-question .faq-toggle {
    margin-left: auto;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
    font-size: 0.8rem;
}

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

.faq-answer {
    display: none;
    padding: 0 1rem 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.faq-search {
    margin-bottom: 2rem;
}

.faq-search .faq-search-input {
    width: 100%;
    padding: 0.85rem 1.25rem 0.85rem 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.faq-search .faq-search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.faq-search .faq-search-input::placeholder {
    color: var(--text-muted);
}

.faq-search .faq-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-down {
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.5s ease;
}

.slide-down.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.5s ease;
}

.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.5s ease;
}

.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in-up {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    transition: all 0.5s ease;
}

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

.bounce-in {
    animation: bounceIn 0.6s ease forwards;
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

.shake {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 5px var(--accent-glow); }
    50% { box-shadow: 0 0 25px var(--accent-glow), 0 0 50px var(--accent-glow); }
}

.float-animation {
    animation: floatAnim 3s ease-in-out infinite;
}

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

.glow-text {
    animation: glowText 2s ease-in-out infinite alternate;
}

@keyframes glowText {
    0% { text-shadow: 0 0 5px var(--accent-glow); }
    100% { text-shadow: 0 0 20px var(--accent-glow), 0 0 40px var(--accent-glow); }
}

@media (max-width: 1200px) {
    .chat-container {
        grid-template-columns: 200px 1fr;
    }

    .hardware-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .coord-calculator .coord-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .chat-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr auto;
        height: auto;
        max-height: calc(100vh - var(--navbar-height) - 2rem);
    }

    .chat-sidebar {
        grid-row: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        max-height: 200px;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .chat-sidebar-header {
        display: none;
    }

    .chat-channel-btn {
        border-left: none;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
    }

    .chat-channel-btn.active {
        border-bottom-color: var(--accent);
        border-left-color: transparent;
    }

    .chat-online-section {
        display: none;
    }

    .chat-messages {
        grid-column: 1;
        grid-row: 3;
        min-height: 300px;
    }

    .chat-input-area {
        grid-column: 1;
        grid-row: 4;
    }

    .chat-rules {
        grid-column: 1;
        grid-row: 2;
    }

    .market-category-tab {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
    }

    .market-category-tab .cat-btn {
        flex-shrink: 0;
    }

    .monitor-chart-container {
        min-height: 180px;
    }

    .map-viewer .map-canvas {
        height: 350px;
    }

    .achievement-category {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
    }

    .achievement-category .ach-cat-btn {
        flex-shrink: 0;
    }

    .punishment-level {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .chat-container {
        border-radius: var(--radius-md);
    }

    .chat-message .msg-avatar {
        width: 28px;
        height: 28px;
    }

    .emoji-picker {
        width: 280px;
    }

    .emoji-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .market-item-card {
        padding: 1rem;
    }

    .market-item-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .sell-form {
        padding: 1rem;
    }

    .coord-calculator .coord-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .map-viewer .map-canvas {
        height: 280px;
    }

    .map-world-card .world-preview {
        height: 120px;
    }

    .achievement-card {
        padding: 1rem;
    }

    .achievement-icon {
        width: 44px;
        height: 44px;
        font-size: 1.4rem;
    }

    .rule-item {
        padding: 0.65rem 1rem;
    }

    .faq-search .faq-search-input {
        font-size: 0.9rem;
        padding: 0.75rem 1rem 0.75rem 2.5rem;
    }

    .help-category-card {
        padding: 1rem;
    }

    .help-category-card .help-cat-icon {
        font-size: 2rem;
    }

    .hardware-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vote-site-card {
        padding: 1rem;
    }

    .monitor-chart-container {
        padding: 1rem;
    }

    .monitor-chart-container canvas {
        height: 130px;
    }
}

@media (max-width: 480px) {
    .chat-container {
        border-radius: 0;
        margin: -1rem;
        max-height: calc(100vh - var(--navbar-height));
    }

    .chat-input-area {
        padding: 0.5rem;
    }

    .chat-input-area .chat-input {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }

    .emoji-picker {
        width: 260px;
    }

    .emoji-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .market-item-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .market-price {
        font-size: 0.8rem;
    }

    .sell-form .sell-preview {
        padding: 1rem;
    }

    .coord-calculator .coord-row {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0.35rem;
    }

    .coord-calculator .coord-field input {
        font-size: 0.75rem;
        padding: 0.4rem 0.5rem;
    }

    .map-viewer .map-canvas {
        height: 220px;
    }

    .map-viewer .map-controls .map-ctrl-btn {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }

    .achievement-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .achievement-rarity {
        font-size: 0.65rem;
        padding: 1px 6px;
    }

    .rule-category .rule-cat-header {
        padding: 0.75rem 1rem;
    }

    .rule-item {
        padding: 0.5rem 0.75rem;
    }

    .faq-question {
        padding: 0.65rem 0.75rem;
        font-size: 0.85rem;
    }

    .faq-answer {
        padding: 0 0.75rem 0.75rem;
        font-size: 0.85rem;
    }

    .help-category-card .help-cat-icon {
        font-size: 1.5rem;
    }

    .hardware-info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hardware-info-grid .hw-item {
        padding: 0.75rem;
    }

    .vote-site-card .vote-site-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .vote-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .cooldown-timer {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .monitor-status-indicator {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }

    .punishment-level .punishment-step .step-label {
        font-size: 0.6rem;
    }

    .punishment-level .punishment-step .step-value {
        font-size: 0.75rem;
    }
}

.theme-dark .chat-container {
    background: #0d1117;
}

.theme-dark .chat-sidebar {
    background: #0a0e14;
}

.theme-dark .chat-input-area {
    background: #0a0e14;
}

.theme-dark .market-item-card {
    background: #0d1117;
}

.theme-dark .market-item-card:hover {
    border-color: #00d4aa;
}

.theme-dark .vote-site-card {
    background: #0d1117;
}

.theme-dark .vote-site-card:hover {
    border-color: #fbbf24;
}

.theme-dark .monitor-chart-container {
    background: #0d1117;
}

.theme-dark .server-event-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.theme-dark .world-stat-card {
    background: #0d1117;
}

.theme-dark .plugin-item {
    background: #0d1117;
}

.theme-dark .hardware-info-grid .hw-item {
    background: #0d1117;
}

.theme-dark .map-viewer {
    background: #0d1117;
}

.theme-dark .achievement-card {
    background: #0d1117;
}

.theme-dark .achievement-card.unlocked {
    border-color: #fbbf24;
}

.theme-dark .rule-category {
    background: #0d1117;
}

.theme-dark .rule-category .rule-cat-header {
    background: #0a0e14;
}

.theme-dark .faq-item {
    background: #0d1117;
}

.theme-dark .faq-search .faq-search-input {
    background: #0d1117;
}

.theme-dark .help-category-card {
    background: #0d1117;
}

.theme-dark .help-article-item {
    background: #0d1117;
}

.theme-dark .appeal-process {
    background: #0d1117;
}

.theme-dark .punishment-level {
    background: #0d1117;
}

.theme-dark .sell-form {
    background: #0d1117;
}

.theme-dark .coord-calculator {
    background: #0d1117;
}

.theme-dark .player-location-item {
    background: #0d1117;
}

.theme-dark .trade-history-item {
    background: #0d1117;
}

.theme-dark .vote-reward-card {
    background: #0d1117;
}

.theme-dark .vote-leaderboard-item {
    background: #0d1117;
}

.theme-dark .vote-guide-step {
    background: #0d1117;
}

.theme-dark .online-user-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.theme-dark .chat-message:hover {
    background: rgba(255, 255, 255, 0.02);
}

.theme-dark .emoji-picker {
    background: #0d1117;
}

@media print {
    .chat-container {
        display: block;
        height: auto;
        border: none;
    }

    .chat-sidebar,
    .chat-input-area,
    .emoji-picker,
    .chat-rules {
        display: none;
    }

    .chat-messages {
        grid-column: 1;
        grid-row: auto;
        overflow: visible;
        padding: 0;
    }

    .market-item-card {
        break-inside: avoid;
        border: 1px solid #ccc;
        box-shadow: none;
        transform: none;
    }

    .market-item-card:hover {
        transform: none;
        box-shadow: none;
    }

    .market-price {
        color: #333;
    }

    .vote-site-card {
        break-inside: avoid;
        border: 1px solid #ccc;
        box-shadow: none;
    }

    .vote-btn {
        display: none;
    }

    .cooldown-timer {
        display: none;
    }

    .monitor-chart-container {
        break-inside: avoid;
        border: 1px solid #ccc;
    }

    .monitor-status-indicator {
        border: 1px solid #ccc;
    }

    .auto-refresh-badge {
        display: none;
    }

    .map-viewer .map-controls {
        display: none;
    }

    .map-marker .marker-label {
        opacity: 1;
    }

    .achievement-card {
        break-inside: avoid;
        border: 1px solid #ccc;
        box-shadow: none;
        transform: none;
    }

    .achievement-rarity.legendary {
        animation: none;
    }

    .rule-category {
        break-inside: avoid;
        border: 1px solid #ccc;
    }

    .rule-category .rule-cat-body {
        display: block;
    }

    .rule-category .rule-cat-toggle {
        display: none;
    }

    .faq-item {
        break-inside: avoid;
        border: 1px solid #ccc;
    }

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

    .faq-item .faq-toggle {
        display: none;
    }

    .faq-search {
        display: none;
    }

    .help-category-card {
        break-inside: avoid;
        border: 1px solid #ccc;
    }

    .punishment-level {
        border: 1px solid #ccc;
    }

    .appeal-process {
        border: 1px solid #ccc;
    }

    body {
        background: #fff;
        color: #000;
    }

    .navbar,
    .announcement-bar,
    .site-footer,
    .back-to-top,
    .toast-container {
        display: none;
    }

    .main-content {
        padding-top: 0;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .card {
        border: 1px solid #ccc;
        box-shadow: none;
    }
}

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

.economy-stats .stat-card {
    position: relative;
    overflow: hidden;
}

.economy-stats .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
}

.currency-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition-normal);
}

.currency-card:hover {
    border-color: var(--gold);
    box-shadow: 0 0 15px var(--gold-glow);
    transform: translateY(-2px);
}

.currency-card .currency-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(251, 191, 36, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.currency-card .currency-info {
    flex: 1;
}

.currency-card .currency-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.currency-card .currency-balance {
    font-family: var(--font-pixel);
    font-size: 1.1rem;
    color: var(--gold);
}

.currency-card .currency-change {
    font-size: 0.75rem;
    margin-top: 0.15rem;
}

.currency-card .currency-change.positive {
    color: var(--success);
}

.currency-card .currency-change.negative {
    color: var(--danger);
}

.rich-list {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.rich-list .rich-list-header {
    display: grid;
    grid-template-columns: 40px 1fr 120px 100px;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rich-list .rich-list-item {
    display: grid;
    grid-template-columns: 40px 1fr 120px 100px;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast);
}

.rich-list .rich-list-item:hover {
    background: rgba(0, 212, 170, 0.05);
}

.rich-list .rich-list-item:last-child {
    border-bottom: none;
}

.rich-list .rich-rank {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.rich-list .rich-player {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.rich-list .rich-player img {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    image-rendering: pixelated;
}

.rich-list .rich-balance {
    font-family: var(--font-pixel);
    font-size: 0.8rem;
    color: var(--gold);
}

.rich-list .rich-change {
    font-size: 0.8rem;
    text-align: right;
}

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

.wallet-section .wallet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.wallet-section .wallet-title {
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wallet-section .wallet-balance {
    font-family: var(--font-pixel);
    font-size: 1.5rem;
    color: var(--gold);
    text-align: center;
    margin-bottom: 1rem;
}

.wallet-section .wallet-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.shop-item-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.shop-item-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

.shop-item-card .shop-item-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}

.shop-item-card .shop-item-badge.sale {
    background: var(--danger);
    color: #fff;
}

.shop-item-card .shop-item-badge.new {
    background: var(--accent);
    color: #000;
}

.shop-item-card .shop-item-badge.hot {
    background: var(--gold);
    color: #000;
}

.shop-item-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: var(--radius-md);
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    image-rendering: pixelated;
}

.shop-item-card .shop-item-name {
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 0.35rem;
}

.shop-item-card .shop-item-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1rem;
    flex: 1;
    line-height: 1.4;
}

.shop-price-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-pixel);
    font-size: 0.9rem;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.shop-price-tag .price-original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-family: var(--font-body);
}

.shop-item-card .shop-actions {
    display: flex;
    gap: 0.5rem;
}

.shop-item-card .shop-actions .btn {
    flex: 1;
}

.price-chart-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.price-chart-container .chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.price-chart-container .chart-title {
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-chart-container .chart-period {
    display: flex;
    gap: 0.25rem;
}

.price-chart-container .period-btn {
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.price-chart-container .period-btn:hover,
.price-chart-container .period-btn.active {
    background: var(--accent);
    color: #000;
}

.price-chart-container canvas {
    width: 100%;
    height: 200px;
}

.transaction-list {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.transaction-list .transaction-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.transaction-list .transaction-title {
    font-weight: 700;
    font-size: 1rem;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast);
}

.transaction-item:hover {
    background: rgba(0, 212, 170, 0.05);
}

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

.transaction-item .tx-type {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.transaction-item .tx-type.income {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.transaction-item .tx-type.expense {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.transaction-item .tx-info {
    flex: 1;
    min-width: 0;
}

.transaction-item .tx-desc {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.transaction-item .tx-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.transaction-item .tx-amount {
    font-family: var(--font-pixel);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.transaction-item .tx-amount.positive {
    color: var(--success);
}

.transaction-item .tx-amount.negative {
    color: var(--danger);
}

.economy-rules {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 2rem;
}

.economy-rules .rules-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.economy-rules .rule-entry {
    display: flex;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.economy-rules .rule-entry:last-child {
    border-bottom: none;
}

.economy-rules .rule-entry .rule-icon {
    color: var(--gold);
    flex-shrink: 0;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.team-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

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

.team-card .team-logo {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    image-rendering: pixelated;
    flex-shrink: 0;
}

.team-card .team-info {
    flex: 1;
    min-width: 0;
}

.team-card .team-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.15rem;
}

.team-card .team-motto {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
}

.team-tag.open {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.team-tag.closed {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.team-tag.invite-only {
    background: rgba(251, 191, 36, 0.15);
    color: var(--gold);
}

.team-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
}

.team-badge.members {
    background: rgba(0, 212, 170, 0.15);
    color: var(--accent);
}

.team-badge.level {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.team-color-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.team-members-list {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.team-member-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(45, 58, 82, 0.5);
}

.team-member-item:last-child {
    border-bottom: none;
}

.team-member-item .member-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    image-rendering: pixelated;
    flex-shrink: 0;
}

.team-member-item .member-name {
    flex: 1;
    font-weight: 600;
    font-size: 0.85rem;
}

.team-member-item .member-role {
    font-size: 0.7rem;
    padding: 1px 6px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.team-member-item .member-role.leader {
    background: rgba(251, 191, 36, 0.15);
    color: var(--gold);
}

.team-member-item .member-role.officer {
    background: rgba(0, 212, 170, 0.15);
    color: var(--accent);
}

.team-member-item .member-role.member {
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-muted);
}

.team-chat-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    height: 400px;
}

.team-chat-box .chat-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.team-chat-box .chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.team-chat-box .chat-input-area {
    padding: 0.5rem 0.75rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.team-chat-box .chat-input-area input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.85rem;
}

.team-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.team-stats-grid .team-stat {
    background: var(--bg-input);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    text-align: center;
}

.team-stats-grid .team-stat-value {
    font-family: var(--font-pixel);
    font-size: 1rem;
    color: var(--accent);
}

.team-stats-grid .team-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.create-team-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.create-team-form .form-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.team-search-box {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0 1rem;
    margin-bottom: 1.5rem;
    transition: all var(--transition-fast);
}

.team-search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.team-search-box input {
    flex: 1;
    padding: 0.65rem 0;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.team-search-box .search-icon {
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.team-leaderboard {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.team-leaderboard .lb-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.team-leaderboard .lb-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.team-leaderboard .lb-item:hover {
    background: rgba(0, 212, 170, 0.05);
    transform: translateX(4px);
}

.team-leaderboard .lb-item:last-child {
    border-bottom: none;
}

.team-leaderboard .lb-rank {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.team-leaderboard .lb-team-name {
    flex: 1;
    font-weight: 600;
    font-size: 0.9rem;
}

.team-leaderboard .lb-score {
    font-family: var(--font-pixel);
    font-size: 0.8rem;
    color: var(--accent);
}

.event-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.event-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.event-card .event-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.event-card .event-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.event-card .event-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.event-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-type-badge.building {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.event-type-badge.pvp {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.event-type-badge.treasure {
    background: rgba(251, 191, 36, 0.15);
    color: var(--gold);
}

.event-type-badge.survival {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.event-type-badge.holiday {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
}

.event-type-badge.limited {
    background: rgba(244, 63, 94, 0.15);
    color: #f43f5e;
    animation: legendary-glow 2s ease-in-out infinite;
}

.event-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    background: rgba(0, 212, 170, 0.08);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
}

.event-timer.urgent {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.event-timer .timer-icon {
    font-size: 1rem;
}

.event-timer .timer-value {
    font-family: var(--font-pixel);
    font-size: 0.8rem;
}

.event-calendar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.event-calendar .calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.event-calendar .calendar-title {
    font-weight: 700;
    font-size: 1rem;
}

.event-calendar .calendar-nav {
    display: flex;
    gap: 0.25rem;
}

.event-calendar .calendar-nav-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.event-calendar .calendar-nav-btn:hover {
    background: var(--accent);
    color: #000;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-grid .calendar-weekday {
    padding: 0.5rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.calendar-day:hover {
    background: rgba(0, 212, 170, 0.1);
}

.calendar-day.today {
    background: var(--accent);
    color: #000;
    font-weight: 700;
}

.calendar-day.other-month {
    color: var(--text-muted);
    opacity: 0.4;
}

.calendar-day.has-event {
    font-weight: 700;
}

.calendar-event-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    position: absolute;
    bottom: 3px;
}

.calendar-event-dot.type-building {
    background: var(--success);
}

.calendar-event-dot.type-pvp {
    background: var(--danger);
}

.calendar-event-dot.type-treasure {
    background: var(--gold);
}

.calendar-event-dot.type-survival {
    background: #a855f7;
}

.calendar-event-dot.type-holiday {
    background: var(--info);
}

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

.event-participants .participant-avatars {
    display: flex;
    margin-right: 0.25rem;
}

.event-participants .participant-avatars img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
    margin-left: -8px;
    image-rendering: pixelated;
}

.event-participants .participant-avatars img:first-child {
    margin-left: 0;
}

.event-participants .participant-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.event-reward-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.event-reward-list .reward-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.65rem;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
}

.event-reward-list .reward-item .reward-icon {
    font-size: 1rem;
}

.event-reward-list .reward-item .reward-name {
    color: var(--text-secondary);
}

.event-rules-section {
    background: rgba(251, 191, 36, 0.05);
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: 1rem;
}

.event-rules-section .rules-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.event-rules-section .rule-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all var(--transition-normal);
}

.download-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.download-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.download-info {
    flex: 1;
    min-width: 0;
}

.download-info .download-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.download-info .download-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.download-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.download-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.download-category-tab {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.download-category-tab .dl-cat-btn {
    padding: 0.45rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.download-category-tab .dl-cat-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.download-category-tab .dl-cat-btn.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.upload-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 2rem;
}

.upload-form .upload-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-download {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.1), rgba(251, 191, 36, 0.1));
    border: 1px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.featured-download::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-glow), transparent);
    opacity: 0.3;
}

.featured-download .featured-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
    z-index: 1;
}

.featured-download .featured-info {
    flex: 1;
    z-index: 1;
}

.featured-download .featured-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.featured-download .featured-name {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
}

.featured-download .featured-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.download-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
}

.download-badge.official {
    background: rgba(0, 212, 170, 0.15);
    color: var(--accent);
}

.download-badge.community {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
}

.download-badge.modpack {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.file-size-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 1001;
}

.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.nav-dropdown-item:hover {
    background: rgba(0, 212, 170, 0.1);
    color: var(--accent);
}

.nav-dropdown-item .dropdown-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.nav-more-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.nav-more-btn:hover,
.nav-more-btn.active {
    color: var(--accent);
    background: rgba(0, 212, 170, 0.1);
}

.nav-more-btn .arrow {
    font-size: 0.6rem;
    transition: transform var(--transition-fast);
}

.nav-dropdown.open .nav-more-btn .arrow {
    transform: rotate(180deg);
}

.tooltip-top::after {
    bottom: calc(100% + 8px);
    top: auto;
    left: 50%;
    transform: translateX(-50%);
}

.tooltip-bottom::after {
    top: calc(100% + 8px);
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
}

.tooltip-left::after {
    right: calc(100% + 8px);
    left: auto;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
}

.tooltip-right::after {
    left: calc(100% + 8px);
    right: auto;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
}

.notification-container {
    position: fixed;
    top: calc(var(--navbar-height) + 1rem);
    right: 1rem;
    z-index: 5000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
    max-width: 400px;
}

.notification {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    animation: notifIn 0.3s ease forwards;
    max-width: 380px;
    font-size: 0.9rem;
}

.notification.notif-out {
    animation: notifOut 0.3s ease forwards;
}

@keyframes notifIn {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes notifOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100px); }
}

.notification .notif-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.notification .notif-body {
    flex: 1;
    min-width: 0;
}

.notification .notif-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}

.notification .notif-message {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.notification .notif-close {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

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

.notification-success {
    border-left: 3px solid var(--success);
}

.notification-success .notif-icon {
    color: var(--success);
}

.notification-error {
    border-left: 3px solid var(--danger);
}

.notification-error .notif-icon {
    color: var(--danger);
}

.notification-warning {
    border-left: 3px solid var(--warning);
}

.notification-warning .notif-icon {
    color: var(--warning);
}

.notification-info {
    border-left: 3px solid var(--info);
}

.notification-info .notif-icon {
    color: var(--info);
}

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

.skeleton-card .skeleton-image {
    aspect-ratio: 16/10;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.skeleton-card .skeleton-text {
    height: 0.85rem;
    margin-bottom: 0.5rem;
}

.skeleton-card .skeleton-text:last-child {
    width: 60%;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.skeleton-image {
    aspect-ratio: 16/10;
    border-radius: var(--radius-md);
}

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

.loading-spinner.sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.loading-spinner.lg {
    width: 56px;
    height: 56px;
    border-width: 4px;
}

.loading-dots {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
}

.loading-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: dotBounce 1.4s ease-in-out infinite;
}

.loading-dots .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

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

.loading-bar .loading-bar-fill {
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    border-radius: 999px;
    animation: loadingBarMove 1.5s ease-in-out infinite;
}

@keyframes loadingBarMove {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}

.data-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
}

.data-table-header .table-title {
    font-weight: 700;
    font-size: 0.95rem;
}

.data-table-row {
    display: flex;
    align-items: center;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast);
}

.data-table-row:hover {
    background: rgba(0, 212, 170, 0.05);
}

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

.data-table-cell {
    flex: 1;
    padding: 0 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.data-table-cell.header-cell {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table-sortable {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.data-table-sortable:hover {
    color: var(--accent);
}

.data-table-sortable .sort-icon {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.data-table-sortable.asc .sort-icon,
.data-table-sortable.desc .sort-icon {
    color: var(--accent);
}

.data-table-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.data-table-filter .filter-input {
    padding: 0.4rem 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
    min-width: 180px;
}

.data-table-filter .filter-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.form-group-inline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.form-group-inline .form-label {
    margin-bottom: 0;
    min-width: 80px;
}

.form-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.form-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.form-switch .slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    transition: all var(--transition-fast);
}

.form-switch .slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 2px;
    bottom: 2px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.form-switch input:checked + .slider {
    background: var(--accent);
    border-color: var(--accent);
}

.form-switch input:checked + .slider::before {
    transform: translateX(20px);
    background: #000;
}

.form-range {
    width: 100%;
    height: 6px;
    background: var(--bg-input);
    border-radius: 999px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.form-range::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 2px solid var(--bg-primary);
    box-shadow: 0 0 6px var(--accent-glow);
}

.form-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 2px solid var(--bg-primary);
}

.form-color-picker {
    width: 44px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 2px;
    background: var(--bg-input);
}

.form-color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
}

.form-color-picker::-webkit-color-swatch {
    border: none;
    border-radius: 2px;
}

.form-tag-input {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.5rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    min-height: 42px;
    align-items: center;
    transition: all var(--transition-fast);
}

.form-tag-input:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-tag-input .tag-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    background: rgba(0, 212, 170, 0.15);
    color: var(--accent);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
}

.form-tag-input .tag-item .tag-remove {
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
    opacity: 0.7;
}

.form-tag-input .tag-item .tag-remove:hover {
    opacity: 1;
}

.form-tag-input input {
    flex: 1;
    min-width: 80px;
    padding: 0.2rem;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.85rem;
    border: none;
    outline: none;
}

.form-rich-text {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.form-rich-text .toolbar {
    display: flex;
    gap: 0.25rem;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.form-rich-text .toolbar-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.form-rich-text .toolbar-btn:hover {
    background: rgba(0, 212, 170, 0.1);
    color: var(--accent);
}

.form-rich-text .toolbar-btn.active {
    background: var(--accent);
    color: #000;
}

.form-rich-text .editor-area {
    min-height: 200px;
    padding: 1rem;
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.6;
    outline: none;
}

.form-file-dropzone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.form-file-dropzone:hover,
.form-file-dropzone.dragover {
    border-color: var(--accent);
    background: rgba(0, 212, 170, 0.05);
}

.form-file-dropzone .dropzone-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.form-file-dropzone .dropzone-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-file-dropzone .dropzone-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.form-file-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal-lg .modal {
    max-width: 700px;
}

.modal-sm .modal {
    max-width: 360px;
}

.modal-fullscreen .modal {
    max-width: 95vw;
    max-height: 95vh;
    border-radius: var(--radius-lg);
}

.modal-fullscreen .modal-body {
    max-height: calc(95vh - 130px);
}

.modal-confirm .modal-body {
    text-align: center;
    padding: 2rem 1.5rem;
}

.modal-confirm .confirm-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.modal-confirm .confirm-message {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.modal-confirm .confirm-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.modal-image-preview .modal {
    max-width: 90vw;
    background: transparent;
    border: none;
    box-shadow: none;
}

.modal-image-preview .modal-body {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image-preview .modal-body img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

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

.focus-visible:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-title {
        animation: none;
    }

    .announcement-scroll {
        animation: none;
    }

    .loading-spinner {
        animation: none;
        border-top-color: var(--accent);
    }

    .loading-dots .dot {
        animation: none;
        opacity: 1;
        transform: scale(1);
    }

    .loading-bar .loading-bar-fill {
        animation: none;
        width: 100%;
    }

    .skeleton {
        animation: none;
    }

    .achievement-rarity.legendary {
        animation: none;
    }

    .event-type-badge.limited {
        animation: none;
    }

    .pulse-glow {
        animation: none;
    }

    .float-animation {
        animation: none;
    }

    .glow-text {
        animation: none;
    }

    .monitor-status-indicator .status-dot {
        animation: none;
    }
}

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

    .shop-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .rich-list .rich-list-header,
    .rich-list .rich-list-item {
        grid-template-columns: 32px 1fr 100px 80px;
    }

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

    .calendar-grid {
        font-size: 0.8rem;
    }

    .download-card {
        flex-wrap: wrap;
    }

    .download-stats {
        width: 100%;
    }

    .featured-download {
        flex-direction: column;
        text-align: center;
    }

    .featured-download .featured-icon {
        width: 64px;
        height: 64px;
        font-size: 2rem;
    }

    .nav-dropdown-menu {
        min-width: 180px;
    }

    .notification-container {
        max-width: 320px;
    }

    .data-table-cell {
        font-size: 0.85rem;
    }

    .form-group-inline {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-group-inline .form-label {
        min-width: auto;
    }

    .modal-lg .modal {
        max-width: 95%;
    }
}

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

    .currency-card {
        padding: 1rem;
    }

    .currency-card .currency-icon {
        width: 44px;
        height: 44px;
        font-size: 1.4rem;
    }

    .shop-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .shop-item-card {
        padding: 1rem;
    }

    .shop-item-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .rich-list .rich-list-header,
    .rich-list .rich-list-item {
        grid-template-columns: 28px 1fr 80px;
    }

    .rich-list .rich-list-item .rich-change {
        display: none;
    }

    .wallet-section {
        padding: 1rem;
    }

    .wallet-section .wallet-balance {
        font-size: 1.2rem;
    }

    .team-card {
        padding: 1rem;
    }

    .team-card .team-logo {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .team-chat-box {
        height: 300px;
    }

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

    .event-card {
        padding: 1rem;
    }

    .event-calendar {
        padding: 1rem;
    }

    .calendar-day {
        font-size: 0.75rem;
    }

    .event-participants .participant-avatars img {
        width: 24px;
        height: 24px;
    }

    .download-card {
        padding: 1rem;
    }

    .download-icon {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }

    .featured-download {
        padding: 1.25rem;
    }

    .featured-download .featured-icon {
        width: 56px;
        height: 56px;
        font-size: 1.8rem;
    }

    .nav-dropdown-menu {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        right: 0;
        transform: none;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid var(--border-color);
        min-width: auto;
    }

    .notification-container {
        right: 0.5rem;
        left: 0.5rem;
        max-width: none;
    }

    .notification {
        max-width: 100%;
    }

    .data-table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .data-table-filter {
        width: 100%;
    }

    .data-table-filter .filter-input {
        min-width: 0;
        flex: 1;
    }

    .form-rich-text .toolbar {
        gap: 0.15rem;
    }

    .form-file-dropzone {
        padding: 1.5rem;
    }

    .modal-sm .modal {
        max-width: 95%;
    }

    .modal-confirm .confirm-icon {
        font-size: 2.5rem;
    }
}

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

    .shop-item-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .shop-price-tag {
        font-size: 0.8rem;
    }

    .price-chart-container {
        padding: 1rem;
    }

    .price-chart-container canvas {
        height: 150px;
    }

    .transaction-item {
        padding: 0.65rem 0.75rem;
        gap: 0.65rem;
    }

    .transaction-item .tx-type {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }

    .team-card .team-header {
        flex-direction: column;
        text-align: center;
    }

    .team-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .team-chat-box {
        height: 260px;
    }

    .create-team-form {
        padding: 1rem;
    }

    .event-card .event-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .event-timer {
        font-size: 0.75rem;
        padding: 0.35rem 0.65rem;
    }

    .calendar-grid {
        gap: 1px;
    }

    .calendar-day {
        font-size: 0.7rem;
    }

    .calendar-event-dot {
        width: 4px;
        height: 4px;
    }

    .event-reward-list {
        gap: 0.35rem;
    }

    .download-card {
        flex-direction: column;
        text-align: center;
    }

    .download-stats {
        justify-content: center;
    }

    .featured-download {
        padding: 1rem;
    }

    .featured-download .featured-name {
        font-size: 1.1rem;
    }

    .upload-form {
        padding: 1rem;
    }

    .form-file-dropzone {
        padding: 1rem;
    }

    .form-file-dropzone .dropzone-icon {
        font-size: 2rem;
    }

    .notification-container {
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        padding: 0.5rem;
    }

    .notification {
        max-width: 100%;
        border-radius: var(--radius-md);
    }

    .loading-spinner.lg {
        width: 44px;
        height: 44px;
    }

    .modal-fullscreen .modal {
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }

    .modal-image-preview .modal-body img {
        max-width: 100vw;
        max-height: 80vh;
    }
}

@media print {
    .economy-stats {
        display: block;
    }

    .economy-stats .stat-card {
        break-inside: avoid;
        border: 1px solid #ccc;
        box-shadow: none;
        margin-bottom: 0.5rem;
    }

    .currency-card {
        break-inside: avoid;
        border: 1px solid #ccc;
        box-shadow: none;
    }

    .rich-list {
        break-inside: avoid;
        border: 1px solid #ccc;
    }

    .wallet-section {
        break-inside: avoid;
        border: 1px solid #ccc;
    }

    .wallet-section .wallet-actions {
        display: none;
    }

    .shop-grid {
        display: block;
    }

    .shop-item-card {
        break-inside: avoid;
        border: 1px solid #ccc;
        box-shadow: none;
        transform: none;
    }

    .shop-item-card .shop-actions {
        display: none;
    }

    .price-chart-container {
        break-inside: avoid;
        border: 1px solid #ccc;
    }

    .transaction-list {
        break-inside: avoid;
        border: 1px solid #ccc;
    }

    .team-card {
        break-inside: avoid;
        border: 1px solid #ccc;
        box-shadow: none;
        transform: none;
    }

    .team-chat-box {
        display: none;
    }

    .team-leaderboard {
        break-inside: avoid;
        border: 1px solid #ccc;
    }

    .event-card {
        break-inside: avoid;
        border: 1px solid #ccc;
        box-shadow: none;
        transform: none;
    }

    .event-timer {
        display: none;
    }

    .event-calendar {
        break-inside: avoid;
        border: 1px solid #ccc;
    }

    .download-card {
        break-inside: avoid;
        border: 1px solid #ccc;
        box-shadow: none;
        transform: none;
    }

    .featured-download {
        break-inside: avoid;
        border: 1px solid #ccc;
        box-shadow: none;
    }

    .featured-download::before {
        display: none;
    }

    .upload-form {
        display: none;
    }

    .nav-dropdown-menu {
        display: none;
    }

    .notification-container {
        display: none;
    }

    .modal-backdrop,
    .modal-overlay {
        display: none;
    }

    .loading-spinner,
    .loading-dots,
    .loading-bar {
        display: none;
    }

    .skeleton {
        display: none;
    }

    .form-switch,
    .form-range,
    .form-color-picker,
    .form-tag-input,
    .form-rich-text,
    .form-file-dropzone {
        display: none;
    }
}

.theme-dark .economy-stats .stat-card {
    background: #0d1117;
}

.theme-dark .currency-card {
    background: #0d1117;
}

.theme-dark .rich-list {
    background: #0d1117;
}

.theme-dark .rich-list .rich-list-header {
    background: #0a0e14;
}

.theme-dark .wallet-section {
    background: #0d1117;
}

.theme-dark .shop-item-card {
    background: #0d1117;
}

.theme-dark .transaction-list {
    background: #0d1117;
}

.theme-dark .transaction-list .transaction-header {
    background: #0a0e14;
}

.theme-dark .team-card {
    background: #0d1117;
}

.theme-dark .team-chat-box {
    background: #0d1117;
}

.theme-dark .team-leaderboard {
    background: #0d1117;
}

.theme-dark .team-leaderboard .lb-header {
    background: #0a0e14;
}

.theme-dark .event-card {
    background: #0d1117;
}

.theme-dark .event-calendar {
    background: #0d1117;
}

.theme-dark .download-card {
    background: #0d1117;
}

.theme-dark .upload-form {
    background: #0d1117;
}

.theme-dark .featured-download {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.05), rgba(251, 191, 36, 0.05));
}

.theme-dark .price-chart-container {
    background: #0d1117;
}

.theme-dark .create-team-form {
    background: #0d1117;
}

.theme-dark .economy-rules {
    background: #0d1117;
}

.theme-dark .nav-dropdown-menu {
    background: #0d1117;
}

.theme-dark .notification {
    background: #0d1117;
}

/* === 精美页脚样式 === */
.site-footer {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, rgba(0, 0, 0, 0.08) 100%);
    border-top: 2px solid rgba(0, 212, 170, 0.15);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(0, 212, 170, 0.06) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(251, 191, 36, 0.04) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

.footer-container {
    max-width: 1400px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

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

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

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.footer-column p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.6rem;
}

.footer-column ul li a {
    color: var(--text-muted);
    font-size: 0.92rem;
    text-decoration: none;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-column ul li a::before {
    content: '→';
    font-size: 0.8rem;
    color: var(--accent);
    opacity: 0;
    transform: translateX(-5px);
    transition: all var(--transition-fast);
}

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

.footer-column ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-server-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-top: 1rem;
    box-shadow: var(--shadow-sm);
}

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

.online-indicator {
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulseStatus 2s infinite;
}

.offline-indicator {
    background: #ef4444;
}

@keyframes pulseStatus {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

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

.footer-social-links {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-social-link {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.footer-social-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.footer-social-link[data-platform="qq"]:hover { background: linear-gradient(135deg, #12b7f5, #0099ff); color: #fff; border-color: transparent; }
.footer-social-link[data-platform="discord"]:hover { background: linear-gradient(135deg, #5865f2, #7289da); color: #fff; border-color: transparent; }
.footer-social-link[data-platform="bilibili"]:hover { background: linear-gradient(135deg, #fb7299, #ff618a); color: #fff; border-color: transparent; }
.footer-social-link[data-platform="weibo"]:hover { background: linear-gradient(135deg, #e6162d, #ff4545); color: #fff; border-color: transparent; }
.footer-social-link[data-platform="github"]:hover { background: linear-gradient(135deg, #24292e, #2d333b); color: #fff; border-color: transparent; }

.footer-ip-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-ip-section span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-ip-section strong {
    color: var(--accent);
    font-weight: 700;
    font-family: var(--font-pixel);
}

.copy-ip-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--accent), #00b894);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.copy-ip-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.35);
}

.footer-links {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.footer-links h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-links h3::before {
    content: '🔗';
    font-size: 1.1rem;
}

.links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.friend-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.friend-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.08), rgba(251, 191, 36, 0.04));
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.friend-link:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.friend-link:hover::before {
    opacity: 1;
}

.friend-link img {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.friend-link span {
    position: relative;
    z-index: 1;
}

.footer-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

.footer-stat-item {
    text-align: center;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.footer-stat-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.footer-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.35rem;
}

.footer-stat-item span:last-child {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

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

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

.footer-version {
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-pixel);
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #00b894);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 212, 170, 0.35);
    z-index: 1000;
    transition: all var(--transition-fast);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 24px rgba(0, 212, 170, 0.45);
}

.cookie-consent {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    width: calc(100% - 2rem);
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-consent p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.cookie-consent-actions {
    display: flex;
    gap: 0.75rem;
}

@media (max-width: 640px) {
    .cookie-consent {
        flex-direction: column;
        text-align: center;
    }
    .cookie-consent-actions {
        width: 100%;
        justify-content: center;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        padding: 10px;
    }
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        margin: 10px 0;
    }
    .nav-user {
        margin-top: 10px;
        justify-content: center;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-section {
        margin-bottom: 20px;
    }
    .hero-content {
        padding: 20px;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .server-ip-box {
        flex-direction: column;
        padding: 10px;
    }
}
