/* =========================================================
   SINGLE OFFER — Telecom offer template styles
   ========================================================= */

/* --- Breadcrumbs --- */
.tso-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 20px;
    color: #64748b;
}
.tso-bread-link { color: #08183a; font-weight: 500; }
.tso-bread-link:hover { color: var(--primary); }
.tso-bread-sep { color: #cbd5e1; font-weight: 600; }
.tso-bread-item { color: #08183a; font-weight: 600; }
.tso-bread-current { color: #64748b; }

/* --- Offer Header & Brand Logo --- */
.tso-offer-header { margin-bottom: 26px; }
.tso-title-row { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.tso-brand-logo-box {
    width: 60px;
    height: 60px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    box-shadow: 0 2px 8px rgba(8, 24, 58, 0.04);
    flex-shrink: 0;
}
.tso-brand-logo { max-width: 100%; max-height: 100%; object-fit: contain; }
.tso-offer-header .single-title { font-size: 1.85rem; margin: 0; line-height: 1.25; color: var(--navy-dark); }

/* --- Hero Card (Price & Activation Code) --- */
.tso-hero-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.tso-hero-price-box { display: flex; flex-direction: column; gap: 2px; }
.tso-badge-validity {
    display: inline-block;
    align-self: flex-start;
    background: #e0edff;
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: .3px;
}
.tso-price-big {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Poppins', sans-serif;
    line-height: 1.1;
    margin-top: 4px;
}
.tso-hero-act-box { text-align: right; }
.tso-act-sub {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: .5px;
    display: block;
    margin-bottom: 4px;
}
.tso-act-row { display: flex; align-items: center; gap: 8px; }
.tso-code-display {
    font-size: 16px;
    font-weight: 700;
    background: #e0edff;
    color: var(--primary);
    padding: 7px 16px;
    border-radius: 6px;
    border: 1px solid #bae0fd;
}
.tso-copy-btn {
    background: var(--navy-dark);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background .2s ease;
}
.tso-copy-btn:hover { background: var(--primary); }

/* --- Connected Master-Variant Switcher (Interactive Links) --- */
.tso-variant-switcher {
    margin-bottom: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
}
.tso-variant-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: .4px;
    margin-bottom: 8px;
}
.tso-variant-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tso-variant-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    text-decoration: none !important;
    font-family: inherit;
    color: #08183a;
    font-size: 13px;
    position: relative;
    user-select: none;
    transition: all .2s ease;
}
.tso-variant-pill:hover {
    border-color: #0066ff;
    background: #f0f7ff;
    color: #0066ff;
    transform: translateY(-1px);
}
.tso-variant-pill.is-active {
    background: #0066ff;
    border-color: #0066ff;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
    pointer-events: none;
}
.tso-vpill-dur {
    font-weight: 700;
}
.tso-vpill-prc {
    font-weight: 600;
    opacity: 0.95;
}
.tso-variant-pill.is-active .tso-vpill-prc {
    color: #fef08a;
}
.tso-vpill-save {
    background: #22c55e;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: .3px;
}
.tso-variant-pill.is-active .tso-vpill-save {
    background: #ffffff;
    color: #15803d;
}
.tso-active-price-amount {
    display: inline-block;
}

/* --- Activation Apps Strip --- */
.tso-available-apps-strip {
    margin-top: 16px;
    padding: 12px 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: 0 2px 6px rgba(8, 24, 58, 0.02);
}
.tso-apps-heading { font-size: 13px; font-weight: 700; color: #08183a; display: flex; align-items: center; gap: 6px; }
.tso-apps-list { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tso-app-pill {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    color: #08183a;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 1px 3px rgba(8, 24, 58, 0.04);
    transition: transform .2s ease, border-color .2s ease;
}
.tso-app-pill:hover { transform: translateY(-1px); border-color: #0066ff; }
.tso-micro-logo { border-radius: 4px; object-fit: contain; }

/* --- Discount Box --- */
.tso-discount-box {
    margin-top: 16px;
    background: #fffdf5;
    border: 2px solid #fde68a;
    border-radius: 8px;
    padding: 16px 20px;
}
.tso-disc-badge {
    display: inline-block;
    background: #d97706;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    letter-spacing: .5px;
}
.tso-disc-price-row { margin-bottom: 10px; display: flex; align-items: baseline; gap: 8px; }
.tso-disc-tag { font-size: 13px; color: #78350f; font-weight: 600; }
.tso-disc-val { font-size: 22px; color: #b45309; font-weight: 800; font-family: 'Poppins', sans-serif; }
.tso-disc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; font-size: 13px; }
.tso-disc-item span { display: block; color: #92400e; font-size: 11px; text-transform: uppercase; font-weight: 600; margin-bottom: 2px; }
.tso-disc-item strong { color: #451a03; }
.tso-disc-item code { background: #fef3c7; color: #b45309; padding: 3px 8px; border-radius: 4px; font-weight: 700; }

/* --- Section Headings --- */
.tso-section { margin-bottom: 30px; }
.tso-section-title,
.tso-sec-title {
    font-size: 1.3rem;
    color: var(--navy-dark);
    margin-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
}

/* --- Baseline Details Table --- */
.tso-shot-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}
.tso-shot-table td {
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}
.tso-shot-table td:first-child {
    width: 38%;
    font-weight: 600;
    color: #08183a;
    background: #fbfcfd;
}
.tso-shot-table code {
    background: #e0edff;
    color: #0066ff;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
}

/* =========================================================
   INTEGRATED PLAN OPTIONS CARD & TABLE
   Theme: Deep Slate (#0f172a) Header with Gold/Amber (#f59e0b) Accent
   ========================================================= */
.tso-options-card-wrap {
    margin-top: 24px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(8, 24, 58, 0.04);
}
.tso-options-card-header {
    padding: 14px 18px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border-bottom: 2px solid #f59e0b;
}
.tso-options-card-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.tso-options-card-title i {
    color: #f59e0b;
    font-size: 13px;
}
.tso-options-card-subtitle {
    font-size: 11px;
    color: #94a3b8;
    display: block;
}
.tso-options-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
    text-align: left;
    background: #ffffff;
}
.tso-options-table th {
    background: #f8fafc;
    color: #334155;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .4px;
    padding: 10px 14px;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}
.tso-options-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    color: #334155;
}
.tso-options-table tr:last-child td {
    border-bottom: none;
}
.tso-options-table .tso-opt-current-row td {
    background: #fffdf5;
    font-weight: 600;
    border-left: 3px solid #f59e0b;
}
.tso-opt-badge-active {
    display: inline-block;
    background: #f59e0b;
    color: #0f172a;
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: .3px;
    margin-left: 6px;
    vertical-align: middle;
}
.tso-opt-switch-link {
    display: inline-block;
    color: #0066ff;
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none !important;
    margin-left: 6px;
    transition: color .2s, transform .2s;
}
.tso-opt-switch-link:hover {
    color: #0044cc;
    transform: translateX(2px);
}

/* =========================================================
   COMPARE SIMILAR PACKAGES TABLE STYLING
   ========================================================= */
.tso-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
    background: #ffffff;
}
.tso-compare-table th {
    background: #f8fafc;
    color: #08183a;
    font-weight: 700;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}
.tso-compare-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    white-space: nowrap;
}
.tso-compare-table .tso-current-row td {
    background: #f0f7ff;
}
.tso-badge-current {
    background: #0066ff;
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}
.tso-link-more {
    color: #0066ff;
    font-weight: 600;
    text-decoration: none;
}
.tso-table-old-price {
    color: #94a3b8;
    font-size: 11px;
    display: block;
    text-decoration: line-through;
    font-weight: 500;
    margin-bottom: 2px;
}
.tso-table-discount-price {
    color: #ef4444;
    font-weight: 800;
}

/* --- Price History Chart & Header --- */
.tso-chart-container { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 16px; height: 240px; position: relative; }
.tso-chart-note { font-size: 12px; color: #64748b; margin-top: 8px; font-style: italic; }

.tso-graph-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    position: relative;
    z-index: 2;
}
.tso-graph-header h2 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: #08183a;
}
.tso-graph-header span {
    font-size: 11px;
    color: #64748b;
    display: block;
}

/* --- Graph Expand Button --- */
.tso-graph-expand-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: all .2s ease;
    flex-shrink: 0;
}
.tso-graph-expand-btn:hover {
    background: #0066ff;
    color: #ffffff;
    border-color: #0066ff;
    transform: scale(1.06);
}

/* =========================================================
   FULLSCREEN STATS MODAL
   ========================================================= */
.tso-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}
.tso-modal.is-active {
    display: flex;
    animation: tsoModalFadeIn .22s cubic-bezier(0.16, 1, 0.3, 1);
}
.tso-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 24, 58, 0.68);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.tso-modal-dialog {
    position: relative;
    z-index: 2;
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(8, 24, 58, 0.3);
    border: 1px solid #cbd5e1;
    display: flex;
    flex-direction: column;
}
.tso-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: #f8fafc;
    border-radius: 16px 16px 0 0;
}
.tso-modal-title {
    font-size: 17px;
    font-weight: 800;
    color: #08183a;
    margin: 0 0 3px;
    line-height: 1.3;
}
.tso-modal-subtitle {
    font-size: 12px;
    color: #64748b;
}
.tso-modal-close {
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    padding: 0 4px;
    transition: color .2s;
}
.tso-modal-close:hover {
    color: #ef4444;
}
.tso-modal-body {
    padding: 24px;
}
.tso-modal-chart-wrap {
    height: 280px;
    margin-bottom: 28px;
    position: relative;
}
.tso-modal-stats-title {
    font-size: 14px;
    font-weight: 700;
    color: #08183a;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tso-modal-table-scroll {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.tso-modal-stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}
.tso-modal-stats-table th,
.tso-modal-stats-table td {
    padding: 11px 16px;
    border-bottom: 1px solid #f1f5f9;
}
.tso-modal-stats-table th {
    background: #f8fafc;
    color: #08183a;
    font-weight: 700;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.tso-modal-stats-table tr:last-child td {
    border-bottom: none;
}
.tso-modal-price-val {
    font-weight: 800;
    color: #08183a;
    font-family: 'Poppins', sans-serif;
}
.tso-diff-up {
    color: #dc2626;
    font-weight: 700;
    background: #fef2f2;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11.5px;
    display: inline-block;
}
.tso-diff-down {
    color: #16a34a;
    font-weight: 700;
    background: #f0fdf4;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11.5px;
    display: inline-block;
}
.tso-diff-neutral {
    color: #64748b;
    font-size: 12px;
}
@keyframes tsoModalFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

/* =========================================================
   MODERN LIST STYLING (UL & OL) FOR OFFERS
   ========================================================= */
.tso-organic-content ul, 
.tso-organic-content ol {
    margin: 24px 0;
    padding: 0;
    list-style: none;
}
.tso-organic-content ul li, 
.tso-organic-content ol li {
    position: relative;
    margin-bottom: 14px;
    line-height: 1.7;
    color: #334155;
    font-size: 16px;
}

/* Custom UL Bullets */
.tso-organic-content ul li {
    padding-left: 32px;
}
.tso-organic-content ul li::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 10px;
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.12);
    transition: transform 0.2s ease;
}
.tso-organic-content ul li:hover::before {
    transform: scale(1.2);
    background-color: var(--accent-gold);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

/* Custom OL Numbers */
.tso-organic-content ol {
    counter-reset: tso-counter;
}
.tso-organic-content ol li {
    counter-increment: tso-counter;
    padding-left: 42px;
}
.tso-organic-content ol li::before {
    content: counter(tso-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 26px;
    height: 26px;
    background: #e0edff;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s ease;
}
.tso-organic-content ol li:hover::before {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 102, 255, 0.2);
}

/* Nested Lists Adjustment */
.tso-organic-content ul ul, 
.tso-organic-content ol ol, 
.tso-organic-content ul ol, 
.tso-organic-content ol ul {
    margin: 12px 0 12px 10px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .tso-title-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .tso-offer-header .single-title { font-size: 1.4rem; }
    .tso-hero-card { flex-direction: column; align-items: flex-start; }
    .tso-hero-act-box { text-align: left; width: 100%; }
    .tso-act-row { flex-wrap: wrap; }
    .tso-disc-grid { grid-template-columns: 1fr; }
    .tso-shot-table td:first-child { width: 45%; }
    .tso-modal { padding: 12px; }
    .tso-modal-body { padding: 16px; }
    .tso-modal-header { padding: 16px; }
    .tso-modal-chart-wrap { height: 210px; margin-bottom: 20px; }
    .tso-modal-title { font-size: 15px; }
    .tso-variant-pills { flex-direction: column; align-items: stretch; }
    .tso-variant-pill { justify-content: space-between; width: 100%; }
}