/* ── Supply Depot — Full-Page Ecommerce Layout ─────────────────────────── */

#shop-app {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 56px);
}

/* ── Hero Banner ───────────────────────────────────────────────────────── */

.shop-hero {
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.08) 0%, rgba(81, 34, 22, 0.4) 50%, rgba(0, 0, 0, 0.3) 100%);
    border-bottom: 1px solid rgba(245, 166, 35, 0.15);
    padding: 48px 40px;
}

.shop-hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.shop-hero-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #F5A623;
    background: rgba(245, 166, 35, 0.1);
    border: 1px solid rgba(245, 166, 35, 0.2);
    padding: 6px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.shop-hero-title {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #fff;
    margin: 0 0 12px;
    text-shadow: 0 2px 40px rgba(245, 166, 35, 0.2);
}

.shop-hero-desc {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
    max-width: 520px;
    margin: 0 0 24px;
}

.shop-hero-stats {
    display: flex;
    gap: 32px;
}

.shop-hero-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shop-hero-stat-num {
    font-size: 24px;
    font-weight: 700;
    color: #F5A623;
    font-variant-numeric: tabular-nums;
}

.shop-hero-stat-label {
    font-size: 10px;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.35);
}

/* Hero balance card */
.shop-hero-balance {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(245, 166, 35, 0.15);
    border-radius: 16px;
    padding: 28px 36px;
    text-align: center;
    min-width: 220px;
}

.shop-hero-bal-label {
    font-size: 10px;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 8px;
}

.shop-hero-bal-amount {
    font-size: 36px;
    font-weight: 700;
    color: #F5A623;
    text-shadow: 0 0 30px rgba(245, 166, 35, 0.25);
    margin-bottom: 12px;
}

.shop-hero-bal-icon {
    opacity: 0.5;
    font-size: 28px;
}

.shop-hero-bal-num {
    font-variant-numeric: tabular-nums;
}

.shop-hero-bank-link {
    font-size: 11px;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.2s;
}

.shop-hero-bank-link:hover {
    color: #F5A623;
}

/* ── Top Bar ───────────────────────────────────────────────────────────── */

.shop-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
    gap: 12px;
}

.shop-topbar-tabs {
    display: flex;
    gap: 0;
}

.shop-topbar-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.45);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

.shop-topbar-tab--active {
    color: #F5A623;
    border-bottom-color: #F5A623;
}

.shop-topbar-tab:hover:not(.shop-topbar-tab--active) {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.02);
}

.shop-topbar-tab-icon {
    font-size: 16px;
    opacity: 0.7;
}

.shop-search-wrap {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0 12px;
    gap: 8px;
}

.shop-search-icon {
    color: rgba(255, 255, 255, 0.3);
    font-size: 16px;
}

.shop-search-input {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-family: inherit;
    padding: 10px 0;
    width: 200px;
    outline: none;
}

.shop-search-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

/* ── Layout (sidebar + main) ───────────────────────────────────────────── */

.shop-layout {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0;
    flex: 1;
}

/* ── Sidebar ───────────────────────────────────────────────────────────── */

.shop-sidebar {
    width: 240px;
    min-width: 240px;
    padding: 24px 0 24px 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.shop-sidebar-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.35);
    padding: 0 16px 16px;
}

.shop-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shop-sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    text-align: left;
    width: 100%;
}

.shop-sidebar-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.8);
}

.shop-sidebar-item--active {
    background: rgba(245, 166, 35, 0.1);
    color: #F5A623;
}

.shop-sidebar-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.shop-sidebar-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-sidebar-count {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.04);
    padding: 2px 8px;
    border-radius: 10px;
    font-variant-numeric: tabular-nums;
}

/* ── Main Content ──────────────────────────────────────────────────────── */

.shop-main {
    flex: 1;
    padding: 24px 40px 60px;
    min-width: 0;
}

/* ── Toolbar ───────────────────────────────────────────────────────────── */

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.shop-result-count {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.shop-sort-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shop-sort-label {
    font-size: 11px;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.35);
}

.shop-sort-select {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-family: inherit;
    padding: 6px 12px;
    cursor: pointer;
}

.shop-sort-select option {
    background: #1a0a06;
    color: #fff;
}

/* ── Featured Section ──────────────────────────────────────────────────── */

.shop-featured {
    margin-bottom: 32px;
}

.shop-featured-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 16px;
}

.shop-featured-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(245, 166, 35, 0.2) transparent;
}

.shop-featured-scroll::-webkit-scrollbar { height: 4px; }
.shop-featured-scroll::-webkit-scrollbar-track { background: transparent; }
.shop-featured-scroll::-webkit-scrollbar-thumb { background: rgba(245, 166, 35, 0.2); border-radius: 2px; }

.shop-featured-card {
    min-width: 340px;
    max-width: 400px;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(245, 166, 35, 0.15);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    flex-shrink: 0;
}

.shop-featured-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(245, 166, 35, 0.1);
}

.shop-featured-ribbon {
    position: absolute;
    top: 12px;
    left: 0;
    background: #FF6B6B;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
    padding: 5px 14px 5px 10px;
    border-radius: 0 4px 4px 0;
    z-index: 2;
}

.shop-featured-img {
    height: 160px;
    background: rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.shop-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.shop-featured-info {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.shop-featured-cat {
    font-size: 10px;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.shop-featured-name {
    font-size: 17px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 8px;
}

.shop-featured-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.5;
    margin: 0 0 16px;
    flex: 1;
}

.shop-featured-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.shop-featured-price {
    font-size: 22px;
    font-weight: 700;
    color: #F5A623;
}

/* ── Section Header ────────────────────────────────────────────────────── */

.shop-section-header {
    margin-bottom: 16px;
}

.shop-section-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Item Grid ─────────────────────────────────────────────────────────── */

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.shop-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
    letter-spacing: 0.1em;
}

/* ── Item Card ─────────────────────────────────────────────────────────── */

.shop-item-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.shop-item-card:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 166, 35, 0.2);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

.shop-item-card--owned {
    border-color: rgba(76, 217, 100, 0.15);
}

.shop-item-card--owned:hover {
    border-color: rgba(76, 217, 100, 0.3);
}

.shop-item-card--locked {
    opacity: 0.55;
}

/* Image area */
.shop-item-img {
    position: relative;
    height: 180px;
    background: rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.shop-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

/* Transparent shield over all shop images — blocks right-click + drag */
.shop-item-img::after,
.shop-featured-img::after,
.shop-detail-img-col::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
}

.shop-item-card:hover .shop-item-img img {
    transform: scale(1.05);
}

/* Badges */
.shop-item-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.shop-badge {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border-radius: 4px;
}

.shop-badge--limited { background: rgba(255, 107, 107, 0.9); color: #fff; }
.shop-badge--owned { background: rgba(76, 217, 100, 0.85); color: #fff; }
.shop-badge--locked { background: rgba(255, 255, 255, 0.15); color: rgba(255, 255, 255, 0.7); }

.shop-item-lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #FF6B6B;
    text-align: center;
    padding: 16px;
}

/* Quick view overlay */
.shop-item-quickview {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: opacity 0.2s;
}

.shop-item-card:hover .shop-item-quickview {
    opacity: 1;
}

/* Info area */
.shop-item-info {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.shop-item-cat {
    font-size: 9px;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.shop-item-name {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 6px;
    line-height: 1.3;
}

.shop-item-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.38);
    line-height: 1.4;
    margin: 0 0 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Price row */
.shop-item-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.shop-item-price {
    font-size: 18px;
    font-weight: 700;
    color: #F5A623;
    font-variant-numeric: tabular-nums;
}

.shop-item-clearance {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 4px;
}

/* Action row */
.shop-item-action {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.shop-item-owned-tag {
    font-size: 11px;
    font-weight: 600;
    color: #4CD964;
    letter-spacing: 0.04em;
}

.shop-item-locked-tag {
    font-size: 11px;
    font-weight: 600;
    color: #FF6B6B;
    letter-spacing: 0.04em;
}

/* Requisition button */
.shop-btn-requisition {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    background: #F5A623;
    color: #1a0a06;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
    width: 100%;
    text-align: center;
}

.shop-btn-requisition:hover:not(:disabled) {
    background: #ffba42;
    box-shadow: 0 4px 16px rgba(245, 166, 35, 0.25);
}

.shop-btn-requisition:active { transform: scale(0.97); }
.shop-btn-requisition:disabled { opacity: 0.4; cursor: not-allowed; }

.shop-btn-requisition--cta {
    background: linear-gradient(135deg, #F5A623, #e8941a);
    box-shadow: 0 2px 12px rgba(245, 166, 35, 0.2);
}

.shop-hero-cta-btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    background: #F5A623;
    color: #1a0a06;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    text-decoration: none;
    text-align: center;
    margin-top: 12px;
}

.shop-hero-cta-btn:hover {
    background: #ffba42;
    box-shadow: 0 4px 16px rgba(245, 166, 35, 0.3);
}

.shop-btn-requisition--lg {
    padding: 12px 28px;
    font-size: 12px;
    border-radius: 10px;
    width: auto;
}

.shop-btn-requisition--xl {
    padding: 16px 32px;
    font-size: 14px;
    border-radius: 12px;
    width: 100%;
}

/* ── Detail Panel ──────────────────────────────────────────────────────── */

.shop-detail-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.shop-detail-panel {
    background: #1a0a06;
    border: 1px solid rgba(245, 166, 35, 0.15);
    border-radius: 20px;
    max-width: 840px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.shop-detail-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 22px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    z-index: 2;
    line-height: 1;
}

.shop-detail-close:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }

.shop-detail-content {
    display: flex;
    gap: 0;
}

.shop-detail-img-col {
    width: 45%;
    min-height: 300px;
    position: relative;
    overflow: hidden;
}

.shop-detail-img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    border-radius: 20px 0 0 20px;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.shop-detail-limited-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(255, 107, 107, 0.9);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 6px 14px;
    border-radius: 6px;
}

.shop-detail-info-col {
    flex: 1;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
}

.shop-detail-cat {
    font-size: 10px;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.shop-detail-name {
    font-size: 26px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 16px;
}

.shop-detail-desc {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 24px;
}

/* Specs */
.shop-detail-specs {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 24px;
}

.shop-detail-spec-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.shop-detail-spec-row:last-child { border-bottom: none; }

.shop-detail-spec-label {
    font-size: 11px;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.35);
}

.shop-detail-spec-value {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Buy area */
.shop-detail-buy {
    margin-top: auto;
}

.shop-detail-price {
    font-size: 32px;
    font-weight: 800;
    color: #F5A623;
    margin-bottom: 16px;
}

.shop-detail-owned-msg {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #4CD964;
    padding: 14px;
    background: rgba(76, 217, 100, 0.08);
    border-radius: 10px;
}

.shop-detail-owned-check { font-size: 20px; }

.shop-detail-locked-msg {
    font-size: 14px;
    color: #FF6B6B;
    padding: 14px;
    background: rgba(255, 107, 107, 0.08);
    border-radius: 10px;
}

.shop-detail-bal-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 10px;
    text-align: center;
}

.shop-detail-bal-insufficient {
    color: #FF6B6B;
}

/* ── Purchase Modal ────────────────────────────────────────────────────── */

.shop-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.shop-modal {
    background: #1a0a06;
    border: 1px solid rgba(245, 166, 35, 0.2);
    border-radius: 20px;
    padding: 32px;
    max-width: 440px;
    width: 100%;
    position: relative;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.shop-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.shop-modal-close:hover { color: rgba(255, 255, 255, 0.8); }

.shop-modal-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #F5A623;
    margin: 0 0 20px;
    text-align: center;
}

.shop-modal-body {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Modal preview */
.shop-modal-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.shop-modal-preview-img {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.shop-modal-preview-info {
    flex: 1;
}

.shop-modal-preview-cat {
    font-size: 9px;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.shop-modal-item-name {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.shop-modal-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin-bottom: 16px;
}

.shop-modal-cost {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.shop-modal-cost-amount { color: #F5A623; font-weight: 700; }
.shop-modal-bal-current { color: rgba(255, 255, 255, 0.6); font-weight: 600; }
.shop-modal-remaining-amount { color: rgba(255, 255, 255, 0.7); font-weight: 600; }
.shop-modal-insufficient { color: #FF6B6B; }

.shop-modal-msg {
    font-size: 13px;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    min-height: 20px;
    margin-top: 12px;
}

.shop-modal-msg--success { color: #4CD964; background: rgba(76, 217, 100, 0.08); }
.shop-modal-msg--error { color: #FF6B6B; background: rgba(255, 107, 107, 0.08); }

.shop-modal-footer {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.shop-btn-cancel {
    flex: 1;
    padding: 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.shop-btn-cancel:hover { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.8); }

.shop-btn-confirm {
    flex: 2;
    padding: 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    background: #F5A623;
    color: #1a0a06;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.shop-btn-confirm:hover:not(:disabled) { background: #ffba42; box-shadow: 0 4px 16px rgba(245, 166, 35, 0.3); }
.shop-btn-confirm:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Inventory Cards ───────────────────────────────────────────────────── */

.shop-inv-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(76, 217, 100, 0.1);
    border-radius: 12px;
    padding: 16px;
    grid-column: 1 / -1;
    transition: border-color 0.2s;
}

.shop-inv-card:hover {
    border-color: rgba(76, 217, 100, 0.25);
}

.shop-inv-img {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.shop-inv-info {
    flex: 1;
    min-width: 0;
}

.shop-inv-cat {
    font-size: 9px;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
}

.shop-inv-name {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 4px;
}

.shop-inv-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-inv-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.shop-inv-qty {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    font-variant-numeric: tabular-nums;
}

.shop-inv-status {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #4CD964;
}

/* ── Order History ─────────────────────────────────────────────────────── */

.shop-history-table {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
}

.shop-history-row {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1fr 1fr;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    align-items: center;
}

.shop-history-row:last-child { border-bottom: none; }

.shop-history-row--header {
    background: rgba(255, 255, 255, 0.03);
    font-size: 10px;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 700;
}

.shop-history-col {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

.shop-history-name { color: rgba(255, 255, 255, 0.85); font-weight: 500; }
.shop-history-cat { font-size: 11px; color: rgba(255, 255, 255, 0.35); letter-spacing: 0.06em; }
.shop-history-amount { color: #F5A623; font-weight: 600; }
.shop-history-date { font-size: 12px; color: rgba(255, 255, 255, 0.35); }

/* ── Empty States ──────────────────────────────────────────────────────── */

.shop-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.shop-empty-icon {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.15);
    margin-bottom: 16px;
}

.shop-empty-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 8px;
}

.shop-empty-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    margin: 0 0 24px;
}

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .shop-sidebar { display: none; }
    .shop-layout { flex-direction: column; }
    .shop-main { padding: 20px 24px 60px; }
    .shop-hero { padding: 32px 24px; }
    .shop-topbar { padding: 0 24px; }
}

@media (max-width: 768px) {
    .shop-hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .shop-hero-title { font-size: 28px; }
    .shop-hero-desc { max-width: none; }
    .shop-hero-stats { justify-content: center; }
    .shop-hero-balance { min-width: 0; width: 100%; max-width: 280px; }

    .shop-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .shop-item-img { height: 140px; }
    .shop-item-name { font-size: 13px; }
    .shop-item-desc { display: none; }
    .shop-item-price { font-size: 15px; }

    .shop-featured-card { min-width: 280px; }
    .shop-featured-img { height: 120px; }

    .shop-detail-content { flex-direction: column; }
    .shop-detail-img-col { width: 100%; min-height: 200px; }
    .shop-detail-img { border-radius: 20px 20px 0 0; min-height: 200px; }
    .shop-detail-info-col { padding: 24px 20px; }
    .shop-detail-name { font-size: 22px; }

    .shop-topbar-tabs { overflow-x: auto; }
    .shop-topbar-tab { padding: 12px 16px; font-size: 11px; }

    .shop-search-wrap { width: 100%; }
    .shop-search-input { width: 100%; }

    .shop-history-row { grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 16px; }
    .shop-history-row--header .shop-history-col:nth-child(n+3) { display: none; }
    .shop-history-cat { display: none; }
}

@media (max-width: 480px) {
    .shop-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .shop-item-info { padding: 10px 12px 12px; }
    .shop-item-img { height: 120px; }
    .shop-item-price { font-size: 14px; }
    .shop-item-price-row { margin-bottom: 6px; }
    .shop-btn-requisition { padding: 7px 12px; font-size: 10px; }

    .shop-hero { padding: 24px 16px; }
    .shop-hero-title { font-size: 24px; }
    .shop-hero-stats { gap: 20px; }
    .shop-hero-stat-num { font-size: 20px; }
    .shop-hero-balance { padding: 20px 24px; }
    .shop-hero-bal-amount { font-size: 28px; }

    .shop-main { padding: 16px 12px 60px; }
    .shop-topbar { padding: 0 12px; }

    .shop-modal { padding: 24px 16px; }
}
