:root {
    --silver-color: #C0C0C0;
    --gold-color: #FFD700;
    --platinum-color: #E5E4E2;
    --primary-color: #4CAF50;
    --secondary-color: #2196F3;
    --dark-bg: #333;
    --light-bg: #f5f5f5;
    --border-radius: 8px;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --header-height: 70px;
}

.pricing-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #333;
}

.plan-duration-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 10px 0;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--header-height);
}

.sticky-header.visible { transform: translateY(0); }
.sticky-header .plan-duration-selector { margin-bottom: 0; }
body.sticky-active { padding-top: var(--header-height); }

.duration-btn {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.duration-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pricing-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.pricing-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    margin-bottom: 20px;
    position: relative;
}

.pricing-card:hover { transform: translateY(-5px); }

.card-header {
    padding: 20px;
    text-align: center;
    color: white;
}

.silver .card-header { background-color: var(--silver-color); color: #333; }
.gold .card-header { background-color: var(--gold-color); color: #333; }
.platinum .card-header { background-color: var(--platinum-color); color: #333; }

.tier-name { font-size: 24px; font-weight: bold; margin-bottom: 5px; }

.price-container {
    padding: 20px;
    text-align: center;
    background-color: #f9f9f9;
}

.price { font-size: 36px; font-weight: bold; margin-bottom: 5px; }
.price .currency { font-size: 20px; vertical-align: super; }
.price-period { color: #666; font-size: 14px; }

.features { padding: 20px; list-style: none; }
.features li { padding: 8px 0; border-bottom: 1px solid #eee; }
.features li:last-child { border-bottom: none; }
.features li::before { content: "✓"; color: var(--primary-color); margin-right: 10px; }

.cta-button {
    display: block;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    margin: 20px;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
}

.cta-button:hover { background-color: #45a049; }
.silver .cta-button { background-color: var(--silver-color); color: #333; }
.silver .cta-button:hover { background-color: #a8a8a8; }
.gold .cta-button { background-color: var(--gold-color); color: #333; }
.gold .cta-button:hover { background-color: #e6c200; }
.platinum .cta-button { background-color: var(--platinum-color); color: #333; }
.platinum .cta-button:hover { background-color: #c9c8c6; }

.most-popular {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    border-bottom-left-radius: var(--border-radius);
}

.savings-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff5722;
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: var(--border-radius);
    display: none;
}

@media (max-width: 600px) {
    .pricing-card { min-width: 100%; }
    .plan-duration-selector { flex-direction: column; align-items: center; }
    .duration-btn { width: 80%; text-align: center; }
    .sticky-header .plan-duration-selector { flex-direction: row; flex-wrap: wrap; }
    .sticky-header .duration-btn { width: auto; padding: 8px 12px; font-size: 14px; }
}