/* ============================================================
   TechNest License Shop — стиль в духе volvo-tech.com
   Тёмная тема, синие акценты
   ============================================================ */

.technest-license-shop {
    max-width: 860px;
    margin: 0 auto;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #c8d0e0;
}

.technest-shop-section {
    margin-bottom: 32px;
}

.technest-shop-section h3 {
    font-size: 1em;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7ea8d8;
    margin-bottom: 16px;
}

/* === Переключатель валюты === */
.technest-currency-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.technest-currency-btn {
    padding: 7px 18px;
    border: 1px solid #253050;
    border-radius: 6px;
    background: #242424;
    color: #8a9cbd;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: border-color 0.18s, background 0.18s, color 0.18s;
}

.technest-currency-btn:hover {
    border-color: #3a7bd5;
    color: #7ec8f8;
}

.technest-currency-btn.active {
    border-color: #3a7bd5;
    background: #2e2e2e;
    color: #7ec8f8;
    box-shadow: 0 0 8px rgba(58,123,213,0.25);
}

.technest-rate-info {
    font-size: 0.82em;
    color: #4a6080;
    margin-left: 4px;
}

.technest-rate-note {
    margin-top: 8px;
    font-size: 0.8em;
    color: #4a6080;
}

/* === Сетка модулей === */
.technest-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.technest-module-card {
    background: #242424;
    border: 1px solid #253050;
    border-radius: 8px;
    padding: 16px 12px 16px 16px;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.technest-module-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #333333;
    transition: background 0.18s;
}

.technest-module-card:nth-child(3n+1)::after { background: #3a5a8a; }
.technest-module-card:nth-child(3n+2)::after { background: #3a6a7a; }
.technest-module-card:nth-child(3n+3)::after { background: #5a4a8a; }

.technest-module-card.selected::after { background: #3a7bd5 !important; }

.technest-module-card::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #383838;
    border: 2px solid #4a4a4a;
    position: absolute;
    top: 12px;
    right: 12px;
    transition: background 0.18s, border-color 0.18s;
}

.technest-module-card:hover {
    border-color: #3a7bd5;
    background: #2e2e2e;
    box-shadow: 0 0 12px rgba(58,123,213,0.18);
}

.technest-module-card.selected {
    border-color: #3a7bd5;
    background: #2a2a2a;
    box-shadow: 0 0 16px rgba(58,123,213,0.28);
}

.technest-module-card.selected::before {
    background: #f5c518;
    border-color: #f5c518;
    box-shadow: 0 0 6px rgba(245,197,24,0.7);
}

.technest-module-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.technest-module-name {
    font-weight: 700;
    font-size: 0.97em;
    color: #dce6f5;
}

.technest-module-card.selected .technest-module-name {
    color: #7ec8f8;
}

.technest-module-price {
    font-size: 0.85em;
    color: #5a8fd4;
    font-weight: 600;
}

.technest-module-card.selected .technest-module-price {
    color: #3a7bd5;
}

/* === Скидки на карточках модулей === */
.technest-discount-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #e8392a;
    color: #fff;
    font-size: 0.68em;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 2px 7px;
    border-radius: 4px;
    line-height: 1.4;
    z-index: 1;
}

.technest-bonus-badge {
    position: absolute;
    top: 28px;
    right: 6px;
    background: #1a6e3c;
    color: #7ee8a2;
    font-size: 0.65em;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1.4;
    z-index: 1;
}

.technest-discount-badge + .technest-bonus-badge {
    top: 28px;
}

.technest-module-price-wrap {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.technest-module-price-old {
    font-size: 0.78em;
    color: #4a5570;
    text-decoration: line-through;
    line-height: 1;
}

.technest-module-card.has-discount .technest-module-price {
    color: #e8a020;
    font-size: 0.95em;
}

.technest-module-period {
    font-size: 0.72em;
    color: #4a5a70;
    line-height: 1;
}

/* === Full License карточка === */
.technest-full-card {
    background: linear-gradient(135deg, #242424 0%, #2a2a2a 100%);
    border: 1px solid #2a4a7f;
    border-radius: 10px;
    padding: 20px 24px;
    cursor: pointer;
    position: relative;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
    overflow: hidden;
    user-select: none;
}

.technest-full-card::after {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #3a7bd5, #7ec8f8);
    transition: opacity 0.18s;
    opacity: 0.5;
}

.technest-full-card:hover {
    border-color: #3a7bd5;
    box-shadow: 0 0 20px rgba(58,123,213,0.2);
}

.technest-full-card.selected {
    border-color: #f5c518;
    background: linear-gradient(135deg, #2a2a2a 0%, #303030 100%);
    box-shadow: 0 0 24px rgba(245,197,24,0.15);
}

.technest-full-card.selected::after {
    background: linear-gradient(180deg, #f5c518, #ffd95c);
    opacity: 1;
}

.technest-full-badge {
    display: inline-block;
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1a1a2e;
    background: #f5c518;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 14px;
}

.technest-full-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    pointer-events: none;
}

.technest-full-titles {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.technest-full-name {
    font-size: 1.15em;
    font-weight: 700;
    color: #dce6f5;
}

.technest-full-card.selected .technest-full-name {
    color: #7ec8f8;
}

.technest-full-desc {
    font-size: 0.82em;
    color: #5a7090;
}

.technest-full-discount-badge {
    position: absolute;
    top: 10px;
    right: 14px;
    background: #e8392a;
    color: #fff;
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 4px;
    z-index: 1;
}

.technest-full-bonus-badge {
    position: absolute;
    top: 36px;
    right: 14px;
    background: #1a6e3c;
    color: #7ee8a2;
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 4px;
    z-index: 1;
}

.technest-full-discount-badge + .technest-full-bonus-badge {
    top: 36px;
}

.technest-full-price-block {
    text-align: right;
}

.technest-full-price-old {
    display: block;
    font-size: 0.85em;
    color: #4a5570;
    text-decoration: line-through;
    line-height: 1.2;
    margin-bottom: 2px;
}

.technest-full-card.has-discount .technest-full-price {
    color: #e8a020;
}

.technest-full-price {
    font-size: 1.6em;
    font-weight: 700;
    color: #3a7bd5;
    letter-spacing: 0.02em;
}

.technest-full-card.selected .technest-full-price {
    color: #f5c518;
}

.technest-full-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #3d5080;
    background: #383838;
    flex-shrink: 0;
    transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.technest-full-card.selected .technest-full-check {
    background: #f5c518;
    border-color: #f5c518;
    box-shadow: 0 0 8px rgba(245,197,24,0.6);
}

/* === Срок действия === */
.technest-duration-tabs {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 4px;
}

.technest-duration-btn {
    flex: 1;
    padding: 9px 10px;
    border: none;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    font-size: 0.88em;
    font-weight: 600;
    color: #5a7090;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    letter-spacing: 0.03em;
    text-align: center;
}

.technest-duration-btn:hover {
    color: #9ec8e8;
    background: #2e2e2e;
}

.technest-duration-btn.active {
    background: #2e2e2e;
    color: #7ec8f8;
    box-shadow: inset 0 0 0 1px rgba(58,123,213,0.5);
}

/* === Итого === */
.technest-summary {
    background: linear-gradient(135deg, #1a1a1a 0%, #242424 100%);
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.technest-total-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-left: auto;
    text-align: right;
}

.technest-total-row {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 12px;
}

.technest-total-row span:first-child {
    font-size: 0.82em;
    font-weight: 700;
    color: #4a6888;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.technest-total-amount {
    font-size: 2em;
    font-weight: 700;
    color: #3a7bd5;
    letter-spacing: 0.02em;
    line-height: 1;
}

/* === Кнопка теста оплаты === */
.technest-test-btn {
    display: block;
    width: 100%;
    max-width: 420px;
    margin: 10px auto 0;
    padding: 10px 16px;
    background: transparent;
    border: 1px dashed #4a5a70;
    border-radius: 6px;
    color: #6a8aaa;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: border-color 0.18s, color 0.18s, background 0.18s;
    text-align: center;
}

.technest-test-btn:hover {
    border-color: #e8a020;
    color: #e8a020;
    background: rgba(232,160,32,0.06);
}

.technest-test-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* === PayPal контейнер === */
#technest-paypal-container {
    min-height: 45px;
    max-width: 420px;
    margin: 0 auto;
}

/* === Сообщения === */
.technest-shop-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 0.93em;
}

.technest-msg-error {
    background: rgba(211, 47, 47, 0.12);
    border: 1px solid #d32f2f;
    color: #ef9a9a;
}

.technest-msg-success {
    background: rgba(46, 125, 50, 0.12);
    border: 1px solid #388e3c;
    color: #a5d6a7;
}

.technest-shop-notice {
    padding: 14px 18px;
    background: rgba(58,123,213,0.1);
    border-left: 3px solid #3a7bd5;
    border-radius: 4px;
    color: #8ab4d8;
    font-size: 0.95em;
}

.technest-shop-notice.technest-shop-error {
    background: rgba(211,47,47,0.1);
    border-left-color: #d32f2f;
    color: #ef9a9a;
}

/* === Результат === */
.technest-shop-result {
    text-align: center;
    padding: 36px 24px;
    background: #242424;
    border: 1px solid #3a7bd5;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(58,123,213,0.15);
}

.technest-result-icon {
    font-size: 3em;
    color: #3a7bd5;
    margin-bottom: 12px;
}

.technest-shop-result h3 {
    color: #7ec8f8;
    font-size: 1.4em;
    margin-bottom: 8px;
    text-transform: none;
    letter-spacing: normal;
}

.technest-shop-result p {
    color: #8a9cbd;
    margin-bottom: 20px;
}

.technest-license-code-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.technest-license-code-box code {
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 6px;
    padding: 12px 18px;
    font-size: 0.88em;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
    color: #7ec8f8;
    word-break: break-all;
}

.technest-copy-btn {
    padding: 10px 20px;
    background: #2e2e2e;
    border: 1px solid #3a7bd5;
    color: #7ec8f8;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: background 0.18s, box-shadow 0.18s;
}

.technest-copy-btn:hover {
    background: #3a7bd5;
    color: #fff;
    box-shadow: 0 0 10px rgba(58,123,213,0.4);
}

/* === Блок согласия перед оплатой === */
.technest-consent-wrap {
    background: #1e1e1e;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 16px 20px;
}

.technest-digital-notice {
    color: #c8a060;
    font-size: 0.88em;
    font-weight: 600;
    margin: 0 0 14px;
    padding: 8px 12px;
    background: rgba(200, 160, 96, 0.08);
    border-left: 3px solid #c8a060;
    border-radius: 3px;
}

.technest-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88em;
    color: #8a9cb8;
    margin-bottom: 10px;
    cursor: pointer;
    line-height: 1.5;
}

.technest-consent-label:last-child {
    margin-bottom: 0;
}

.technest-consent-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    cursor: pointer;
    accent-color: #3a7bd5;
}

/* === Форма авторизации/регистрации === */
.technest-auth-wrap {
    max-width: 400px;
    margin: 0 auto;
    background: #242424;
    border: 1px solid #333333;
    border-radius: 10px;
    overflow: hidden;
}

.technest-auth-tabs {
    display: flex;
    border-bottom: 1px solid #333333;
}

.technest-auth-tab {
    flex: 1;
    padding: 13px;
    background: #1a1a1a;
    border: none;
    color: #5a7090;
    font-size: 0.95em;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
}

.technest-auth-tab:hover {
    background: #2e2e2e;
    color: #9ec8e8;
}

.technest-auth-tab.active {
    background: #242424;
    color: #7ec8f8;
    border-bottom: 2px solid #3a7bd5;
}

.technest-auth-panel {
    padding: 24px;
}

.technest-auth-panel p {
    margin: 0 0 14px;
}

.technest-auth-panel label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.88em;
    color: #7a90a8;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.technest-auth-panel input[type="text"],
.technest-auth-panel input[type="email"],
.technest-auth-panel input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 6px;
    padding: 9px 12px;
    color: #c8d0e0;
    font-size: 0.95em;
    transition: border-color 0.18s;
    outline: none;
}

.technest-auth-panel input[type="text"]:focus,
.technest-auth-panel input[type="email"]:focus,
.technest-auth-panel input[type="password"]:focus {
    border-color: #3a7bd5;
}

.technest-auth-panel input[type="checkbox"] {
    margin-right: 6px;
}

.technest-auth-panel input[type="submit"],
.technest-auth-submit {
    width: 100%;
    padding: 11px;
    background: #3a7bd5;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 0.95em;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s;
}

.technest-auth-panel input[type="submit"]:hover,
.technest-auth-submit:hover {
    background: #2a6bc5;
    box-shadow: 0 0 12px rgba(58,123,213,0.4);
}

.technest-auth-link {
    text-align: right;
    margin-top: -6px !important;
}

.technest-auth-link a {
    color: #4a7ab0;
    font-size: 0.85em;
    text-decoration: none;
}

.technest-auth-link a:hover {
    color: #7ec8f8;
}

.technest-consent-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.technest-consent-links {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 3px;
}

.technest-consent-links a {
    color: #4a7ab0;
    text-decoration: underline;
    text-decoration-color: rgba(74,122,176,0.4);
    font-size: 0.95em;
}

.technest-consent-links a:hover {
    color: #7ec8f8;
}

.technest-auth-hint {
    color: #5a7090;
    font-size: 0.85em;
    margin-bottom: 14px !important;
}

/* ── Оплата с баланса ───────────────────────────── */
.technest-balance-pay-wrap {
    background: #242424;
    border: 1px solid #253050;
    border-radius: 8px;
    padding: 16px 12px 16px 16px;
    margin-bottom: 4px;
}

.technest-balance-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.95em;
}

.technest-balance-label {
    color: #8aaac8;
}

.technest-balance-amount {
    font-weight: 700;
    color: #7ec8f8;
    font-size: 1.1em;
}

.technest-balance-btn {
    width: 100%;
    padding: 11px 16px;
    background: #1a6aaa;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
}

.technest-balance-btn:hover:not(:disabled) {
    background: #2080cc;
}

.technest-balance-btn:disabled {
    background: #1a3050;
    color: #4a6a8a;
    cursor: not-allowed;
}

.technest-pay-divider {
    text-align: center;
    color: #3a5a7a;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 14px 0 10px;
}

@media (max-width: 600px) {
    .technest-modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .technest-duration-tabs {
        flex-wrap: wrap;
    }
    .technest-total-amount {
        font-size: 1.4em;
    }
}
