/* صفحه شماره مجازی */
.vsms {
    padding-bottom: 64px;
}

.vsms-hero {
    position: relative;
    padding: 36px 0 28px;
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%, rgba(5, 74, 244, 0.14), transparent 55%),
        radial-gradient(ellipse 50% 40% at 90% 20%, rgba(255, 176, 32, 0.12), transparent 50%),
        linear-gradient(180deg, #eef3ff 0%, var(--bg) 100%);
    overflow: hidden;
}

.vsms-hero__inner {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.vsms-hero__copy {
    flex: 1 1 280px;
    min-width: 0;
}

.vsms-kicker {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--primary);
    margin-bottom: 6px;
}

.vsms-title {
    font-size: clamp(1.55rem, 3.2vw, 2.1rem);
    font-weight: 900;
    line-height: 1.35;
    color: var(--ink);
    margin-bottom: 10px;
}

.vsms-lead {
    max-width: 520px;
    color: var(--ink-2);
    font-size: 14.5px;
    line-height: 1.85;
}

.vsms-hero__wallet {
    flex: 0 0 auto;
    min-width: 220px;
    padding: 18px 20px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
}

.vsms-wallet-label {
    font-size: 12.5px;
    color: var(--ink-2);
    font-weight: 600;
}

.vsms-wallet-amount {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--ink);
    direction: ltr;
    justify-content: flex-end;
}

.vsms-wallet-unit {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}

.vsms-wallet-link {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}

.vsms-body {
    margin-top: 8px;
}

.vsms-notice {
    padding: 36px 28px;
    border-radius: var(--radius);
    text-align: center;
    max-width: 560px;
    margin: 24px auto;
}

.vsms-notice h2 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.vsms-notice p {
    color: var(--ink-2);
    margin-bottom: 18px;
}

.vsms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 18px;
}

.vsms-panel {
    padding: 22px 20px;
    border-radius: var(--radius);
}

.vsms-panel__title {
    font-size: 1.1rem;
    font-weight: 850;
    margin-bottom: 4px;
}

.vsms-panel__hint {
    font-size: 13px;
    color: var(--ink-2);
    margin-bottom: 18px;
}

.vsms-field {
    margin-bottom: 14px;
}

.vsms-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--ink);
}

.vsms-optional {
    font-weight: 500;
    color: var(--muted);
    font-size: 12px;
}

.vsms-field select {
    width: 100%;
    appearance: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 11px 14px;
    font: inherit;
    color: var(--ink);
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}

.vsms-field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.vsms-field select:disabled {
    opacity: .65;
    cursor: not-allowed;
    background: #f1f5f9;
}

.vsms-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    margin: 8px 0 16px;
    background: var(--primary-soft);
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
}

.vsms-price-row strong {
    font-weight: 850;
    color: var(--primary-2);
}

.vsms-buy-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    font-weight: 800;
}

.vsms .btn-primary {
    background: var(--primary);
    color: #fff;
}

.vsms .btn-primary:hover {
    background: var(--primary-2);
}

.vsms-buy-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.vsms-error {
    margin-top: 12px;
    color: var(--danger);
    font-size: 13px;
    font-weight: 600;
}

.vsms-active__row,
.vsms-active__phone,
.vsms-active__otp {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.vsms-active__row span,
.vsms-active__phone > span,
.vsms-active__otp > span {
    color: var(--ink-2);
    font-weight: 600;
    flex-shrink: 0;
}

.vsms-active__phone strong,
.vsms-active__otp strong {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-align: left;
    flex: 1;
    min-width: 0;
    word-break: break-all;
}

.vsms-active__otp strong.has-code {
    color: var(--success);
}

.vsms-copy {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 8px;
    padding: 4px 10px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    color: var(--primary);
}

.vsms-copy:hover {
    background: var(--primary-soft);
}

.vsms-active__status {
    margin: 14px 0 10px;
}

.vsms-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
    background: var(--primary-soft);
    color: var(--primary-2);
}

.vsms-status--received,
.vsms-status--completed {
    background: var(--success-soft);
    color: var(--success);
}

.vsms-status--refunded,
.vsms-status--cancelled,
.vsms-status--expired {
    background: #fff7ed;
    color: #c2410c;
}

.vsms-status--failed {
    background: var(--danger-soft);
    color: var(--danger);
}

.vsms-active__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.vsms-poll-hint {
    margin-top: 12px;
    font-size: 12.5px;
    color: var(--muted);
}

.vsms-history {
    margin-top: 22px;
    padding: 20px;
    border-radius: var(--radius);
}

.vsms-history__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.vsms-history__head h2 {
    font-size: 1.05rem;
    font-weight: 850;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
    border: none;
}

.btn-danger:hover {
    filter: brightness(0.95);
}

.vsms-empty {
    color: var(--muted);
    font-size: 14px;
    padding: 12px 0;
}

.vsms-hist-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.vsms-hist-item:last-child {
    border-bottom: none;
}

.vsms-hist-item__main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.vsms-hist-item__main strong {
    font-weight: 800;
}

.vsms-hist-meta,
.vsms-hist-phone,
.vsms-hist-otp {
    font-size: 12.5px;
    color: var(--ink-2);
}

.vsms-hist-item__side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.vsms-hist-price {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink-2);
}

@media (max-width: 860px) {
    .vsms-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .vsms-hero {
        padding: 24px 0 18px;
    }

    .vsms-hero__wallet {
        width: 100%;
        min-width: 0;
    }

    .vsms-active__actions .btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}
