/* ==========================================
   Быстрый старт — Spyral Theme
   ========================================== */

.qs-module {
    width: 100%;
    box-sizing: border-box;
}

/* Описание */
.qs-description {
    color: #a09888;
    font-size: 13px;
    font-family: calibrib, Calibri, 'Segoe UI', sans-serif;
    text-shadow: 0 1px 2px rgba(0,0,0,.6);
    margin-bottom: 16px;
    line-height: 1.6;
    letter-spacing: 0.3px;
}

/* === Селекторы === */
.qs-controls {
    background: rgba(7,14,18,0.8);
    border: 1px solid #16181c;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 20px;
}

.qs-control-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.qs-control-group {
    flex: 1;
    min-width: 200px;
}

.qs-control-group label {
    display: block;
    color: #8a8070;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    font-family: calibrib, Calibri, sans-serif;
}

.qs-control-group select {
    width: 100%;
    padding: 8px 10px;
    background: url(../images/input_bg.png) repeat-x #0a0f13;
    color: #ccc;
    border: none;
    border-radius: 3px;
    box-shadow: 0 0 0 1px #28333a, inset 0 0 4px rgba(0,0,0,.5), inset 0 1px 1px rgba(0,0,0,.5), 0 0 5px rgba(0,0,0,1);
    font-size: 12px;
    font-family: MuseoSans, Arial, sans-serif;
    cursor: pointer;
    box-sizing: border-box;
}

.qs-control-group select:focus {
    color: #f6c85c;
    box-shadow: 0 0 0 1px #3d4f5d, inset 0 0 4px rgba(0,0,0,.5), inset 0 1px 1px rgba(0,0,0,.5), 0 0 5px rgba(0,0,0,1);
    outline: none;
}

/* Баланс */
.qs-balance {
    margin-top: 12px;
    display: flex;
    gap: 20px;
}

.qs-balance-item {
    color: #8a8070;
    font-size: 12px;
    font-family: calibrib, Calibri, sans-serif;
}

.qs-balance-item strong {
    color: #f6c85c;
}

/* === Карточки наборов === */
.qs-packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.qs-pack-card {
    background: rgba(7,14,18,0.85);
    border: 1px solid #16181c;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: inset 0 0 8px rgba(255,255,255,.02), 0 0 8px rgba(0,0,0,.5);
    transition: border-color 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.qs-pack-card:hover {
    border-color: #2a3038;
    box-shadow: inset 0 0 8px rgba(255,255,255,.04), 0 0 12px rgba(0,0,0,.7), 0 0 20px rgba(160,115,50,.08);
}

.qs-pack-card.qs-card-expanded {
    border-color: #3a4048;
    box-shadow: inset 0 0 8px rgba(255,255,255,.04), 0 0 16px rgba(0,0,0,.7), 0 0 24px rgba(160,115,50,.12);
}

/* Область превью (кликабельная) */
.qs-pack-preview {
    cursor: pointer;
}

/* Изображение карточки */
.qs-pack-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #0a0e12;
}

.qs-pack-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.qs-pack-preview:hover .qs-pack-image img {
    transform: scale(1.03);
}

.qs-pack-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0f13 0%, #131a20 100%);
    color: #2a3038;
    font-size: 48px;
}

/* Бейдж перелётов (Spyral — холодный акцент к золотому уровню) */
.qs-pack-flight-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: linear-gradient(180deg, #3d6a8c 0%, #254a63 100%);
    color: #e8f4fc;
    font-size: 13px;
    line-height: 1;
    padding: 5px 9px;
    border-radius: 3px;
    text-shadow: 0 -1px 0 rgba(0,0,0,.5);
    box-shadow: 0 1px 3px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.12);
    border: 1px solid #5a8fb0;
}

.qs-pack-flight-icon {
    display: inline-block;
    vertical-align: middle;
}

/* Бейдж уровня */
.qs-pack-level-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: linear-gradient(180deg, #A07332 0%, #7a5524 100%);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 3px;
    text-shadow: 0 -1px 0 rgba(0,0,0,.4);
    box-shadow: 0 1px 3px rgba(0,0,0,.4);
    font-family: calibrib, Calibri, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Цена поверх изображения */
.qs-pack-price-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,.85));
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Краткое описание под картинкой */
.qs-pack-summary {
    padding: 12px 16px;
}

.qs-pack-title {
    color: #f9b52d;
    font-size: 16px;
    font-family: calibrib, Calibri, sans-serif;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0,0,0,.6);
    margin: 0 0 6px 0;
}

/* Бонусы набора — сразу под заголовком */
.qs-pack-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 10px 0;
}

.qs-perk {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-family: calibrib, Calibri, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1.3;
    border: 1px solid #1e2428;
    background: rgba(10, 15, 19, 0.85);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.qs-perk-icon {
    font-size: 11px;
    opacity: 0.9;
    flex-shrink: 0;
}

.qs-perk-level {
    color: #f6c85c;
    border-color: #3d3420;
    background: linear-gradient(180deg, rgba(160,115,50,.25) 0%, rgba(0,0,0,.3) 100%);
}

.qs-perk-gold {
    color: #ffd700;
    border-color: #3d3420;
}

.qs-perk-flight {
    color: #b8dff5;
    border-color: #2a4558;
    background: linear-gradient(180deg, rgba(61,106,140,.35) 0%, rgba(0,0,0,.35) 100%);
    text-transform: none;
    font-size: 11px;
    letter-spacing: 0.2px;
}

.qs-perk-flight-label {
    color: #7aa8c4;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.qs-perk-flight-value {
    color: #e8f4fc;
    font-weight: bold;
    white-space: normal;
}

.qs-pack-desc {
    color: #8a8070;
    font-size: 12px;
    line-height: 1.5;
    margin: 0 0 8px 0;
    font-family: MuseoSans, Arial, sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.qs-details-toggle {
    color: #ac872f;
    font-size: 11px;
    font-family: calibrib, Calibri, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.qs-pack-preview:hover .qs-details-toggle {
    color: #d4a83a;
}

/* === Развёрнутая область карточки === */
.qs-pack-details {
    border-top: 1px solid #1a1e22;
    padding: 16px;
    background: rgba(0,0,0,.2);
}

.qs-detail-description {
    color: #a09888;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 14px;
    font-family: MuseoSans, Arial, sans-serif;
    padding-bottom: 12px;
    border-bottom: 1px solid #16181c;
}

.qs-detail-level {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #16181c;
}

.qs-detail-gold {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #16181c;
}

.qs-detail-flight {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #16181c;
}

.qs-detail-flight .qs-detail-value,
.qs-flight-value {
    color: #b8dff5;
    font-size: 16px;
}

.qs-pack-benefits {
    margin-bottom: 14px;
    padding-bottom: 4px;
    border-bottom: 1px solid #16181c;
}

.qs-pack-benefits .qs-benefit-row:last-child {
    margin-bottom: 0;
    padding-bottom: 12px;
    border-bottom: none;
}

.qs-gold-value {
    color: #ffd700;
}

.qs-detail-label {
    color: #6a6050;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: calibrib, Calibri, sans-serif;
    margin-right: 6px;
}

.qs-detail-value {
    color: #f6c85c;
    font-size: 16px;
    font-weight: bold;
    font-family: calibrib, Calibri, sans-serif;
}

/* Заголовок предметов */
.qs-detail-items-header {
    color: #6a6050;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-family: calibrib, Calibri, sans-serif;
}

/* Сетка предметов */
.qs-detail-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.qs-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.03);
    border: 1px solid #1e2328;
    border-radius: 3px;
    padding: 6px 10px;
    transition: background 0.2s, border-color 0.2s;
}

.qs-detail-item:hover {
    background: rgba(255,255,255,.07);
    border-color: #2a3540;
}

.qs-detail-item-icon-wrap,
.qs-gear-item-icon-wrap {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid #333;
}

.qs-gear-item-icon-wrap {
    width: 36px;
    height: 36px;
}

.qs-detail-item-icon-wrap.q0-border,
.qs-gear-item-icon-wrap.q0-border { border-color: #9d9d9d; }
.qs-detail-item-icon-wrap.q1-border,
.qs-gear-item-icon-wrap.q1-border { border-color: #ffffff; }
.qs-detail-item-icon-wrap.q2-border,
.qs-gear-item-icon-wrap.q2-border { border-color: #1eff00; }
.qs-detail-item-icon-wrap.q3-border,
.qs-gear-item-icon-wrap.q3-border { border-color: #0070dd; }
.qs-detail-item-icon-wrap.q4-border,
.qs-gear-item-icon-wrap.q4-border { border-color: #a335ee; }
.qs-detail-item-icon-wrap.q5-border,
.qs-gear-item-icon-wrap.q5-border { border-color: #ff8000; }
.qs-detail-item-icon-wrap.q6-border,
.qs-gear-item-icon-wrap.q6-border { border-color: #e6cc80; }
.qs-detail-item-icon-wrap.q7-border,
.qs-gear-item-icon-wrap.q7-border { border-color: #00ccff; }

.qs-detail-item-icon,
.qs-gear-item-icon {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
    border-radius: 0;
}

.qs-detail-item-name {
    color: #7aa3cc;
    font-size: 12px;
    text-decoration: none;
    font-family: MuseoSans, Arial, sans-serif;
    transition: color 0.2s;
}

.qs-detail-item-name:hover {
    color: #a0c8ee;
}

/* Подвал развёрнутой карточки */
.qs-detail-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid #16181c;
}

.qs-pack-price {
    display: flex;
    gap: 10px;
    align-items: center;
}

.qs-price-dp {
    color: #f6c85c;
    font-size: 14px;
    font-weight: bold;
    font-family: calibrib, Calibri, sans-serif;
    text-shadow: 0 0 4px rgba(246,200,92,.2);
}

.qs-price-vp {
    color: #66ccff;
    font-size: 14px;
    font-weight: bold;
    font-family: calibrib, Calibri, sans-serif;
}

.qs-price-free {
    color: #6abf6a;
    font-size: 14px;
    font-weight: bold;
    font-family: calibrib, Calibri, sans-serif;
    text-transform: uppercase;
}

/* Кнопка «Применить» */
.qs-apply-btn {
    background: linear-gradient(180deg, #A07332 0%, #7a5524 100%);
    border: 1px solid #7a5524;
    border-bottom: 1px solid #6b4a20;
    box-shadow: inset 0 1px 0 0 rgba(246,200,92,.25), 0 1px 3px rgba(0,0,0,.3);
    color: #fff;
    font-size: 12px;
    padding: 7px 16px;
    border-radius: 3px;
    cursor: pointer;
    font-family: calibrib, Calibri, sans-serif;
    text-transform: uppercase;
    text-shadow: 0 -1px 0 rgba(0,0,0,.4);
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.qs-apply-btn:hover {
    background: linear-gradient(180deg, #b8843a 0%, #A07332 100%);
    box-shadow: inset 0 1px 0 0 rgba(246,200,92,.35), 0 1px 6px rgba(160,115,50,.3);
}

/* Нет наборов */
.qs-no-packs {
    text-align: center;
    color: #555;
    font-size: 14px;
    padding: 40px 0;
    font-family: calibrib, Calibri, sans-serif;
}

/* Сообщение */
.qs-message {
    background: rgba(7,14,18,0.9);
    border: 1px solid #16181c;
    border-radius: 4px;
    padding: 16px;
    margin-top: 16px;
    color: #d0c8b8;
    font-size: 13px;
    text-align: center;
    font-family: calibrib, Calibri, sans-serif;
}

/* === Админка === */
.qs-admin {
    width: 100%;
}

.qs-admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.qs-admin-header-actions {
    display: flex;
    gap: 8px;
}

.qs-gear-btn {
    background: #1a2a1f;
    border: 1px solid #3d8f5a;
    color: #6abf6a;
    font-size: 11px;
    padding: 6px 14px;
    border-radius: 3px;
    cursor: pointer;
    font-family: calibrib, Calibri, sans-serif;
    text-transform: uppercase;
    transition: all 0.2s;
}

.qs-gear-btn:hover {
    background: #3d8f5a;
    color: #111;
}

.qs-gear-preview-hint {
    color: #8a8070;
    font-size: 12px;
    margin: 0;
    font-style: italic;
}

.qs-item-count {
    color: #8a8070;
    font-size: 11px;
}

/* Gear modal (admin) */
body.qs-gear-modal-open {
    overflow: hidden;
}

/* SweetAlert поверх модала экипировки (модал z-index 10050, swal по умолчанию ~1060) */
body.qs-gear-modal-open .swal2-container,
.swal2-container.qs-gear-swal-container {
    z-index: 10100 !important;
}

.qs-gear-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
}

.qs-gear-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.qs-gear-modal-panel {
    position: relative;
    z-index: 1;
    max-width: 900px;
    width: calc(100% - 32px);
    max-height: calc(100vh - 40px);
    margin: 20px auto;
    background: #12161a;
    border: 1px solid #d0a53d;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.qs-gear-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #2a3338;
}

.qs-gear-modal-header h3 {
    margin: 0;
    color: #f6c85c;
    font-size: 15px;
}

.qs-gear-close {
    background: none;
    border: none;
    color: #8a8070;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.qs-gear-close:hover {
    color: #fff;
}

.qs-gear-templates {
    padding: 10px 16px;
    border-bottom: 1px solid #2a3338;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.qs-gear-templates-label {
    color: #8a8070;
    font-size: 11px;
    text-transform: uppercase;
}

.qs-gear-tpl-btn {
    background: #1a1f24;
    border: 1px solid #4a6a8a;
    color: #9ec8e8;
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 3px;
    cursor: pointer;
}

.qs-gear-tpl-btn:hover {
    background: #4a6a8a;
    color: #fff;
}

.qs-gear-class-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 10px 16px;
    border-bottom: 1px solid #2a3338;
    max-height: 120px;
    overflow-y: auto;
}

.qs-gear-tab {
    background: #1a1f24;
    border: 1px solid #333;
    color: #a09888;
    padding: 5px 10px;
    font-size: 11px;
    border-radius: 3px;
    cursor: pointer;
}

.qs-gear-tab.active,
.qs-gear-tab:hover {
    border-color: #d0a53d;
    color: #f6c85c;
}

.qs-gear-toolbar {
    padding: 12px 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-start;
    border-bottom: 1px solid #2a3338;
}

.qs-gear-search {
    flex: 1;
    min-width: 220px;
    position: relative;
}

.qs-gear-search input {
    width: 100%;
    padding: 8px 10px;
    background: #0a0f13;
    border: 1px solid #333;
    color: #ccc;
    border-radius: 3px;
    box-sizing: border-box;
}

.qs-gear-items-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    min-height: 200px;
    max-height: 45vh;
}

.qs-gear-item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #1e2428;
}

.qs-gear-item-name {
    flex: 1;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
}

.qs-gear-item-id {
    color: #666;
    font-size: 11px;
}

.qs-gear-item-count {
    width: 48px;
    padding: 4px;
    background: #0a0f13;
    border: 1px solid #333;
    color: #ccc;
    border-radius: 3px;
}

.qs-gear-item-remove {
    background: none;
    border: none;
    color: #cc4444;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}

.qs-gear-hint {
    padding: 10px 16px 14px;
    margin: 0;
    color: #666;
    font-size: 11px;
    border-top: 1px solid #2a3338;
}

.qs-gear-loading,
.qs-gear-empty,
.qs-gear-error {
    color: #8a8070;
    font-size: 13px;
}

/* Item search dropdown (shared with store pattern) */
.item-search-wrapper { position: relative; }
.item-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    background: #1a1f24;
    border: 1px solid #444;
    border-radius: 3px;
    max-height: 280px;
    overflow-y: auto;
    display: none;
    margin-top: 4px;
}
.item-search-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    cursor: pointer;
    border-bottom: 1px solid #252a2e;
}
.item-search-row:hover { background: #252a2e; }
.item-search-icon {
    width: 28px;
    height: 28px;
    border-radius: 2px;
}
.item-search-name { flex: 1; font-size: 12px; }
.item-search-info { color: #666; font-size: 10px; }
.item-search-empty { padding: 12px; color: #666; font-size: 12px; }

.qs-admin-header h2 {
    color: #f9b52d;
    font-size: 18px;
    font-family: calibrib, Calibri, sans-serif;
    text-transform: uppercase;
    margin: 0;
}

/* Форма админки */
.qs-admin-form {
    background: rgba(7,14,18,0.85);
    border: 1px solid #16181c;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
}

.qs-form-row {
    margin-bottom: 14px;
}

.qs-form-row label {
    display: block;
    color: #8a8070;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    font-family: calibrib, Calibri, sans-serif;
}

.qs-form-row input[type="text"],
.qs-form-row input[type="number"],
.qs-form-row textarea,
.qs-form-row select {
    width: 100%;
    padding: 8px 10px;
    background: #0a0f13;
    color: #ccc;
    border: none;
    border-radius: 3px;
    box-shadow: 0 0 0 1px #28333a, inset 0 0 4px rgba(0,0,0,.5);
    font-size: 12px;
    font-family: MuseoSans, Arial, sans-serif;
    box-sizing: border-box;
}

.qs-form-row input:focus,
.qs-form-row textarea:focus,
.qs-form-row select:focus {
    color: #f6c85c;
    outline: none;
    box-shadow: 0 0 0 1px #3d4f5d, inset 0 0 4px rgba(0,0,0,.5);
}

.qs-form-row textarea {
    resize: vertical;
}

.qs-form-row input[type="checkbox"] {
    margin-right: 6px;
    accent-color: #A07332;
}

.qs-form-row-inline {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.qs-form-row-inline .qs-form-row {
    flex: 1;
    min-width: 140px;
}

.qs-form-hint {
    margin: 4px 0 0;
    font-size: 12px;
    color: #8a8070;
    line-height: 1.4;
}

.qs-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.qs-cancel-btn {
    background: #1a1f24;
    border: 1px solid #333;
    color: #888;
    font-size: 12px;
    padding: 7px 16px;
    border-radius: 3px;
    cursor: pointer;
    font-family: calibrib, Calibri, sans-serif;
    text-transform: uppercase;
    transition: all 0.2s;
}

.qs-cancel-btn:hover {
    background: #252a30;
    color: #aaa;
}

/* Список наборов в админке */
.qs-admin-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qs-admin-card {
    display: flex;
    background: rgba(7,14,18,0.85);
    border: 1px solid #16181c;
    border-radius: 5px;
    overflow: hidden;
}

.qs-admin-card-image {
    width: 160px;
    min-height: 120px;
    flex-shrink: 0;
    position: relative;
    background: #0a0e12;
}

.qs-admin-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.qs-admin-card-image .qs-pack-placeholder {
    width: 100%;
    height: 100%;
    font-size: 32px;
}

.qs-admin-upload {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,.7);
    text-align: center;
    padding: 4px;
}

.qs-upload-btn {
    background: none;
    border: none;
    color: #f6c85c;
    font-size: 10px;
    cursor: pointer;
    font-family: calibrib, Calibri, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qs-upload-btn:hover {
    color: #fff;
}

.qs-admin-card-body {
    flex: 1;
    padding: 12px 16px;
}

.qs-admin-card-body h3 {
    color: #f9b52d;
    font-size: 14px;
    font-family: calibrib, Calibri, sans-serif;
    margin: 0 0 8px 0;
}

.qs-admin-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}

.qs-admin-info span {
    color: #8a8070;
    font-size: 11px;
    font-family: MuseoSans, Arial, sans-serif;
}

.qs-admin-actions {
    display: flex;
    gap: 8px;
}

.qs-edit-btn {
    background: #1a1f24;
    border: 1px solid #d0a53d;
    color: #d0a53d;
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 3px;
    cursor: pointer;
    font-family: calibrib, Calibri, sans-serif;
    text-transform: uppercase;
    transition: all 0.2s;
}

.qs-edit-btn:hover {
    background: #d0a53d;
    color: #111;
}

.qs-delete-btn {
    background: #1a1f24;
    border: 1px solid #cc4444;
    color: #cc4444;
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 3px;
    cursor: pointer;
    font-family: calibrib, Calibri, sans-serif;
    text-transform: uppercase;
    transition: all 0.2s;
}

.qs-delete-btn:hover {
    background: #cc4444;
    color: #fff;
}

/* Адаптивность */
@media (max-width: 768px) {
    .qs-packs-grid {
        grid-template-columns: 1fr;
    }

    .qs-control-row {
        flex-direction: column;
    }

    .qs-admin-card {
        flex-direction: column;
    }

    .qs-admin-card-image {
        width: 100%;
        height: 140px;
    }

    .qs-form-row-inline {
        flex-direction: column;
    }
}

/* === SweetAlert2 — Spyral === */
.swal2-popup.spyral-qs-swal {
    background: #1a1a1e;
    border: 1px solid #A07332;
    border-radius: 5px;
    box-shadow: inset 0 0 0 1px #161b1e, inset 0 0 20px rgba(0,0,0,.25), 0 0 15px rgba(0,0,0,.35);
    color: #d0c8b8;
    font-family: calibrib, Verdana, Arial, sans-serif;
    padding: 1.5em 1.35em 1.2em;
}

.swal2-popup.spyral-qs-swal .spyral-qs-swal-title {
    color: #f6c85c;
    font-family: corbelb, calibrib, Verdana, sans-serif;
    font-size: 1.35em;
    text-shadow: 0 1px 1px rgba(0,0,0,.4), 0 0 6px rgba(0,38,67,.5);
}

.swal2-popup.spyral-qs-swal .spyral-qs-swal-body {
    color: #a09888;
    font-size: 13px;
    line-height: 1.6;
    font-family: MuseoSans, Arial, sans-serif;
}

.swal2-popup.spyral-qs-swal .qs-swal-text {
    margin: 0;
}

.swal2-popup.spyral-qs-swal .qs-swal-flight {
    margin-top: 14px;
    padding: 10px 12px;
    text-align: left;
    background: linear-gradient(180deg, rgba(61,106,140,.25) 0%, rgba(0,0,0,.35) 100%);
    border: 1px solid #2a4558;
    border-radius: 3px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.swal2-popup.spyral-qs-swal .qs-swal-flight-label {
    display: block;
    color: #7aa8c4;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-family: calibrib, Calibri, sans-serif;
}

.swal2-popup.spyral-qs-swal .qs-swal-flight-value {
    color: #b8dff5;
    font-size: 13px;
    font-family: calibrib, Calibri, sans-serif;
}

.swal2-popup.spyral-qs-swal .swal2-actions {
    gap: 10px;
    margin-top: 1.1em;
}

.swal2-popup.spyral-qs-swal .spyral-qs-swal-confirm {
    background: linear-gradient(180deg, #A07332 0%, #7a5524 100%) !important;
    border: 1px solid #7a5524 !important;
    border-bottom-color: #6b4a20 !important;
    box-shadow: inset 0 1px 0 0 rgba(246,200,92,.25), 0 1px 3px rgba(0,0,0,.3) !important;
    color: #fff !important;
    font-family: calibrib, Verdana, sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 1px rgba(0,0,0,.4);
    border-radius: 3px !important;
    padding: 8px 18px !important;
}

.swal2-popup.spyral-qs-swal .spyral-qs-swal-confirm:hover {
    background: linear-gradient(180deg, #b8843a 0%, #A07332 100%) !important;
}

.swal2-popup.spyral-qs-swal .spyral-qs-swal-cancel {
    background: linear-gradient(180deg, #2a2a2e 0%, #1e1e22 100%) !important;
    border: 1px solid #3a3a3e !important;
    color: #848177 !important;
    font-family: calibrib, Verdana, sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: none !important;
    border-radius: 3px !important;
    padding: 8px 18px !important;
}

.swal2-popup.spyral-qs-swal .spyral-qs-swal-cancel:hover {
    color: #d0c8b8 !important;
    border-color: #4a4a4e !important;
}

div:where(.swal2-icon).spyral-qs-swal-icon.swal2-warning {
    border-color: #A07332 !important;
    color: #f6c85c !important;
}

div:where(.swal2-icon).spyral-qs-swal-icon.swal2-warning .swal2-icon-content {
    color: #f6c85c !important;
}

div:where(.swal2-icon).spyral-qs-swal-icon.swal2-error {
    border-color: #8b3a3a !important;
    color: #cc6666 !important;
}

div:where(.swal2-icon).spyral-qs-swal-icon.swal2-success {
    border-color: #4a7a4a !important;
    color: #6abf6a !important;
}
