/* ==========================================================================
   MONOCHROME STUDIO VPN PORTAL STYLES (LINEAR/VERCEL STYLE)
   ========================================================================== */

main {
    padding-top: 30px;
}

.page-card {
    position: relative;
    padding: 44px;
    margin-bottom: 30px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    background: rgba(12, 12, 15, 0.75);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-studio);
}

.card-heading {
    margin-bottom: 24px;
}

.card-heading h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-top: 4px;
    color: var(--text-primary);
}

.card-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 28px;
    line-height: 1.6;
}

/* ==========================================================================
   TAB SWITCHING BUTTONS
   ========================================================================== */
.vpn-tabs {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.02);
    width: fit-content;
    margin: 0 auto 35px auto;
}

.nav-tab {
    background: transparent;
    border: none;
    outline: none;
    padding: 8px 24px;
    border-radius: var(--radius-pill);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.nav-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
    background: #ffffff;
    color: #000000;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* ==========================================================================
   STEPS PIPELINE PROGRESS BAR
   ========================================================================== */
.steps-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 45px;
    padding: 0 20px;
}

.progress-line {
    position: absolute;
    top: 16px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    z-index: 1;
}

.step-dot {
    position: relative;
    z-index: 2;
    background: #09090b;
    border: 1px solid var(--border-medium);
    color: var(--text-muted);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.step-dot.active {
    border-color: #ffffff;
    color: #000000;
    background: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.step-dot.completed {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.step-dot span {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.step-dot.active span,
.step-dot.completed span {
    color: var(--text-primary);
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 36px;
    gap: 16px;
}

.step-actions.justify-center {
    justify-content: center;
}

.btn-wide {
    flex: 1;
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
.form-group {
    margin-bottom: 28px;
}

.input-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.input-group,
.input-container {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 3px;
    transition: all 0.15s ease;
    width: 100%;
}

.input-group:focus-within,
.input-container:focus-within {
    border-color: var(--border-strong);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.input-prefix {
    display: flex;
    align-items: center;
    padding-left: 14px;
    padding-right: 4px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-weight: 600;
}

.input-group input,
.input-container input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    padding: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    width: 100%;
}

.field-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.promo-input-wrapper {
    display: flex;
    gap: 10px;
}

.promo-input-wrapper input {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    color: var(--text-primary);
    outline: none;
    font-family: var(--font-body);
    font-size: 0.92rem;
    transition: border-color 0.15s ease;
}

.promo-input-wrapper input:focus {
    border-color: var(--border-strong);
}

.promo-feedback {
    font-size: 0.82rem;
    margin-top: 8px;
    font-weight: 600;
}

.promo-feedback.success { color: #ffffff; }
.promo-feedback.error { color: var(--accent-amber); }

/* ==========================================================================
   PLANS BENTO GRID
   ========================================================================== */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.plan-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.plan-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-medium);
    background: rgba(255, 255, 255, 0.04);
}

.plan-card.selected {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.plan-card.selected::before {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 14px;
    right: 16px;
    color: #ffffff;
    font-size: 0.85rem;
}

.plan-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.plan-price-box {
    margin-top: auto;
    display: flex;
    align-items: baseline;
}

.plan-price {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 800;
    color: #ffffff;
}

.plan-price-old {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: var(--text-muted);
    margin-right: 8px;
}

.plan-period {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Skeletons */
.plans-skeleton {
    display: contents;
}

.skeleton-card {
    height: 130px;
    background: linear-gradient(90deg, rgba(255,255,255,0.02) 25%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.02) 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s infinite;
    border-radius: var(--radius-lg);
}

@keyframes skeletonLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==========================================================================
   ORDER SUMMARY & REQUISITES
   ========================================================================== */
.order-summary-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.order-summary-box h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-family: var(--font-mono);
}

.price-display {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 6px;
}

.old-price {
    font-size: 1.05rem;
    text-decoration: line-through;
    color: var(--text-muted);
}

.current-price {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 800;
    color: #ffffff;
}

.summary-details {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Requisites */
.payment-details-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.payment-details-box h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.requisites-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.requisite-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    padding: 16px;
    border-radius: var(--radius-md);
}

.req-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.req-value-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.req-value-row code {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    color: #ffffff;
    font-weight: 700;
}

.btn-copy-small {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 0.95rem;
    transition: color 0.15s ease;
}

.btn-copy-small:hover {
    color: #ffffff;
}

/* Dropzone Upload */
.upload-dropzone {
    border: 1px dashed var(--border-medium);
    border-radius: var(--radius-lg);
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.3);
}

.upload-dropzone:hover, .upload-dropzone.dragover {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.04);
}

.upload-icon {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    transition: transform 0.2s ease;
}

.upload-dropzone:hover .upload-icon {
    transform: translateY(-2px);
    color: #ffffff;
}

.upload-text {
    font-size: 0.92rem;
    font-weight: 600;
}

.upload-subtext {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.file-preview {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-icon {
    font-size: 1.2rem;
    color: #ffffff;
}

.filename {
    font-size: 0.88rem;
    font-weight: 600;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filesize {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-remove-file {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    cursor: pointer;
    padding: 4px;
    transition: color 0.15s ease;
}

.btn-remove-file:hover {
    color: #ef4444;
}

.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-top: 16px;
    font-size: 0.88rem;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

/* Success & Check status */
.success-icon {
    font-size: 3rem;
    color: var(--accent-green);
    margin-bottom: 14px;
}

.success-title {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.success-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.success-actions-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 18px 0;
}

.saved-username-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.saved-username-box code {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.05em;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 18px;
}

.status-active {
    background: rgba(34, 197, 94, 0.12);
    color: var(--accent-green);
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.status-pending {
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent-amber);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.status-expired {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

.info-item {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    padding: 14px;
    border-radius: var(--radius-md);
}

.info-item .label {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.info-item .value {
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 2px;
}

.key-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-bottom: 24px;
}

.key-header {
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.key-body {
    display: flex;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    align-items: center;
    gap: 10px;
}

.key-body code {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    overflow-x: auto;
    white-space: nowrap;
    color: #ffffff;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.instruction-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    padding: 14px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.15s ease;
}

.instruction-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-medium);
    transform: translateY(-1px);
}

.instruction-icon {
    font-size: 1.2rem;
    color: #ffffff;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    background: #09090b;
    border: 1px solid var(--border-medium);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.88rem;
    backdrop-filter: blur(16px);
}

.toast.hidden {
    display: none;
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .page-card {
        padding: 20px;
    }

    .plans-grid,
    .info-grid,
    .instructions-grid {
        grid-template-columns: 1fr;
    }
}
