:root {
    --drop-bg: #080808;
    --drop-panel: rgba(18, 18, 18, 0.9);
    --drop-panel-strong: rgba(28, 27, 25, 0.95);
    --drop-line: rgba(255, 191, 96, 0.22);
    --drop-line-blue: rgba(255, 191, 96, 0.22);
    --drop-text: #f4efe6;
    --drop-muted: #b5aca0;
    --drop-gold: #ffbf55;
    --drop-orange: #ff7a22;
    --drop-purple: #a66bff;
    --drop-blue: #4fa8ff;
    --drop-green: #55d6a6;
    --drop-red: #ff5f74;
}

body.drops-page {
    min-height: 100vh;
    color: var(--drop-text);
    background-color: #170704;
    position: relative;
}

.drops-page .main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.drops-page .content-container {
    flex: 1;
}

.drops-shell {
    width: min(1380px, calc(100% - 28px));
    margin: 0 auto;
    padding: 138px 0 72px;
}

.drops-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 191, 96, 0.24);
    border-radius: 28px;
    padding: clamp(28px, 5vw, 58px);
    background:
        linear-gradient(135deg, rgba(26, 25, 23, 0.96), rgba(10, 10, 10, 0.93)),
        radial-gradient(circle at 78% 28%, rgba(255, 122, 34, 0.35), transparent 18rem);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42), inset 0 0 80px rgba(255, 191, 96, 0.06);
}

.drops-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.05), transparent 40%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 90px);
    pointer-events: none;
}

.drops-hero__glow {
    position: absolute;
    width: 330px;
    height: 330px;
    right: -70px;
    top: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 191, 96, 0.42), rgba(255, 122, 34, 0.15) 44%, transparent 68%);
    filter: blur(10px);
}

.drops-hero__content {
    position: relative;
    max-width: 760px;
}

.drops-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--drop-gold);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.78rem;
    font-weight: 800;
}

.page-title {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4.8rem);
    line-height: 0.95;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-shadow: 0 0 22px rgba(255, 191, 96, 0.36);
}

.drops-hero p {
    max-width: 680px;
    margin: 18px 0 0;
    color: #d4cabd;
    font-size: clamp(1rem, 2vw, 1.18rem);
}

.drops-panel {
    margin-top: 26px;
    padding: clamp(18px, 3vw, 30px);
    border: 1px solid rgba(255, 191, 96, 0.22);
    border-radius: 28px;
    background: rgba(10, 8, 6, 0.34);
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.24);
    backdrop-filter: none;
}

.drops-quality-note {
    margin: -10px 0 20px;
    color: var(--drop-muted);
    font-size: 0.86rem;
    text-align: right;
}

.drops-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.drops-search {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 58px;
    border: 1px solid rgba(255, 191, 96, 0.28);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(25, 24, 22, 0.96), rgba(10, 10, 10, 0.96));
    box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.32);
}

.drops-search__icon {
    width: 17px;
    height: 17px;
    margin-left: 20px;
    border: 2px solid var(--drop-gold);
    border-radius: 50%;
    opacity: 0.9;
}

.drops-search__icon::after {
    content: "";
    display: block;
    width: 8px;
    height: 2px;
    margin: 12px 0 0 12px;
    background: var(--drop-gold);
    transform: rotate(45deg);
    border-radius: 2px;
}

.drops-search input {
    width: 100%;
    min-height: 56px;
    padding: 0 18px;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
    font-size: 1rem;
}

.drops-search input::placeholder {
    color: rgba(230, 219, 203, 0.58);
}

.drops-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.drops-filter {
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid rgba(255, 191, 96, 0.18);
    border-radius: 999px;
    color: #e8dfd2;
    background: rgba(27, 26, 24, 0.88);
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.drops-filter:hover,
.drops-filter.is-active {
    transform: translateY(-1px);
    border-color: rgba(255, 191, 96, 0.72);
    color: #160d05;
    background: linear-gradient(135deg, var(--drop-gold), var(--drop-orange));
    box-shadow: 0 10px 30px rgba(255, 122, 34, 0.22);
}

.drops-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 22px 0;
}

.drops-summary div {
    padding: 16px 18px;
    border: 1px solid rgba(255, 191, 96, 0.18);
    border-radius: 18px;
    background: rgba(18, 18, 18, 0.86);
}

.drops-summary strong {
    display: block;
    color: var(--drop-gold);
    font-size: 1.55rem;
}

.drops-summary span {
    color: var(--drop-muted);
}

.drops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    min-height: 220px;
}

.drop-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 286px;
    padding: 18px;
    border: 1px solid var(--drop-line-blue);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(27, 26, 24, 0.95), rgba(10, 10, 10, 0.97)),
        radial-gradient(circle at 90% 8%, rgba(255, 255, 255, 0.12), transparent 14rem);
    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.drop-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 42%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.drop-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 191, 96, 0.58);
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.38);
}

.drop-card:hover::before {
    opacity: 1;
}

.drop-card--raid-legendary {
    border-color: rgba(255, 191, 96, 0.62);
    box-shadow: 0 16px 52px rgba(255, 122, 34, 0.14);
}

.drop-card--raid-epic {
    border-color: rgba(181, 137, 255, 0.5);
}

.drop-card--raid-rare {
    border-color: rgba(86, 153, 235, 0.52);
}

.drop-card--dungeon {
    border-color: rgba(255, 191, 96, 0.34);
}

.drop-icon {
    position: relative;
    z-index: 1;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #130d05;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, #d8e5ff, #7199ff);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36), 0 10px 24px rgba(0, 0, 0, 0.28);
}

.drop-icon span {
    position: relative;
    z-index: 1;
}

.drop-icon::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.drop-icon--raid-legendary {
    color: #241006;
    background: linear-gradient(135deg, #ffe07a, #ff8a24 58%, #2a1508);
}

.drop-icon--raid-epic {
    color: #fff;
    background: linear-gradient(135deg, #d9b7ff, #8f45ff 58%, #26124a);
}

.drop-icon--raid-rare {
    color: #fff;
    background: linear-gradient(135deg, #9ad8ff, #2f82ff 58%, #0a244d);
}

.drop-icon--dungeon {
    color: #140d06;
    background: linear-gradient(135deg, #ffdf88, #8f6a37 58%, #16120d);
}

.drop-icon--item {
    color: #241006;
    background: linear-gradient(135deg, #fff1a6, #ce8a2a 58%, #3a1a07);
}

.drop-icon--map {
    color: #061329;
    background: linear-gradient(135deg, #b7d8ff, #5ca0ff 58%, #142b57);
}

.drop-icon--raid-legendary span,
.drop-icon--raid-epic span,
.drop-icon--raid-rare span {
    width: 28px;
    height: 24px;
    font-size: 0;
    background: currentColor;
    clip-path: polygon(5% 84%, 18% 28%, 38% 58%, 50% 8%, 62% 58%, 82% 28%, 95% 84%);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.drop-icon--raid-legendary span {
    color: #2b1306;
}

.drop-icon--raid-epic span,
.drop-icon--raid-rare span {
    color: #fff;
}

.drop-icon--dungeon span {
    position: relative;
    width: 31px;
    height: 25px;
    font-size: 0;
    border-radius: 16px 16px 6px 6px;
    background: linear-gradient(180deg, #fff0be, #8b6a3e);
}

.drop-icon--dungeon span::after {
    content: "";
    position: absolute;
    left: 9px;
    bottom: 0;
    width: 13px;
    height: 16px;
    border-radius: 9px 9px 2px 2px;
    background: #080808;
}

.drop-icon--item span {
    position: relative;
    width: 30px;
    height: 22px;
    font-size: 0;
    border: 2px solid #2b1306;
    border-radius: 5px;
    background: linear-gradient(180deg, #ffe17a 0 46%, #a45f16 47% 100%);
}

.drop-icon--item span::before {
    content: "";
    position: absolute;
    left: 8px;
    top: -7px;
    width: 10px;
    height: 8px;
    border: 2px solid #2b1306;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
}

.drop-icon--item span::after {
    content: "";
    position: absolute;
    left: 12px;
    top: 0;
    width: 4px;
    height: 20px;
    background: rgba(43, 19, 6, 0.9);
}

.drop-card__body {
    position: relative;
    z-index: 1;
    flex: 1;
    padding-top: 18px;
}

.drop-card__eyebrow {
    color: var(--drop-gold);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.drop-card h3 {
    margin: 8px 0 12px;
    color: #fff;
    font-size: 1.18rem;
    line-height: 1.25;
}

.drop-card__meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.drop-card__meta span {
    padding: 5px 9px;
    border: 1px solid rgba(255, 191, 96, 0.16);
    border-radius: 999px;
    color: #d8cfc2;
    background: rgba(9, 9, 9, 0.72);
    font-size: 0.82rem;
}

.drop-card p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    color: var(--drop-muted);
    line-height: 1.5;
}

.drop-card__footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.drop-card__footer span {
    color: var(--drop-muted);
    font-size: 0.9rem;
}

.drop-card button,
.drop-modal button,
.drops-pagination button {
    font: inherit;
}

.drop-card__footer button,
.drop-source-list button,
.drop-items button,
.drop-chip-row button {
    border: 1px solid rgba(255, 191, 96, 0.42);
    border-radius: 999px;
    color: #1c1006;
    background: linear-gradient(135deg, var(--drop-gold), var(--drop-orange));
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.drop-card__footer button {
    padding: 9px 14px;
    font-weight: 800;
}

.drop-card__footer button:hover,
.drop-source-list button:hover,
.drop-items button:hover,
.drop-chip-row button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(255, 122, 34, 0.22);
}

.drops-loading,
.drops-empty {
    grid-column: 1 / -1;
    min-height: 220px;
    display: grid;
    place-items: center;
    color: var(--drop-muted);
    border: 1px dashed rgba(255, 191, 96, 0.24);
    border-radius: 22px;
    background: rgba(16, 16, 16, 0.58);
}

.drops-empty--small {
    min-height: 90px;
}

.drops-spinner {
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
    border-radius: 50%;
    border: 3px solid rgba(255, 191, 96, 0.18);
    border-top-color: var(--drop-gold);
    animation: drops-spin 0.9s linear infinite;
}

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

.drops-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.drops-pagination button,
.drops-pagination span {
    min-width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 191, 96, 0.18);
    border-radius: 12px;
    color: #e8dfd2;
    background: rgba(18, 18, 18, 0.82);
}

.drops-pagination button {
    cursor: pointer;
}

.drops-pagination button.is-active,
.drops-pagination button:hover {
    color: #1c1006;
    border-color: rgba(255, 191, 96, 0.72);
    background: linear-gradient(135deg, var(--drop-gold), var(--drop-orange));
}

.drop-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.drop-modal.is-open {
    display: flex;
}

.drop-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 4, 10, 0.78);
    backdrop-filter: blur(10px);
}

.drop-modal__dialog {
    position: relative;
    width: min(1180px, calc(100vw - 56px));
    max-height: min(88vh, 940px);
    overflow: hidden;
    border: 1px solid rgba(255, 191, 96, 0.32);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(25, 24, 22, 0.98), rgba(8, 8, 8, 0.98)),
        radial-gradient(circle at 85% 0%, rgba(255, 122, 34, 0.16), transparent 22rem);
    box-shadow: 0 30px 120px rgba(0, 0, 0, 0.62);
}

#drop-modal-content {
    max-height: min(88vh, 940px);
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 191, 96, 0.78) rgba(255, 255, 255, 0.08);
}

#drop-modal-content::-webkit-scrollbar {
    width: 10px;
}

#drop-modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

#drop-modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--drop-gold), var(--drop-orange));
    border-radius: 999px;
}

.drop-modal__close {
    position: absolute;
    top: 41px;
    right: 58px;
    z-index: 2;
    width: 44px;
    height: 44px;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 15px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    font-size: 1.6rem;
}

.drop-modal__header {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 30px 92px 20px 30px;
}

.drop-modal__header span {
    color: var(--drop-gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    font-weight: 800;
}

.drop-modal__header h2 {
    margin: 6px 0;
    color: #fff;
    font-size: clamp(1.5rem, 4vw, 2.4rem);
}

.drop-modal__header p {
    margin: 0;
    color: var(--drop-muted);
}

.drop-modal__sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 0 30px 30px;
}

.drop-modal__sections section {
    padding: 18px;
    border: 1px solid rgba(255, 191, 96, 0.18);
    border-radius: 18px;
    background: rgba(12, 12, 12, 0.78);
}

.drop-modal__sections h3 {
    margin: 0 0 14px;
    color: #fff;
}

.drop-modal__wide {
    grid-column: 1 / -1;
}

.drop-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}

.drop-stats-grid div {
    padding: 12px;
    border-radius: 14px;
    background: rgba(22, 21, 20, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.drop-stats-grid span {
    display: block;
    color: var(--drop-muted);
    font-size: 0.82rem;
}

.drop-stats-grid strong {
    display: block;
    margin-top: 5px;
    color: var(--drop-gold);
}

.drop-chip-row,
.drop-source-list,
.drop-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 2fr));
    gap: 10px;
    margin-top: inherit;
}

.drop-chip-row button,
.drop-source-list button,
.drop-items button {
    padding: 10px 13px;
    width: 100%;
    min-height: 54px;
}

.drop-source-list button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #f0e7da;
    background: rgba(22, 21, 20, 0.9);
    border-color: rgba(255, 191, 96, 0.18);
    border-radius: 20px;
    align-content: center;
    flex-wrap: wrap;
}

.drop-source-list span {
    color: var(--drop-muted);
    font-size: 0.86rem;
}

.drop-group {
    padding: 16px;
    border: 1px solid rgba(255, 191, 96, 0.16);
    border-radius: 16px;
    background: rgba(14, 14, 14, 0.68);
}

.drop-group + .drop-group {
    margin-top: 12px;
}

.drop-group__title,
.drop-set__rate {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--drop-gold);
    font-weight: 800;
}

.drop-set {
    margin-top: 12px;
}

.drop-items button {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    color: #f0e7da;
    background: rgba(22, 21, 20, 0.9);
    border-color: rgba(255, 191, 96, 0.24);
    border-radius: 16px;
}

.drop-items button span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.drop-items .drop-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: 0.62rem;
}

.drop-items .drop-icon::after {
    inset: 5px;
    border-radius: 8px;
}

.drop-items em {
    color: var(--drop-gold);
    font-style: normal;
    font-weight: 800;
}

@media (max-width: 980px) {
    .drops-toolbar {
        grid-template-columns: 1fr;
    }

    .drops-filters {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .drops-shell {
        width: min(100% - 18px, 1380px);
        padding: 116px 0 44px;
    }

    .drops-quality-note {
        text-align: left;
    }

    .drops-hero,
    .drops-panel {
        border-radius: 20px;
    }

    .drops-summary {
        grid-template-columns: 1fr;
    }

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

    .drop-modal {
        padding: 10px;
    }

    .drop-modal__dialog {
        border-radius: 20px;
        width: calc(100vw - 20px);
    }

    .drop-modal__header {
        padding: 22px 72px 16px 18px;
    }

    .drop-modal__sections {
        grid-template-columns: 1fr;
        padding: 0 18px 22px;
    }

    .drop-source-list,
    .drop-items {
        grid-template-columns: 1fr;
    }
}
