/* ===== НОВАЯ АДМИНКА - СТИЛИ ===== */

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

html {
    touch-action: manipulation;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #0d0d12;
    color: white;
    display: flex;
    min-height: 100vh;
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

/* ===== SPLASH SCREEN ===== */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.splash-logo {
    width: 180px;
    height: auto;
    object-fit: contain;
}

.splash-loader {
    width: 180px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 40px;
    overflow: hidden;
}

.splash-loader-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #d4a853, #f0c975);
    border-radius: 3px;
    animation: splashLoad 2s ease-out forwards;
}

@keyframes splashLoad {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ===== LOGIN LOGO IMG ===== */
.login-logo-img {
    width: 140px;
    height: auto;
    object-fit: contain;
    margin-bottom: 5px;
}

/* ===== DEMO SECTION ===== */
.demo-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-title {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin-bottom: 12px;
}

.demo-buttons {
    display: flex;
    gap: 10px;
}

.demo-btn {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.demo-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(212, 168, 83, 0.5);
    transform: translateY(-2px);
}

.demo-btn span {
    font-size: 16px;
}

/* ===== LOGIN SUPPORT ===== */
.login-support {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.support-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.support-link:hover {
    color: #d4a853;
}

.telegram-icon {
    width: 18px;
    height: 18px;
    color: #0088cc;
}

/* ===== PLATFORM FOOTER ===== */
.platform-footer {
    text-align: center;
    padding: 20px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.2);
}

.platform-footer-text {
    color: rgba(255, 255, 255, 0.3);
    font-size: 11px;
    margin-bottom: 5px;
}

.platform-footer-brand {
    color: rgba(212, 168, 83, 0.7);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
}

.platform-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 12px;
    margin-top: 8px;
    transition: color 0.3s ease;
}

.platform-footer-link:hover {
    color: #0088cc;
}

.platform-footer-link .telegram-icon {
    width: 14px;
    height: 14px;
}

/* ===== САЙДБАР ===== */
.sidebar {
    width: 260px;
    background: #13131a;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    overflow: hidden;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.shop-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shop-selector:hover {
    background: rgba(255, 255, 255, 0.06);
}

.shop-logo {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.shop-info {
    flex: 1;
}

.shop-name {
    display: block;
    font-weight: 600;
    font-size: 14px;
}

.shop-status {
    font-size: 11px;
    color: #4caf50;
}

.shop-arrow {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
}

.shop-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    background: #1a1a24;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    margin-top: 8px;
}

.shop-menu.active {
    display: block;
}

.shop-menu-item {
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.shop-menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.shop-menu-item.active {
    background: rgba(233, 30, 99, 0.1);
    color: #e91e63;
}

/* Навигация */
.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    padding-top: 80px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 4px;
    position: relative;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.15), rgba(156, 39, 176, 0.1));
    color: #e91e63;
}

.nav-icon {
    font-size: 18px;
    width: 24px;
    flex-shrink: 0;
}

.nav-text {
    font-size: 14px;
    font-weight: 500;
}

.nav-badge {
    position: absolute;
    right: 12px;
    background: linear-gradient(135deg, #e91e63, #ff5722);
    color: white;
    font-size: 11px;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.4);
}

@keyframes badgePulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(233, 30, 99, 0.4);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 2px 15px rgba(233, 30, 99, 0.6), 0 0 20px rgba(233, 30, 99, 0.3);
    }
}

.nav-badge[style*="animation"] {
    animation: badgePulse 1s ease-in-out infinite !important;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.view-shop-btn {
    display: block;
    text-align: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
}

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

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 80px 30px 30px 30px;
    background: #0d0d12;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h1 {
    font-size: 24px;
    font-weight: 700;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.header-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.primary-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    border: none;
    border-radius: 10px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.3);
}

/* ===== СТАТИСТИКА ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(145deg, rgba(30, 30, 50, 0.6), rgba(20, 20, 35, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    transition: all 0.3s ease;
}

.stat-card.clickable {
    cursor: pointer;
}

.stat-card.clickable:hover {
    transform: translateY(-3px);
    border-color: rgba(233, 30, 99, 0.3);
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.15);
}

.stat-card.clickable:active {
    transform: translateY(-1px);
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: rgba(233, 30, 99, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    transition: all 0.3s ease;
}

.stat-icon.revenue { background: linear-gradient(145deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.05)); }
.stat-icon.orders { background: linear-gradient(145deg, rgba(255, 152, 0, 0.15), rgba(255, 152, 0, 0.05)); }
.stat-icon.customers { background: linear-gradient(145deg, rgba(33, 150, 243, 0.15), rgba(33, 150, 243, 0.05)); }
.stat-icon.products { background: linear-gradient(145deg, rgba(233, 30, 99, 0.15), rgba(233, 30, 99, 0.05)); }

.stat-card.clickable:hover .stat-icon {
    transform: scale(1.1);
}

.stat-arrow {
    position: absolute;
    right: 20px;
    font-size: 18px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.5);
}

.stat-card.clickable:hover .stat-arrow {
    opacity: 1;
    transform: translateX(0);
}

.stat-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    animation: pulse-badge 2s ease-in-out infinite;
}

.stat-badge.new-orders {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
}

.stat-badge.new-customers {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ===== СЕЛЕКТОР ПЕРИОДА ===== */
.period-selector {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.period-btn {
    padding: 10px 18px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.period-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.period-btn.active {
    background: linear-gradient(135deg, #e91e63, #c2185b);
    color: white;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.stat-info {
    flex: 1;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== КАРТОЧКИ НАСТРОЕК ===== */
.setting-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}

.setting-card.highlight {
    border-color: rgba(233, 30, 99, 0.3);
    background: rgba(233, 30, 99, 0.05);
}

.setting-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.setting-title {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
}

.setting-desc {
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.setting-input {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.setting-input input {
    width: 100px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
}

.input-suffix {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    height: 28px !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    transition: all 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #e91e63, #9c27b0);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

/* Payment logos */
.payment-logo {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.payment-logo.tbank {
    background: linear-gradient(135deg, #ffdd2d, #fcc521);
    color: #333;
    font-weight: 800;
    font-size: 20px;
}

.payment-logo.sbp {
    background: linear-gradient(135deg, #5c2d91, #00a0e3);
    font-size: 10px;
    font-weight: 700;
}

.tbank-settings {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== ФОРМЫ ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #e91e63;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.settings-form {
    max-width: 600px;
}

.add-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    margin-top: 20px;
}

.add-form h3 {
    margin-bottom: 20px;
    font-size: 16px;
}

.form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.form-row input,
.form-row select {
    flex: 1;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

.save-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    border: none;
    border-radius: 10px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.cancel-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 10px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    cursor: pointer;
}

/* ===== СПИСКИ ===== */
.categories-list,
.delivery-zones,
.pickup-points,
.promocodes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 16px 20px;
    transition: all 0.2s ease;
}

.list-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.list-item-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.15), rgba(156, 39, 176, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.list-item-info {
    flex: 1;
}

.list-item-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.list-item-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.list-item-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.list-item-badge.price {
    background: rgba(255, 213, 79, 0.15);
    color: #ffd54f;
}

.list-item-badge.free {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

.list-item-badge.active {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

.list-item-badge.inactive {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
}

.list-item-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.action-btn.delete:hover {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

/* ===== ДИЗАЙН ===== */
.color-section,
.font-section,
.logo-section {
    margin-bottom: 30px;
}

.color-section h3,
.font-section h3,
.logo-section h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.color-presets {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.color-preset {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.color-preset:hover {
    background: rgba(255, 255, 255, 0.06);
}

.color-preset.active {
    border-color: #e91e63;
}

.preset-colors {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    justify-content: center;
}

.preset-colors span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.color-preset span:last-child {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.custom-colors {
    display: flex;
    gap: 20px;
}

.color-picker {
    text-align: center;
}

.color-picker label {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.color-picker input[type="color"] {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: transparent;
}

.font-section select {
    width: 300px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

.logo-upload {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo-preview {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.logo-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-actions input {
    width: 100px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 20px;
    text-align: center;
}

.logo-actions span {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

.upload-btn {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
}

/* ===== МОДАЛЬНЫЕ ОКНА ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 100000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #1a1a24;
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    margin: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 16px;
}

.modal-close {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.modal-footer {
    padding: 16px 24px;
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #1a1a24;
    position: sticky;
    bottom: 0;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 70px;
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 9999;
        transition: width 0.3s ease;
    }
    
    .sidebar.open {
        width: 280px;
        box-shadow: 5px 0 30px rgba(0,0,0,0.5);
    }
    
    .sidebar .shop-info,
    .sidebar .shop-arrow,
    .sidebar .nav-text,
    .sidebar-footer {
        display: none;
    }
    
    .sidebar.open .shop-info,
    .sidebar.open .shop-arrow,
    .sidebar.open .nav-text,
    .sidebar.open .sidebar-footer {
        display: block;
    }
    
    .sidebar.open .nav-item {
        justify-content: flex-start;
        padding-left: 20px;
    }
    
    .shop-selector {
        justify-content: center;
    }
    
    .sidebar.open .shop-selector {
        justify-content: flex-start;
    }
    
    .nav-item {
        justify-content: center;
    }
    
    .main-content {
        margin-left: 70px;
    }
    
    /* Когда меню открыто - контент остаётся на месте */
    body.menu-open .main-content {
        margin-left: 70px;
    }
}

/* ===== СТИЛЬНЫЙ ПЕРЕКЛЮЧАТЕЛЬ ТЕМЫ ===== */
.theme-toggle-admin {
    position: fixed;
    top: 20px;
    right: 30px;
    z-index: 9999;
}

.theme-toggle-admin input {
    display: none;
}

.theme-toggle-admin label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 34px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 34px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 
        0 0 20px rgba(251, 195, 220, 0.3),
        0 0 40px rgba(251, 195, 220, 0.15),
        inset 0 0 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(251, 195, 220, 0.3);
}

.theme-toggle-admin label::before {
    content: '';
    position: absolute;
    left: 4px;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #fbc3dc 0%, #e91e63 100%);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(251, 195, 220, 0.6);
}

.theme-toggle-admin label:hover {
    box-shadow: 
        0 0 30px rgba(251, 195, 220, 0.5),
        0 0 60px rgba(251, 195, 220, 0.3),
        inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.theme-toggle-admin .theme-icon-dark,
.theme-toggle-admin .theme-icon-light {
    position: absolute;
    font-size: 16px;
    transition: all 0.3s ease;
    z-index: 1;
}

.theme-toggle-admin .theme-icon-dark {
    left: 10px;
    opacity: 1;
}

.theme-toggle-admin .theme-icon-light {
    right: 10px;
    opacity: 0.3;
}

.theme-toggle-admin input:checked ~ label {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border-color: rgba(255, 193, 7, 0.4);
    box-shadow: 
        0 0 25px rgba(255, 193, 7, 0.4),
        0 0 50px rgba(255, 193, 7, 0.2),
        inset 0 0 10px rgba(255, 255, 255, 0.5);
}

.theme-toggle-admin input:checked ~ label::before {
    transform: translateX(36px);
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.7);
}

.theme-toggle-admin input:checked ~ label .theme-icon-dark {
    opacity: 0.3;
}

.theme-toggle-admin input:checked ~ label .theme-icon-light {
    opacity: 1;
}

/* ===== СТИЛИ ДЛЯ СПИСКА СТОРИС ===== */
.stories-admin-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.story-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.story-item-preview {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.story-item-info {
    flex: 1;
}

.story-item-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.story-item-desc {
    font-size: 12px;
    opacity: 0.6;
}

/* ===== ШАБЛОНЫ БИЗНЕСА ===== */
.business-templates {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.template-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.template-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.template-card.active {
    border-color: #e91e63;
    background: rgba(233, 30, 99, 0.1);
}

.template-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.template-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.template-colors {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.template-colors span {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

/* Логотип */
.logo-upload-section {
    margin-top: 16px;
}

.logo-options {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 12px;
}

.logo-preview-large {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.logo-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.logo-inputs .form-group {
    margin: 0;
}

.or-divider {
    opacity: 0.5;
    font-size: 12px;
}

.upload-logo-btn {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.upload-logo-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.logo-image-preview {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 20px;
    margin-top: 12px;
}

/* Этапы загрузки */
.loading-stages-editor {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stage-editor {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.stage-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.stage-fields {
    display: flex;
    gap: 12px;
    flex: 1;
}

.stage-fields input:first-child {
    width: 60px;
    text-align: center;
    font-size: 20px;
}

.stage-fields input:last-child {
    flex: 1;
}

.emoji-hint {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: rgba(33, 150, 243, 0.1);
    border-radius: 12px;
    margin-top: 16px;
}

.hint-icon {
    font-size: 20px;
}

.hint-text {
    font-size: 12px;
    opacity: 0.8;
    line-height: 1.6;
}

/* Цвета */
.color-pickers-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.color-picker-item {
    text-align: center;
}

.color-picker-item label {
    display: block;
    font-size: 11px;
    margin-bottom: 8px;
    opacity: 0.7;
}

.color-picker-item input[type="color"] {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
}

/* Стили */
.style-options {
    display: grid;
    gap: 16px;
}

/* Светлая тема для шаблонов */
body.light-theme .template-card {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .template-card:hover {
    background: rgba(0, 0, 0, 0.06);
}

body.light-theme .template-card.active {
    border-color: #e91e63;
    background: rgba(233, 30, 99, 0.05);
}

body.light-theme .logo-preview-large {
    background: rgba(0, 0, 0, 0.05);
}

body.light-theme .stage-editor {
    background: rgba(0, 0, 0, 0.03);
}

body.light-theme .upload-logo-btn {
    background: rgba(0, 0, 0, 0.05);
}

body.light-theme .emoji-hint {
    background: rgba(33, 150, 243, 0.08);
}

/* Загрузка фото сторис */
.story-upload-area {
    width: 100%;
    height: 200px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.story-upload-area:hover {
    border-color: #e91e63;
    background: rgba(233, 30, 99, 0.05);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.upload-icon {
    font-size: 48px;
}

.upload-text {
    font-size: 14px;
    font-weight: 500;
}

.upload-hint {
    font-size: 12px;
    opacity: 0.5;
}

.story-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.story-item-img {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

body.light-theme .story-upload-area {
    border-color: rgba(0, 0, 0, 0.15);
}

body.light-theme .story-upload-area:hover {
    border-color: #e91e63;
    background: rgba(233, 30, 99, 0.05);
}

/* Светлая тема для админки */
body.light-theme {
    background: #f5f5f5 !important;
    color: #333 !important;
}

body.light-theme .sidebar {
    background: #ffffff;
    border-right: 1px solid #e0e0e0;
}

body.light-theme .sidebar-header {
    border-bottom-color: #e0e0e0;
}

body.light-theme .shop-selector {
    background: rgba(0, 0, 0, 0.03);
}

body.light-theme .shop-selector:hover {
    background: rgba(0, 0, 0, 0.06);
}

body.light-theme .shop-name {
    color: #333;
}

body.light-theme .nav-item {
    color: #333;
}

body.light-theme .nav-item:hover {
    background: rgba(0,0,0,0.05);
}

body.light-theme .nav-item.active {
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    color: white;
}

body.light-theme .main-content {
    background: #f5f5f5;
}

body.light-theme .section-header h1 {
    color: #333;
}

body.light-theme .section-header .header-date {
    color: #666;
}

body.light-theme .stat-card,
body.light-theme .settings-card,
body.light-theme .list-item,
body.light-theme .story-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
}

body.light-theme .stat-card h3,
body.light-theme .settings-card h3 {
    color: #333;
}

body.light-theme .stat-value {
    color: #333;
}

body.light-theme .stat-label {
    color: #666;
}

body.light-theme .list-item-title,
body.light-theme .story-item-title {
    color: #333;
}

body.light-theme .list-item-subtitle {
    color: #666;
}

body.light-theme .list-item-desc,
body.light-theme .story-item-desc {
    color: #666;
}

body.light-theme .form-group label {
    color: #333;
}

body.light-theme .form-group input,
body.light-theme .form-group select,
body.light-theme .form-group textarea {
    background: #f5f5f5;
    border-color: #ddd;
    color: #333;
}

body.light-theme .form-group input::placeholder,
body.light-theme .form-group textarea::placeholder {
    color: #999;
}

body.light-theme .modal-content {
    background: #ffffff;
}

body.light-theme .modal-header h3 {
    color: #333;
}

body.light-theme .modal-body {
    color: #333;
}

body.light-theme p {
    color: #555;
}

body.light-theme .toggle-label span {
    color: #333;
}

body.light-theme .view-shop-btn {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

/* ===== СВЕТЛАЯ ТЕМА - РАСШИРЕННЫЕ СТИЛИ ===== */

/* Все инпуты, селекты, текстареа */
body.light-theme input,
body.light-theme select,
body.light-theme textarea {
    background: #ffffff !important;
    border: 1px solid #d0d0d0 !important;
    color: #333333 !important;
}

body.light-theme input::placeholder,
body.light-theme textarea::placeholder {
    color: #888888 !important;
}

body.light-theme input:focus,
body.light-theme select:focus,
body.light-theme textarea:focus {
    border-color: #e91e63 !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1) !important;
}

/* Лейблы */
body.light-theme label {
    color: #333333 !important;
}

/* Секции настроек */
body.light-theme [style*="background:rgba(255,255,255,0.03)"],
body.light-theme [style*="background: rgba(255,255,255,0.03)"],
body.light-theme [style*="background:rgba(255,255,255,0.05)"],
body.light-theme [style*="background: rgba(255,255,255,0.05)"] {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
}

/* Карточки и секции */
body.light-theme div[style*="border-radius:16px"],
body.light-theme div[style*="border-radius: 16px"] {
    border: 1px solid #e0e0e0 !important;
}

/* Текст в секциях */
body.light-theme h3,
body.light-theme h4 {
    color: #333333 !important;
}

body.light-theme span,
body.light-theme div {
    color: inherit;
}

/* Telegram секция */
body.light-theme #telegramSection input,
body.light-theme #telegramSection textarea {
    background: #f5f5f5 !important;
    border: 1px solid #d0d0d0 !important;
    color: #333333 !important;
}

/* Бизнес секция */
body.light-theme #superadminSection {
    color: #333333;
}

body.light-theme #superadminSection input {
    background: #f5f5f5 !important;
    color: #333333 !important;
}

/* Заявки на проверку */
body.light-theme [style*="background:rgba(255,152,0,0.1)"],
body.light-theme [style*="background: rgba(255,152,0,0.1)"] {
    background: #fff8e1 !important;
    border: 1px solid #ffcc80 !important;
}

/* Все магазины список */
body.light-theme #allShopsList > div {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
}

/* Подсказки и описания */
body.light-theme [style*="opacity:0.7"],
body.light-theme [style*="opacity: 0.7"],
body.light-theme [style*="opacity:0.6"],
body.light-theme [style*="opacity: 0.6"],
body.light-theme [style*="opacity:0.5"],
body.light-theme [style*="opacity: 0.5"] {
    color: #666666 !important;
}

/* Кнопки настроек */
body.light-theme button[style*="background:rgba(255,255,255,0.1)"],
body.light-theme button[style*="background: rgba(255,255,255,0.1)"] {
    background: #f0f0f0 !important;
    color: #333333 !important;
    border: 1px solid #d0d0d0 !important;
}

/* Инпуты с монотипом */
body.light-theme input[style*="font-family:monospace"],
body.light-theme input[style*="font-family: monospace"] {
    background: #f5f5f5 !important;
    color: #333333 !important;
}

/* Дизайн секция */
body.light-theme #designSection input,
body.light-theme #designSection select {
    background: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #d0d0d0 !important;
}

/* Настройки секция */
body.light-theme #settingsSection input,
body.light-theme #settingsSection textarea {
    background: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #d0d0d0 !important;
}

/* Бонусы секция */
body.light-theme #bonusSection input {
    background: #ffffff !important;
    color: #333333 !important;
}

/* Заказы секция */
body.light-theme #ordersSection {
    color: #333333;
}

/* Клиенты секция */
body.light-theme #customersSection {
    color: #333333;
}

body.light-theme #customersSection input {
    background: #ffffff !important;
    color: #333333 !important;
}

/* Товары секция */
body.light-theme #productsSection {
    color: #333333;
}

/* Категории секция */
body.light-theme #categoriesSection {
    color: #333333;
}

/* Промокоды секция */
body.light-theme #promocodesSection input {
    background: #ffffff !important;
    color: #333333 !important;
}

/* Сторис секция */
body.light-theme #storiesSection {
    color: #333333;
}

/* Модификаторы секция */
body.light-theme #modifiersSection input {
    background: #ffffff !important;
    color: #333333 !important;
}

/* Доставка секция */
body.light-theme #deliverySection input {
    background: #ffffff !important;
    color: #333333 !important;
}

/* Уведомления */
body.light-theme .notification {
    background: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Селекторы периода */
body.light-theme .period-btn {
    background: #f5f5f5 !important;
    color: #333333 !important;
}

body.light-theme .period-btn.active {
    background: linear-gradient(135deg, #e91e63, #9c27b0) !important;
    color: #ffffff !important;
}

/* Таблицы */
body.light-theme table {
    color: #333333;
}

body.light-theme th {
    color: #333333 !important;
    background: #f5f5f5 !important;
}

body.light-theme td {
    color: #333333 !important;
    border-color: #e0e0e0 !important;
}

/* Скролл */
body.light-theme ::-webkit-scrollbar-track {
    background: #f0f0f0;
}

body.light-theme ::-webkit-scrollbar-thumb {
    background: #c0c0c0;
}

body.light-theme ::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

/* Кнопка выхода */
body.light-theme .nav-item.logout-btn {
    color: #dc3545 !important;
}

body.light-theme .nav-item.logout-btn:hover {
    background: rgba(220, 53, 69, 0.1) !important;
}

/* Кнопка выхода тёмная тема */
.nav-item.logout-btn {
    color: #ff6b6b !important;
    margin-top: auto;
}

.nav-item.logout-btn:hover {
    background: rgba(255, 107, 107, 0.15) !important;
}

.nav-item.logout-btn .nav-icon {
    color: #ff6b6b;
}

/* ===== МОДАЛЬНОЕ ОКНО БОЛЬШОЕ ===== */
.modal-large {
    max-width: 600px;
}

/* ===== ЗАГРУЗКА ФОТО ===== */
.photo-uploads {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.photo-upload-box {
    position: relative;
    aspect-ratio: 1;
    background: rgba(255,255,255,0.05);
    border: 2px dashed rgba(255,255,255,0.2);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-upload-box:hover {
    border-color: #e91e63;
    background: rgba(233, 30, 99, 0.1);
}

.photo-upload-box input {
    display: none;
}

.photo-upload-box label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.photo-upload-box label span {
    font-size: 32px;
    margin-bottom: 5px;
}

.photo-upload-box label small {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
}

.photo-upload-box .photo-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
}

body.light-theme .photo-upload-box {
    background: #f0f0f0;
    border-color: #ddd;
}

body.light-theme .photo-upload-box label small {
    color: #666;
}

/* Светлая тема - период селектор */
body.light-theme .period-selector {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .period-btn {
    color: #333;
}

body.light-theme .period-btn:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.05);
}

body.light-theme .period-btn.active {
    background: linear-gradient(135deg, #e91e63, #c2185b);
    color: white;
}

/* Светлая тема - заказы */
body.light-theme .order-card,
body.light-theme .customer-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
}

body.light-theme .order-card:hover,
body.light-theme .customer-card:hover {
    border-color: #e91e63;
}

body.light-theme .order-title,
body.light-theme .customer-name {
    color: #333;
}

body.light-theme .order-status {
    color: #333;
}

/* Светлая тема - статистика */
body.light-theme .stat-icon {
    background: rgba(233, 30, 99, 0.1);
}

/* Светлая тема - последние заказы */
body.light-theme .recent-orders-title,
body.light-theme .last-orders-title {
    color: #333;
}

body.light-theme .recent-order-item,
body.light-theme .last-order-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
}

body.light-theme .recent-order-item:hover,
body.light-theme .last-order-item:hover {
    border-color: #e91e63;
}

/* Светлая тема - текст в карточках */
body.light-theme .order-info,
body.light-theme .order-customer,
body.light-theme .order-phone {
    color: #666;
}

body.light-theme .order-id {
    color: #333;
}

body.light-theme .order-amount,
body.light-theme .order-total {
    color: #e91e63;
}

/* Светлая тема - мобильный header */
body.light-theme .mobile-header {
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

body.light-theme .mobile-header .shop-name {
    color: #333;
}

/* Светлая тема - кнопки */
body.light-theme .menu-toggle {
    color: #333;
}

/* Светлая тема - секции */
body.light-theme .section-title,
body.light-theme h2,
body.light-theme h3 {
    color: #333;
}

body.light-theme p,
body.light-theme span {
    color: #444;
}

/* Светлая тема - таблицы и списки */
body.light-theme .tasks-list,
body.light-theme .products-grid,
body.light-theme .categories-list {
    color: #333;
}

/* ===== ТОВАРЫ В АДМИНКЕ ===== */
.product-card-admin {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card-admin:hover {
    border-color: #e91e63;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.2);
}

.product-image-admin {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.product-image-admin img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge-admin {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
}

.product-info-admin {
    padding: 15px;
}

.product-info-admin h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.product-price-admin {
    font-size: 18px;
    font-weight: 700;
    color: #e91e63;
    margin-bottom: 5px;
}

.product-category-admin {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.product-actions-admin {
    display: flex;
    gap: 10px;
    padding: 0 15px 15px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

body.light-theme .product-card-admin {
    background: #ffffff;
    border-color: #e0e0e0;
}

body.light-theme .product-info-admin h4 {
    color: #333;
}

body.light-theme .product-category-admin {
    color: #999;
}

/* ===== TOGGLE LABEL ===== */
.toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.toggle-label input {
    width: 50px;
    min-width: 50px;
    max-width: 50px;
    height: 26px;
    appearance: none;
    background: rgba(255,255,255,0.1);
    border-radius: 13px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.toggle-label input::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-label input:checked {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
}

.toggle-label input:checked::before {
    left: 27px;
}

/* ===== СПИСОК ДЛЯ АПСЕЙЛА ===== */
#upsellList .list-item {
    margin-bottom: 10px;
}

#upsellList .list-item-icon {
    font-size: 28px;
}

/* ===== КНОПКИ УПРАВЛЕНИЯ В ШАПКЕ ===== */
.control-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.control-btn:active {
    transform: scale(0.95);
}

/* Колокольчик уведомлений */
.notification-bell .notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #f44336, #e91e63);
    color: white;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.5);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.notification-bell.has-new {
    animation: shake-bell 0.5s ease-in-out;
}

@keyframes shake-bell {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(15deg); }
    75% { transform: rotate(-15deg); }
}

/* Фильтры уведомлений */
.notif-filter {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.notif-filter:hover {
    background: rgba(255,255,255,0.15);
}

.notif-filter.active {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    border-color: #ff9800;
    color: white;
}

/* Карточка уведомления */
.notification-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.2s;
}

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

.notification-item.unread {
    border-left: 3px solid #ff9800;
    background: rgba(255,152,0,0.1);
}

.notification-item .notif-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.notification-item .notif-type {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.notification-item .notif-type.registration {
    background: rgba(76,175,80,0.2);
    color: #4caf50;
}

.notification-item .notif-type.domain {
    background: rgba(33,150,243,0.2);
    color: #2196f3;
}

.notification-item .notif-type.payment {
    background: rgba(156,39,176,0.2);
    color: #9c27b0;
}

.notification-item .notif-type.approval {
    background: rgba(255,152,0,0.2);
    color: #ff9800;
}

.notification-item .notif-time {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
}

.notification-item .notif-content {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    line-height: 1.4;
}

.notification-item .notif-shop {
    font-weight: 600;
    color: #ff9800;
}

.control-icon,
.theme-icon {
    font-size: 20px;
}

/* При включении показываем солнце (светлая тема) */
.theme-toggle-control input:checked + label .theme-icon-dark {
    opacity: 0;
}

.theme-toggle-control input:checked + label .theme-icon-light {
    opacity: 1;
}

/* ===== МОБИЛЬНАЯ ШАПКА ===== */
.mobile-header {
    display: flex;
    position: fixed !important;
    top: 0 !important;
    top: var(--tg-viewport-stable-height-offset, 0) !important;
    top: env(safe-area-inset-top, 0) !important;
    left: 260px;
    right: 0;
    height: 60px;
    padding-top: env(safe-area-inset-top, 0);
    background: #13131a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    align-items: center;
    justify-content: space-between;
    padding-left: 20px;
    padding-right: 20px;
    z-index: 999999 !important;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: auto;
}

.menu-toggle {
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-title {
    font-size: 18px;
    font-weight: 700;
    flex: 1;
}

.header-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 80px 15px 30px !important;
    }
    
    .mobile-header {
        left: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .section-header h1 {
        font-size: 20px;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-arrow {
        display: none;
    }
    
    .period-selector {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .period-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .settings-card {
        padding: 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .business-templates {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .color-pickers-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .period-selector {
        width: 100%;
    }
    
    .period-btn {
        flex: 1;
        padding: 8px 10px;
        font-size: 11px;
        text-align: center;
    }
    
    .stat-badge {
        top: 8px;
        right: 8px;
        padding: 3px 8px;
        font-size: 11px;
    }
    
    .business-templates {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .template-card {
        padding: 12px 8px;
    }
    
    .template-icon {
        font-size: 24px;
    }
    
    .template-name {
        font-size: 10px;
    }
    
    .stage-fields {
        flex-direction: column;
    }
    
    .stage-fields input:first-child {
        width: 100%;
    }
    
    .primary-btn {
        width: 100%;
        justify-content: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
        max-height: 90vh;
    }
}

/* ===== РЕЖИМ ПРОСМОТРА (МОБИЛЬНАЯ ЭМУЛЯЦИЯ) ===== */
body.mobile-view {
    max-width: 430px;
    margin: 0 auto;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    min-height: 100vh;
}

body.mobile-view .sidebar {
    transform: translateX(-100%);
    width: 280px;
    z-index: 9999;
    padding-top: 70px;
}

body.mobile-view .sidebar.open {
    transform: translateX(0);
    box-shadow: 5px 0 30px rgba(0,0,0,0.5);
}

body.mobile-view .sidebar .sidebar-header {
    display: none;
}

body.mobile-view .sidebar .shop-selector {
    display: none;
}

body.mobile-view .sidebar.open .nav-text,
body.mobile-view .sidebar.open .shop-info,
body.mobile-view .sidebar.open .shop-arrow,
body.mobile-view .sidebar.open .sidebar-footer {
    display: block;
}

body.mobile-view .sidebar.open .nav-item {
    justify-content: flex-start;
    padding-left: 20px;
}

body.mobile-view .sidebar.open .shop-selector {
    justify-content: flex-start;
}

body.mobile-view .main-content {
    margin-left: 0 !important;
    padding: 80px 15px 30px !important;
}

body.mobile-view .mobile-header {
    left: 0;
}

body.mobile-view .menu-toggle {
    display: flex;
}

/* Оверлей для закрытия меню */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 9998;
}

.sidebar-overlay.active {
    display: block;
}

/* Блокировка прокрутки при открытом меню */
body.menu-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}

/* ===== СВЕТЛАЯ ТЕМА ДЛЯ КНОПОК УПРАВЛЕНИЯ ===== */
body.light-theme .control-btn {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body.light-theme .control-btn:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

body.light-theme .mobile-header {
    background: #ffffff;
    border-bottom-color: #e0e0e0;
}

body.light-theme .menu-toggle {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

/* ===== ВЫБОР ПЕРИОДА ===== */
.period-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.custom-period {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.custom-period input[type="date"] {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    color: white;
    font-size: 13px;
    cursor: pointer;
}

.custom-period input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.custom-period span {
    color: rgba(255, 255, 255, 0.5);
}

/* Светлая тема - custom-period */
body.light-theme .custom-period {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .custom-period input[type="date"] {
    background: #ffffff;
    border: 1px solid #ddd;
    color: #333;
}

body.light-theme .custom-period input[type="date"]::-webkit-calendar-picker-indicator {
    filter: none;
}

body.light-theme .custom-period span {
    color: #666;
}

/* ===== ИНДИКАТОР ПОДПИСКИ ===== */
.subscription-indicator {
    position: relative;
}

.subscription-status {
    font-size: 18px;
    animation: pulse-status 2s ease-in-out infinite;
}

@keyframes pulse-status {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ===== МОДАЛЬНОЕ ОКНО ПОДПИСКИ ===== */
.subscription-modal {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(145deg, #1a1a2e, #16213e) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: white;
}

.subscription-status-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(145deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.05));
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
}

.subscription-status-card.warning {
    background: linear-gradient(145deg, rgba(255, 152, 0, 0.15), rgba(255, 152, 0, 0.05));
    border-color: rgba(255, 152, 0, 0.3);
}

.subscription-status-card.danger {
    background: linear-gradient(145deg, rgba(244, 67, 54, 0.15), rgba(244, 67, 54, 0.05));
    border-color: rgba(244, 67, 54, 0.3);
}

.subscription-status-card.pending {
    background: linear-gradient(145deg, rgba(33, 150, 243, 0.15), rgba(33, 150, 243, 0.05));
    border-color: rgba(33, 150, 243, 0.3);
}

.subscription-status-icon {
    font-size: 40px;
}

.subscription-status-text {
    font-size: 18px;
    font-weight: 600;
}

.subscription-expires {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
}

.subscription-section {
    margin-bottom: 25px;
}

.subscription-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.org-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* ===== ТАРИФЫ ===== */
.tariff-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.tariff-card {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tariff-card:hover {
    border-color: rgba(233, 30, 99, 0.3);
    transform: translateY(-3px);
}

.tariff-card.popular {
    border-color: rgba(233, 30, 99, 0.5);
    background: linear-gradient(145deg, rgba(233, 30, 99, 0.1), rgba(233, 30, 99, 0.03));
}

.tariff-card.premium {
    border-color: rgba(255, 193, 7, 0.5);
    background: linear-gradient(145deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.03));
}

.tariff-popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #e91e63, #c2185b);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.tariff-badge {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tariff-price {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.tariff-price span {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
}

.tariff-features {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    text-align: left;
}

.tariff-features li {
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tariff-features li.disabled {
    color: rgba(255, 255, 255, 0.3);
}

.tariff-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #e91e63, #c2185b);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tariff-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(233, 30, 99, 0.4);
}

.trial-info {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.05));
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    font-size: 14px;
}

/* ===== АДАПТИВНОСТЬ ПОДПИСКИ ===== */
@media (max-width: 768px) {
    .tariff-cards {
        grid-template-columns: 1fr;
    }
    
    .org-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .subscription-modal {
        max-width: 95%;
    }
    
    .period-controls {
        align-items: stretch;
    }
    
    .custom-period {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ===== МОДАЛЬНОЕ ОКНО (OVERLAY) ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay .modal {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(244, 67, 54, 0.3);
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 20px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== TELEGRAM WEB APP ФИКСЫ ===== */

/* Закреплённая шапка - не двигается никогда */
.mobile-header {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    z-index: 999999 !important;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: auto;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.98) 0%, rgba(26, 26, 46, 0.95) 100%);
    padding-top: env(safe-area-inset-top, 0px);
}

/* Telegram WebApp - safe area */
body.tg-webapp .mobile-header {
    padding-top: var(--tg-safe-area-top, 0px);
}

/* Контент скроллится под шапкой */
.main-content {
    padding-top: 70px !important;
    overflow-y: auto;
    height: calc(100vh - 70px);
    position: relative;
}

/* Telegram WebApp - контент */
body.tg-webapp .main-content {
    padding-top: calc(70px + var(--tg-safe-area-top, 0px)) !important;
    height: calc(100vh - 70px - var(--tg-safe-area-top, 0px));
}

@media (max-width: 1024px) {
    .main-content {
        padding-top: 75px !important;
        margin-left: 0 !important;
        height: calc(100vh - 75px);
        overflow-y: auto;
    }
    
    .mobile-header {
        left: 0 !important;
        position: fixed !important;
        top: 0 !important;
        z-index: 999999 !important;
    }
}

/* ===== МОДАЛКА ДЕТАЛЕЙ МАГАЗИНА - МОБИЛЬНАЯ ===== */
@media (max-width: 768px) {
    #shopDetailModal .modal-content {
        max-width: 95% !important;
        width: 95% !important;
        margin: auto !important;
        border-radius: 20px !important;
        max-height: 85vh !important;
        position: relative !important;
    }
    
    #shopDetailModal .modal-body {
        max-height: 55vh !important;
        overflow-y: auto !important;
        padding: 15px !important;
    }
    
    #shopDetailModal .modal-body > div {
        padding: 15px !important;
    }
    
    #shopDetailModal .modal-body h4 {
        font-size: 12px !important;
    }
    
    #shopDetailModal .modal-body [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    #shopDetailModal .modal-body [style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    #shopDetailModal .modal-body [style*="grid-template-columns: repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    #shopDetailModal .modal-body [style*="grid-template-columns:repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    #shopDetailModal .modal-footer {
        flex-wrap: wrap !important;
        gap: 8px !important;
        padding: 15px !important;
    }
    
    #shopDetailModal .modal-footer button {
        flex: 1 1 45% !important;
        min-width: 100px !important;
        padding: 10px 12px !important;
        font-size: 12px !important;
    }
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ВСЕХ РАЗДЕЛОВ ===== */

@media (max-width: 768px) {
    
    /* ===== ОБЩИЕ СТИЛИ ===== */
    .content-section {
        padding: 15px !important;
    }
    
    .section-header {
        flex-direction: column !important;
        gap: 15px !important;
        align-items: flex-start !important;
    }
    
    .section-header h1 {
        font-size: 20px !important;
    }
    
    .primary-btn {
        width: 100% !important;
        padding: 14px 20px !important;
    }
    
    /* Все grid 5 колонок -> 2 колонки (статистика вверху) */
    #section-superadmin > div[style*="grid-template-columns: repeat(5"],
    #section-superadmin > div[style*="grid-template-columns:repeat(5"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    /* Все grid 4 колонки -> 2 колонки */
    #section-superadmin > div[style*="grid-template-columns: repeat(4"],
    #section-superadmin > div[style*="grid-template-columns:repeat(4"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
    
    /* Все grid 2 колонки -> 1 колонка */
    #section-superadmin > div[style*="grid-template-columns: 1fr 1fr"],
    #section-superadmin > div[style*="grid-template-columns:1fr 1fr"],
    #section-tasks div[style*="grid-template-columns: 1fr 1fr"],
    #section-tasks div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    /* Карточки статистики - меньше padding и шрифты */
    #section-superadmin > div[style*="repeat(5"] > div,
    #section-superadmin > div[style*="repeat(4"] > div {
        padding: 12px 8px !important;
    }
    
    #section-superadmin > div[style*="repeat(5"] > div > div:first-child,
    #section-superadmin > div[style*="repeat(4"] > div > div:first-child {
        font-size: 24px !important;
    }
    
    #section-superadmin > div[style*="repeat(5"] > div > div:last-child,
    #section-superadmin > div[style*="repeat(4"] > div > div:last-child {
        font-size: 10px !important;
    }
    
    /* Карточки статистики */
    #section-superadmin div[style*="padding:25px"] {
        padding: 15px !important;
    }
    
    #section-superadmin div[style*="font-size:40px"],
    #section-superadmin div[style*="font-size: 40px"] {
        font-size: 28px !important;
    }
    
    #section-superadmin div[style*="font-size:48px"],
    #section-superadmin div[style*="font-size: 48px"] {
        font-size: 32px !important;
    }
    
    /* ===== РАЗДЕЛ БИЗНЕС - ЗАЯВКИ НА ПРОВЕРКУ ===== */
    #reviewRequestsSection {
        padding: 15px !important;
    }
    
    #reviewRequestsSection > div:first-child {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    
    #reviewRequestsList > div {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 15px !important;
    }
    
    #reviewRequestsList > div > div:last-child {
        display: flex !important;
        flex-direction: row !important;
        gap: 10px !important;
        width: 100% !important;
    }
    
    #reviewRequestsList button {
        flex: 1 !important;
        padding: 12px 10px !important;
        font-size: 13px !important;
    }
    
    /* Список магазинов */
    #allShopsList > div {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding: 15px !important;
    }
    
    #allShopsList > div > div:last-child {
        width: 100% !important;
        display: flex !important;
        gap: 10px !important;
    }
    
    #allShopsList button {
        flex: 1 !important;
        padding: 10px !important;
        font-size: 12px !important;
    }
    
    /* ===== РАЗДЕЛ ЗАДАНИЯ ===== */
    #section-tasks .settings-card,
    #section-tasks div[style*="background:rgba"] {
        padding: 15px !important;
    }
    
    #section-tasks div[style*="display:flex"][style*="align-items:center"][style*="gap:15px"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    
    #section-tasks div[style*="display:grid"] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    #section-tasks input[type="number"],
    #section-tasks input[type="text"],
    #section-tasks select {
        width: 100% !important;
    }
    
    /* ===== РАЗДЕЛ МОДИФИКАТОРЫ ===== */
    #section-modifiers .settings-card {
        padding: 15px !important;
    }
    
    #section-modifiers h3 {
        font-size: 16px !important;
    }
    
    #modifierGroupsList > div {
        padding: 15px !important;
    }
    
    #modifierGroupsList div[style*="display:flex"] {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    #modifierGroupsList input {
        width: 100% !important;
        min-width: unset !important;
    }
    
    #modifierGroupsList button {
        width: 100% !important;
        padding: 12px !important;
    }
    
    /* ===== РАЗДЕЛ TELEGRAM ===== */
    #section-telegram div[style*="padding:25px"],
    #section-telegram div[style*="padding: 25px"] {
        padding: 15px !important;
    }
    
    #section-telegram input,
    #section-telegram textarea {
        font-size: 14px !important;
    }
    
    #section-telegram div[style*="display:flex"][style*="gap:20px"] {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    #section-telegram div[style*="display:grid"] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    /* Кнопки Telegram */
    #section-telegram button[onclick*="save"],
    #section-telegram button[onclick*="submit"],
    #section-telegram button[style*="padding:15px"],
    #section-telegram button[style*="padding: 15px"] {
        width: 100% !important;
        padding: 15px !important;
        font-size: 14px !important;
        margin-bottom: 10px !important;
    }
    
    #section-telegram ol {
        padding-left: 20px !important;
        font-size: 13px !important;
    }
    
    #section-telegram ol li {
        margin-bottom: 10px !important;
        line-height: 1.5 !important;
    }
    
    /* ===== ОБЩИЕ ЭЛЕМЕНТЫ ФОРМ ===== */
    .form-group {
        margin-bottom: 15px !important;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100% !important;
        padding: 12px 15px !important;
        font-size: 14px !important;
    }
    
    /* Toggle switches */
    .toggle-label {
        font-size: 14px !important;
    }
    
    .toggle-label input {
        width: 50px !important;
        min-width: 50px !important;
        max-width: 50px !important;
        height: 26px !important;
        flex-shrink: 0 !important;
    }
    
    /* Settings cards */
    .settings-card {
        padding: 15px !important;
        margin-bottom: 15px !important;
    }
    
    .settings-card h3 {
        font-size: 16px !important;
        margin-bottom: 10px !important;
    }
}

/* Анимация для уведомлений */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Кнопки фильтра заказов */
.order-filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.order-filter-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
}

.order-filter-btn.active {
    background: linear-gradient(135deg, rgba(233,30,99,0.2), rgba(156,39,176,0.2));
    border-color: rgba(233,30,99,0.5);
    color: #fff;
}

.order-filter-btn .filter-icon {
    font-size: 16px;
}

.order-filter-btn .filter-count {
    background: rgba(255,255,255,0.1);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.order-filter-btn.active .filter-count {
    background: rgba(233,30,99,0.4);
}


/* Анимации для уведомлений */
@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    to {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
}

