/* RayCity Next — Drop / Bingo / Crafting Browser (Polished Nightdrive) */
.nav nav .drop-nav-link {
    color: #ffd0a0;
    border: 1px solid rgba(255, 147, 47, .35);
    border-radius: 6px;
    padding: 0 13px;
    background: rgba(255, 147, 47, .06);
}
.nav nav .drop-nav-link:hover {
    color: #fff;
    border-color: rgba(255, 147, 47, .75);
    background: rgba(255, 147, 47, .16);
}
.nav nav .drop-nav-link[aria-current="page"] {
    color: #1c0f04;
    border-color: var(--accent);
    background: linear-gradient(135deg, #ffa74a, #ff811c);
    box-shadow: 0 4px 16px rgba(255, 147, 47, .32);
}

.drop-page .site-backdrop { opacity: .34; }
.drop-page .backdrop-shade {
    background:
        radial-gradient(circle at 80% 10%, rgba(255, 147, 47, .1), transparent 45%),
        linear-gradient(180deg, rgba(7, 10, 16, .12), #070a10 620px),
        linear-gradient(90deg, #070a10, rgba(7, 10, 16, .55));
}
.drop-main {
    width: min(1200px, calc(100% - 64px));
    margin: 0 auto;
    padding: 48px 0 72px;
}
.drop-heading { margin-bottom: 24px; }
.drop-heading h1 {
    margin: 0;
    font: 700 clamp(2rem, 4vw, 2.9rem)/1.25 'Oxanium', 'Kanit', sans-serif;
    letter-spacing: -.5px;
}
.drop-search-form { margin: 0; }
.drop-search-label { display: block; margin: 0 0 9px; color: #d1dbe8; font-size: .9rem; }
.drop-search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 10px 0 18px;
    background: rgba(13, 20, 32, .9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(215, 229, 248, .18);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    transition: border-color .2s, box-shadow .2s;
}
.drop-search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 147, 47, .18), 0 12px 32px rgba(0, 0, 0, .3);
}
.drop-search-icon {
    width: 17px;
    height: 17px;
    border: 2px solid #9eb0c9;
    border-radius: 50%;
    position: relative;
    flex: 0 0 auto;
    margin-right: 3px;
}
.drop-search-icon::after { content: ''; position: absolute; width: 7px; height: 2px; background: #9eb0c9; right: -6px; bottom: -3px; transform: rotate(45deg); }
.drop-search-box input {
    width: 100%;
    min-width: 0;
    height: 54px;
    margin: 0;
    padding: 0 5px;
    border: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
    appearance: none;
}
.drop-search-box input::placeholder { color: #7e8fa6; opacity: 1; }
.drop-search-box input::-webkit-search-cancel-button { display: none; }
.drop-clear {
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 6px;
    color: #e4ecf8;
    padding: 8px 14px;
    background: rgba(34, 47, 68, .85);
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}
.drop-clear:hover { background: #2d3e57; border-color: rgba(255, 147, 47, .45); }
.drop-status { margin: 16px 0 22px; font-size: .9rem; color: #a7b6cb; min-height: 24px; }
.drop-results { display: grid; gap: 14px; }
.drop-npc {
    border: 1px solid rgba(215, 229, 248, .12);
    border-radius: 12px;
    background: rgba(13, 20, 31, .88);
    backdrop-filter: blur(12px);
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
    transition: border-color .2s;
}
.drop-npc[open] {
    border-color: rgba(255, 147, 47, .48);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}
.drop-npc__summary {
    min-height: 78px;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    list-style: none;
    transition: background .2s;
}
.drop-npc__summary::-webkit-details-marker { display: none; }
.drop-npc__summary:hover { background: rgba(255, 255, 255, .03); }
.drop-npc__summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.drop-npc__title { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 14px; min-width: 0; }
.drop-npc__title h2 { margin: 0; font-size: 1.15rem; font-weight: 600; overflow-wrap: anywhere; }
.drop-npc__count {
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: #a9b8ce;
    font-size: .78rem;
    white-space: nowrap;
}
.drop-npc__action { display: inline-flex; align-items: center; gap: 12px; color: #ffb36d; font-size: .85rem; white-space: nowrap; }
.drop-npc__arrow { display: inline-block; line-height: 1; font-size: 1.35rem; transition: transform .2s ease; }
.drop-npc[open] .drop-npc__arrow { transform: rotate(180deg); }
.drop-npc__open-label { display: none; }
.drop-npc[open] .drop-npc__closed-label { display: none; }
.drop-npc[open] .drop-npc__open-label { display: inline; }

.drop-items {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 4px 20px 22px;
}
.drop-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
    border: 1px solid rgba(215, 229, 248, .1);
    border-radius: 10px;
    background: rgba(8, 13, 22, .85);
    padding: 14px;
    transition: border-color .2s, transform .2s, background .2s;
}
.drop-item:hover {
    border-color: rgba(255, 147, 47, .42);
    background: rgba(14, 21, 34, .95);
    transform: translateY(-2px);
}
.drop-item__image {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    background: radial-gradient(circle at 50% 45%, rgba(255, 147, 47, .14), rgba(15, 23, 38, .95) 70%);
    border: 1px solid rgba(215, 229, 248, .15);
    border-radius: 8px;
    overflow: hidden;
}
.drop-item__image img { display: block; width: 86%; height: 86%; object-fit: contain; }
.drop-item__missing { color: #9eb0c9; font-size: .85rem; }
.drop-item__content { min-width: 0; }
.drop-item__name { margin: 0 0 8px; color: #eef3fa; font-size: .92rem; line-height: 1.45; font-weight: 500; overflow-wrap: anywhere; }
.drop-item__quantity { margin: 0 0 8px; color: #c0cfe2; font-size: .84rem; line-height: 1.45; }
.drop-item__rates { display: flex; flex-wrap: wrap; gap: 5px; }
.drop-rate {
    display: inline-block;
    color: #ffc182;
    background: rgba(255, 147, 47, .12);
    border: 1px solid rgba(255, 147, 47, .24);
    padding: 1px 7px;
    border-radius: 5px;
    font: 600 .84rem/1.7 'Oxanium', Tahoma, sans-serif;
    font-variant-numeric: tabular-nums;
}
.drop-empty {
    padding: 55px 20px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(13, 19, 29, .9);
}
.drop-empty strong { font-size: 1.15rem; font-weight: 600; }
.drop-empty p { margin: 8px 0 0; color: #a8b7cc; }
.drop-noscript { padding: 16px; color: #ffc995; border: 1px solid #68432a; border-radius: 8px; }

@media (max-width: 1100px) { .drop-items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
    .drop-main { width: calc(100% - 32px); padding-top: 28px; }
    .drop-page .site-backdrop { top: 0; }
    .drop-page .backdrop-image { left: 0; width: 100%; height: 100%; object-fit: cover; }
    .drop-npc__summary { padding: 16px; min-height: 74px; gap: 10px; }
    .drop-npc__title { gap: 4px; flex-direction: column; align-items: flex-start; }
    .drop-npc__title h2 { font-size: 1.02rem; }
    .drop-items { grid-template-columns: 1fr; padding: 0 14px 14px; }
    .drop-npc__action { gap: 8px; font-size: .8rem; }
}
@media (max-width: 420px) {
    .drop-main { width: calc(100% - 24px); }
    .drop-search-box { padding-left: 13px; gap: 8px; }
    .drop-search-box input { font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) {
    .drop-npc__arrow, .drop-item { transition: none; }
}


/* ===== Redesigned 2-Column & Item-First NPC Drops Layout ===== */
.drop-redesign-main {
    width: min(1240px, calc(100% - 48px));
    padding: 36px 0 72px;
}
.drop-top-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
.drop-top-header h1 {
    margin: 0;
    font: 800 clamp(1.9rem, 3.8vw, 2.6rem)/1.15 'Oxanium', 'Kanit', sans-serif;
}
.drop-lead {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: .92rem;
}

.drop-mode-switch {
    display: inline-flex;
    padding: 4px;
    gap: 4px;
    background: rgba(13, 20, 32, .94);
    border: 1px solid var(--line);
    border-radius: 10px;
}
.drop-mode-btn {
    border: 0;
    border-radius: 7px;
    padding: 8px 16px;
    cursor: pointer;
    color: var(--muted);
    background: transparent;
    font-weight: 600;
    font-size: .86rem;
    transition: background .2s, color .2s, box-shadow .2s;
}
.drop-mode-btn:hover { color: #fff; }
.drop-mode-btn.is-active {
    color: #1c0f04;
    background: linear-gradient(135deg, #ffa74a, #ff811c);
    box-shadow: 0 4px 14px rgba(255, 147, 47, .32);
}

.drop-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
}
.drop-search-flex {
    flex: 1 1 320px;
}
.drop-cat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.drop-chip {
    padding: 9px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: .84rem;
    font-weight: 500;
    color: #c8d6ea;
    background: rgba(14, 21, 33, .9);
    border: 1px solid var(--line);
    transition: border-color .18s, color .18s, background .18s;
}
.drop-chip:hover { border-color: rgba(255, 147, 47, .5); color: #fff; }
.drop-chip.is-active {
    color: #ffd4a8;
    border-color: var(--accent);
    background: rgba(255, 147, 47, .16);
}

.drop-split-layout {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}
.drop-sidebar {
    position: sticky;
    top: 102px;
    max-height: calc(100vh - 126px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
}
.drop-npc-row {
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(14, 20, 31, .9);
    color: var(--text);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color .18s, background .18s, box-shadow .18s;
}
.drop-npc-row:hover {
    border-color: rgba(255, 147, 47, .44);
    background: rgba(20, 29, 45, .95);
}
.drop-npc-row.is-active {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(255, 147, 47, .16), rgba(16, 23, 36, .96));
    box-shadow: 0 8px 22px rgba(255, 147, 47, .15);
}
.drop-npc-row-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.drop-npc-row-name { font-weight: 600; font-size: .95rem; }
.drop-npc-row-badge {
    font-size: .72rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: #b9c9df;
    white-space: nowrap;
}
.drop-npc-row.is-active .drop-npc-row-badge {
    background: rgba(255, 147, 47, .24);
    color: #ffd4a8;
}
.drop-npc-mini-icons {
    display: flex;
    align-items: center;
    gap: 5px;
}
.drop-npc-mini-icons img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
    background: rgba(7, 10, 16, .88);
    border: 1px solid rgba(255, 255, 255, .1);
    padding: 2px;
}
.drop-npc-mini-more {
    font-size: .72rem;
    color: var(--muted);
    margin-left: 2px;
}

.drop-detail-panel {
    padding: 24px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(14, 20, 31, .9);
    backdrop-filter: blur(14px);
    min-height: 460px;
}
.drop-detail-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
}
.drop-detail-head h2 { margin: 0; font-size: 1.45rem; }
.drop-detail-meta { margin: 4px 0 0; color: var(--muted); font-size: .86rem; }

.drop-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.drop-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px;
    border-radius: 10px;
    background: rgba(8, 13, 22, .9);
    border: 1px solid rgba(215, 229, 248, .1);
    transition: border-color .18s, transform .18s;
}
.drop-card:hover {
    border-color: rgba(255, 147, 47, .45);
    transform: translateY(-2px);
}
.drop-card.is-match {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(255, 147, 47, .35);
}
.drop-card-icon {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: radial-gradient(circle at 50% 45%, rgba(255, 147, 47, .15), rgba(13, 20, 32, .95) 72%);
    border: 1px solid rgba(255, 255, 255, .12);
}
.drop-card-icon img { width: 46px; height: 46px; object-fit: contain; }
.drop-card-body { min-width: 0; flex: 1; }
.drop-card-name {
    margin: 0 0 8px;
    font-size: .88rem;
    font-weight: 500;
    line-height: 1.38;
    color: #eef3fa;
    overflow-wrap: anywhere;
}

.drop-item-first-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.drop-source-card {
    padding: 16px;
    border-radius: 12px;
    background: rgba(14, 20, 31, .9);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.drop-source-head {
    display: flex;
    align-items: center;
    gap: 12px;
}
.drop-source-head h3 { margin: 0; font-size: 1rem; }
.drop-source-head span { color: var(--muted); font-size: .8rem; }
.drop-source-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.drop-source-pill {
    font-size: .78rem;
    padding: 4px 9px;
    border-radius: 6px;
    background: rgba(8, 12, 20, .88);
    border: 1px solid rgba(215, 229, 248, .12);
    color: #dbe6f5;
}
.drop-source-pill b {
    color: #ffbe7d;
    font-family: 'Oxanium', sans-serif;
    margin-left: 4px;
}

@media (max-width: 1020px) {
    .drop-split-layout { grid-template-columns: 1fr; }
    .drop-sidebar { position: static; max-height: 290px; }
    .drop-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .drop-item-first-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .drop-redesign-main { width: calc(100% - 24px); }
    .drop-detail-panel { padding: 16px; }
    .drop-detail-grid { grid-template-columns: 1fr; }
}
