:root {
    --bg: #070812;
    --bg-2: #0d1020;
    --panel: rgba(18, 22, 42, 0.94);
    --panel-2: rgba(25, 30, 56, 0.96);
    --border: rgba(150, 160, 255, 0.18);
    --border-strong: rgba(180, 190, 255, 0.32);
    --text: #f6f3ea;
    --muted: #b8bed8;
    --muted-2: #858ba7;
    --primary: #7c5cff;
    --primary-2: #416dff;
    --gold: #e9c46a;
    --green: #48d597;
    --red: #ff5f7d;
    --shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: #070812;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background-color: #070812;
    background-image:
        radial-gradient(circle at top, rgba(124, 92, 255, 0.18), transparent 34rem),
        linear-gradient(180deg, rgba(8, 9, 18, 0.88), rgba(6, 7, 14, 0.98)),
        url("/assets/img/hero-bg.jpg");
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 70%);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(8, 10, 20, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.brand-mark {
    color: var(--gold);
    text-shadow: 0 0 18px rgba(233, 196, 106, 0.6);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex-wrap: wrap;
}

.nav a {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
    transition: 0.18s ease;
}

.nav a:hover,
.nav a.active {
    color: #fff;
    text-shadow: 0 0 16px rgba(124, 92, 255, 0.9);
}

.hero {
    padding: 86px 0 58px;
    text-align: center;
}

.hero-card {
    max-width: 850px;
    margin: 0 auto;
    padding: 52px 34px;
    background:
        linear-gradient(180deg, rgba(24, 29, 55, 0.92), rgba(10, 12, 24, 0.96));
    border: 1px solid var(--border);
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--gold);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.hero h1,
.page-title {
    margin: 0 0 14px;
    font-size: clamp(2.3rem, 5vw, 4.2rem);
    line-height: 1.08;
    letter-spacing: 0.8px;
}

.hero p,
.page-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 13px 22px;
    border-radius: 13px;
    font-weight: 800;
    border: 1px solid transparent;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-primary,
.form button {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    box-shadow: 0 10px 28px rgba(80, 95, 255, 0.35);
}

.btn-primary:hover,
.form button:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.btn-secondary {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border-color: rgba(255,255,255,0.12);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.09);
}

.section {
    margin: 34px 0;
}

.section-header {
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    margin: 0 0 8px;
}

.section-description {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.grid-3,
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 26px 0;
}

.card,
.panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.card h3,
.panel h3 {
    margin-top: 0;
    color: #fff;
}

.card p,
.panel p {
    color: var(--muted);
    line-height: 1.7;
}

.number,
.stat-number {
    font-size: 2.45rem;
    font-weight: 900;
    color: #fff;
}

.stat-label {
    color: var(--muted);
    margin-top: 4px;
}

.table-wrap {
    overflow-x: auto;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.table,
table {
    width: 100%;
    border-collapse: collapse;
}

.table thead,
table thead {
    background: rgba(255,255,255,0.045);
}

.table th,
.table td,
table th,
table td {
    padding: 15px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.table th,
table th {
    color: #fff;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.table td,
table td {
    color: var(--muted);
}

.table tbody tr,
table tbody tr {
    transition: 0.15s ease;
}

.table tbody tr:hover,
table tbody tr:hover {
    background: rgba(124, 92, 255, 0.09);
}

.rank {
    color: var(--gold);
    font-weight: 900;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(124, 92, 255, 0.16);
    color: #ddd7ff;
    font-size: 0.85rem;
    font-weight: 800;
}

.badge-muted {
    background: rgba(255,255,255,0.06);
    color: var(--muted-2);
}

.guild-name {
    color: #fff;
    font-weight: 700;
}

.empty {
    color: var(--muted-2);
}

.form {
    max-width: 560px;
    margin: 36px auto;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
}

.form h2 {
    margin-top: 0;
}

.form label {
    display: block;
    margin: 14px 0 7px;
    color: var(--muted);
    font-weight: 700;
}

.form input,
.form select,
.form textarea {
    width: 100%;
    padding: 12px;
    background: rgba(4, 6, 14, 0.82);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    border-radius: 10px;
    outline: none;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.18);
}

.form button {
    width: 100%;
    border: none;
    margin-top: 22px;
}

.alert {
    padding: 13px 14px;
    border-radius: 12px;
    margin: 14px 0;
    line-height: 1.5;
}

.alert.error {
    background: rgba(255, 95, 125, 0.13);
    border: 1px solid rgba(255, 95, 125, 0.32);
    color: #ffd9e0;
}

.alert.success {
    background: rgba(72, 213, 151, 0.12);
    border: 1px solid rgba(72, 213, 151, 0.32);
    color: #d8ffeb;
}

.site-footer {
    margin-top: auto;
    padding: 32px 0 26px;
    background: rgba(5, 7, 16, 0.94);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
}

.footer-inner p,
.copyright {
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--muted);
    font-weight: 700;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    margin-top: 18px;
    font-size: 0.9rem;
}

@media (max-width: 920px) {
    .header-inner {
        flex-direction: column;
        justify-content: center;
        padding: 16px 0;
    }

    .nav {
        justify-content: center;
    }

    .grid-3,
    .cards {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 48px;
    }

    .hero-card {
        padding: 34px 20px;
    }

    .footer-inner {
        flex-direction: column;
    }
}

main {
    flex: 1;
}

.site-footer {
    margin-top: auto;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 0.9rem;
    margin: 8px 0 10px;
}

.status-pill::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.status-online {
    color: #d8ffeb;
    background: rgba(72, 213, 151, 0.14);
    border: 1px solid rgba(72, 213, 151, 0.34);
}

.status-online::before {
    background: #48d597;
    box-shadow: 0 0 12px rgba(72, 213, 151, 0.9);
}

.status-offline {
    color: #ffd9e0;
    background: rgba(255, 95, 125, 0.14);
    border: 1px solid rgba(255, 95, 125, 0.34);
}

.status-offline::before {
    background: #ff5f7d;
    box-shadow: 0 0 12px rgba(255, 95, 125, 0.9);
}

.main-grid,
.secondary-grid,
.quick-links-grid,
.stats-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 24px;
}

.stats-grid {
    grid-template-columns: repeat(3, 1fr);
}

.main-grid {
    grid-template-columns: 1fr 1fr 1.2fr;
    align-items: start;
}

.secondary-grid {
    grid-template-columns: 1fr 1.6fr;
    align-items: start;
}

.quick-links-grid {
    grid-template-columns: repeat(3, 1fr);
}

.card-wide {
    grid-column: span 1;
}

.stat-card {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-label {
    display: block;
    color: #b9c2ff;
    font-size: 14px;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    margin-bottom: 10px;
    color: #d6dcff;
    line-height: 1.6;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 18px;
}

.service-pill {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(129, 140, 248, 0.18);
    border-radius: 14px;
    padding: 18px;
    text-align: center;
}

.service-pill span {
    display: block;
    font-size: 13px;
    color: #cfd6ff;
    margin-bottom: 8px;
}

.service-pill strong {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
}

.service-pill.online strong {
    background: rgba(34, 197, 94, 0.18);
    color: #7ef0a3;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.table-clean {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.table-clean th,
.table-clean td {
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.table-clean th {
    color: #ffffff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.table-clean td {
    color: #d6dcff;
}

.small-card h3 {
    margin-bottom: 10px;
}

.small-card p {
    margin-bottom: 18px;
    color: #d6dcff;
    line-height: 1.6;
}

@media (max-width: 1100px) {
    .main-grid,
    .secondary-grid,
    .quick-links-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }
}

.server-info-section {
    display: grid;
    gap: 24px;
    margin: 28px 0;
}

.server-info-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
}

.server-info-bottom {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.info-list p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.65;
}

.info-list p:last-child {
    margin-bottom: 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 18px;
}

.service-card {
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 18px;
    text-align: center;
}

.service-card h3 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.server-info-bottom .card,
.server-info-bottom .panel {
    width: 100%;
}

@media (max-width: 900px) {
    .server-info-top {
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }
}

.form button,
.form .btn,
button[type="submit"] {
    width: 100%;
    min-height: 52px;
    margin-top: 24px;
    padding: 14px 22px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(80, 95, 255, 0.35);
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.form button:hover,
.form .btn:hover,
button[type="submit"]:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 16px 38px rgba(80, 95, 255, 0.45);
}

.form button:active,
.form .btn:active,
button[type="submit"]:active {
    transform: translateY(0);
}

.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    background: transparent;
    border: none;
    padding: 0;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.18s ease;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active {
    color: #fff;
    text-shadow: 0 0 16px rgba(124, 92, 255, 0.9);
}

.nav-caret {
    font-size: 0.75rem;
    color: var(--gold);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 170px;
    padding: 8px;
    background: rgba(10, 12, 24, 0.98);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: 0.18s ease;
    z-index: 100;
}

.nav-dropdown-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 14px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--muted);
    white-space: nowrap;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
    color: #fff;
    background: rgba(124, 92, 255, 0.14);
    text-shadow: none;
}

@media (max-width: 920px) {
    .nav-dropdown {
        width: 100%;
        justify-content: center;
    }

    .nav-dropdown-menu {
        left: 50%;
        min-width: 190px;
    }
}

.form textarea {
    resize: vertical;
    min-height: 120px;
    font-family: Arial, Helvetica, sans-serif;
}

.news-content {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: var(--muted);
    line-height: 1.8;
}

article.panel.section {
    margin-top: 24px;
}

.news-table {
    margin-top: 20px;
}

.news-content {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: var(--muted);
    line-height: 1.8;
}

.btn-danger {
    background: rgba(255, 95, 125, 0.14);
    color: #ffd9e0;
    border-color: rgba(255, 95, 125, 0.34);
}

.btn-danger:hover {
    background: rgba(255, 95, 125, 0.24);
    color: #ffffff;
}

.market-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.market-item-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    image-rendering: pixelated;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 5px;
}

.market-table td {
    vertical-align: middle;
}

.market-filters {
    margin-bottom: 26px;
    padding: 22px;
    background:
        linear-gradient(180deg, rgba(24, 29, 55, 0.92), rgba(10, 12, 24, 0.96));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.market-search-form {
    margin: 0;
}

.market-search-row {
    display: grid;
    grid-template-columns: minmax(260px, 2fr) minmax(170px, 1fr) minmax(170px, 1fr) auto;
    gap: 16px;
    align-items: end;
}

.market-search-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.market-search-field input,
.market-search-field select {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    background: rgba(5, 7, 16, 0.86);
    border: 1px solid rgba(150, 160, 255, 0.20);
    color: var(--text);
    border-radius: 13px;
    outline: none;
    font-weight: 700;
    transition: 0.18s ease;
}

.market-search-field input::placeholder {
    color: rgba(184, 190, 216, 0.65);
}

.market-search-field input:hover,
.market-search-field select:hover {
    border-color: rgba(233, 196, 106, 0.38);
}

.market-search-field input:focus,
.market-search-field select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.20);
    background: rgba(7, 9, 20, 0.95);
}

.market-search-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.market-search-actions .btn {
    min-height: 48px;
    white-space: nowrap;
}

.market-filters .stat-label {
    margin-top: 14px;
    color: var(--muted);
}

.market-filters .stat-label strong {
    color: #fff;
}

.market-table th a {
    color: #fff;
    text-decoration: none;
    transition: 0.18s ease;
}

.market-table th a:hover {
    color: var(--gold);
    text-shadow: 0 0 14px rgba(233, 196, 106, 0.45);
}

@media (max-width: 1050px) {
    .market-search-row {
        grid-template-columns: 1fr 1fr;
    }

    .market-search-actions {
        grid-column: 1 / -1;
    }

    .market-search-actions .btn {
        flex: 1;
    }
}

@media (max-width: 650px) {
    .market-search-row {
        grid-template-columns: 1fr;
    }

    .market-search-actions {
        flex-direction: column;
    }

    .market-search-actions .btn {
        width: 100%;
    }
}

@media (max-width: 1000px) {
    .market-search-row {
        grid-template-columns: 1fr;
    }

    .market-search-actions {
        flex-direction: column;
    }

    .market-search-actions .btn {
        width: 100%;
    }
}

.market-search-icon {
    position: absolute;
    left: 15px;
    color: var(--gold);
    font-size: 1.25rem;
    pointer-events: none;
    opacity: 0.95;
}

.market-search-box input {
    width: 100%;
    height: 50px;
    padding: 0 16px 0 44px;
    background: rgba(5, 7, 16, 0.88);
    border: 1px solid rgba(150, 160, 255, 0.22);
    color: var(--text);
    border-radius: 14px;
    outline: none;
    font-weight: 700;
    transition: 0.18s ease;
}

.market-search-box input::placeholder {
    color: rgba(184, 190, 216, 0.65);
    font-weight: 600;
}

.market-select-small {
    min-width: 140px;
}

.market-search-box input:hover,
.market-select:hover {
    border-color: rgba(233, 196, 106, 0.42);
}

.market-search-box input:focus,
.market-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.20);
}

.market-action-btn {
    height: 50px;
    white-space: nowrap;
    padding-left: 18px;
    padding-right: 18px;
}

.market-current-search {
    margin-top: 14px;
    padding: 10px 13px;
    display: inline-flex;
    gap: 6px;
    align-items: center;
    color: var(--muted);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    font-size: 0.95rem;
}

.market-current-search strong {
    color: #fff;
}

@media (max-width: 1150px) {
    .market-toolbar-form {
        grid-template-columns: 1fr 1fr;
    }

    .market-search-box {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .market-toolbar-form {
        grid-template-columns: 1fr;
    }

    .market-action-btn {
        width: 100%;
    }
}

.market-filters {
    margin: 28px 0 24px;
    padding: 22px;
    background: linear-gradient(180deg, rgba(24, 29, 55, 0.92), rgba(10, 12, 24, 0.96));
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.market-search-row {
    margin-bottom: 18px;
}

.market-search-input {
    width: 100%;
    height: 54px;
    padding: 0 18px;
    border-radius: 18px;
    border: 1px solid rgba(124, 92, 255, 0.75);
    background: rgba(5, 7, 16, 0.92);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    outline: none;
    box-shadow: 0 0 0 1px rgba(124, 92, 255, 0.12), 0 12px 30px rgba(0, 0, 0, 0.28);
    transition: 0.18s ease;
}

.market-search-input::placeholder {
    color: rgba(200, 205, 230, 0.62);
}

.market-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.20), 0 14px 34px rgba(0, 0, 0, 0.32);
}

.market-filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 16px;
    align-items: end;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.select-wrap {
    position: relative;
}

.market-select {
    width: 100%;
    height: 50px;
    padding: 0 44px 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(150, 160, 255, 0.25);
    background: rgba(5, 7, 16, 0.92);
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 800;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: 0.18s ease;
}

.market-select:hover {
    border-color: rgba(233, 196, 106, 0.45);
}

.market-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.20);
}

.market-select option {
    background: #0b1024;
    color: #ffffff;
}

.select-wrap::after {
    content: "▾";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    pointer-events: none;
    font-size: 0.9rem;
}

.filter-actions .btn {
    height: 50px;
    white-space: nowrap;
}

.market-current-search {
    margin-top: 16px;
    padding: 10px 14px;
    display: inline-flex;
    gap: 6px;
    align-items: center;
    color: var(--muted);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    font-size: 0.95rem;
}

.market-current-search strong {
    color: #ffffff;
}

@media (max-width: 900px) {
    .market-filter-row {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        flex-direction: column;
    }

    .filter-actions .btn {
        width: 100%;
    }
}

.filter-actions {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    padding-top: 25px;
}

.filter-actions .btn {
    height: 50px;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}