/* ========================================
   AITOLIE - Pricing Section
   ======================================== */

.pricing {
    position: relative;
    padding: 120px 0;
    background: #0a0a0a;
    overflow: hidden;
    width: 100%;
}

.pricing>.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Diagonal Background Text */
.pricing__bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    width: 200%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
}

.pricing__bg-text-row {
    display: flex;
    white-space: nowrap;
    animation: diagonalScroll 25s linear infinite;
}

.pricing__bg-text-row:nth-child(2) {
    animation-direction: reverse;
    margin-top: 40px;
}

.pricing__bg-text-row span {
    font-size: clamp(80px, 12vw, 180px);
    font-weight: 900;
    color: #fff;
    margin-right: 80px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@keyframes diagonalScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Header */
.pricing__header {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}

/* Tabs */
.pricing__tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.pricing__tab {
    padding: 12px 32px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.pricing__tab:hover,
.pricing__tab.is-active {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}

/* Content */
.pricing__content {
    display: none;
    position: relative;
    z-index: 1;
}

.pricing__content.is-active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Grid */
.pricing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.pricing__grid--center {
    justify-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.pricing__grid--center .pricing__card {
    max-width: 320px;
    text-align: center;
}

.pricing__grid--center .pricing__card-header {
    flex-direction: column;
    align-items: center;
}

/* Card */
.pricing__card {
    background: linear-gradient(145deg, #151515 0%, #0d0d0d 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Card decorative corner gradient */
.pricing__card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(201, 169, 98, 0.08) 0%, transparent 70%);
    pointer-events: none;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.pricing__card:hover::after {
    opacity: 1;
}

.pricing__card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 169, 98, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.pricing__card--highlight {
    border-color: var(--gold);
    background: linear-gradient(145deg, #1a1714 0%, #0d0d0a 100%);
    position: relative;
}

.pricing__card--highlight::before {
    content: 'POPULAR';
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--gold);
    color: #000;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.1em;
    z-index: 2;
}

.pricing__card--promo {
    border-color: rgba(100, 200, 150, 0.4);
    background: linear-gradient(145deg, #0f1a14 0%, #0a0d0b 100%);
}

.pricing__card--small {
    grid-column: span 2;
}

.pricing__card--full {
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 0 auto;
}

/* Card Icon */
.pricing__card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.2) 0%, rgba(201, 169, 98, 0.05) 100%);
    border-radius: 12px;
    margin-bottom: 16px;
    color: var(--gold);
}

.pricing__card-icon svg {
    width: 24px;
    height: 24px;
}

/* Card Header */
.pricing__card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pricing__card-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

/* Card Description */
.pricing__card-desc {
    font-size: 13px;
    color: #ccc;
    /* Improved contrast from #888 */
    line-height: 1.8;
    /* Increased line-height from 1.6 */
    margin-bottom: 24px;
    /* Increased margin */
}

.pricing__card-sub {
    font-size: 12px;
    color: #888;
    display: block;
    margin-top: 4px;
}

.pricing__card-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #888;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    letter-spacing: 0.05em;
}

.pricing__card-badge--gold {
    background: var(--gold);
    color: #000;
}

/* Price Display */
.pricing__price {
    text-align: center;
    padding: 24px 0;
}

.pricing__price-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--gold);
    font-family: 'Inter', sans-serif;
}

.pricing__price-value small {
    font-size: 16px;
    font-weight: 400;
}

.pricing__card-note {
    text-align: center;
    font-size: 12px;
    color: #6a6;
}

/* List */
.pricing__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing__list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 13px;
}

.pricing__list li:last-child {
    border-bottom: none;
}

.pricing__list li span {
    color: #aaa;
}

.pricing__list li strong {
    color: #fff;
    font-weight: 500;
}

.pricing__list--promo li strong {
    color: #6a6;
}

.pricing__list--compact li {
    padding: 6px 0;
    font-size: 12px;
}

.pricing__list--inline {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.pricing__list--inline li {
    border-bottom: none;
    flex-direction: column;
    text-align: center;
    gap: 8px;
}

/* CTA */
.pricing__cta {
    text-align: center;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.pricing__cta-text {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
}

.btn--gold {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--gold) 0%, #a88f5c 100%);
    color: #000;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(201, 169, 98, 0.3);
}

.btn--gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 169, 98, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .pricing {
        padding: 80px 0;
    }

    .pricing__tabs {
        gap: 8px;
    }

    .pricing__tab {
        padding: 10px 20px;
        font-size: 12px;
    }

    .pricing__grid {
        grid-template-columns: 1fr;
    }

    .pricing__card--small {
        grid-column: span 1;
    }

    .pricing__card {
        padding: 20px;
    }

    .pricing__list--inline {
        flex-direction: column;
        gap: 16px;
    }

    .pricing__price-value {
        font-size: 28px;
    }

    .pricing__card--highlight::before {
        right: 16px;
        font-size: 9px;
    }
}

/* Detail Lists (Included/Excluded) */
.pricing__detail-lists {
    display: flex;
    gap: 24px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing__detail-group {
    flex: 1;
}

.pricing__detail-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.pricing__detail-label.text-ok {
    color: #4ade80;
}

.pricing__detail-label.text-ng {
    color: #f87171;
}

.pricing__detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing__detail-list li {
    font-size: 11px;
    color: #aaa;
    margin-bottom: 8px;
    padding-left: 18px;
    position: relative;
    line-height: 1.5;
}

.pricing__detail-list--ok li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4ade80;
    font-weight: bold;
}

.pricing__detail-list--ng li::before {
    content: '✕';
    position: absolute;
    left: 0;
    color: #f87171;
    font-size: 10px;
    top: 2px;
}

/* Responsive for lists */
@media (max-width: 480px) {
    .pricing__detail-lists {
        flex-direction: column;
        gap: 16px;
    }
}

/* Pricing Footnotes (B-2) */
.pricing__notes {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing__notes-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
    color: #666;
    font-size: 11px;
    line-height: 1.6;
}

.pricing__notes-list li {
    margin-bottom: 8px;
    padding-left: 1em;
    text-indent: -1em;
}

.pricing__notes-list strong {
    color: #888;
    font-weight: 600;
}

/* ========================================
   Template Card Styles (Self-service)
   ======================================== */
.pricing__card--template {
    border-color: rgba(100, 180, 255, 0.3);
    background: linear-gradient(145deg, #0d1520 0%, #0a0e14 100%);
}

.pricing__card--template::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
    border-radius: 16px 16px 0 0;
}

.pricing__card--template .pricing__card-badge {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.pricing__card-cta {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 24px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.4);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pricing__card-cta:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: #60a5fa;
}

/* Template Options Section */
.pricing__template-options {
    margin-top: 60px;
    padding: 32px;
    background: linear-gradient(145deg, #111 0%, #0a0a0a 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    position: relative;
    z-index: 1;
}

.pricing__template-options-title {
    font-size: 14px;
    font-weight: 600;
    color: #aaa;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.pricing__template-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.pricing__template-option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
}

.pricing__template-option-item span {
    font-size: 13px;
    color: #ccc;
}

.pricing__template-option-item strong {
    font-size: 14px;
    color: var(--gold);
    font-weight: 700;
}

@media (max-width: 768px) {
    .pricing__template-options-grid {
        grid-template-columns: 1fr;
    }
}