
/* ====== RECHARGE ======*/
#page-content-inner {
    width: auto;
}

#page-content {
    min-height: 80vh;
    background-color: #F5F5F5;
    display: flex;
    flex-direction: column;
}

#recharge-card { 
    width: 95vw;
    margin: 40px auto; 
    padding: 32px 12px; 
    background: #fff;
    border-radius: 16px; 
    box-sizing: border-box;
}
.recharge-title { 
    font-size: 22px; 
    color: #5C5C5C; 
    margin: 0 0 6px; }

.recharge-sub { 
    font-size: 14px; 
    color: #A6A6A6; 
    margin: 0 0 20px; 
}
.recharge-sub.recharge-sub-number {
    font-size: 24px; 
}
#phone-row { 
    display: flex; 
    border: 1px solid rgb(158, 158, 158, 0.25); 
    border-radius: 10px; 
    overflow: hidden; 
}
#phone-row:focus-within { 
    border: 1px solid rgb(158, 158, 158, 0.50); 
}
#phone-prefix { 
    background: rgba(255,255,255,0.12); 
    color: rgb(158, 158, 158); 
    padding: 0 16px; 
    display: flex; 
    align-items: center; 
    font-size: 16px; 
    border-right: 1px solid rgb(158, 158, 158, 0.25); 
    user-select: none; 
}
#phone-input { 
    background: transparent; 
    border: none; 
    outline: none; 
    color: rgb(158, 158, 158); 
    font-size: 16px; 
    padding: 12px 16px; 
    width: 100%; 
    font-family: "Roboto-Light", 
    sans-serif; 
}
#phone-input::placeholder { 
    color: rgb(158, 158, 158, 0.5); 
}
#phone-counter { 
    font-size: 12px; 
    color: rgb(158, 158, 158, 0.5); 
    text-align: right; 
    margin-top: 5px; 
}
.phone-status { margin-top: 12px; padding: 9px 14px; border-radius: 8px; font-size: 13px; }
.phone-status.loading { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }
.phone-status.error { background: rgba(220,50,50,0.2); color: #ff8080; }
.phone-status.success { background: rgba(50,200,100,0.15); color: #7defa7; }

/* ===== PACKAGES ===== */
.recharge-step.as-hidden  { 
    display: none;  
}
.as-hidden  {
    display: none;
}
.btn-back {
    background: none;
    border: none;
    color: rgb(158, 158, 158);
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    margin-bottom: 20px;
    display: block;
}
.btn-back:hover { color: #fff; }

#packages-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

/* ===== YOUR CURRENT PLAN (шаг с пакетами) ===== */
#current-plan-block {
    margin-bottom: 20px;
    animation: fadeInUp 0.3s ease;
}

.current-plan-block-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F0F7FF;
    border: 1.5px solid #2E75C9;
    border-radius: 12px;
    padding: 14px 18px;
}

.current-plan-block-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.current-plan-block-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #A6A6A6;
}

.current-plan-block-name {
    font-size: 16px;
    font-weight: 500;
    color: #2E75C9;
}

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

/* ===== LAST PLAN (заменён на current-plan-block) ===== */

/* ===== CYCLES TABS ===== */
#cycles-tabs {
    width: 100%;
}

.cycles-tab-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}

.cycles-tab-btn {
    flex: 1;
    background: #F5F5F5;
    border: 1.5px solid #E0E0E0;
    border-radius: 8px;
    padding: 9px 6px;
    font-size: 13px;
    font-weight: 500;
    color: #A6A6A6;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    font-family: "Roboto-Light", sans-serif;
}

.cycles-tab-btn:hover {
    background: #EAF2FB;
    border-color: #90BEE8;
    color: #2E75C9;
}

.cycles-tab-btn.active {
    background: #2E75C9;
    border-color: #2E75C9;
    color: #fff;
}

.cycles-tab-pane {
    display: none;
    flex-direction: column;
    gap: 10px;
}

.cycles-tab-pane.active {
    display: flex;
}

/* ===== PACKAGE CARDS ===== */
.package-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 16px 8px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.package-card:hover {
    background: rgba(46, 117, 201, 0.06);
    border-color: rgba(46, 117, 201, 0.3);
}

.package-card.selected {
    background: rgba(46, 117, 201, 0.08);
    border-color: #2E75C9;
}

.package-info { display: flex; flex-direction: column; gap: 4px; }
.package-name { 
    color: #5C5C5C; 
    font-size: 15px; 
}
.package-desc {
    color: rgb(158, 158, 158);
    font-size: 12px;
}

.package-price { 
    color:#5C5C5C; 
    font-size: 18px; 
    white-space: nowrap; 
}

.recharge-date-input {
    width: 100%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 12px 16px;
    color: #fff;
    font-size: 15px;
    margin-bottom: 8px;
    box-sizing: border-box;
}

.recharge-hint {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    margin: 0 0 16px;
}

.btn-primary {
    width: 100%;
    background: #2E75C9;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.15s;
}

#activation-date.recharge-css {
    width: 100%;
    font-family: 'Roboto-Light';
    border: #999 0.2vw solid;
}

.btn-primary:hover { opacity: 0.88; }
.btn-primary.recharge-css {
    background: #2E75C9;
    color: #fff;
    width: 200px;
}
#recharge-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.recharge-pkg-summary {
    width: 100%;
}

#recharge-modal-content #payment-method-selector {
    margin-top: 0vw;
}
#recharge-card #buy-section {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#recharge-modal-content #stripe-form {
    margin-top: 10vw;
}
#recharge-modal-content #stripe-form button{
    background: #5469d4;
    font-family: Arial, sans-serif;
    color: #ffffff;
    border-radius: 4px;
    border: 0;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: block;
    transition: all 0.2s ease;
    box-shadow: 0px 4px 5.5px 0px rgba(0, 0, 0, 0.07);
    width: 100%;
    margin-top: 5vw;
}
.package-price-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    white-space: nowrap;
}

.package-price-discount {
    color: #44D021;
    font-size: 18px;
    font-family: 'Roboto-Bold', sans-serif;
}
.package-price-discount b {
    font-family: 'Roboto-Light';
    color: #A6A6A6;
}
.package-price-original {
    color: #A6A6A6;
    font-size: 13px;
    text-decoration: line-through;
}

.discount-banner {
    background: #EAF5EE;
    border: 1.5px solid #4CAF50;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    color: #2E7D32;
    font-weight: 500;
    margin-bottom: 4px;
    text-align: center;
}


@media only screen and (min-width: 500px) {
    .package-card {
        padding: 16px 18px;
    }
}
@media only screen and (min-width: 800px) {

    #recharge-card {
        width: 750px;
    }
    #activation-date.recharge-css {
        border: #999 1px solid;
    }

    #recharge-modal-content #stripe-form,
    #recharge-card #buy-section {
        margin-top: 60px;
    }
    #recharge-modal-content #payment-form button{
        margin-top: 32px;
    }

    .cycles-tab-btn {
        font-size: 14px;
        padding: 10px 12px;
    }
}
