
/* =========================================
   RECHARGE PLAN INFO - DTH DESIGN
   Independent DTH stylesheet
========================================= */

.dth-page {
    background: #f5f7fb;
    color: #263449;
}

/* SEARCH */

.dth-page .dth-search-area {
    padding: 24px 0;
    background: #f5f7fb;
    border-top: 1px solid #edf0f5;
}

.dth-page .dth-search-input {
    max-width: 720px;
    margin: auto;
    position: relative;
}

.dth-page .dth-search-input > i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #8491a4;
    font-size: 17px;
}

.dth-page .dth-search-input input {
    display: block;
    width: 100%;
    height: 54px;
    padding: 0 18px 0 49px;
    border: 1px solid #e1e7f0;
    border-radius: 12px;
    background: #fff;
    color: #17263d;
    font-size: 15px;
    outline: none;
    box-shadow: 0 3px 12px rgba(20, 40, 80, .035);
}

.dth-page .dth-search-input input:focus {
    border-color: #2864ed;
    box-shadow: 0 0 0 3px rgba(40, 100, 237, .10);
}

/* CATEGORY */

.dth-page .dth-category-area {
    background: #fff;
    border-top: 1px solid #e9edf3;
    border-bottom: 1px solid #e9edf3;
}

.dth-page .dth-category-list {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 14px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.dth-page .dth-category-list::-webkit-scrollbar {
    display: none;
}

.dth-page .dth-category-tab {
    flex: 0 0 auto;
    padding: 10px 16px;
    border: 1px solid #e6eaf1;
    border-radius: 9px;
    background: #fff;
    color: #48566b;
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
    cursor: pointer;
    transition: .2s ease;
}

.dth-page .dth-category-tab:hover {
    border-color: #2864ed;
    color: #2864ed;
}

.dth-page .dth-category-tab.active {
    background: #2864ed;
    border-color: #2864ed;
    color: #fff;
}

/* PLANS SECTION */

.dth-page .dth-plans-area {
    padding: 38px 0 45px;
    background: #f5f7fb;
}

.dth-page .dth-plans-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 24px;
}

.dth-page .dth-plans-header h2 {
    color: #17263d;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 6px;
}

.dth-page .dth-plans-header p {
    color: #8490a1;
    font-size: 13px;
    margin: 0;
}

.dth-page .dth-plan-count {
    flex: 0 0 auto;
    padding: 7px 13px;
    border-radius: 30px;
    background: #2864ed;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

/* GRID */

.dth-page .dth-plan-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.dth-page .dth-plan-item {
    min-width: 0;
}

.dth-page .dth-plan-item[hidden] {
    display: none !important;
}

/* CARD */

.dth-page .dth-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 19px;
    background: #fff;
    border: 1px solid #e5eaf2;
    border-radius: 15px;
    box-shadow: 0 4px 16px rgba(24, 43, 77, .045);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.dth-page .dth-card:hover {
    transform: translateY(-3px);
    border-color: #b9cdfd;
    box-shadow: 0 12px 28px rgba(24, 43, 77, .09);
}

/* CARD HEADER */

.dth-page .dth-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    min-height: 48px;
}

.dth-page .dth-card-operator {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.dth-page .dth-card-operator img,
.dth-page .dth-card-logo-fallback {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    object-fit: contain;
    border-radius: 8px;
}

.dth-page .dth-card-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #edf2ff;
    color: #2864ed;
    font-weight: 800;
    font-size: 18px;
}

.dth-page .dth-card-operator-name {
    color: #263449;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.35;
}

.dth-page .dth-card-category {
    margin-top: 3px;
    color: #8793a4;
    font-size: 10px;
    line-height: 1.35;
}

.dth-page .dth-card-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.dth-page .dth-card-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 750;
    line-height: 1.2;
    white-space: nowrap;
}

.dth-page .dth-card-badge.popular {
    color: #fff;
    background: #ed5b16;
}

.dth-page .dth-card-badge.recommended {
    color: #16854b;
    background: #e3f8ec;
}

/* PRICE */

.dth-page .dth-card-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 20px 0 12px;
}

.dth-page .dth-card-price {
    color: #2864ed;
    font-size: 36px;
    font-weight: 850;
    letter-spacing: -1.5px;
    line-height: 1;
}

.dth-page .dth-card-price span {
    font-size: 19px;
    margin-right: 2px;
}

.dth-page .dth-card-validity {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 10px;
    border-radius: 30px;
    background: #eff5ff;
    color: #2864ed;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

/* PLAN NAME */

.dth-page .dth-card-title {
    min-height: 43px;
    margin: 0 0 12px;
    color: #18263c;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.dth-page .dth-card-title a {
    color: inherit;
    text-decoration: none;
}

.dth-page .dth-card-title a:hover {
    color: #2864ed;
}

/* FEATURES */

.dth-page .dth-card-features {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 7px;
    margin-bottom: 12px;
}

.dth-page .dth-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    padding: 6px 9px;
    border: 1px solid #e8edf5;
    border-radius: 7px;
    background: #f7f9fc;
    color: #536278;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.dth-page .dth-chip.hd {
    background: #edf5ff;
    color: #1764bd;
    border-color: #d9e9ff;
}

.dth-page .dth-chip.sd {
    background: #f3f5f8;
    color: #59677a;
}

.dth-page .dth-card-type {
    margin: 0 0 9px;
    color: #7e8b9d;
    font-size: 11px;
    font-weight: 650;
}

.dth-page .dth-card-description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    min-height: 57px;
    margin: 0 0 15px;
    color: #778497;
    font-size: 12px;
    line-height: 1.6;
}

/* BUTTON */

.dth-page .dth-card-bottom {
    margin-top: auto;
    padding-top: 13px;
    border-top: 1px solid #edf0f5;
}

.dth-page .dth-card-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 43px;
    padding: 10px 12px;
    border-radius: 30px;
    background: #2864ed;
    color: #fff !important;
    font-size: 13px;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
    transition: background .2s ease;
}

.dth-page .dth-card-button:hover {
    background: #174fc9;
    color: #fff;
}

/* EMPTY STATES */

.dth-page .dth-empty,
.dth-page .dth-no-results {
    padding: 45px 15px;
    border: 1px solid #e7ebf2;
    border-radius: 14px;
    background: #fff;
    text-align: center;
}

.dth-page .dth-empty > i,
.dth-page .dth-no-results > i {
    color: #2864ed;
    font-size: 35px;
}

.dth-page .dth-empty h3,
.dth-page .dth-no-results h3 {
    margin: 12px 0 6px;
    color: #17263d;
    font-size: 19px;
    font-weight: 750;
}

.dth-page .dth-empty p,
.dth-page .dth-no-results p {
    color: #8490a1;
    font-size: 13px;
}

/* TABLET: TWO COLUMNS */

@media (min-width: 576px) and (max-width: 1199px) {
    .dth-page .dth-plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

/* MOBILE: TWO COLUMNS */

@media (max-width: 575px) {
    .dth-page .dth-plans-area {
        padding: 25px 0 35px;
    }

    .dth-page .dth-plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .dth-page .dth-card {
        padding: 11px;
        border-radius: 12px;
    }

    .dth-page .dth-card-top {
        min-height: 42px;
        gap: 4px;
    }

    .dth-page .dth-card-operator {
        gap: 6px;
    }

    .dth-page .dth-card-operator img,
    .dth-page .dth-card-logo-fallback {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    .dth-page .dth-card-operator-name {
        font-size: 10px;
    }

    .dth-page .dth-card-category {
        font-size: 9px;
    }

    .dth-page .dth-card-badge {
        padding: 3px 5px;
        font-size: 8px;
    }

    .dth-page .dth-card-price-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        margin: 15px 0 10px;
    }

    .dth-page .dth-card-price {
        font-size: 28px;
    }

    .dth-page .dth-card-price span {
        font-size: 16px;
    }

    .dth-page .dth-card-validity {
        padding: 5px 8px;
        font-size: 10px;
    }

    .dth-page .dth-card-title {
        min-height: 38px;
        margin-bottom: 9px;
        font-size: 12px;
    }

    .dth-page .dth-card-features {
        gap: 5px;
    }

    .dth-page .dth-chip {
        padding: 4px 6px;
        font-size: 9px;
    }

    .dth-page .dth-card-type {
        font-size: 9px;
    }

    .dth-page .dth-card-description {
        min-height: 48px;
        margin-bottom: 10px;
        font-size: 10px;
        line-height: 1.55;
        -webkit-line-clamp: 3;
    }

    .dth-page .dth-card-bottom {
        padding-top: 9px;
    }

    .dth-page .dth-card-button {
        min-height: 36px;
        padding: 8px 5px;
        font-size: 10px;
        gap: 4px;
    }

    .dth-page .dth-plans-header h2 {
        font-size: 19px;
    }

    .dth-page .dth-plans-header p {
        font-size: 11px;
    }

    .dth-page .dth-plan-count {
        padding: 6px 9px;
        font-size: 10px;
    }

    .dth-page .dth-category-list {
        gap: 7px;
        padding: 11px 0;
    }

    .dth-page .dth-category-tab {
        padding: 8px 11px;
        font-size: 11px;
    }

    .dth-page .dth-search-area {
        padding: 16px 0;
    }

    .dth-page .dth-search-input input {
        height: 47px;
        font-size: 13px;
    }
}

/* VERY SMALL PHONES */

@media (max-width: 360px) {
    .dth-page .dth-card {
        padding: 9px;
    }

    .dth-page .dth-card-price {
        font-size: 25px;
    }

    .dth-page .dth-card-title {
        font-size: 11px;
    }

    .dth-page .dth-card-button {
        font-size: 9px;
    }
}

/* =========================================
   DTH PLAN DETAIL PAGE
   ========================================= */

.dth-detail-page {
    background: #f5f7fb;
    color: #263449;
    min-height: 70vh;
    padding-bottom: 40px;
}

.dth-detail-page .dth-detail-section {
    padding: 28px 0 40px;
}

.dth-detail-page .dth-detail-card {
    max-width: 850px;
    margin: 0 auto;
    padding: 28px;
    background: #fff;
    border: 1px solid #e5eaf2;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(24,43,77,.06);
}

.dth-detail-page .dth-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #edf0f5;
}

.dth-detail-page .dth-detail-operator {
    display: flex;
    align-items: center;
    gap: 13px;
}

.dth-detail-page .dth-detail-operator img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 12px;
    background: #f7f9fc;
    padding: 5px;
}

.dth-detail-page .dth-detail-operator-name {
    display: block;
    color: #17263d;
    font-size: 18px;
    font-weight: 800;
}

.dth-detail-page .dth-detail-label {
    display: block;
    margin-top: 4px;
    color: #8490a1;
    font-size: 12px;
}

.dth-detail-page .dth-detail-price {
    padding: 25px 0;
}

.dth-detail-page .dth-detail-amount {
    display: block;
    color: #2864ed;
    font-size: 40px;
    font-weight: 850;
    line-height: 1.2;
}

.dth-detail-page .dth-detail-plan-name {
    display: block;
    margin-top: 7px;
    color: #263449;
    font-size: 19px;
    font-weight: 750;
}

.dth-detail-page .dth-detail-features {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px;
}

.dth-detail-page .dth-detail-feature {
    padding: 16px;
    background: #f7f9fc;
    border: 1px solid #e9edf4;
    border-radius: 12px;
    min-width: 0;
}

.dth-detail-page .dth-detail-feature span {
    display: block;
    margin-bottom: 7px;
    color: #8490a1;
    font-size: 12px;
}

.dth-detail-page .dth-detail-feature strong {
    display: block;
    color: #263449;
    font-size: 15px;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.dth-detail-page .dth-detail-description {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #edf0f5;
}

.dth-detail-page .dth-detail-description h2 {
    margin-bottom: 12px;
    color: #17263d;
    font-size: 20px;
    font-weight: 800;
}

.dth-detail-page .dth-detail-description p {
    margin: 0;
    color: #657287;
    font-size: 15px;
    line-height: 1.8;
}

/* RELATED PLANS */

.dth-detail-page .dth-related-section {
    margin-top: 38px;
}

.dth-detail-page .dth-related-section h2 {
    margin-bottom: 20px;
    color: #17263d;
    font-size: 23px;
    font-weight: 800;
}

.dth-detail-page .dth-related-section .dth-plan-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 18px;
}

/* RELATED CARD: reuse existing DTH card design */

.dth-detail-page .dth-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 17px;
    background: #fff;
    border: 1px solid #e5eaf2;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(24,43,77,.045);
}

/* TABLET */

@media (max-width: 991px) {
    .dth-detail-page .dth-related-section .dth-plan-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 14px;
    }
}

/* MOBILE */

@media (max-width: 575px) {
    .dth-detail-page {
        padding-bottom: 25px;
    }

    .dth-detail-page .dth-detail-section {
        padding: 16px 0 25px;
    }

    .dth-detail-page .dth-detail-card {
        padding: 17px;
        border-radius: 14px;
    }

    .dth-detail-page .dth-detail-operator img {
        width: 46px;
        height: 46px;
    }

    .dth-detail-page .dth-detail-operator-name {
        font-size: 15px;
    }

    .dth-detail-page .dth-detail-amount {
        font-size: 33px;
    }

    .dth-detail-page .dth-detail-plan-name {
        font-size: 16px;
    }

    .dth-detail-page .dth-detail-features {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 9px;
    }

    .dth-detail-page .dth-detail-feature {
        padding: 12px;
    }

    .dth-detail-page .dth-detail-feature strong {
        font-size: 13px;
    }

    .dth-detail-page .dth-related-section h2 {
        font-size: 19px;
    }

    .dth-detail-page .dth-related-section .dth-plan-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 10px;
    }
}
