/* Pricing Section Styles - Design Layout */
.pricing-container {
    padding: var(--section-padding);
    margin-bottom: var(--section-margin);
    position: relative;
    z-index: 10;
}

.pricing-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 50px;
    align-items: stretch;
}

/* Card Base */
.pricing-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-radius: 30px;
    padding: 30px;
    width: 320px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    background: #eef2f9;
    /* Dimmer, more blueish */
}

/* Popular Card Gradient Border & Style */
.pricing-card.popular {
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    position: relative;
    padding: 30px;
    border-color: var(--accent-secondary);
    transition: all 0.3s ease;
}

.pricing-card.popular:hover {
    background: linear-gradient(to right, #e2ebf4, #dcd7af);
    /* Dimmer, more blueish */
}

/* Add gradient border using pseudo element */
.pricing-card.popular::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: var(--accent-secondary);
    border-radius: 34px;
    z-index: -1;
}

/* Popular Badge */
.popular-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Centers on top edge */
    background: var(--text-heading);
    color: var(--accent-primary);
    font-size: 0.70rem;
    font-weight: 800;
    padding: 6px 18px;
    border-radius: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 2;
}

/* Card Top Info */
.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: #888;
    font-size: 0.85rem;
    font-weight: 500;
}

.card-type {
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-dots {
    letter-spacing: 2px;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.3);
}

/* Card Header */
.card-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 30px;
}

.card-title {
    font-size: 1.8rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #111;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.2;
}

.card-subtitle {
    font-size: 0.95rem;
    color: #666;
    font-weight: 400;
    text-align: left;
    width: 100%;
}

/* Action Row (Button + Price) */
.card-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    /* Divider */
}

/* Action Column (Vertical stack for middle card) */
.card-action-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    /* Divider */
    width: 100%;
}

/* Buttons */
.card-btn {
    padding: 12px 20px;
    font-size: 0.90rem;
    font-weight: 600;
    border-radius: 25px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.outline-btn {
    background: transparent;
    border: 1px solid #111;
    color: #111;
}

.outline-btn:hover {
    background: #111;
    color: white;
}

.solid-btn {
    background: var(--text-heading);
    color: white;
    border: 1px solid var(--text-heading);
    box-shadow: 0 4px 15px rgba(28, 43, 75, 0.3);
}

.solid-btn:hover {
    background: var(--text-heading);
    border-color: var(--accent-primary);
    box-shadow: 0 12px 24px rgba(28, 43, 75, 0.4);
}

.tg-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

.price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Left align for consistency in column */
    width: 100%;
    margin-top: 10px;
}

.price-value {
    display: flex;
    align-items: flex-end;
    /* Align numbers to bottom */
    color: #111;
    line-height: 0.8;
    /* Tighten line height */
}

.price-value .prefix {
    font-size: 1rem;
    margin-right: 4px;
    color: #666;
    margin-bottom: 6px;
}

.price-value .currency {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.price-value .amount {
    font-family: 'Golos Bold', sans-serif;
    font-size: 2.2rem;
    /* Reduced to fit better inside the box max width */
    font-weight: 700;
    margin-left: 2px;
}

.price-value .period {
    font-size: 0.95rem;
    color: #666;
    margin-left: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    margin-bottom: 2px;
}

/* Adjust the slash appearance in HTML before rendering */
.price-value .period::before {
    content: '/';
    margin-left: 6px;
    margin-bottom: 0px;
}

.price-note {
    font-size: 0.75rem;
    color: #888;
    margin-top: 4px;
    text-align: left;
    width: 100%;
    line-height: 1.4;
    word-wrap: break-word;
    /* Ensure text breaks if it exceeds space */
    max-width: 100%;
}

/* Features List */
.feature-list {
    list-style: none;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.90rem;
    color: #333;
    line-height: 1.4;
}

.feature-list li i {
    color: #888;
    font-size: 0.70rem;
    margin-top: 4px;
    opacity: 0.7;
}

/* Ghost Card */
.pricing-card.ghost {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px dashed rgba(255, 255, 255, 0.4);
    box-shadow: none;
    opacity: 0.8;
}

.pricing-card.ghost:hover {
    transform: translateY(-5px);
    opacity: 1;
    background: rgba(238, 242, 249, 0.2);
    /* Dimmer, more blueish */
}

.pricing-card.ghost .card-title,
.pricing-card.ghost .price-value {
    color: var(--text-heading);
}

.pricing-card.ghost .card-subtitle,
.pricing-card.ghost .card-top,
.pricing-card.ghost .feature-list li {
    color: var(--text-heading);
}

.pricing-card.ghost .outline-btn {
    border-color: var(--text-heading);
    color: var(--text-heading);
}

.pricing-card.ghost .outline-btn:hover {
    background: var(--text-heading);
    color: #ffffff;
}

.pricing-card.ghost .feature-list li i {
    color: var(--text-heading);
}

/* Dark mode handling if applicable - assumes default background is light,
but we keep ghost card visible with css variables */
body.dark-mode .pricing-card:not(.ghost) {
    background: #1e1e24;
    border-color: #333;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

body.dark-mode .pricing-card:not(.ghost) .card-title,
body.dark-mode .pricing-card:not(.ghost) .price-value,
body.dark-mode .pricing-card:not(.ghost) .outline-btn {
    color: #fff;
    border-color: #fff;
}

body.dark-mode .pricing-card:not(.ghost) .outline-btn:hover {
    background: #fff;
    color: #1e1e24;
}

body.dark-mode .pricing-card:not(.ghost) .card-subtitle,
body.dark-mode .pricing-card:not(.ghost) .feature-list li {
    color: #ccc;
}

@media (max-width: 900px) {
    .pricing-card {
        width: calc(50% - 30px);
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }

    .pricing-card {
        width: 100%;
        max-width: 380px;
    }
}