/* ============================================================
   SHOP PAGE — Monochrome Elite
   ============================================================ */

.shop-page-wrapper {
    padding: 150px 60px 80px;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* --- HERO (Заголовок + Скин) --- */
.shop-hero {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.shop-hero-left { max-width: 720px; min-width: 0; }

.shop-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.85);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.shop-eyebrow-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 12px #ffffff;
    animation: dotPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

.shop-title {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #fff;
    margin-bottom: 24px;
}
.shop-title .grad {
    background: var(--silver-grad);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s ease infinite;
    display: block;
}

.shop-desc {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-mute);
    max-width: 600px;
}

/* --- СКИН --- */
.shop-skin-wrapper {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1 / 1.15;
    border-radius: 40px;
    background: radial-gradient(circle at 30% 25%,ф rgba(255, 255, 255, 0.08), transparent 60%), rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.shop-skin-img {
    position: absolute;
    top: 7%; left: 7%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 80%;
    height: auto;
    animation: heroFloat 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
    user-select: none;
    pointer-events: none;
    z-index: 1;
}

/* ===== ФОРМА ===== */
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.checkout-section {
    background: var(--surface);
    border: 1px solid var(--border-hi);
    border-radius: 24px;
    padding: 32px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.checkout-section:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), 0 0 60px rgba(255, 255, 255, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.checkout-section-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkout-section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.checkout-section-sub {
    font-size: 14px;
    color: var(--text-mute);
    margin: 0 0 24px 0;
}

.checkout-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.checkout-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.checkout-field label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 600;
}

.checkout-field label .required-star {
    color: #ff4757;
    margin-left: 2px;
}

.checkout-field input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px 18px;
    font-size: 15px;
    color: #fff;
    font-family: var(--font);
    transition: all 0.3s var(--ease);
    outline: none;
}

.checkout-field input::placeholder { color: rgba(255, 255, 255, 0.3); }

.checkout-field input:focus {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

/* Ошибки */
.checkout-field.error input {
    border-color: rgba(255, 80, 80, 0.9) !important;
    background: rgba(255, 80, 80, 0.08) !important;
    box-shadow: 0 0 0 4px rgba(255, 80, 80, 0.18), 0 0 20px rgba(255, 80, 80, 0.45) !important;
}
.checkout-field.error label { color: #ff8a8a; }
.checkout-error-text { display: none; color: #ff8a8a; font-size: 12px; font-weight: 500; padding-left: 20px; position: relative; }
.checkout-error-text::before { content: '⚠'; position: absolute; left: 0; top: 0; font-size: 13px; }
.checkout-field.error .checkout-error-text { display: block; }

/* ===== ТОВАРЫ ===== */
.items-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.item-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
    user-select: none;
}

.item-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.45);
}

.item-card.selected {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.item-card.selected::before {
    content: '✓';
    position: absolute;
    top: 16px; right: 16px;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--silver-grad);
    color: #0a0a0a;
    font-weight: 900;
    font-size: 13px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.5);
    z-index: 3;
}

.item-card-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    transition: all 0.4s var(--ease-spring);
    filter: grayscale(1) brightness(1.5); /* Монохромные иконки */
}

.item-card:hover .item-card-icon,
.item-card.selected .item-card-icon {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.1) rotate(-6deg);
}

.item-card-info {
    display: flex; flex-direction: column; gap: 6px; flex-grow: 1;
}

.item-card-title { font-size: 15px; font-weight: 800; color: #fff; }
.item-card-sub { font-size: 12px; color: var(--text-dim); line-height: 1.5; }

.item-card-price {
    font-size: 24px;
    font-weight: 900;
    background: var(--silver-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
}

/* ===== ПРОМОКОД ===== */
.promo-row { display: flex; gap: 12px; align-items: stretch; }
.promo-row .checkout-field { flex: 1; }

.promo-apply-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    padding: 0 26px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    font-family: var(--font);
    white-space: nowrap;
}

.promo-apply-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

.promo-success {
    display: none; align-items: center; gap: 8px; color: #4ade80; font-size: 13px; font-weight: 600; margin-top: 12px;
}
.promo-success.show { display: flex; animation: heroIn 0.4s ease; }

/* ===== ИТОГО ===== */
.total-box {
    display: flex; justify-content: space-between; align-items: center;
    padding: 24px 28px; border-radius: 18px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4px; flex-wrap: wrap; gap: 12px;
}

.total-label { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-mute); }
.total-value { font-size: 36px; font-weight: 900; background: var(--silver-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ===== КНОПКА ОПЛАТЫ ===== */
.btn-pay {
    background: var(--silver-grad);
    background-size: 200% 100%;
    color: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 20px 40px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.35s var(--ease-spring);
    width: 100%;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    box-shadow: inset 0 2px 0 #fff, 0 8px 30px rgba(255, 255, 255, 0.15), 0 4px 14px rgba(0, 0, 0, 0.5);
    animation: silverShift 6s ease infinite;
    font-family: var(--font);
}
.btn-pay:hover { transform: translateY(-3px) scale(1.01); box-shadow: inset 0 2px 0 #fff, 0 12px 40px rgba(255, 255, 255, 0.35); }
.btn-pay:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ============================================================
   ВОССТАНОВЛЕНИЕ РЕСУРСОВ
   ============================================================ */
.restore-section {
    padding: 0 60px 100px;
    display: flex; justify-content: center; position: relative; z-index: 10;
}

.restore-container {
    width: 100%; max-width: 1300px; padding: 40px;
    border-radius: 28px;
    background: var(--surface);
    border: 1px solid var(--border-hi);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.restore-header { margin-bottom: 24px; display: flex; flex-direction: column; gap: 12px; }
.restore-badge {
    display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.18); color: #fff;
    font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; width: fit-content;
}
.restore-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: dotPulse 2s ease-in-out infinite; }
.restore-title { font-size: 34px; font-weight: 900; line-height: 1.15; color: #fff; margin: 0; }
.restore-title-accent { background: var(--silver-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.restore-desc { font-size: 14.5px; line-height: 1.65; color: var(--text-mute); max-width: 800px; margin: 0; }

.restore-warning {
    display: flex; gap: 14px; padding: 16px 20px; background: rgba(250, 204, 21, 0.08); border: 1px solid rgba(250, 204, 21, 0.2);
    border-radius: 14px; margin-bottom: 26px;
}
.restore-warning-icon { font-size: 20px; }
.restore-warning-text { font-size: 13.5px; line-height: 1.65; color: rgba(255, 230, 180, 0.9); }
.restore-warning-text strong { color: #ffd93d; }

.restore-list { display: flex; flex-direction: column; gap: 12px; }
.restore-item {
    display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 16px;
    background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s var(--ease);
}
.restore-item:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.15); transform: translateX(4px); }

.restore-item-icon { width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; background: rgba(255, 255, 255, 0.05); filter: grayscale(1) brightness(1.5); }
.restore-item-info { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.restore-item-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.restore-item-cause-tag { font-size: 14px; font-weight: 700; color: #fff; }
.restore-item-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.meta-chip { font-size: 11px; font-weight: 600; color: var(--text-mute); padding: 4px 10px; background: rgba(255, 255, 255, 0.04); border-radius: 20px; }
.restore-item-action { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.restore-item-price { font-size: 20px; font-weight: 900; color: #fff; }

.restore-btn-buy {
    background: var(--silver-grad); color: #0a0a0a; padding: 8px 16px; border-radius: 10px;
    font-weight: 800; font-size: 12px; cursor: pointer; border: none; transition: all 0.3s var(--ease);
}
.restore-btn-buy:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2); }

.restore-status { font-size: 10px; font-weight: 800; padding: 4px 12px; border-radius: 20px; text-transform: uppercase; }
.restore-status.pending { background: rgba(250, 204, 21, 0.15); color: #facc15; }
.restore-status.paid { background: rgba(74, 222, 128, 0.15); color: #4ade80; }
.restore-status.delivered { background: rgba(126, 207, 255, 0.15); color: #7ecfff; }

/* Экран подтверждения */
#restoreScreenConfirm { max-width: 620px; margin: 0 auto; }
.restore-back { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); padding: 8px 16px; border-radius: 10px; font-size: 13px; cursor: pointer; margin-bottom: 20px; }
.restore-back:hover { color: #fff; background: rgba(255,255,255,0.1); }
.restore-confirm-hero { padding: 24px; border-radius: 20px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); text-align: center; margin-bottom: 20px; }
.restore-confirm-label { font-size: 11px; font-weight: 800; color: var(--text-dim); text-transform: uppercase; margin-bottom: 8px; }
.restore-confirm-price { font-size: 42px; font-weight: 900; background: var(--silver-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.restore-summary { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 16px; padding: 0 20px; margin-bottom: 20px; }
.restore-summary-row { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 14px; }
.restore-summary-row:last-child { border-bottom: none; }
.restore-summary-label { color: var(--text-mute); }
.restore-summary-value { color: #fff; font-weight: 700; }
.restore-email-row { margin-bottom: 20px; }
.restore-email-row label { display: block; font-size: 13px; color: var(--text-mute); margin-bottom: 8px; }
.restore-email-row input { width: 100%; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 14px; color: #fff; outline: none; }
.restore-pay-btn { width: 100%; padding: 16px; border-radius: 14px; background: var(--silver-grad); color: #0a0a0a; font-weight: 800; font-size: 16px; border: none; cursor: pointer; display: flex; justify-content: center; gap: 10px; transition: all 0.3s var(--ease); }
.restore-pay-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255,255,255,0.2); }
.restore-pay-hint { text-align: center; font-size: 12px; color: var(--text-dim); margin-top: 12px; }

.restore-loading, .restore-empty, .restore-error { text-align: center; padding: 40px; color: var(--text-mute); font-size: 14px; }
.restore-loading::before { content: ''; display: block; width: 30px; height: 30px; border: 3px solid rgba(255,255,255,0.1); border-top-color: #fff; border-radius: 50%; margin: 0 auto 16px; animation: mapSpin 0.9s linear infinite; }
@keyframes mapSpin { to { transform: rotate(360deg); } }

/* ===== TOAST ===== */
.toast {
    position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%) translateY(20px);
    background: rgba(20, 22, 28, 0.95); color: #fff; padding: 14px 28px; border-radius: 14px; font-size: 15px;
    z-index: 99999; backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0; pointer-events: none; transition: all 0.4s var(--ease); font-family: var(--font); text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { border-color: rgba(74, 222, 128, 0.35); color: #b5f0b5; }
.toast.error { border-color: rgba(255, 80, 80, 0.35); color: #ffc4c4; }

/* ===== АДАПТИВ ===== */
@media (max-width: 1024px) {
    .shop-page-wrapper { padding: 120px 24px 60px; }
    .shop-hero { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .shop-skin-wrapper { max-width: 280px; margin: 0 auto; }
    .shop-title { font-size: 48px; }
    .shop-desc { margin: 0 auto; }
    .items-grid { grid-template-columns: repeat(2, 1fr); }
    .restore-section { padding: 0 24px 60px; }
}
@media (max-width: 768px) {
    .shop-page-wrapper { padding: 100px 16px 40px; }
    .shop-title { font-size: 36px; }
    .checkout-section { padding: 24px 20px; }
    .checkout-fields { grid-template-columns: 1fr; }
    .items-grid { grid-template-columns: 1fr; }
    .promo-row { flex-direction: column; }
    .promo-apply-btn { padding: 14px; }
    .restore-section { padding: 0 16px 50px; }
    .restore-container { padding: 24px 20px; }
    .restore-item { flex-wrap: wrap; }
    .restore-item-action { width: 100%; flex-direction: row; justify-content: space-between; }
}