/* Базовое оформление страницы оплаты: палитра, фон, карточка товара и форма.
   Разделено по проектному лимиту в 300 строк — экраны ожидания, результата
   и служебные подсказки в pay-screens.css.

   Отдельного блока RTL здесь нет намеренно: вёрстка построена на логических
   свойствах, поэтому иврит переворачивается сам, без зеркальных правил. */
/* Оформление страницы оплаты. Вынесено из pay.html: файл перерастал
   проектный лимит в 300 строк, а стили к логике покупки отношения не имеют.
   Страница трёхъязычная, иврит идёт справа налево — правила RTL здесь же. */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-base);
    -webkit-font-smoothing: antialiased;
}

body { touch-action: manipulation; 
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: calc(20px + env(safe-area-inset-top, 0px)) calc(20px + env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) calc(20px + env(safe-area-inset-left, 0px));
}

/* Ambient background glow effects */
.ambient-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -50px;
    right: -50px;
    opacity: 0.3;
    z-index: 0;
    filter: blur(60px);
    pointer-events: none;
}

.ambient-glow-2 {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    opacity: 0.25;
    z-index: 0;
    filter: blur(80px);
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 440px;
    z-index: 1;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header {
    text-align: center;
    margin-bottom: 28px;
    padding-top: env(safe-area-inset-top, 0px);
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    max-width: 100%;
}

.brand-logo {
    width: 100%;
    max-width: 220px;
    height: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.subtitle {
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* Product details card */
.product-info {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.product-price {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.currency {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary);
    margin-left: 2px;
}

.meta-tags {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Form elements */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding-left: 2px;
}

.form-input {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text-main);
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: rgba(15, 23, 42, 0.7);
}

.input-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}

.btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    border-radius: 12px;
    padding: 16px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px var(--primary-glow);
    
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.5);
}

.btn:active {
    transform: translateY(1px);
}

.btn:disabled {
    background: #334155;
    color: #64748b;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.test-cards {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.test-cards-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.test-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 9px 12px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s;
    
}

.test-card:hover {
    border-color: var(--primary);
}

.tc-num {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
    color: var(--text-main);
}
