* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f5f5f5;
    color: #333;
    min-height: 100vh;
}

/* Header */
.main-header {
    background: #2c3e50;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text {
    font-size: 28px;
    font-weight: 800;
    color: white;
    letter-spacing: 2px;
}

.logo-fitness {
    font-size: 12px;
    font-weight: 600;
    color: #e63946;
    letter-spacing: 3px;
    margin-top: -2px;
}

.main-nav {
    display: flex;
    gap: 35px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #e63946;
}

.btn-buy-header {
    background: #e63946;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-buy-header:hover {
    background: #d62839;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

/* Main Container */
.main-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Duration Tabs */
.duration-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
    border: 2px solid #333;
    border-radius: 50px;
    padding: 5px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    background: white;
}

.duration-tab {
    padding: 12px 35px;
    background: transparent;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 50px;
}

.duration-tab.active {
    background: #333;
    color: white;
}

/* Payment Type Cards */
.payment-type-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.payment-type-card {
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.payment-type-card:hover {
    border-color: #333;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.payment-type-card.active {
    border-color: #e63946;
    background: #fff5f5;
}

/* Payment type card gizleme */
.payment-type-card.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.radio-circle {
    width: 24px;
    height: 24px;
    border: 3px solid #ccc;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
    transition: all 0.3s;
}

.payment-type-card.active .radio-circle {
    border-color: #e63946;
}

.payment-type-card.active .radio-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #e63946;
    border-radius: 50%;
}

.payment-type-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.payment-type-content p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.discount-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #e63946;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Plans Wrapper */
.plans-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.plan-card {
    background: white;
    border-radius: 20px;
    padding: 35px 30px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    border: 3px solid transparent;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0,0,0,0.12);
}

.plan-card.selected {
    border-color: #e63946;
}

.plan-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 25px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.plan-name {
    font-size: 28px;
    font-weight: 800;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-price {
    font-size: 40px;
    font-weight: 800;
    color: #333;
    margin-bottom: 5px;
}

.plan-price-period {
    font-size: 14px;
    color: #999;
    font-weight: 500;
    margin-bottom: 25px;
    display: block;
}

.btn-select-plan {
    width: 100%;
    background: #e63946;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.btn-select-plan:hover {
    background: #d62839;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

.plan-features {
    list-style: none;
}

.plan-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

.plan-feature i {
    color: #e63946;
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Form Card */
.form-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    margin-top: 40px;
}

.form-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-title i {
    color: #e63946;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

input, select, textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
    background: white;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #e63946;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    width: 100%;
    background: #e63946;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.btn-submit:hover {
    background: #d62839;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(230, 57, 70, 0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading Spinner */
.loading {
    display: none;
    text-align: center;
    padding: 40px;
}

.loading.show {
    display: block;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #e63946;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#iyzipay-checkout-form {
    display: none;
    position: relative;
    z-index: 9999;
    margin: 20px auto;
    max-width: 800px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

#iyzipay-checkout-form.show {
    display: block !important;
}

/* Iyzipay iframe için */
#iyzipay-checkout-form iframe {
    width: 100% !important;
    min-height: 600px !important;
    border: none !important;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
}

.modal-overlay.show {
    display: block;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    animation: scaleIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-icon {
    font-size: 60px;
    margin-bottom: 20px;
    color: #4caf50;
}

.modal-content.error .modal-icon {
    color: #f44336;
}

.modal-content.info .modal-icon {
    color: #2196f3;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.modal-message {
    font-size: 15px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.modal-close-btn {
    background: #e63946;
    color: white;
    padding: 14px 40px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-close-btn:hover {
    background: #d62839;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(230, 57, 70, 0.3);
}

/* Footer */
.main-footer {
    background: #2c3e50;
    padding: 30px 0;
    margin-top: 60px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background: #e63946;
    transform: translateY(-3px);
}

/* Payment Details Section */
.payment-details {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border: 3px solid #e63946;
    border-radius: 20px;
    padding: 35px;
    margin: 30px 0;
    animation: slideIn 0.5s ease;
}

.payment-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(230, 57, 70, 0.2);
}

.payment-details-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-details-title i {
    color: #e63946;
    font-size: 24px;
}

.change-plan-btn {
    background: white;
    color: #e63946;
    border: 2px solid #e63946;
    padding: 10px 25px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.change-plan-btn:hover {
    background: #e63946;
    color: white;
    transform: translateY(-2px);
}

.payment-summary {
    display: grid;
    gap: 15px;
    margin-bottom: 25px;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.payment-label {
    color: #666;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-label i {
    color: #e63946;
    font-size: 14px;
}

.payment-value {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.payment-highlight {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 3px 15px rgba(230, 57, 70, 0.1);
}

.total-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 3px solid rgba(230, 57, 70, 0.2);
    margin-top: 15px;
}

.total-label {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.total-value {
    font-size: 32px;
    font-weight: 800;
    color: #e63946;
}

.payment-info {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 18px;
    border-radius: 10px;
    margin-top: 20px;
}

.payment-info p {
    margin: 0;
    color: #856404;
    font-size: 13px;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.payment-info i {
    color: #ffc107;
    margin-top: 2px;
    flex-shrink: 0;
}

.plan-features-box {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
}

.plan-features-box h4 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-features-box h4 i {
    color: #e63946;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    padding: 12px 0;
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list i {
    color: #4caf50;
    font-size: 14px;
    flex-shrink: 0;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 10px;
}

.badge-success {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

.badge-warning {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Popup/Checkout Form */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-nav {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 15px;
    }
    
    .duration-tabs {
        flex-wrap: wrap;
        border-radius: 15px;
    }
    
    .duration-tab {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .payment-type-section {
        grid-template-columns: 1fr;
    }
    
    .plans-wrapper {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .payment-details-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 24px;
    }
    
    .plan-name {
        font-size: 24px;
    }
    
    .plan-price {
        font-size: 32px;
    }
    
    .form-card {
        padding: 25px;
    }
    
    .modal-content {
        padding: 35px 25px;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state i {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
    color: #666;
}

/* İndirim badge'i - Plan kartı üzerinde */
.discount-badge-plan {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #ff9800;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 1;
}

/* Çizili fiyat container */
.plan-price-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

/* Çizili normal fiyat */
.plan-price-original {
    font-size: 24px;
    font-weight: 600;
    color: #999;
    text-decoration: line-through;
}

/* İndirimli fiyat vurgusu */
.plan-card .plan-price {
    color: #e63946;
}

/* Ödeme detaylarında çizili fiyat */
.payment-value-striked {
    text-decoration: line-through;
    color: #999;
}

/* İndirim satırı */
.payment-row-discount {
    background: #fff3cd;
    padding: 12px;
    border-radius: 10px;
    margin: 10px 0;
}

.payment-value-discount {
    color: #28a745;
    font-weight: 800;
}

/* Tasarruf badge'i */
.savings-badge {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.savings-badge i {
    font-size: 20px;
}

/* Peşin ödeme için özel plan kartı stili */
.plan-card[data-plan-ref*="PESIN"] {
    border: 2px solid #ff9800;
}

.plan-card[data-plan-ref*="PESIN"]:hover {
    border-color: #f57c00;
    box-shadow: 0 10px 35px rgba(255, 152, 0, 0.2);
}

/* Duration tab geçiş animasyonu */
.duration-tab {
    padding: 12px 35px;
    background: transparent;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease; /* ← Mevcut satır */
    border-radius: 50px;
    opacity: 1; /* ← YENİ */
    transform: scale(1); /* ← YENİ */
}

/* Gizli tab stili */
.duration-tab.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* Discount Code Section */
.discount-code-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    border: 2px dashed #e0e0e0;
}

.discount-input-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.discount-input-wrapper input {
    flex: 1;
    text-transform: uppercase;
}

.btn-apply-discount {
    background: #28a745;
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-apply-discount:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.btn-apply-discount:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.discount-message {
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    display: none;
    animation: slideIn 0.3s ease;
}

.discount-message.show {
    display: block;
}

.discount-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.discount-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.discount-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.discount-message i {
    margin-right: 8px;
}

/* Discount Applied Badge */
.discount-applied-badge {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.discount-applied-badge i {
    font-size: 16px;
}

/* Discount row in payment details */
.discount-row {
    background: #d4edda;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    border-left: 4px solid #28a745;
}

.discount-row .payment-label {
    color: #155724;
    font-weight: 600;
}

.discount-row .payment-value {
    color: #28a745;
    font-weight: 800;
    font-size: 18px;
}

