/* Путь на сервере: /home/steam-widget-platform/frontend/public/css/widget.css */

/* ========================================
   ROOT VARIABLES (Light Theme)
======================================== */

:root {
    /* Colors - Light Theme */
    --primary-color: #5B7EFA;
    --secondary-color: #1B1E3B;
    --accent-color: #FF6B6B;
    --success-color: #4CAF50;
    --warning-color: #FF9800;
    --error-color: #F44336;

    /* Background */
    --bg-color: #F5F7FA;
    --widget-bg: #FFFFFF;

    /* Text */
    --text-primary: #2C3E50;
    --text-secondary: #7F8C8D;
    --text-light: #BDC3C7;

    /* Borders */
    --border-color: #E1E8ED;
    --border-radius: 12px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    /* Converted Amount Gradient - СИНИЙ (не фиолетовый!) */
    --gradient-primary: linear-gradient(135deg, #5B7EFA 0%, #4169E1 100%);
}

/* ========================================
   DARK THEME
======================================== */

@media (prefers-color-scheme: dark) {
    html:not(.dark-theme) :root {
        --bg-color: #0F1419;
        --widget-bg: #1A1F2E;
        --text-primary: #E4E6EB;
        --text-secondary: #B0B3B8;
        --text-light: #8A8D91;
        --border-color: #2D3139;
    }
}

/* Dark theme toggle class */
html.dark-theme {
    --bg-color: #0F1419;
    --widget-bg: #1A1F2E;
    --text-primary: #E4E6EB;
    --text-secondary: #B0B3B8;
    --text-light: #8A8D91;
    --border-color: #2D3139;
    color-scheme: dark;
}

html:not(.dark-theme) {
    color-scheme: light;
}

/* Фикс прокрутки для всех браузеров */
html, body {
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
}

/* ========================================
   GENERAL STYLES
======================================== */

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

/* ========================================
   MOBILE VIEWPORT FIX
======================================== */

html {
    height: 100%;
    overflow: hidden;
}

body {
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Фикс для iOS viewport при открытии клавиатуры */
@supports (-webkit-touch-callout: none) {
    body {
        min-height: -webkit-fill-available;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    margin: 0;
    padding: 0;
}

/* Блокировка скролла при открытом модальном окне */
body.modal-open {
    overflow: hidden;
}

/* Page wrapper - здесь flex для центрирования виджета */
.page-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--spacing-lg);
}

/* ========================================
   WIDGET CONTAINER
======================================== */

.widget-container {
    background: var(--widget-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    max-width: 480px;
    width: 100%;
    padding: 24px;
    animation: slideIn 0.4s ease-out;
    max-height: 90vh;
    overflow-y: auto;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    margin: auto;
    z-index: 1;
}

/* Понижаем z-index виджета когда модальное окно открыто */
body.modal-open .widget-container {
    z-index: 1;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   HEADER
======================================== */

.widget-header {
    text-align: center;
    margin-bottom: 20px;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin-bottom: 8px;
}

.title-logo-row {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.steam-logo {
    width: 50px;
    height: auto;
    transition: transform 0.3s ease;
}

.steam-logo:hover {
    transform: scale(1.05);
}

/* ========================================
   THEME TOGGLE BUTTON
======================================== */

.theme-toggle {
    position: absolute;
    right: 0;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.theme-toggle:hover {
    background: rgba(91, 126, 250, 0.1);
    color: var(--primary-color);
    transform: rotate(20deg);
}

.theme-icon-sun,
.theme-icon-moon {
    width: 18px;
    height: 18px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-icon-moon {
    display: none;
    position: absolute;
}

html.dark-theme .theme-icon-sun {
    display: none;
}

html.dark-theme .theme-icon-moon {
    display: block;
}

.widget-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* ПРИНУДИТЕЛЬНО белый цвет на темной теме */
html.dark-theme .widget-title {
    color: #FFFFFF !important;
}

/* ========================================
   FORM
======================================== */

.payment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    background: var(--widget-bg);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--widget-bg);
    box-shadow: 0 0 0 3px rgba(91, 126, 250, 0.1);
}

.form-input::placeholder {
    color: var(--text-light);
}

/* Validation Icon */
.validation-icon {
    position: absolute;
    right: 14px;
    width: 22px;
    height: 22px;
    display: none;
}

.validation-icon.valid::before {
    content: '✓';
    color: var(--success-color);
    font-size: 18px;
    font-weight: bold;
}

.validation-icon.invalid::before {
    content: '✗';
    color: var(--error-color);
    font-size: 18px;
    font-weight: bold;
}

.validation-icon.loading {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.validation-icon.loading::after {
    content: '';
    width: 18px;
    height: 18px;
    border: 3px solid rgba(91, 126, 250, 0.2);
    border-top-color: #5B7EFA;
    border-right-color: #4169E1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    box-shadow: 0 0 10px rgba(91, 126, 250, 0.3);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.form-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    min-height: 18px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.form-hint.error {
    color: var(--error-color);
    font-weight: 500;
}

.form-hint.success {
    color: var(--success-color);
}

/* Amount Input */
.amount-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.amount-input {
    padding-right: 60px;
}

.currency-label {
    position: absolute;
    right: 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    pointer-events: none;
}

/* Converted Amount - СИНИЙ ГРАДИЕНТ (не фиолетовый!) */
.converted-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: var(--gradient-primary);
    border-radius: 8px;
    color: white;
    font-weight: 500;
    transition: transform 0.3s ease;
    gap: 12px;
}

.converted-amount:hover {
    transform: translateY(-2px);
}

.converted-label {
    font-size: 13px;
    opacity: 0.9;
    white-space: nowrap;
}

.converted-value {
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
}

/* ========================================
   PAYMENT BUTTONS
======================================== */

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

.payment-button {
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 48px;
}

.primary-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4169E1 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(91, 126, 250, 0.3);
}

.primary-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(91, 126, 250, 0.4);
}

.primary-button:active:not(:disabled) {
    transform: translateY(0);
}

.secondary-button {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2C3E50 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(27, 30, 59, 0.3);
}

.secondary-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(27, 30, 59, 0.4);
}

.secondary-button:active:not(:disabled) {
    transform: translateY(0);
}

.sbp-icon {
    width: 22px;
    height: 22px;
}

/* Disabled State */
.payment-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ========================================
   LOADING SPINNER
======================================== */

.loading-spinner {
    text-align: center;
    padding: var(--spacing-xl);
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto var(--spacing-md);
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ========================================
   MESSAGES
======================================== */

.error-message,
.success-message {
    padding: var(--spacing-md);
    border-radius: 8px;
    margin-top: var(--spacing-lg);
    text-align: center;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-message {
    background: #FFEBEE;
    border: 2px solid var(--error-color);
    color: var(--error-color);
}

.success-message {
    background: #E8F5E9;
    border: 2px solid var(--success-color);
    color: var(--success-color);
}

.error-icon,
.success-icon {
    font-size: 48px;
    margin-bottom: var(--spacing-sm);
}

/* ========================================
   INFO ICON WITH TOOLTIP
======================================== */

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--primary-color);
    cursor: help;
    transition: all 0.2s ease;
    border-radius: 50%;
    position: relative;
}

.info-icon:hover {
    background: rgba(91, 126, 250, 0.1);
    transform: scale(1.1);
}

.info-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Tooltip */
.info-icon::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-bottom: 8px;
    z-index: 1000;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Tooltip arrow */
.info-icon::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(0, 0, 0, 0.85);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-bottom: -2px;
    z-index: 1001;
}

.info-icon:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 8px);
}

.info-icon:hover::before {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   SUPPORT CONTACTS (КОМПАКТНЫЕ)
======================================== */

.support-contacts {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

.support-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.support-links {
    display: flex;
    flex-direction: row;  /* БЫЛО: column */
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}

.support-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    background: var(--widget-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: auto;  /* БЫЛО: 240px */
    justify-content: center;
    white-space: nowrap;
}

.support-link:hover {
    border-color: var(--primary-color);
    background: rgba(91, 126, 250, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 126, 250, 0.15);
}

.support-icon {
    flex-shrink: 0;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    width: 18px;
    height: 18px;
}

.support-link:hover .support-icon {
    transform: scale(1.1);
}

.telegram-link:hover {
    border-color: #0088cc;
}

.telegram-link:hover .support-icon {
    color: #0088cc;
}

.email-link:hover {
    border-color: #EA4335;
}

.email-link:hover .support-icon {
    color: #EA4335;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 768px) {
    html {
        height: 100%;
    }

    body {
        min-height: 100vh;
        padding: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
        position: relative;
    }

    .page-wrapper {
        padding: 12px;
        align-items: flex-start;
    }

    .widget-container {
        padding: 20px;
        max-height: none;
        max-width: 100%;
        overflow-y: visible;
        position: relative;
        margin: 0 auto;
        border-radius: 12px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        background: var(--widget-bg);
        touch-action: pan-y pinch-zoom;
    }


    .widget-title {
        font-size: 24px;
        font-weight: 700;
        color: var(--text-primary);
        margin: 0;
    }

    .steam-logo {
        width: 40px;
    }

    .title-logo-row {
        gap: 8px;
    }

    .payment-button {
        font-size: 14px;
        padding: 13px 18px;
        min-height: 46px;
    }


    .theme-toggle {
        width: 32px;
        height: 32px;
    }

    .theme-icon-sun,
    .theme-icon-moon {
        width: 16px;
        height: 16px;
    }

    .form-input {
        padding: 11px 12px;
        font-size: 16px;
    }

    .converted-amount {
        padding: 10px 12px;
    }

    .converted-label {
        font-size: 12px;
    }

    .converted-value {
        font-size: 16px;
    }

    .payment-methods {
        gap: 8px;
        margin-top: 10px;
    }

    .payment-form {
        gap: 16px;
    }

    .widget-header {
        text-align: center;
        margin-bottom: 12px;
    }

    .support-contacts {
        margin-top: 20px;
        padding-top: 16px;
    }

    .support-title {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .support-link span {
        display: inline;  /* Текст в одну строку */
    }

    .support-links {
        flex-direction: row !important;  /* В ОДНУ СТРОКУ */
        gap: 6px;
        flex-wrap: nowrap;

    .support-link {
        font-size: 10px;  /* БЫЛО: 11px → СТАЛО: 10px */
        padding: 6px 8px;
        gap: 4px;
        min-width: auto;
        flex: 0 0 auto;  /* НЕ РАСТЯГИВАТЬ */
        white-space: nowrap;
    }

    .support-icon {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0;
    }

    .page-wrapper {
        padding: 8px;
        padding-top: 10px;
    }

    .widget-container {
        padding: 16px;
        max-height: calc(100vh - 20px);
        margin: 0;
    }


    .steam-logo {
        width: 45px;
    }

    .widget-title {
        font-size: 16px;
    }

    .header-top {
        margin-bottom: 6px;
    }

    .payment-button {
        font-size: 13px;
        min-height: 48px;
    }

    .sbp-icon {
        width: 20px;
        height: 20px;
    }

    .card-icon {
        width: 24px;
        height: 24px;
    }

    .support-links {
        /* flex-direction: column; */ /* УДАЛИТЬ или ЗАКОММЕНТИРОВАТЬ */
        flex-direction: row !important;  /* ОСТАВИТЬ В ОДНУ СТРОКУ */
        gap: 5px;
    }

    .support-link {
        font-size: 9px;  /* ЕЩЕ МЕНЬШЕ для самых маленьких экранов */
        padding: 5px 6px;
        /* width: 100%; */ /* УДАЛИТЬ */
        flex: 0 0 auto;
    }

    .support-icon {
        width: 12px;
        height: 12px;
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: var(--spacing-md);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    overflow-y: auto;
}

/* Модальное окно видимо */
.modal-overlay.modal-visible {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    animation: fadeIn 0.3s ease-out;
}


.modal-content {
    background: #FFFFFF;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: slideUp 0.3s ease-out;
    margin: 0 auto;
    z-index: 100000;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Темная тема для модального окна */
html.dark-theme .modal-content {
    background: #1A1F2E;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    color: #7F8C8D;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #2C3E50;
    transform: rotate(90deg);
}

/* Темная тема */
html.dark-theme .modal-close {
    background: rgba(255, 255, 255, 0.05);
    color: #B0B3B8;
}

html.dark-theme .modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #E4E6EB;
}

.modal-title {
    font-size: 22px;
    font-weight: 600;
    color: #2C3E50;
    margin: 0;
    padding: 24px 24px 16px;
    border-bottom: 2px solid #E1E8ED;
}

/* Темная тема */
html.dark-theme .modal-title {
    color: #E4E6EB;
    border-bottom-color: #2D3139;
}

.modal-body {
    padding: 24px;
    color: #2C3E50;
}

/* Темная тема */
html.dark-theme .modal-body {
    color: #E4E6EB;
}

.modal-warning {
    background: linear-gradient(135deg, #FFF3CD 0%, #FFE8A1 100%);
    border-left: 4px solid #FFC107;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #856404;
}

.modal-warning strong {
    display: block;
    margin-bottom: 4px;
}

.modal-steps {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
    margin: 0 0 24px 0;
}

.modal-steps li {
    counter-increment: step-counter;
    position: relative;
    padding: 12px 0 12px 40px;
    font-size: 15px;
    line-height: 1.6;
    color: #2C3E50;
}

/* Темная тема */
html.dark-theme .modal-steps li {
    color: #E4E6EB;
}

.modal-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 12px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #4169E1 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.modal-steps li a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.modal-steps li a:hover {
    border-bottom-color: var(--primary-color);
}

.modal-steps li em {
    color: #7F8C8D;
    font-style: normal;
    font-size: 14px;
}

/* Темная тема */
html.dark-theme .modal-steps li em {
    color: #B0B3B8;
}

.modal-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-image-item {
    background: #F8F9FA;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

/* Темная тема */
html.dark-theme .modal-image-item {
    background: #0F1419;
}

.modal-image-item img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 8px;
}

.image-caption {
    font-size: 13px;
    color: #7F8C8D;
    margin: 0;
    font-style: italic;
}

/* Темная тема */
html.dark-theme .image-caption {
    color: #B0B3B8;
}

/* ========================================
   MODAL DESKTOP FIXES
======================================== */

@media (min-width: 769px) {
    /* ПРИНУДИТЕЛЬНЫЕ правила для десктопа */
    .modal-overlay.modal-visible {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: 999999 !important;
        background: rgba(0, 0, 0, 0.6) !important;
        background-color: rgba(0, 0, 0, 0.6) !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
        pointer-events: auto !important;
    }

    .modal-content {
        background: #FFFFFF !important;
        border: 2px solid rgba(0, 0, 0, 0.15) !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
        width: 600px !important;
        max-width: 600px !important;
        pointer-events: auto !important;
    }

    html.dark-theme .modal-content {
        background: #1A1F2E !important;
        border-color: rgba(255, 255, 255, 0.15) !important;
    }
}

/* ========================================
   MODAL RESPONSIVE
======================================== */

@media (max-width: 768px) {
    .modal-content {
        max-width: 100%;
        max-height: 95vh;
        margin: 0;
    }

    .modal-title {
        font-size: 18px;
        padding: 20px 20px 12px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-steps li {
        font-size: 14px;
        padding-left: 36px;
    }

    .modal-steps li::before {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .modal-image-item img {
        max-height: 300px;
        object-fit: contain;
    }
}

@media (max-width: 480px) {
    .modal-overlay {
        padding: 0;
    }

    .modal-content {
        border-radius: 0;
        max-height: 100vh;
    }

    .modal-title {
        font-size: 16px;
    }

    .modal-image-item img {
        max-height: 250px;
    }
}

/* Логотип МИР на кнопке карты */
.card-icon {
    display: inline-block;
    width: 36px;
    height: 36px;
    margin-right: 8px;
    vertical-align: middle;
}