/* ========== GLOBAL RESET FOR THIS PAGE ========== */
html { overflow-x: hidden; }

.pricing-container *,
.pricing-container *::before,
.pricing-container *::after {
    box-sizing: border-box;
}

.pricing-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
    width: 100%;
}

/* Prevent Bootstrap's default body/row overflow causing right gap */
body {
    overflow-x: hidden;
}

.pricing-container .row {
    margin-left: 0;
    margin-right: 0;
}

/* ========== HEADER SECTION ========== */
.pricing-hero {
    text-align: center;
    padding: 60px 0 48px;
    position: relative;
}

.pricing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 24px;
}

.hero-badge i {
    color: var(--primary);
    font-size: 16px;
}

.pricing-hero h1 {
    font-weight: 800;
    font-size: clamp(28px, 5vw, 56px);
    line-height: 1.1;
    color: var(--dark);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.pricing-hero p {
    font-size: clamp(15px, 2vw, 20px);
    color: var(--gray-600);
    max-width: 640px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.exchange-rate {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border: 1px solid #BFDBFE;
    padding: 12px 28px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 16px;
    color: var(--primary);
}

/* ========== FEATURE BOX (Standard Job Posting Card) ========== */
.feature-box {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 0;
    box-shadow: var(--shadow-lg);
    margin-bottom: 48px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.feature-box:hover {
    box-shadow: 0 12px 36px rgba(0,0,0,0.1);
    border-color: var(--gray-300);
}

.feature-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 28px 24px;
    color: white;
    position: relative;
    overflow: hidden;
}

.feature-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.feature-header-content {
    position: relative;
    z-index: 2;
}

.feature-title {
    font-size: clamp(18px, 3vw, 26px);
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.feature-title i {
    font-size: clamp(22px, 3vw, 30px);
}

.feature-price-tag {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 6px;
}

.feature-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

.feature-content {
    padding: 24px 20px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-100);
    flex-wrap: wrap;
}

.section-header i {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.section-header h3 {
    font-size: clamp(14px, 2.5vw, 18px);
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    line-height: 1.3;
}

/* Features grid — 2 col on tablet, 1 col on mobile */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    margin-bottom: 32px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.feature-item:hover {
    background: white;
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.feature-item i {
    color: var(--primary);
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.feature-item-content {
    flex: 1;
    min-width: 0;
}

.feature-item-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 2px;
}

.feature-item-desc {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
    margin: 0;
}

/* Distribution Section */
.distribution-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #bfdbfe;
    border-radius: var(--radius-md);
    padding: 20px 16px;
    margin-top: 24px;
}

.distribution-header {
    text-align: center;
    margin-bottom: 20px;
}

.distribution-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.distribution-title {
    font-size: clamp(13px, 2vw, 16px);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.distribution-subtitle {
    font-size: 13px;
    color: var(--gray-600);
}

/* Distribution grid — 3 col tablet, 2 col mobile */
.distribution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.distribution-item {
    background: white;
    border: 1px solid #bfdbfe;
    padding: 12px 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.distribution-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.distribution-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: var(--gray-50);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.distribution-icon.web    { background: #f1f5f9; color: #64748b; }
.distribution-icon.facebook { background: #eff6ff; color: #1877F2; }
.distribution-icon.telegram { background: #eff6ff; color: #0088CC; }
.distribution-icon.whatsapp { background: #f0fdf4; color: #059669; }

.distribution-info {
    flex: 1;
    min-width: 0;
}

.distribution-info-label {
    font-size: 11px;
    color: var(--gray-600);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.distribution-info-value {
    font-size: clamp(12px, 1.8vw, 15px);
    font-weight: 700;
    color: var(--dark);
    white-space: nowrap;
}

.total-reach-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    padding: 16px;
    border-radius: 10px;
    margin-top: 20px;
}

.total-reach-banner-text {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}

.total-reach-number {
    font-size: 28px;
    font-weight: 800;
    display: block;
    margin-top: 4px;
}

/* ========== AI SCREENING HERO CARD ========== */
.ai-screening-hero {
    background: linear-gradient(135deg, var(--dark) 0%, #1e3a5f 100%);
    border-radius: var(--radius-lg);
    padding: 40px 24px;
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.ai-screening-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.ai-badge-ribbon {
    position: absolute;
    top: 28px;
    right: -35px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 900;
    padding: 6px 45px;
    transform: rotate(45deg);
    letter-spacing: 1.5px;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.4);
}

.ai-content {
    position: relative;
    z-index: 2;
}

.ai-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60A5FA;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.ai-title-section h2 {
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ai-title-section h2 i {
    color: var(--primary);
    font-size: clamp(24px, 4vw, 38px);
}

.ai-price-display {
    font-size: clamp(36px, 6vw, 48px);
    font-weight: 800;
    color: #60A5FA;
    margin-bottom: 8px;
}

.ai-price-subtext {
    color: #94A3B8;
    font-size: 15px;
    margin-bottom: 20px;
}

.ai-description {
    color: #CBD5E1;
    font-size: 15px;
    line-height: 1.7;
}

.ai-description strong {
    color: white;
    font-weight: 600;
}

.ai-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.ai-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: #E2E8F0;
}

.ai-feature-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60A5FA;
    font-size: 18px;
    flex-shrink: 0;
}

.ai-feature-content h4 {
    font-size: 15px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.ai-feature-content p {
    font-size: 13px;
    color: #94A3B8;
    margin: 0;
    line-height: 1.5;
}

/* ========== PROMOTION SECTION ========== */
.promotion-section {
    margin: 60px 0 48px;
}

.promotion-card {
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
    border: 3px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 32px 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 102, 255, 0.15);
}

.promotion-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.promotion-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.promotion-badge i {
    font-size: 14px;
}

.promotion-icon-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

.promotion-icon-bg {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 32px rgba(0, 102, 255, 0.25);
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.promotion-icon-bg:hover {
    transform: rotate(0deg) scale(1.05);
}

.promotion-icon-bg i {
    font-size: 42px;
    color: white;
}

.promotion-title {
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
    text-align: center;
}

.promotion-price {
    font-size: clamp(30px, 5vw, 42px);
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    margin-bottom: 14px;
}

.promotion-duration {
    font-size: clamp(16px, 2.5vw, 20px);
    font-weight: 600;
    color: var(--gray-600);
}

.promotion-description {
    font-size: clamp(14px, 2vw, 17px);
    line-height: 1.7;
    color: var(--gray-700);
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}

.promotion-description strong {
    color: var(--dark);
    font-weight: 700;
}

.promotion-features {
    background: white;
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    box-shadow: var(--shadow-md);
    margin-top: 24px;
}

.promotion-features-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    text-align: center;
}

.promotion-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.promotion-feature-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.promotion-feature-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border: 2px solid var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
    flex-shrink: 0;
}

.promotion-feature-content h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.promotion-feature-content p {
    font-size: 13px;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.5;
}

/* ========== CREDIT CARDS ========== */
.credit-section-header {
    text-align: center;
    margin: 48px 0 32px;
}

.credit-section-header h3 {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
}

.credit-section-header p {
    font-size: 15px;
    color: var(--gray-600);
}

.credit-card {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 28px 18px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    height: 100%;
}

.credit-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0, 102, 255, 0.1);
}

.credit-card.popular {
    background: linear-gradient(135deg, #F0F9FF 0%, #DBEAFE 100%);
    border-color: var(--primary);
    border-width: 3px;
}

.credit-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    display: block;
}

.credit-badge.starter   { color: var(--gray-600); }
.credit-badge.popular   { color: var(--primary); }
.credit-badge.best-value { color: var(--dark); }

.credit-amount {
    font-size: clamp(40px, 6vw, 48px);
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
    margin-bottom: 6px;
}

.credit-label {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 16px;
}

.credit-price {
    font-size: clamp(20px, 3vw, 24px);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 18px;
}

.credit-card.discount .old-price {
    display: block;
    font-size: 15px;
    color: var(--gray-600);
    text-decoration: line-through;
    margin-bottom: 6px;
}

.discount-badge {
    position: absolute;
    top: -12px;
    right: -8px;
    background: var(--dark);
    color: white;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
    z-index: 10;
    white-space: nowrap;
}

.btn-buy {
    width: 100%;
    background: var(--dark);
    color: white;
    padding: 13px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-buy:hover {
    background: var(--dark-lighter);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
}

.credit-card.popular .btn-buy {
    background: var(--primary);
}

.credit-card.popular .btn-buy:hover {
    background: var(--primary-dark);
}

/* ========== RESPONSIVE BREAKPOINTS ========== */

/* Tablet: 769px – 992px */
@media (max-width: 992px) {
    .feature-content { padding: 20px 18px; }
    .feature-header  { padding: 24px 20px; }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .distribution-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ai-screening-hero { padding: 32px 20px; }
    .ai-features-grid  { grid-template-columns: 1fr; }

    .promotion-card { padding: 28px 18px; }
}

/* Mobile: ≤ 768px */
@media (max-width: 768px) {
    .pricing-container { padding: 0 12px; }

    /* Prevent any child from overflowing the viewport */
    .feature-box,
    .ai-screening-hero,
    .promotion-card,
    .distribution-section,
    .distribution-grid,
    .features-grid {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    /* Kill Bootstrap col padding that causes the right gap */
    .pricing-container [class*="col-"] {
        padding-left: 8px;
        padding-right: 8px;
    }

    /* Feature Box Header */
    .feature-header { padding: 20px 16px; }
    .feature-price-tag { font-size: 28px; }
    .feature-title { font-size: 18px; gap: 8px; }

    /* Features grid → single column */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .feature-content { padding: 18px 14px; }

    /* Distribution grid → 2 col */
    .distribution-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .distribution-section { padding: 16px 12px; }

    .distribution-item { padding: 10px 8px; gap: 8px; }
    .distribution-icon { width: 32px; height: 32px; min-width: 32px; font-size: 14px; }
    .distribution-info-value { font-size: 12px; }
    .distribution-info-label { font-size: 10px; }

    /* AI Card */
    .ai-screening-hero { padding: 28px 16px; }
    .ai-badge-ribbon { top: 20px; right: -38px; font-size: 9px; padding: 5px 42px; }
    .ai-features-grid { grid-template-columns: 1fr; gap: 14px; }
    .ai-title-section h2 { font-size: 24px; }

    /* Promotion */
    .promotion-card { padding: 24px 14px; }
    .promotion-features { padding: 18px 14px; }

    /* Credit Cards — stack full width */
    .credit-card { padding: 24px 16px; }
    .discount-badge { top: -10px; right: -4px; font-size: 10px; padding: 4px 10px; }

    /* Pricing hero */
    .pricing-hero { padding: 40px 0 32px; }
}

/* Extra small: ≤ 480px */
@media (max-width: 480px) {
    .features-grid { grid-template-columns: 1fr; }

    /* Distribution → single column on very small screens */
    .distribution-grid { grid-template-columns: 1fr 1fr; }

    .feature-item { padding: 12px 10px; }
    .feature-item i { font-size: 16px; }

    .exchange-rate { padding: 10px 18px; font-size: 14px; }

    .section-header h3 { font-size: 13px; }
}