/* RUST-BUILD.HELP - Global Styles */

* {
    font-family: 'Rajdhani', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    color: #fff;
    position: relative;
    overflow-x: hidden;
}

#video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.45;
    filter: brightness(0.7) contrast(1.2);
}

#video-background-monitoring {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.45;
    filter: brightness(0.7) contrast(1.2);
}

#video-background-tools {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.45;
    filter: brightness(0.7) contrast(1.2);
}

#video-background-blog,
#video-background-updates {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.45;
    filter: brightness(0.7) contrast(1.2);
}

.content-wrapper {
    position: relative;
    z-index: 1;
}

.glass-border {
    background: rgba(15, 15, 15, 0.85);
    border: 1px solid rgba(100, 100, 100, 0.3);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.02em;
}

.text-glow {
    text-shadow: 0 0 20px rgba(220, 38, 38, 0.6),
                 0 0 40px rgba(220, 38, 38, 0.4);
}

.btn-primary {
    background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 6px 25px rgba(220, 38, 38, 0.6);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(100, 100, 100, 0.5);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

.card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(80, 80, 80, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(220, 38, 38, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.2);
}

.nav-link {
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

.nav-link.active {
    color: #dc2626;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #dc2626;
}

.element-item {
    background: rgba(30, 30, 30, 0.9);
    border: 1px solid rgba(80, 80, 80, 0.4);
    border-radius: 6px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.element-item:hover {
    background: rgba(220, 38, 38, 0.2);
    border-color: rgba(220, 38, 38, 0.6);
}

.element-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.resource-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .desktop-only {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}

/* Privilege badges colors */
.privilege-user {
    color: #9ca3af;
    border-color: rgba(156, 163, 175, 0.3);
}

.privilege-media {
    color: #a855f7;
    border-color: rgba(168, 85, 247, 0.3);
}

.privilege-admin {
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.3);
}

.privilege-developer {
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.3);
}

/* Page switching */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Calculator styles */
.door-card {
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(80, 80, 80, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.door-card:hover {
    border-color: rgba(220, 38, 38, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.2);
}

.door-card.active {
    border-color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

.option-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
}

.option-item:hover {
    transform: scale(1.05);
}

.tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(220, 38, 38, 0.5);
    border-radius: 8px;
    padding: 12px 16px;
    min-width: 280px;
    max-width: 320px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    margin-bottom: 10px;
    z-index: 100;
}

.option-item:hover .tooltip {
    opacity: 1;
    animation: fadeInTooltip 0.3s ease 1s forwards;
}

@keyframes fadeInTooltip {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tooltip-header {
    color: #dc2626;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    text-align: center;
}

.tooltip-content {
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 16px;
    padding: 8px;
}

/* ============================================
   PRICE MONITORING PAGE
   ============================================ */

.monitoring-header {
    margin-bottom: 2rem;
}

.monitoring-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.monitoring-tab {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.25rem;
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(80, 80, 80, 0.4);
    border-radius: 8px;
    color: #9ca3af;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.25s ease;
}

.monitoring-tab:hover {
    border-color: rgba(220, 38, 38, 0.5);
    color: #fff;
}

.monitoring-tab.active {
    background: rgba(220, 38, 38, 0.15);
    border-color: #dc2626;
    color: #fff;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.25);
}

.monitoring-tab-count {
    background: rgba(0, 0, 0, 0.4);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #dc2626;
}

.monitoring-search-wrap {
    position: relative;
    margin-bottom: 1.5rem;
}

.monitoring-search {
    width: 100%;
    max-width: 480px;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    background: rgba(15, 15, 15, 0.9);
    border: 1px solid rgba(80, 80, 80, 0.4);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s;
}

.monitoring-search:focus {
    border-color: #dc2626;
}

.monitoring-search-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.1rem;
    height: 1.1rem;
    color: #6b7280;
    pointer-events: none;
}

.monitoring-location-desc {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.monitoring-shops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
}

.monitoring-shop-card {
    padding: 1.25rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.monitoring-shop-card:hover {
    border-color: rgba(220, 38, 38, 0.4);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.monitoring-shop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(80, 80, 80, 0.3);
}

.monitoring-shop-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.monitoring-badge {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    white-space: nowrap;
}

.monitoring-badge-buy {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.monitoring-badge-sell {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.monitoring-badge-exchange {
    background: rgba(234, 179, 8, 0.15);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.35);
}

.monitoring-items-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.monitoring-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(60, 60, 60, 0.3);
    border-radius: 6px;
    transition: background 0.2s, border-color 0.2s;
}

.monitoring-item:hover {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.3);
}

.monitoring-item-name {
    flex: 1;
    min-width: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.monitoring-trade {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.monitoring-trade-side {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.monitoring-item-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.monitoring-currency-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.monitoring-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    min-width: 2ch;
    text-align: right;
}

.monitoring-qty {
    font-size: 0.7rem;
    font-weight: 700;
    color: #dc2626;
    background: rgba(220, 38, 38, 0.15);
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
}

.monitoring-arrow {
    color: #4b5563;
    font-weight: 700;
    font-size: 0.9rem;
}

.monitoring-empty {
    padding: 3rem;
    text-align: center;
    color: #6b7280;
    grid-column: 1 / -1;
}

.monitoring-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.monitoring-legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.monitoring-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

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

    .monitoring-tab {
        flex: 1 1 calc(50% - 0.5rem);
        justify-content: center;
    }

    .monitoring-item-name {
        display: none;
    }
}

/* ============================================
   TOOLS PAGE
   ============================================ */

.tools-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.tools-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.tools-hero-subtitle {
    color: #9ca3af;
    font-size: 1.15rem;
    max-width: 36rem;
    margin: 0 auto;
}

.tools-intro {
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #d1d5db;
    border-left: 3px solid #dc2626;
}

.tools-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.tools-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
    align-items: center;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.tools-feature:hover {
    border-color: rgba(220, 38, 38, 0.4);
    transform: translateY(-2px);
}

.tools-feature-reverse .tools-feature-body {
    order: 2;
}

.tools-feature-reverse .tools-feature-visual {
    order: 1;
}

.tools-feature-num {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #dc2626;
    background: rgba(220, 38, 38, 0.12);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.tools-feature-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.tools-feature-desc {
    color: #9ca3af;
    line-height: 1.65;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

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

.tools-feature-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    color: #d1d5db;
    font-size: 0.95rem;
}

.tools-feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    background: #dc2626;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(220, 38, 38, 0.6);
}

.tools-feature-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: none;
}

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

.tools-visual-frame {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(100, 100, 100, 0.35);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(220, 38, 38, 0.1);
    transition: box-shadow 0.3s ease;
}

.tools-feature:hover .tools-visual-frame {
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6),
                0 0 30px rgba(220, 38, 38, 0.15);
}

.tools-visual-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.6));
}

.tools-visual-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: #4ade80;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

.tools-visual-badge-soon {
    background: rgba(220, 38, 38, 0.2);
    border-color: rgba(220, 38, 38, 0.5);
    color: #f87171;
}

.tools-footer-cta {
    text-align: center;
    padding: 2.5rem 2rem;
    margin-bottom: 1rem;
}

.tools-footer-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.tools-footer-desc {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.tools-footer-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

@media (max-width: 900px) {
    .tools-hero-title {
        font-size: 2.25rem;
    }

    .tools-feature,
    .tools-feature-reverse {
        grid-template-columns: 1fr;
    }

    .tools-feature-reverse .tools-feature-body,
    .tools-feature-reverse .tools-feature-visual {
        order: unset;
    }

    .tools-feature-visual {
        order: -1;
    }

    .tools-visual-frame {
        max-width: 260px;
        margin: 0 auto;
    }
}

/* ============================================
   BLOG PAGE
   ============================================ */

#page-blog {
    position: relative;
}

.blog-version-tag {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.08);
    user-select: none;
    pointer-events: none;
}

.blog-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.blog-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.blog-hero-subtitle {
    color: #9ca3af;
    font-size: 1.15rem;
}

.blog-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.blog-section {
    padding: 2rem;
}

.blog-section-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #dc2626;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}

.blog-section p {
    color: #d1d5db;
    line-height: 1.75;
    font-size: 1rem;
}

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

.blog-feature-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(80, 80, 80, 0.25);
    border-radius: 8px;
    padding: 1.25rem;
    transition: border-color 0.3s ease;
}

.blog-feature-card:hover {
    border-color: rgba(220, 38, 38, 0.35);
}

.blog-feature-icon-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.home-monitoring-card {
    cursor: pointer;
    transition: border-color 0.25s ease, transform 0.2s ease;
    border: 1px solid rgba(80, 80, 80, 0.3);
    width: 100%;
}

.home-monitoring-card:hover {
    border-color: rgba(220, 38, 38, 0.45);
    transform: translateY(-2px);
}

.home-monitoring-card-header {
    margin-bottom: 1rem;
}

.home-monitoring-rows {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.home-monitoring-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.home-monitoring-row-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex: 1;
}

.home-monitoring-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.home-monitoring-item-name {
    font-size: 0.8rem;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-monitoring-row-price {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.home-monitoring-currency {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Bases page — 3D viz coming soon */
.bases-viz-img-wrap {
    position: relative;
    overflow: hidden;
}

.bases-viz-3d-img {
    filter: brightness(0.55) saturate(0.85);
}

.bases-viz-soon-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.bases-viz-soon-badge {
    font-size: 1.75rem;
    font-weight: 800;
    color: #dc2626;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-shadow: 0 0 24px rgba(220, 38, 38, 0.7), 0 2px 8px rgba(0, 0, 0, 0.8);
}

.bases-viz-3d-card {
    opacity: 0.92;
}

.blog-feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.blog-feature-card p {
    font-size: 0.875rem;
    color: #9ca3af;
    line-height: 1.55;
}

.blog-disclaimer {
    padding: 1rem 0 0.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(80, 80, 80, 0.15);
}

.blog-disclaimer p {
    font-size: 0.7rem;
    line-height: 1.6;
    color: rgba(156, 163, 175, 0.45);
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.blog-site-subtitle {
    color: #6b7280;
    font-size: 0.9rem;
    margin: -0.75rem 0 1.5rem;
}

.blog-site-timeline {
    max-width: none;
    margin: 0;
}

.blog-site-timeline .updates-entry {
    padding: 1.5rem;
}

/* ============================================
   UPDATES PAGE
   ============================================ */

.updates-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.updates-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
}

.updates-hero-subtitle {
    color: #9ca3af;
    font-size: 1.15rem;
}

.updates-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 720px;
    margin: 0 auto;
}

.updates-entry {
    padding: 2rem;
    border-left: 3px solid #dc2626;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.updates-entry:hover {
    transform: translateX(4px);
}

.updates-entry-soon {
    border-left-color: rgba(100, 100, 100, 0.4);
    opacity: 0.75;
}

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

.updates-version {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.4);
    color: #f87171;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.updates-version-soon {
    background: rgba(100, 100, 100, 0.15);
    border-color: rgba(100, 100, 100, 0.4);
    color: #9ca3af;
}

.updates-date {
    font-size: 0.8rem;
    color: #6b7280;
}

.updates-entry-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
}

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

.updates-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.5;
}

.updates-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #dc2626;
    font-weight: 700;
}

.updates-empty {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 480px;
    margin: 2rem auto 0;
}

.updates-empty-icon {
    width: 4rem;
    height: 4rem;
    color: #374151;
    margin: 0 auto 1.5rem;
}

.updates-empty-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 0.75rem;
    letter-spacing: 0.04em;
}

.updates-empty-desc {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.65;
}

@media (max-width: 768px) {
    .blog-hero-title,
    .updates-hero-title {
        font-size: 2.25rem;
    }

    .blog-features-grid {
        grid-template-columns: 1fr;
    }

    .blog-version-tag {
        font-size: 0.6rem;
    }
}

/* Top up page */
.topup-page-wrap {
    width: 100%;
    max-width: 56rem;
    min-height: 32rem;
    padding-bottom: 2.5rem;
}

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

@media (min-width: 640px) {
    .topup-packages-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

.topup-package {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 11.5rem;
    padding: 1.5rem 1rem 1.35rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: border-color 0.25s ease, transform 0.2s ease, background 0.25s ease;
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 100%;
}

.topup-package:hover {
    border-color: rgba(220, 38, 38, 0.5);
    transform: translateY(-2px);
}

.topup-package-selected {
    border-color: #dc2626 !important;
    background: rgba(127, 29, 29, 0.2);
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.35);
}

.topup-package-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #374151;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    letter-spacing: 0.04em;
}

.topup-package-badge-popular {
    background: #dc2626;
}

.topup-package-badge-free {
    background: #166534;
}

.topup-package-ad {
    border-color: rgba(34, 197, 94, 0.25);
}

.topup-package-ad:hover {
    border-color: rgba(34, 197, 94, 0.45);
}

.topup-package-ad.topup-package-selected {
    border-color: #22c55e !important;
    background: rgba(22, 101, 52, 0.15);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35);
}

.topup-package-price-free {
    color: #4ade80;
}

.topup-package-icon {
    width: 3.75rem;
    height: 3.75rem;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.topup-package-fuel {
    font-size: 1.625rem;
    font-weight: 800;
    color: #dc2626;
    line-height: 1.2;
}

.topup-package-fuel-label {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.topup-package-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #f3f4f6;
}

.topup-package-rate {
    font-size: 0.65rem;
    color: #6b7280;
    margin-top: 0.35rem;
}

.topup-checkout {
    animation: topupFadeIn 0.3s ease;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

#topup-payment-block {
    margin-bottom: 1.25rem;
}

#topup-payment-block.hidden {
    display: none;
}

@keyframes topupFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.topup-payment-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin-bottom: 0.75rem;
    text-align: center;
}

.topup-payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.topup-payment-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(80, 80, 80, 0.4);
    background: rgba(0, 0, 0, 0.3);
    color: #d1d5db;
    font-size: 0.8rem;
    font-weight: 600;
    pointer-events: none;
    user-select: none;
}

.topup-payment-icon {
    width: 1.1rem;
    height: 1.1rem;
    color: #9ca3af;
    flex-shrink: 0;
}

.topup-payment-hint {
    font-size: 0.7rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 1.25rem;
}

.topup-pay-btn {
    display: block;
    width: 100%;
    padding: 0.9rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: #7f1d1d;
    color: #6b7280;
    border: 1px solid rgba(80, 80, 80, 0.4);
    cursor: not-allowed;
    opacity: 0.65;
}

.topup-pay-btn:not(:disabled) {
    background: linear-gradient(to right, #dc2626, #991b1b);
    color: #fff;
    border-color: rgba(220, 38, 38, 0.5);
    cursor: pointer;
    opacity: 1;
    transition: filter 0.2s ease, transform 0.15s ease;
}

.topup-pay-btn:not(:disabled):hover {
    filter: brightness(1.08);
}

.topup-pay-btn:not(:disabled):active {
    transform: scale(0.99);
}

.topup-pay-disabled-note {
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
    margin-top: 0.75rem;
}

/* Create base — 2D preview */
.base-preview-viewport {
    min-height: 560px;
    height: 70vh;
    max-height: 700px;
    background: #1a1a1a;
    border: 1px solid rgba(80, 80, 80, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.base-preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    width: 100%;
}

.base-preview-placeholder.hidden {
    display: none;
}

.base-preview-icon {
    width: 5rem;
    height: 5rem;
    color: #4b5563;
    margin-bottom: 1rem;
}

.base-preview-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.base-preview-hint {
    font-size: 0.875rem;
    color: #6b7280;
    max-width: 22rem;
}

.base-preset-info {
    margin-top: 1.25rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(80, 80, 80, 0.25);
    max-width: 24rem;
    text-align: left;
}

.base-preset-info-name {
    font-weight: 700;
    color: #dc2626;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.base-preset-info-desc {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 0.35rem;
}

.base-preset-info-folder {
    font-size: 0.7rem;
    color: #6b7280;
    font-family: monospace;
}

.base-preview-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.base-preview-content.hidden {
    display: none;
}

.base-preview-image {
    max-width: 100%;
    max-height: calc(100% - 3rem);
    object-fit: contain;
    border-radius: 0.25rem;
}

.base-preview-image.hidden {
    display: none;
}

.base-preview-missing {
    color: #9ca3af;
    font-size: 0.9rem;
    text-align: center;
    padding: 2rem;
}

.base-preview-missing.hidden {
    display: none;
}

.base-floor-tabs {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.base-floor-tab {
    padding: 0.4rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.375rem;
    border: 1px solid rgba(80, 80, 80, 0.4);
    background: rgba(0, 0, 0, 0.4);
    color: #9ca3af;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.base-floor-tab:hover {
    border-color: rgba(220, 38, 38, 0.5);
    color: #f3f4f6;
}

.base-floor-tab-active {
    border-color: #dc2626;
    color: #dc2626;
    background: rgba(127, 29, 29, 0.25);
}

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

.param-team-btn {
    position: relative;
    padding: 0.65rem 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(80, 80, 80, 0.4);
    background: rgba(0, 0, 0, 0.35);
    color: #9ca3af;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.param-team-btn:hover {
    border-color: rgba(220, 38, 38, 0.45);
    color: #e5e7eb;
}

.param-team-btn-active {
    border-color: #dc2626;
    color: #f3f4f6;
    background: rgba(127, 29, 29, 0.25);
}

.param-team-btn-clan {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}

.param-team-clan-hint {
    font-size: 0.55rem;
    font-weight: 500;
    color: #4b5563;
    letter-spacing: 0.02em;
    text-transform: none;
    opacity: 0.7;
}

.param-team-btn-active .param-team-clan-hint {
    color: #6b7280;
}

/* Home — Quick Start */
.home-quickstart {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(80, 80, 80, 0.2);
}

.home-quickstart-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.home-quickstart-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.home-quickstart-subtitle {
    color: #9ca3af;
    font-size: 0.95rem;
}

.home-stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
    .home-stats-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

.home-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.75rem;
    border-radius: 0.5rem;
    text-align: center;
}

.home-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    color: #f3f4f6;
}

.home-stat-label {
    font-size: 0.7rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.25rem;
}

.home-quickstart-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .home-quickstart-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.home-quick-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    padding: 0;
    overflow: hidden;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: border-color 0.25s ease, transform 0.2s ease;
    background: rgba(0, 0, 0, 0.25);
    width: 100%;
}

.home-quick-card:hover {
    border-color: rgba(220, 38, 38, 0.5);
    transform: translateY(-3px);
}

.home-quick-card-img {
    width: 100%;
    height: 7rem;
    object-fit: contain;
    padding: 1rem 1rem 0;
    pointer-events: none;
}

.home-quick-card-img-fuel {
    height: 5.5rem;
    padding-top: 1.5rem;
}

.home-quick-card-body {
    padding: 1rem 1.25rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.home-quick-card-body h3 {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
}

.home-quick-card-body p {
    font-size: 0.8rem;
    color: #9ca3af;
    line-height: 1.45;
    flex: 1;
    margin-bottom: 0.75rem;
}

.home-quick-card-link {
    font-size: 0.75rem;
    font-weight: 700;
    color: #dc2626;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.home-quick-card-free {
    border-color: rgba(34, 197, 94, 0.25);
}

.home-quick-card-free:hover {
    border-color: rgba(34, 197, 94, 0.5);
}

.home-quick-card-link-free {
    color: #4ade80;
}

/* Admin panel */
.admin-wrap {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 0 3rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.admin-kicker {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    color: #6b7280;
    margin-bottom: 0.35rem;
}

.admin-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.admin-subtitle {
    color: #9ca3af;
    font-size: 0.9rem;
}

.admin-gate,
.admin-panel {
    padding: 1.5rem;
}

.admin-gate-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.admin-gate-message {
    color: #9ca3af;
    margin-bottom: 1rem;
}

.admin-password-form {
    max-width: 24rem;
    display: grid;
    gap: 0.75rem;
}

.admin-label {
    font-size: 0.8rem;
    color: #9ca3af;
}

.admin-input {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(120, 120, 120, 0.35);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.admin-toolbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-last-refresh {
    font-size: 0.8rem;
    color: #6b7280;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.admin-stat-card {
    padding: 1rem 1.1rem;
}

.admin-stat-card p {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.35rem;
}

.admin-stat-card strong {
    font-size: 1.6rem;
    font-weight: 800;
}

.admin-stat-online strong { color: #22c55e; }
.admin-stat-blocked strong { color: #ef4444; }

.admin-table-wrap {
    padding: 1rem;
}

.admin-table-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.admin-table-head h2 {
    font-size: 1.1rem;
    font-weight: 700;
}

.admin-users-count {
    font-size: 0.8rem;
    color: #6b7280;
}

.admin-table-scroll {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.admin-table th,
.admin-table td {
    padding: 0.7rem 0.55rem;
    border-bottom: 1px solid rgba(120, 120, 120, 0.2);
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    color: #9ca3af;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-empty {
    text-align: center;
    color: #6b7280;
    padding: 1.5rem !important;
}

.admin-user-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-align: left;
}

.admin-user-link:hover span {
    color: #f87171;
}

.admin-user-avatar {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 999px;
    object-fit: cover;
}

.admin-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
    color: #9ca3af;
}

.admin-role {
    display: inline-flex;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-role-user { background: rgba(107, 114, 128, 0.2); color: #d1d5db; }
.admin-role-media { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
.admin-role-admin { background: rgba(234, 179, 8, 0.2); color: #fde047; }
.admin-role-developer { background: rgba(220, 38, 38, 0.25); color: #fca5a5; }

.profile-privilege-developer {
    border-color: rgba(220, 38, 38, 0.55) !important;
    box-shadow: 0 0 18px rgba(220, 38, 38, 0.15);
}

.profile-privilege-developer span {
    color: #fca5a5;
}

.profile-privilege-admin span { color: #fde047; }
.profile-privilege-media span { color: #93c5fd; }

.admin-status {
    font-size: 0.72rem;
    color: #9ca3af;
}

.admin-status-online { color: #22c55e; font-weight: 700; }
.admin-status-blocked { color: #ef4444; font-weight: 700; }

.admin-actions {
    white-space: nowrap;
}

.admin-btn {
    border: none;
    border-radius: 0.4rem;
    padding: 0.35rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
}

.admin-btn-block {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.admin-btn-unblock {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

.admin-protected {
    font-size: 0.72rem;
    color: #6b7280;
}

.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.admin-modal.hidden { display: none; }

.admin-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.admin-modal-card {
    position: relative;
    width: min(100%, 34rem);
    padding: 1.25rem;
    z-index: 1;
}

.admin-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.85rem;
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1.5rem;
    cursor: pointer;
}

.admin-modal-user {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    margin-bottom: 1rem;
}

.admin-modal-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 999px;
    object-fit: cover;
}

.admin-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.admin-modal-grid div {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 0.5rem;
    padding: 0.65rem 0.75rem;
}

.admin-modal-grid span {
    display: block;
    font-size: 0.72rem;
    color: #9ca3af;
    margin-bottom: 0.2rem;
}

.admin-block-reason {
    color: #fca5a5;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.admin-modal-actions {
    display: flex;
    justify-content: flex-end;
}
