/* ==============================================================================
   Plans Page Styles 
   ============================================================================== */

/* ── Page Layout ── */
.plans-page {
    min-height: 100vh;
    background: #fafafa;
}

.plans-hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0d0d0d 100%);
    color: #fff;
    padding: 80px 24px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.plans-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(197, 160, 89, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 50%, rgba(197, 160, 89, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.plans-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.plans-hero-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--color-accent);
    margin-bottom: 16px;
    display: block;
}

.plans-hero-title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 20px;
}

.plans-hero-subtitle {
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    max-width: 540px;
    margin: 0 auto;
}


/* ── Billing Toggle ── */
.billing-toggle-wrap {
    display: flex;
    justify-content: center;
    margin: 40px auto 0;
}

.billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 6px 8px;
}

.billing-toggle-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 40px;
    user-select: none;
}

.billing-toggle-label.active {
    color: #fff;
    background: rgba(197, 160, 89, 0.2);
    font-weight: 600;
}

.billing-toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.billing-toggle-switch.active {
    background: var(--color-accent);
}

.billing-toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.billing-toggle-switch.active::after {
    transform: translateX(22px);
}

.save-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    background: rgba(197, 160, 89, 0.15);
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 4px;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}


/* ── Plan Cards Grid ── */
.plans-grid-section {
    max-width: 1280px;
    margin: -40px auto 0;
    padding: 0 24px 60px;
    position: relative;
    z-index: 2;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    overflow: hidden;
}

/* Individual Plan Card */
.plan-card {
    background: #fff;
    padding: 36px 24px 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    border-right: 1px solid #e8e8e8;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.plan-card:last-child {
    border-right: none;
}

.plan-card:hover {
    background: #fcfcfc;
}

.plan-card.highlighted {
    background: #fafaf5;
    box-shadow: 0 -4px 0 0 var(--color-accent);
    z-index: 1;
}

.plan-card.current-plan {
    box-shadow: 0 -4px 0 0 #1e8e3e;
}


/* Plan Badge */
.plan-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    background: var(--color-accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 14px;
    white-space: nowrap;
}

.plan-badge.current {
    background: #1e8e3e;
}


/* Plan Header */
.plan-name {
    font-family: var(--font-logo);
    font-size: 1.6rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    color: var(--color-text);
}

.plan-description {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--color-text-light);
    margin-bottom: 24px;
    min-height: 40px;
}


/* Pricing */
.plan-price-block {
    margin-bottom: 24px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.plan-currency {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text);
    align-self: flex-start;
    margin-top: 4px;
}

.plan-amount {
    font-family: var(--font-sans);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.plan-period {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-left: 2px;
}

.plan-annual-note {
    font-size: 0.75rem;
    color: var(--color-accent);
    margin-top: 6px;
    min-height: 18px;
}

.plan-amount-crossed {
    text-decoration: line-through;
    color: var(--color-text-light);
    font-size: 1rem;
    font-weight: 400;
    margin-left: 8px;
}


/* CTA Button */
.plan-cta {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border: 1px solid var(--color-text);
    background: transparent;
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: auto;
}

.plan-cta:hover {
    background: var(--color-text);
    color: #fff;
}

.plan-card.highlighted .plan-cta {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.plan-card.highlighted .plan-cta:hover {
    background: #b8903e;
    border-color: #b8903e;
}

.plan-card.current-plan .plan-cta {
    background: #1e8e3e;
    border-color: #1e8e3e;
    color: #fff;
    cursor: default;
}

.plan-cta.contact-cta {
    background: transparent;
    border-color: var(--color-text);
    color: var(--color-text);
}

.plan-cta.contact-cta:hover {
    background: var(--color-text);
    color: #fff;
}


/* ── Feature Comparison Table ── */
.features-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.features-header {
    text-align: center;
    margin-bottom: 48px;
}

.features-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 12px;
    color: var(--color-text);
}

.features-subtitle {
    font-size: 1rem;
    color: var(--color-text-light);
}


/* Feature Table */
.features-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e0e0e0;
}

.features-table th,
.features-table td {
    padding: 14px 20px;
    text-align: center;
    font-size: 0.85rem;
    border-bottom: 1px solid #eee;
}

.features-table th {
    background: #000;
    color: #fff;
    font-family: var(--font-logo);
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 16px 20px;
    position: sticky;
    top: 60px;
    z-index: 10;
}

.features-table th:first-child {
    text-align: left;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.features-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap;
}

.features-table tr:nth-child(even) {
    background: #fafafa;
}

.features-table tr:hover {
    background: #f5f5f0;
}


/* Category Header Row */
.feature-category-row td {
    background: #f0f0f0 !important;
    font-family: var(--font-logo);
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text) !important;
    text-align: left !important;
    padding: 12px 20px !important;
    border-bottom: 2px solid #ddd !important;
}


/* Feature value icons */
.feature-check {
    color: #1e8e3e;
    font-weight: 700;
    font-size: 1.1rem;
}

.feature-cross {
    color: #ccc;
    font-size: 1rem;
}

.feature-value {
    font-weight: 500;
    color: var(--color-text);
}

.feature-value.text-value {
    font-size: 0.8rem;
}


/* Highlighted column */
.features-table th.highlighted-col {
    background: var(--color-accent);
}

.features-table td.highlighted-col {
    background: rgba(197, 160, 89, 0.04);
}

.features-table tr:nth-child(even) td.highlighted-col {
    background: rgba(197, 160, 89, 0.08);
}


/* ── Bottom CTA ── */
.plans-bottom-cta {
    background: #000;
    color: #fff;
    padding: 80px 24px;
    text-align: center;
}

.plans-bottom-cta h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 16px;
}

.plans-bottom-cta p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 32px;
}

.plans-bottom-cta .plan-cta {
    display: inline-block;
    width: auto;
    border-color: #fff;
    color: #fff;
    padding: 16px 48px;
}

.plans-bottom-cta .plan-cta:hover {
    background: #fff;
    color: #000;
}


/* ── Confirmation Modal ── */
.confirm-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.confirm-modal-overlay.active {
    display: flex;
}

.confirm-modal {
    background: #fff;
    max-width: 440px;
    width: 90%;
    padding: 40px;
    text-align: center;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.confirm-modal h3 {
    font-family: var(--font-logo);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.confirm-modal p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 28px;
}

.confirm-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-modal-actions button {
    padding: 12px 28px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-sans);
}

.btn-confirm {
    background: var(--color-accent);
    color: #fff;
    border: none;
}

.btn-confirm:hover {
    background: #b8903e;
}

.btn-cancel-modal {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-cancel-modal:hover {
    background: #f0f0f0;
}


/* ── Toast Notification ── */
.toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: #000;
    color: #fff;
    padding: 16px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 2000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    max-width: 380px;
}

.toast.visible {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    border-left: 4px solid #1e8e3e;
}

.toast.error {
    border-left: 4px solid #d93025;
}


/* ── Loading State ── */
.plans-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px;
    flex-direction: column;
    gap: 16px;
}

.plans-loading-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.plans-loading-text {
    font-size: 0.85rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}


/* ── Responsive ── */
@media (max-width: 1100px) {
    .plans-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .plan-card:nth-child(4),
    .plan-card:nth-child(5) {
        border-top: 1px solid #e8e8e8;
    }
}

@media (max-width: 768px) {
    .plans-hero-title {
        font-size: 2.4rem;
    }

    .plans-grid {
        grid-template-columns: 1fr;
    }

    .plan-card {
        border-right: none;
        border-bottom: 1px solid #e8e8e8;
    }

    .plan-card:last-child {
        border-bottom: none;
    }

    .plan-badge {
        position: static;
        transform: none;
        display: inline-block;
        margin-bottom: 12px;
    }

    .features-table {
        font-size: 0.75rem;
    }

    .features-table th,
    .features-table td {
        padding: 10px 8px;
    }

    .features-table th:first-child,
    .features-table td:first-child {
        min-width: 120px;
    }

    .plans-hero {
        padding: 60px 16px 40px;
    }

    .billing-toggle {
        flex-wrap: wrap;
        justify-content: center;
    }
}