:root {
    --ink: #0d1b2a;
    --blue-900: #1a3c63;
    --blue-800: #214c7b;
    --blue-700: #2e5f98;
    --blue-100: #e9f0fb;
    --line: #d7e2f4;
    --muted: #6c7a90;
    --bg: #f5f7fb;
    --white: #ffffff;
    --live: #1fa971;
    --scheduled: #f1a02b;
    --finished: #2e5f98;
}

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

body {
    font-family: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.4;
}

/* =====================================================
   HEADER
   ===================================================== */

header {
    background: #0c0c0c;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-row {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
}

header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    text-decoration: none;
    color: #fff !important;
}

header .logo img {
    width: 28px;
    height: 28px;
}

header .logo h1 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

header .nav-pills {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

header .nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.account-container {
    position: relative;
}

#account-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
}

#account-btn svg {
    width: 16px;
    height: 16px;
}

/* =====================================================
   SPORTS STRIP
   ===================================================== */

.sports-strip {
    background: #f7f9fd;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 2px solid var(--line);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-padding-left: 20px;
}

.sports-strip-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: flex-start;
    overflow-x: auto;
    width: max-content;
    min-width: 100%;
}

@media (min-width: 992px) {
    .sports-strip-inner {
        justify-content: center;
    }
}

.sport-pill {
    min-width: 86px;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px 12px;
    text-align: center;
    font-size: 12px;
    color: var(--blue-900);
    background: var(--white);
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sport-pill .sport-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    color: var(--blue-800);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    overflow: hidden;
}

.sport-icon svg {
    width: 36px;
    height: 36px;
    display: block;
}

.sport-icon svg.sport-svg {
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.sport-pill.active {
    background: var(--blue-100);
    border-color: var(--blue-700);
    box-shadow: 0 6px 14px rgba(26, 60, 99, 0.18);
    transform: translateY(-1px);
}

.sport-pill.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* =====================================================
   TOOLBAR
   ===================================================== */

.toolbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px;
    display: flex;
    gap: 10px;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
}

.mode-tabs {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.mode-tab {
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--blue-900);
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.2px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mode-tab.active {
    background: var(--blue-900);
    color: #fff;
    border-color: var(--blue-900);
}

.date-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.date-controls button {
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--blue-900);
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.date-controls input {
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--blue-900);
    padding: 7px 12px;
    border-radius: 6px;
    width: 120px;
    text-align: center;
    font-weight: 800;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    background: var(--white);
    padding: 6px 10px;
    border-radius: 8px;
    width: min(360px, 100%);
    justify-content: center;
}

.search-box input {
    border: none;
    outline: none;
    font-size: 14px;
    width: 100%;
    background: transparent;
    font-weight: 800;
    text-align: center;
}

/* =====================================================
   CONTENT & STAGE CARDS
   ===================================================== */

.content {
    max-width: 1520px;
    margin: 0 auto;
    padding: 0 18px 32px;
    width: 100%;
}

#fixtures,
.stage-card {
    width: 100%;
}

.section-title {
    color: var(--blue-900);
    font-weight: 700;
    font-size: 14px;
    margin: 8px 0 10px;
    text-transform: uppercase;
}

.stage-card {
    border: 1px solid var(--line);
    background: var(--white);
    margin-bottom: 14px;
}

.stage-header {
    background: var(--blue-800);
    color: var(--white);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 700;
}

.stage-header-link {
    width: auto;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--white);
    text-decoration: none;
    gap: 12px;
}

.stage-header-link,
.stage-header-link:visited,
.stage-header-link:hover,
.stage-header-link:active {
    color: var(--white);
    text-decoration: none;
}

.stage-header-link * {
    color: inherit;
    text-decoration: none;
}

.stage-header-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stage-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.stage-header-top {
    display: flex;
    color:white;
    align-items: center;
    gap: 8px;
}

.stage-header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stage-header-logo {
    width: 48px;
    height: 48px;
    border-radius: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.stage-header-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.stage-title {
    font-size: 14px;
    color: var(--white);
}

.stage-link {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.stage-link-arrow {
    font-size: 26px;
    line-height: 1;
}

.stage-odds-toggle-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
}

.stage-odds-label {
    color: var(--white);
}

.stage-link-arrow {
    font-size: 24px;
    line-height: 1;
    opacity: 1;
    color: #fff !important;
}

.stage-country {
    font-size: 12px;
    color: var(--white);
    font-weight: 600;
}

@media (max-width: 600px) {
    .sports-strip {
        padding: 0;
        scroll-padding-left: 20px;
    }

    .sports-strip-inner {
        max-width: none;
        margin: 0;
        justify-content: flex-start;
        padding-left: 20px;
        padding-right: 20px;
        width: max-content;
        min-width: 100%;
    }

    .sport-pill {
        min-width: 98px;
        padding: 10px 10px;
        gap: 6px;
        font-size: 12px;
    }

    .sport-pill .sport-icon {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .sport-icon svg {
        width: 18px;
        height: 18px;
    }

    .toolbar {
        padding: 8px;
        gap: 8px;
    }

    .date-controls input {
        width: 110px;
        font-size: 14px;
    }

    .search-box {
        width: 100%;
    }

    .stage-header {
        padding: 8px 10px;
    }

    .stage-header-logo {
        width: 36px;
        height: 36px;
    }

    .stage-header-logo img {
        width: 36px;
        height: 36px;
    }

    .stage-title {
        font-size: 13px;
    }

    .stage-country {
        font-size: 11px;
    }

    .status {
        font-size: 8.5px;
    }

    .team span {
        font-size: 10px;
    }

    .match-row {
        grid-template-columns: 72px 1fr 135px;
        grid-template-areas:
            "meta teams scores"
            "note note note";
    }

    .score-column {
        min-width: 135px;
    }

    .score-header,
    .score-line {
        gap: 6px;
        font-size: 9px;
    }

    .team-logos {
        width: 20px;
        height: 20px;
    }

    .team img {
        width: 12px;
        height: 12px;
    }

}

.match-note {
    grid-area: note;
    text-align: center;
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
    justify-self: center;
}

.team-name.team-winner {
    color: #ffffff;
    font-weight: 600;
}

.team-name.team-loser {
    color: #b0b7c3;
    font-weight: 500;
}

.team-name {
    position: relative;
    padding-left: 12px;
}

/* Team link styling - inherit color, no underline */
.team-link {
    color: inherit;
    text-decoration: none;
}

.team-link:hover {
    text-decoration: underline;
}

.team-link:visited {
    color: inherit;
}

.team-name .serve-indicator {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 0;
}

.team-score-winner span {
    color: var(--ink);
    font-weight: 700;
}

.team-score-loser span {
    color: #9aa4b2;
    font-weight: 600;
}

.score-pts {
    color: #f36c3d;
    font-weight: 700;
}

.serve-indicator {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f36c3d;
    margin-right: 6px;
    vertical-align: middle;
    box-shadow: 0 0 0 1px rgba(243, 108, 61, 0.4);
    opacity: 0;
}

.serve-indicator.is-active {
    opacity: 1;
}

.empty {
    padding: 14px;
    text-align: center;
    color: var(--muted);
}

.pagination {
    max-width: 1500px;
    margin: 0 auto;
    padding: 8px 12px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.page-btn {
    border: 1px solid var(--line);
    background: var(--white);
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.page-btn.active {
    background: var(--blue-100);
    border-color: var(--blue-700);
}

.page-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-toggle {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
}

/* =====================================================
   MOBILE-FIRST BASE STYLES (< 431px)
   ===================================================== */

.match-row {
    display: grid;
    grid-template-columns: 76px 1fr 150px;
    grid-template-areas:
        "meta teams scores"
        "note note note";
    column-gap: 6px;
    padding: 7px 6px;
    border-top: 1px solid var(--line);
    cursor: pointer;
    align-items: center;
    min-height: 52px;
}

.match-row:hover {
    background: #f0f4fb;
}

/* META */
.meta-col {
    grid-area: meta;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    white-space: normal;
    min-width: 76px;
}

.match-time {
    font-size: 9.5px;
    line-height: 1.2;
    color: var(--muted);
}

.status {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
    white-space: normal;
    word-break: break-word;
    max-width: 72px;
}

.status:empty {
    display: none;
}

.status.live { color: var(--live); }
.status.scheduled { color: var(--scheduled); }
.status.finished { color: var(--finished); }

/* TEAMS */
.teams {
    grid-area: teams;
    display: grid;
    grid-template-rows: auto auto;
    gap: 3px;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
}

.team {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 4px;
    min-width: 0;
    justify-content: flex-start;
    text-align: left;
    width: 100%;
}

.team-logos {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    border: none;
    justify-content: center;
    flex-shrink: 0;
}

.team img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex-shrink: 0;
}

.team span {
    font-weight: 600;
    white-space: nowrap;
    font-size: 10.5px;
    text-align: left;
    overflow: visible;
    text-overflow: clip;
}

.team.team-right {
    grid-template-columns: auto 1fr;
    justify-content: flex-start;
    text-align: left;
}

/* SCORES */
.score-column {
    grid-area: scores;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    min-width: 150px;
    width: 100%;
}

.score-header {
    font-size: 9px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.score-line {
    font-weight: 700;
    font-size: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.tennis-row .score-line {
    font-size: 10px;
    letter-spacing: 1px;
}

.tennis-row .score-header,
.tennis-row .score-line {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(16px, 1fr);
    column-gap: 6px;
    justify-content: end;
    align-items: center;
}

.tennis-row .score-header span,
.tennis-row .score-line span {
    min-width: 0;
    text-align: center;
}

.tennis-grid {
    display: grid;
    grid-template-columns: repeat(var(--tennis-cols, 4), 36px);
    column-gap: 8px;
    justify-content: end;
    align-items: center;
    text-align: center;
}

.tennis-grid span {
    display: block;
    width: 100%;
    text-align: center;
}

.tennis-row .score-column {
    min-width: 140px;
}

.tennis-row .score-line sup {
    font-size: 0.6em;
}

.score-header span,
.score-line span {
    display: inline-block;
    min-width: 20px;
    text-align: right;
}

.score-line sup {
    font-size: 0.65em;
    vertical-align: super;
    margin-left: 1px;
}

/* =====================================================
   SMALL MOBILE (≥431px) - Progressive Enhancement
   ===================================================== */

@media (min-width: 431px) {
    .match-row {
        grid-template-columns: 80px 1fr 160px;
        grid-template-areas:
            "meta teams scores"
            "note note note";
        column-gap: 6px;
        padding: 8px 8px;
    }

    .meta-col {
        min-width: 75px;
    }

    .match-time {
        font-size: 10px;
    }

    .status {
        font-size: 9.5px;
    }

    .team {
        gap: 5px;
    }

    .team img {
        width: 16px;
        height: 16px;
    }

    .team span {
        font-size: 11px;
    }

    .score-column {
        min-width: 160px;
    }
}

/* =====================================================
   MOBILE (≥481px)
   ===================================================== */

@media (min-width: 481px) {
    .match-row {
        grid-template-columns: 95px 1fr 170px;
        grid-template-areas:
            "meta teams scores"
            "note note note";
        column-gap: 8px;
        padding: 8px 10px;
    }

    .meta-col {
        min-width: 90px;
    }

    .match-time {
        font-size: 10.5px;
    }

    .status {
        font-size: 10px;
    }

    .teams {
        gap: 4px;
        flex: 1;
    }

    .team span {
        font-size: 11.5px;
    }

    .team img {
        width: 20px;
        height: 20px;
    }

    .score-column {
        gap: 4px;
        min-width: 170px;
    }
}

/* =====================================================
   TABLET (≥769px)
   ===================================================== */

@media (min-width: 769px) {
    .header-row {
        grid-template-columns: 1fr auto 1fr;
        text-align: left;
    }

    header .logo {
        justify-content: flex-start;
    }

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

    .search-box input {
        width: 220px;
    }

    .match-row {
        grid-template-columns: 95px 1fr 150px;
        grid-template-areas:
            "meta teams scores"
            "note note note";
        column-gap: 8px;
        align-items: center;
    }

    .meta-col {
        gap: 5px;
    }

    .score-column {
        min-width: 150px;
        padding-right: 10px;
    }

    .score-header span,
    .score-line span {
        min-width: 20px;
    }
}

/* =====================================================
   DESKTOP (≥1025px)
   ===================================================== */

@media (min-width: 1025px) {
    .match-row {
        grid-template-columns: 120px 1fr 180px;
        grid-template-areas:
            "meta teams scores"
            "note note note";
        column-gap: 10px;
        padding: 10px 14px;
        align-items: center;
    }

    .match-time {
        font-size: 12px;
    }

    .status {
        font-size: 11px;
    }

    .team span {
        font-size: 13px;
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
    }

    .score-column {
        min-width: 180px;
    }
}


/* Stage header overrides */
.stage-header,
.stage-header-link,
.stage-header-link * {
  color: #fff !important;
}

.stage-header .stage-title,
.stage-header .stage-country,
.stage-header .stage-link-arrow {
  color: #fff !important;
}

.stage-header .stage-link-arrow {
  font-size: 26px;
}

/* Live identifier */
.match-row.is-live {
  border-left: 3px solid #e03a3a;
  padding-left: 9px;
}

/* =====================================================
   ODDS TOGGLE
   ===================================================== */

.odds-toggle-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
}

.odds-toggle-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}

.odds-toggle {
    position: relative;
    width: 40px;
    height: 22px;
    background: var(--line);
    border-radius: 11px;
    cursor: pointer;
    transition: background 0.2s ease;
    border: none;
    padding: 0;
}

.odds-toggle::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: var(--white);
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.odds-toggle.active {
    background: var(--blue-700);
}

.odds-toggle.active::after {
    transform: translateX(18px);
}

/* =====================================================
   ODDS DISPLAY BAR
   ===================================================== */

.odds-bar {
    display: none;
    grid-template-columns: auto 1fr 1fr 1fr;
    gap: 2px;
    background: #0d1117;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    margin-top: -1px;
}

.odds-bar.show {
    display: grid;
}

.odds-bar.two-way {
    grid-template-columns: auto 1fr 1fr;
}

.odds-market-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    background: #161b22;
    font-size: 11px;
    font-weight: 600;
    color: #8b949e;
    text-transform: capitalize;
    white-space: nowrap;
}

.odds-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    background: #161b22;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
    cursor: pointer;
}

.odds-item:hover {
    background: #21262d;
}

.odds-item.suspended {
    opacity: 0.5;
    pointer-events: none;
}

.odds-team-name {
    font-size: 10px;
    color: #8b949e;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 4px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.odds-value {
    font-size: 14px;
    font-weight: 700;
    color: #f0f6fc;
}

.odds-value.up {
    color: #3fb950;
}

.odds-value.down {
    color: #f85149;
}

.odds-item.up .odds-trend {
    color: #3fb950;
}

.odds-item.down .odds-trend {
    color: #f85149;
}

.odds-trend {
    font-size: 10px;
    margin-left: 4px;
    font-weight: 700;
}

.odds-market-name {
    font-size: 8px;
    color: #6e7681;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Match wrapper for odds integration */
.match-wrapper {
    border-radius: 8px;
    border: 1px solid var(--line);
    overflow: hidden;
    margin-bottom: 4px;
    background: var(--white);
}

.match-wrapper .match-row {
    border-top: none;
    border-radius: 0;
}

.match-wrapper:first-child .match-row {
    border-top: none;
}

/* Loading state for odds */
.odds-bar.loading {
    min-height: 50px;
    position: relative;
}

.odds-bar.loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #30363d;
    border-top-color: #58a6ff;
    border-radius: 50%;
    animation: odds-spin 0.8s linear infinite;
}

@keyframes odds-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.odds-bar.locked {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.odds-bar.locked .odds-market-label {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted, #8b949e);
    font-size: 12px;
    width: 100%;
}

/* Odds bar in stage card context */
.stage-card .odds-bar {
    border-radius: 0;
}

/* Mobile adjustments for odds */
@media (max-width: 600px) {
    .odds-bar {
        gap: 1px;
    }

    .odds-item {
        padding: 8px 4px;
    }

    .odds-team-name {
        font-size: 9px;
    }

    .odds-value {
        font-size: 12px;
    }

    .odds-market-label {
        padding: 8px 8px;
        font-size: 10px;
    }

    .odds-toggle-container {
        margin-left: 8px;
    }

    .odds-toggle {
        width: 36px;
        height: 20px;
    }

    .odds-toggle::after {
        width: 16px;
        height: 16px;
    }

    .odds-toggle.active::after {
        transform: translateX(16px);
    }

    .stage-odds-toggle-wrap {
        gap: 4px;
        font-size: 10px;
    }

    .stage-odds-label {
        font-size: 10px;
    }

    .stage-header-right {
        gap: 8px;
    }
}

.search-tabs {
    display: flex;
    gap: 8px;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    background: #15181d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
    width: min(420px, 92vw);
    max-height: 360px;
    overflow: auto;
    z-index: 60;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) rgba(255, 255, 255, 0.08);
}

.search-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-panel[hidden],
.search-dropdown[hidden] {
    display: none !important;
}

.search-area {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
    color: #ffffff;
}

.search-dropdown::-webkit-scrollbar {
    width: 8px;
}

.search-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.search-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
}

.search-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

.search-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.search-item.search-category {
    width: 100%;
    justify-content: space-between;
    border: none;
    cursor: pointer;
}

.search-item-arrow {
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
}

.search-back {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    cursor: pointer;
}

.search-back:hover {
    background: rgba(255, 255, 255, 0.12);
}

.search-back-icon {
    font-size: 18px;
    opacity: 0.7;
}

.search-item-logo img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

.search-item-text {
    display: flex;
    flex-direction: column;
}

.search-item-title {
    font-size: 13px;
    font-weight: 600;
}

.search-item-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.search-empty {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
    .search-tabs {
        flex-wrap: wrap;
    }
    .search-item {
        padding: 10px;
    }
}
