/* ============================================
   Mobile Tariffs Page — Premium Design
   tariffs.css v1.0
   ============================================ */

/* --- Hero --- */
.mt-hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    padding: 48px 0 36px;
    position: relative;
    overflow: hidden;
}
.mt-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 70% 20%, rgba(99,102,241,0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(139,92,246,0.12) 0%, transparent 50%);
    pointer-events: none;
}
.mt-hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    z-index: 1;
}
.mt-hero-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.mt-hero-title i { color: #818cf8; font-size: 1.5rem; }
.mt-hero-sub {
    font-family: var(--font-nav);
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
    margin: 0;
}
.mt-hero-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.mt-hero-stat {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 12px 20px;
    text-align: center;
    backdrop-filter: blur(8px);
}
.mt-hero-stat .mhs-num {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}
.mt-hero-stat .mhs-label {
    font-family: var(--font-nav);
    font-size: 0.72rem;
    color: rgba(255,255,255,0.6);
}
/* === Hero Roaming CTA (glass card) === */
.mt-hero-roaming {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    padding: 14px 22px 14px 16px;
    background: linear-gradient(135deg, rgba(14,165,233,.28) 0%, rgba(59,130,246,.18) 100%);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 16px;
    color: #fff !important;
    text-decoration: none !important;
    font-size: .92rem;
    font-family: var(--font-nav);
    box-shadow: 0 6px 20px rgba(14,165,233,.18), inset 0 1px 0 rgba(255,255,255,.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    position: relative;
    overflow: hidden;
    align-self: flex-start;
}
.mt-hero-roaming::before {
    content: '';
    position: absolute;
    top: 0; left: -60%;
    width: 40%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
    transform: skewX(-20deg);
    transition: left .6s ease;
}
.mt-hero-roaming:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(14,165,233,.3), inset 0 1px 0 rgba(255,255,255,.18);
    background: linear-gradient(135deg, rgba(14,165,233,.38) 0%, rgba(59,130,246,.28) 100%);
}
.mt-hero-roaming:hover::before { left: 120%; }
.mt-hero-roaming .mhr-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0ea5e9, #3b82f6);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(14,165,233,.35);
    font-size: 1rem;
    flex-shrink: 0;
}
.mt-hero-roaming .mhr-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    gap: 2px;
}
.mt-hero-roaming .mhr-title {
    font-size: .95rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: .01em;
}
.mt-hero-roaming .mhr-sub {
    font-size: .72rem;
    color: rgba(255,255,255,.7);
    font-family: var(--font-nav);
}
.mt-hero-roaming .mhr-arrow {
    margin-left: auto;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.12);
    border-radius: 50%;
    font-size: .65rem;
    transition: transform .2s ease, background .2s ease;
}
.mt-hero-roaming:hover .mhr-arrow {
    background: rgba(255,255,255,.25);
    transform: translateX(3px);
}

/* --- Provider Filter Bar --- */
.mt-providers {
    padding: 16px 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
}
.mt-prov-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.mt-prov-bar::-webkit-scrollbar { display: none; }
.mt-prov-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 12px;
    border: 2px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    white-space: nowrap;
    font-family: var(--font-nav);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    flex-shrink: 0;
}
.mt-prov-pill:hover {
    border-color: var(--prov-color, var(--primary));
}
.mt-prov-pill.active {
    border-color: var(--prov-color, var(--primary));
    background: color-mix(in srgb, var(--prov-color, var(--primary)) 8%, var(--surface));
    color: var(--prov-color, var(--primary));
    font-weight: 600;
}
.mt-prov-pill img {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    object-fit: contain;
    flex-shrink: 0;
}
.mt-prov-pill .mpp-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--prov-color, #888);
    flex-shrink: 0;
}

/* --- Main Content --- */
.mt-main { padding-bottom: 48px; }

/* --- Section Headers --- */
.mt-section-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 36px 0 20px;
}
.mt-section-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6366f1, #818cf8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99,102,241,0.25);
}
.mt-section-head h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin: 0;
    color: var(--text);
}
.mt-section-head .mt-section-badge {
    font-family: var(--font-nav);
    font-size: 0.72rem;
    background: var(--bg);
    color: var(--text-muted);
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 600;
}

/* --- Duration Tabs --- */
.mt-dur-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.mt-dur-tab {
    font-family: var(--font-nav);
    padding: 8px 18px;
    border-radius: 10px;
    border: 2px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.mt-dur-tab:hover {
    border-color: #6366f1;
    color: #6366f1;
}
.mt-dur-tab.active {
    border-color: #6366f1;
    background: color-mix(in srgb, #6366f1 8%, var(--surface));
    color: #6366f1;
    font-weight: 600;
}
.mt-dur-tab i { font-size: 0.8rem; }
.mt-dur-tab .mdt-count {
    font-family: 'Orbitron', monospace;
    font-size: 0.68rem;
    background: var(--bg);
    padding: 2px 6px;
    border-radius: 5px;
    font-weight: 700;
}
.mt-dur-tab.active .mdt-count {
    background: rgba(99,102,241,0.15);
    color: #6366f1;
}

/* --- Type Filter Pills --- */
.mt-type-pills {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}
.mt-type-pill {
    font-family: var(--font-nav);
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s;
}
.mt-type-pill:hover { border-color: #6366f1; color: #6366f1; }
.mt-type-pill.active {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
}

/* --- Tariff Cards Grid --- */
.mt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 16px;
}

/* Card */
.mt-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.25s, border-color 0.25s;
}
.mt-card:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    border-color: transparent;
}

/* Top color stripe */
.mt-card::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--card-color), color-mix(in srgb, var(--card-color) 50%, #fff));
}

/* Badges */
.mt-card-badges {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    padding: 6px 14px 0;
}
.mt-badge {
    font-family: var(--font-nav);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    color: #fff;
    line-height: 1.3;
}
.mt-badge--popular { background: var(--card-color); }
.mt-badge--promo { background: #ef4444; }
.mt-badge--leader { background: #059669; }
.mt-badge--unlimited { background: linear-gradient(135deg, #059669, #10b981); }

/* Card Head */
.mt-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 14px 12px;
}
.mt-card-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 2px;
    flex-shrink: 0;
    overflow: hidden;
}
.mt-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.mt-card-info {
    flex: 1;
    min-width: 0;
}
.mt-card-info h3 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mt-card-info .mci-sub {
    font-family: var(--font-nav);
    font-size: 0.7rem;
    color: var(--text-muted);
}
.mt-card-price {
    text-align: right;
    flex-shrink: 0;
}
.mt-card-price .mcp-amount {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--card-color);
    line-height: 1.2;
}
.mt-card-price .mcp-lari {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.mt-card-price .mcp-period {
    font-family: var(--font-nav);
    display: block;
    font-size: 0.62rem;
    color: var(--text-muted);
}

/* Card Body - Features */
.mt-card-body {
    padding: 0 14px 12px;
}
.mt-feat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.mt-feat:last-child { border-bottom: none; }
.mt-feat-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}
.mt-feat-icon--data { background: rgba(99,102,241,0.1); color: #6366f1; }
.mt-feat-icon--min { background: rgba(5,150,105,0.1); color: #059669; }
.mt-feat-icon--ext { background: rgba(234,88,12,0.1); color: #ea580c; }
.mt-feat-icon--sms { background: rgba(37,99,235,0.1); color: #2563eb; }
.mt-feat-label {
    font-family: var(--font-nav);
    font-size: 0.78rem;
    color: var(--text-muted);
    flex: 1;
}
.mt-feat-val {
    font-family: var(--font-nav);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}
.mt-feat-val--unlimited {
    color: #059669;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}
.mt-feat-val--unlimited i { font-size: 0.7rem; }

/* Data bar */
.mt-data-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}
.mt-data-bar-track {
    height: 6px;
    flex: 1;
    max-width: 80px;
    background: var(--bg);
    border-radius: 3px;
    overflow: hidden;
}
.mt-data-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s;
}

/* Card Footer */
.mt-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px 12px;
    border-top: 1px solid var(--border);
}
.mt-activation {
    font-family: 'Orbitron', monospace;
    font-size: 0.78rem;
    color: var(--text-muted);
    background: var(--bg);
    padding: 4px 12px;
    border-radius: 8px;
    letter-spacing: 0.5px;
}
.mt-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.mt-card-source {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-muted);
    background: var(--bg);
    font-size: 0.68rem;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.mt-card-source:hover { background: var(--border); color: var(--text); }
.mt-card-detail {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: var(--card-color, var(--primary));
    font-size: 0.68rem;
    text-decoration: none;
    transition: opacity .2s, transform .2s;
}
.mt-card-detail:hover { opacity: .85; transform: translateX(2px); }

/* Unlimited card glow */
.mt-card--unlimited {
    border-color: rgba(5,150,105,0.2);
    background: linear-gradient(135deg, rgba(5,150,105,0.02) 0%, var(--surface) 100%);
}
.mt-card--unlimited::before {
    background: linear-gradient(90deg, #059669, #10b981);
}

/* --- Comparison Section --- */
.mt-compare-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Sort tabs */
.mt-sort-tabs {
    display: flex;
    gap: 6px;
    margin-left: auto;
}
.mt-sort-tab {
    font-family: var(--font-nav);
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s;
}
.mt-sort-tab:hover { border-color: #6366f1; color: #6366f1; }
.mt-sort-tab.active {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
}
.mt-sort-tab i { margin-right: 4px; }

/* Table */
.mt-tbl {
    width: 100%;
    border-collapse: collapse;
}
.mt-tbl th,
.mt-tbl td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.mt-tbl th {
    font-family: var(--font-nav);
    background: var(--bg);
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
}
.mt-tbl th:hover { color: #6366f1; }
.mt-tbl th.sorted { color: #6366f1; }
.mt-tbl th .sort-arrow { font-size: 0.6rem; margin-left: 4px; opacity: 0.4; }
.mt-tbl th.sorted .sort-arrow { opacity: 1; }
.mt-tbl td {
    font-family: var(--font-nav);
    font-size: 0.85rem;
    color: var(--text);
}
.mt-tbl tr:last-child td { border-bottom: none; }

/* Provider cell with logo */
.mt-tbl-prov {
    display: flex;
    align-items: center;
    gap: 10px;
}
.mt-tbl-prov img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: contain;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 2px;
    flex-shrink: 0;
}
.mt-tbl-prov-name {
    font-weight: 600;
    color: var(--text);
}

/* Tariff name cell */
.mt-tbl-name {
    font-weight: 600;
}
.mt-tbl-leader {
    display: inline-block;
    font-size: 0.58rem;
    padding: 2px 8px;
    border-radius: 5px;
    color: #fff;
    margin-left: 8px;
    font-weight: 700;
    vertical-align: middle;
}

/* Price cell */
.mt-tbl-price {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 0.95rem;
}

/* Value cells */
.mt-tbl-unlimited {
    color: #059669;
    font-weight: 700;
}
.mt-tbl-best {
    background: rgba(5,150,105,0.05);
}

/* Row types */
.mt-tbl-row--unlimited td {
    background: rgba(5,150,105,0.03);
}
.mt-tbl-row--leader {
    border-left: 3px solid var(--leader-color, #6366f1);
}

/* Group dividers */
.mt-tbl-divider td {
    font-family: var(--font-heading);
    padding: 8px 16px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--bg);
    letter-spacing: 0.5px;
}
.mt-tbl-divider td i { margin-right: 6px; }

/* Activation code */
.mt-tbl-code {
    font-family: 'Orbitron', monospace;
    font-size: 0.78rem;
    color: var(--text-muted);
    background: var(--bg);
    padding: 3px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

/* --- Empty State --- */
.mt-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}
.mt-empty i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.3;
}
.mt-empty p {
    font-family: var(--font-nav);
    font-size: 0.92rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .mt-hero { padding: 32px 0 24px; }
    .mt-hero-title { font-size: 1.5rem; }
    .mt-hero-stats { justify-content: center; }
    .mt-grid { grid-template-columns: 1fr; }
    .mt-section-head { flex-wrap: wrap; }
    .mt-sort-tabs { margin-left: 0; width: 100%; }
    .mt-dur-tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
    .mt-dur-tabs::-webkit-scrollbar { display: none; }
    .mt-dur-tab { flex-shrink: 0; }
}
@media (max-width: 480px) {
    .mt-hero-title { font-size: 1.25rem; }
    .mt-grid { grid-template-columns: 1fr; }
    .mt-card-head { flex-wrap: wrap; }
    .mt-card-price { width: 100%; text-align: left; margin-top: 4px; }
    .mt-tbl th, .mt-tbl td { padding: 8px 10px; font-size: 0.78rem; }
    .mt-tbl-prov img { width: 22px; height: 22px; }
}
