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

html {
    height: 100%;
    background: #f5f5f5;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    padding-bottom: 20px;
    min-height: 100vh;
    min-height: 100dvh;
}

#app-content {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background: #f5f5f5;
}

.banned-screen {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.banned-content {
    text-align: center;
    max-width: 320px;
}

.banned-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.banned-title {
    font-size: 1.5rem;
    color: #c62828;
    margin-bottom: 12px;
}

.banned-text {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shop-sticky {
    position: sticky;
    top: 0;
    z-index: 100;
    background: transparent;
}

.shop-toolbar {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.shop-name {
    font-size: 1.2rem;
    font-weight: bold;
}

.header-right {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 0.9rem;
}

.balance {
    background: rgba(255,255,255,0.2);
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: 600;
}

.cart-icon {
    background: rgba(255,255,255,0.2);
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.floating-cart {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1100;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.tabs {
    display: flex;
    padding: 4px 12px 8px;
    gap: 10px;
    background: white;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: #ececf1;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.search-row {
    padding: 8px 12px 0;
    background: white;
}

.search-input {
    width: 100%;
    max-width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 0.95rem;
    background: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.search-input::placeholder {
    color: #999;
}

.filters-row {
    position: relative;
    padding: 8px 10px 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    background: transparent;
}

.filter-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #444;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.filters-panel {
    position: absolute;
    margin-top: 44px;
    left: 10px;
    width: min(320px, calc(100vw - 20px));
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    overflow: hidden;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f7f7fb;
    font-weight: 700;
    color: #444;
    border-bottom: 1px solid #eee;
}

.filters-clear {
    border: none;
    background: transparent;
    color: #667eea;
    font-weight: 800;
    cursor: pointer;
}

.filters-list {
    max-height: 260px;
    overflow-y: auto;
    padding: 6px;
}

.filter-item {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 650;
    color: #333;
}

.filter-item-name {
    display: block;
}

.filter-item:hover {
    background: #f4f5ff;
}

.filter-item.active {
    background: #eef0ff;
    color: #3b4ae0;
}

.sort-panel {
    position: absolute;
    margin-top: 44px;
    right: 10px;
    width: min(220px, calc(100vw - 20px));
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    overflow: hidden;
    z-index: 101;
}

.sort-item {
    padding: 10px 12px;
    cursor: pointer;
    font-weight: 650;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.sort-item:last-child {
    border-bottom: none;
}

.sort-item:hover {
    background: #f4f5ff;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-weight: 600;
    margin-right: 6px;
    font-size: 0.9rem;
}

.discount-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(102,126,234,0.12);
    color: #3b4ae0;
    font-weight: 800;
    font-size: 0.75rem;
}

.products {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px;
}

.skeleton {
    background: linear-gradient(90deg, #e8e8e8 0%, #f3f3f3 50%, #e8e8e8 100%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.2s ease-in-out infinite;
    border-radius: 6px;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    pointer-events: none;
}

.skeleton-img {
    width: 100%;
    height: 150px;
    border-radius: 0;
}

.skeleton-case-img {
    width: 100%;
    height: 140px;
    border-radius: 0;
}

.skeleton-line {
    height: 14px;
    margin-bottom: 8px;
}

.skeleton-line.short {
    width: 55%;
}

.skeleton-btn {
    height: 36px;
    margin-top: 4px;
    border-radius: 6px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.product-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.product-img-wrap {
    position: relative;
}

.product-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.badge-new {
    background: #ff9800;
}

.badge-pinned {
    background: #3b4ae0;
}

.product-info {
    padding: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
}

.product-desc {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-weight: bold;
    color: #667eea;
    font-size: 1rem;
}

.add-btn {
    width: 100%;
    padding: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: opacity 0.3s;
}

.add-btn:active {
    opacity: 0.8;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #667eea;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}

.quantity-btn:hover {
    background: #eef0ff;
}

.quantity-btn:active {
    opacity: 0.8;
}

.quantity-value {
    flex: 1;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    color: #333;
}

.fly-to-cart {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
    transition: transform 0.55s ease-in-out, opacity 0.55s ease-in-out;
    will-change: transform, opacity;
}

.fly-to-cart img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.clear-cart-btn {
    display: block;
    width: 100%;
    margin: 0;
    padding: 10px 14px;
    background: #fff5f5;
    color: #c62828;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.clear-cart-btn:hover {
    background: #ffebee;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 350px;
    max-height: 80vh;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-header h2 {
    font-size: 1.1rem;
}

.close {
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
    line-height: 1;
}

.cart-items {
    padding: 15px;
    overflow-y: auto;
    max-height: 300px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-desc {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.cart-item-price {
    color: #667eea;
    font-size: 0.85rem;
}

.remove-btn {
    background: #ffebee;
    color: #c62828;
    border: none;
    padding: 5px 8px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-left: 10px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: #f5f5f5;
    font-weight: bold;
    font-size: 1rem;
    border-top: 1px solid #eee;
}

.cart-actions {
    padding: 0 15px 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkout-btn {
    margin: 0;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
}

.checkout-btn:active {
    opacity: 0.8;
}

.success-message {
    padding: 20px;
    text-align: center;
}

.success-message p {
    margin: 10px 0;
    color: #333;
}

.admin-link {
    display: inline-block;
    margin: 20px 0;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
}

/* Кейсы */
.cases-section-header {
    padding: 12px 10px 4px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}

.cases-container {
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.case-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.case-card:active {
    opacity: 0.9;
}

.case-card-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.case-card-info {
    padding: 10px;
}

.case-card-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 4px;
}

.case-card-price {
    font-weight: 700;
    color: #667eea;
    font-size: 1rem;
}

.case-detail-panel {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: #f5f5f5;
    overflow-y: auto;
}

.case-detail-header {
    padding: 12px;
    background: white;
    border-bottom: 1px solid #eee;
}

.case-back-btn {
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #667eea;
    cursor: pointer;
}

#case-detail-content {
    padding: 15px;
}

.case-detail-photo {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 12px;
}

.case-detail-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.case-detail-items {
    margin-bottom: 16px;
}

.case-detail-items h3 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #555;
}

.case-item-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 12px 8px;
    background: white;
    border-radius: 8px;
    margin-bottom: 6px;
}

.case-item-row img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
}

.case-item-name {
    width: 100%;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
}

.case-item-row.case-item-expensive {
    background: linear-gradient(180deg, rgba(198, 40, 40, 0.12) 0%, transparent 100%);
    border-left: 3px solid #c62828;
}
.case-item-row.case-item-expensive .case-item-name {
    color: #b71c1c;
    font-weight: 700;
}

.case-buy-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
}

.case-buy-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Анимация прокрутки кейса (вид как в CS:GO) */
.spin-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.spin-header {
    width: 100%;
    max-width: 420px;
    padding: 12px 16px;
    background: #2a2a2e;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}

.spin-wrap {
    width: 100%;
    max-width: 420px;
    height: 140px;
    overflow: hidden;
    position: relative;
    background: #1c1c1e;
    border-radius: 0 0 12px 12px;
}

.spin-track {
    display: flex;
    align-items: stretch;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    transition: none;
}

.spin-slot {
    flex-shrink: 0;
    width: 88px;
    height: 100%;
    margin: 0 4px;
    border-radius: 6px;
    overflow: hidden;
    background: #252528;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.spin-slot-img {
    width: 100%;
    height: 88px;
    object-fit: contain;
    background: #1a1a1c;
    padding: 4px;
}

.spin-slot-name {
    width: 100%;
    padding: 6px 4px;
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.spin-slot.fake-near .spin-slot-name {
    background: linear-gradient(135deg, #ff9800 0%, #e65100 100%);
    box-shadow: 0 0 0 2px rgba(255,152,0,0.6);
}

/* Дорогой скин в прокрутке - выделен красным */
.spin-slot.spin-slot-expensive {
    box-shadow: 0 0 0 3px #d32f2f, 0 0 12px rgba(211, 47, 47, 0.6);
    background: linear-gradient(135deg, #2d1515 0%, #1a0a0a 100%);
}
.spin-slot.spin-slot-expensive .spin-slot-name {
    background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%);
    color: #ffeb3b;
    box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.8);
}

.spin-center-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    margin-left: -2px;
    background: linear-gradient(180deg, transparent, #ff6d00 15%, #ff6d00 85%, transparent);
    box-shadow: 0 0 10px rgba(255,109,0,0.8);
    pointer-events: none;
    z-index: 10;
}

.spin-result {
    margin-top: 20px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    text-align: center;
    max-width: 320px;
}

.spin-result-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.spin-result-item {
    font-size: 1rem;
    color: #333;
}

.spin-result-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin: 10px auto;
    display: block;
}

/* Админ панель */
.admin-panel {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

body.admin-mode {
    overflow: hidden;
    height: 100%;
}

body.admin-mode #admin-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #b0b0b0 #f0f0f0;
}

body.admin-mode #admin-panel::-webkit-scrollbar {
    width: 10px;
}

body.admin-mode #admin-panel::-webkit-scrollbar-track {
    background: #f0f0f0;
}

body.admin-mode #admin-panel::-webkit-scrollbar-thumb {
    background: #b0b0b0;
    border-radius: 5px;
    border: 2px solid #f0f0f0;
}

body.admin-mode #admin-panel::-webkit-scrollbar-thumb:hover {
    background: #909090;
}

.admin-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 14px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 200;
    width: 100%;
    flex-shrink: 0;
}

.admin-title {
    font-size: 1.15rem;
    font-weight: 700;
    text-align: center;
}

.admin-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 12px;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    flex: 1 1 auto;
    align-content: start;
}

@media (min-width: 720px) {
    .admin-menu {
        max-width: 720px;
        padding: 16px 20px;
        gap: 14px;
    }

    .admin-section-btn,
    .admin-skeleton-card {
        min-height: 110px;
        padding: 16px 14px;
    }

    .admin-content {
        max-width: 720px;
        margin: 0 auto;
        width: 100%;
        padding: 16px 20px 32px;
    }
}

.admin-section-btn {
    background: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 12px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 96px;
    width: 100%;
}

.admin-section-icon {
    font-size: 1.4rem;
}

.admin-section-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #333;
}

.admin-section-desc {
    font-size: 0.75rem;
    color: #777;
    line-height: 1.3;
}

.admin-content {
    padding: 12px;
    flex: 1 1 auto;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding-bottom: 32px;
}

.admin-back-btn {
    background: none;
    border: none;
    color: #667eea;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 12px;
    cursor: pointer;
}

.admin-h2 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: #333;
}

.admin-card {
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.admin-card h3 {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: #444;
}

.admin-input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.admin-action-btn {
    width: 100%;
    padding: 11px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 4px;
}

.admin-btn-secondary {
    background: #ececf1;
    color: #444;
    margin-top: 8px;
}

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-item {
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    gap: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.admin-item-row {
    align-items: center;
    justify-content: space-between;
}

.admin-item-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.admin-item-info {
    flex: 1;
    min-width: 0;
}

.admin-item-title {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 4px;
    word-break: break-word;
}

.admin-item-meta {
    font-size: 0.8rem;
    color: #667eea;
    margin-bottom: 8px;
}

.admin-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-mini-btn {
    padding: 5px 8px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
}

.admin-mini-danger {
    color: #c62828;
    border-color: #ffcdd2;
    background: #fff5f5;
}

.admin-badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 999px;
    background: #eef0ff;
    color: #3b4ae0;
    margin-left: 4px;
}

.admin-badge-hide {
    background: #fff3e0;
    color: #e65100;
}

.admin-badge-pin {
    background: #e8f5e9;
    color: #2e7d32;
}

.admin-empty {
    text-align: center;
    color: #999;
    padding: 20px;
}

.admin-error {
    color: #c62828;
}

.admin-tabs-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.admin-tab {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.admin-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
}

.admin-skeleton-card {
    background: #fff;
    border-radius: 12px;
    padding: 14px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 96px;
    width: 100%;
}

.admin-skeleton-line {
    height: 14px;
    border-radius: 6px;
    background: linear-gradient(90deg, #e8e8e8 0%, #f3f3f3 50%, #e8e8e8 100%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

.admin-skeleton-line.w40 { width: 40%; height: 20px; }
.admin-skeleton-line.w50 { width: 50%; }
.admin-skeleton-line.w70 { width: 70%; }
.admin-skeleton-line.w90 { width: 90%; }
.admin-skeleton-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}
.admin-skeleton-title {
    height: 16px;
}

body.admin-mode #app-content {
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
}

.file-picker {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.file-picker-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.file-picker-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
}

.file-picker-name {
    font-size: 0.8rem;
    color: #777;
    word-break: break-all;
}

.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.admin-modal-box {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 340px;
    padding: 18px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.admin-modal-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 12px;
    color: #333;
}

.admin-modal-body {
    margin-bottom: 16px;
}

.admin-modal-actions {
    display: flex;
    gap: 10px;
}

.admin-modal-cancel,
.admin-modal-ok {
    flex: 1;
    padding: 11px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.admin-modal-cancel {
    background: #ececf1;
    color: #444;
}

.admin-modal-ok {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.admin-disc-signs {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.admin-disc-sign {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.admin-disc-sign.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
}

.admin-list-skeleton .admin-item {
    pointer-events: none;
}

.admin-order-box {
    margin-top: 12px;
    padding: 12px;
    background: #f7f7fb;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.admin-order-box ul {
    margin-top: 8px;
    padding-left: 18px;
}