/* ==========================================================================
   Erenler Vakfı - Aylık Bağış Sayfası
   Kurumsal Renkler: #00A5C8 (açık mavi), #003D76 (koyu mavi)
   ========================================================================== */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #003D76;
    --primary-light: #00A5C8;
    --primary-dark: #002a52;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --success: #10b981;
    --error: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

/* Erişilebilirlik: Görsel olarak gizli ama ekran okuyuculara açık */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: 'Gowun Dodum', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    min-height: 100vh;
    color: var(--gray-800);
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 540px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    text-align: center;
    padding: 30px 0;
}

.logo {
    max-width: 198px;
    height: auto;
    margin-bottom: 20px;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

/* Intro Text */
.intro-text {
    text-align: center;
    margin-bottom: 24px;
}

.intro-text p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--gray-600);
}

.header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.header .subtitle {
    font-size: 16px;
    color: var(--gray-500);
    font-weight: 400;
}

/* Form */
.donation-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 24px;
}

.form-section {
    margin-bottom: 28px;
}

.form-section:last-of-type {
    margin-bottom: 20px;
}

.section-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Amount Buttons */
.amount-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.amount-btn {
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 16px;
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Gowun Dodum', sans-serif;
}

.amount-btn:hover {
    border-color: var(--primary-light);
    background: rgba(0, 165, 200, 0.05);
    transform: translateY(-2px);
}

.amount-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

/* Custom Amount */
.custom-amount {
    position: relative;
    margin-bottom: 8px;
}

.currency-symbol {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-400);
}

.custom-amount input {
    width: 100%;
    padding: 16px 16px 16px 40px;
    font-size: 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    transition: var(--transition);
    background: var(--white);
    font-family: 'Gowun Dodum', sans-serif;
}

.custom-amount input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(0, 165, 200, 0.15);
}

.custom-amount input::placeholder {
    color: var(--gray-400);
    font-weight: 400;
}

.amount-note {
    font-size: 13px;
    color: var(--gray-500);
    text-align: center;
}

/* Form Groups */
.form-group {
    margin-bottom: 16px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-group .required {
    color: var(--error);
}

.form-group .optional {
    color: var(--gray-400);
    font-weight: 400;
    font-size: 13px;
}

/* Referans Ekle Butonu */
.referans-toggle {
    margin-bottom: 12px;
}

.referans-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px dashed var(--gray-300);
    color: var(--gray-500);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.referans-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
    background: rgba(0, 165, 200, 0.05);
}

.referans-btn.active {
    border-color: var(--error);
    color: var(--error);
}

.referans-btn.active:hover {
    background: rgba(239, 68, 68, 0.05);
}

.referans-btn svg {
    flex-shrink: 0;
}

.referans-field {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Telefon input wrapper - ülke kodu + numara */
.phone-input-wrapper {
    display: flex;
    gap: 8px;
}

.country-code-select {
    width: 110px;
    padding: 14px 8px;
    font-size: 15px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
    font-family: 'Gowun Dodum', sans-serif;
    cursor: pointer;
    flex-shrink: 0;
}

.country-code-select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(0, 165, 200, 0.15);
}

.phone-input-wrapper input {
    flex: 1;
}

.phone-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--gray-400);
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    transition: var(--transition);
    background: var(--white);
    font-family: 'Gowun Dodum', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(0, 165, 200, 0.15);
}

.form-group input.error {
    border-color: var(--error);
    background-color: rgba(239, 68, 68, 0.05);
}

.form-group input.error:focus {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.custom-amount input.error {
    border-color: var(--error);
    background-color: rgba(239, 68, 68, 0.05);
}

.custom-amount input.error:focus {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-group input::placeholder {
    color: var(--gray-400);
}

/* KVKK Section */
.kvkk-section {
    margin-bottom: 20px;
}

.kvkk-info {
    font-size: 11px;
    color: var(--gray-400);
    text-align: center;
    line-height: 1.6;
}

.kvkk-info a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
}

.kvkk-info a:hover {
    text-decoration: underline;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 12px;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid var(--gray-300);
    border-radius: 6px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.checkbox-container input:checked + .checkmark {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-color: var(--primary);
}

.checkbox-container input:checked + .checkmark::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.checkbox-text {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.5;
}

.checkbox-text a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
}

.checkbox-text a:hover {
    text-decoration: underline;
}

/* Info Box */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(0, 165, 200, 0.08);
    border-radius: var(--radius);
    margin-bottom: 24px;
    border-left: 4px solid var(--primary-light);
}

.info-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    color: var(--primary-light);
    margin-top: 2px;
}

.info-box p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.5;
}

/* Form Error Message */
.form-error-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 1px solid #ef4444;
    border-radius: 12px;
    margin-bottom: 20px;
    animation: shake 0.5s ease-in-out;
}

.form-error-message svg {
    width: 24px;
    height: 24px;
    stroke: #dc2626;
    flex-shrink: 0;
}

.form-error-message span {
    color: #991b1b;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 18px 24px;
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    font-family: 'Gowun Dodum', sans-serif;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.submit-btn .btn-icon {
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

.submit-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Security Badges */
.security-badges {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 500;
}

.badge svg {
    width: 18px;
    height: 18px;
    color: var(--success);
}

/* Footer */
.footer {
    margin-top: auto;
    padding-top: 32px;
    border-top: 1px solid var(--gray-200);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.8;
}

.footer-section a {
    color: var(--gray-600);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 16px;
}

.footer-links {
    margin-top: 8px;
}

.footer-links a {
    color: var(--gray-500);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.payment-logos {
    display: flex;
    justify-content: center;
    gap: 16px;
    align-items: center;
}

.payment-logo {
    height: 24px;
    opacity: 0.6;
    transition: var(--transition);
}

.payment-logo:hover {
    opacity: 1;
}

.lidio-text {
    font-size: 13px;
    color: var(--gray-500);
}

.lidio-text strong {
    color: var(--gray-700);
    font-weight: 600;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    transform: translateY(-20px);
    transition: var(--transition);
    box-shadow: var(--shadow-xl);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    font-size: 24px;
    color: var(--gray-500);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-body h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 16px;
}

.modal-body h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-top: 20px;
    margin-bottom: 8px;
}

.modal-body p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 12px;
}

.modal-body ul {
    margin-left: 20px;
    margin-bottom: 12px;
}

.modal-body li {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 4px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--gray-200);
    text-align: right;
}

.modal-btn {
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.modal-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.donation-form {
    animation-delay: 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.security-badges {
    animation-delay: 0.4s;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 16px;
    }
    
    .header {
        padding: 20px 0;
    }
    
    .logo {
        max-width: 150px;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .donation-form {
        padding: 24px 20px;
    }
    
    .amount-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .amount-btn {
        padding: 14px;
        font-size: 16px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .security-badges {
        gap: 16px;
    }
    
    .badge {
        font-size: 12px;
    }
}

/* Focus States for Accessibility */
.amount-btn:focus,
.submit-btn:focus,
.modal-btn:focus,
.modal-close:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 165, 200, 0.4);
}

/* Number input arrows hide */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* ========================================
   BANKA BİLGİLERİ / IBAN BÖLÜMÜ
   ======================================== */

.bank-info {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
}

.bank-info h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
    color: var(--gray-600);
}

.bank-details {
    background: var(--white);
    border-radius: var(--radius);
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
}

.bank-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
}

.bank-row:last-child {
    border-bottom: none;
}

.bank-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-500);
    min-width: 70px;
    flex-shrink: 0;
}

.bank-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    flex: 1;
    cursor: pointer;
    transition: var(--transition);
    word-break: break-all;
}

.bank-value:hover {
    color: var(--primary);
}

.copy-btn {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Gowun Dodum', sans-serif;
    color: var(--primary);
    background: rgba(0, 165, 200, 0.1);
    border: 1px solid rgba(0, 165, 200, 0.2);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    white-space: nowrap;
}

.copy-btn:hover {
    background: rgba(0, 165, 200, 0.15);
    border-color: rgba(0, 165, 200, 0.3);
}

.copy-btn.copied {
    background: #10b981;
    border-color: #10b981;
    color: var(--white);
}

/* Mobil için IBAN bölümü */
@media (max-width: 480px) {
    .bank-info {
        padding: 20px 16px;
    }
    
    .bank-row {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .bank-label {
        min-width: 100%;
        font-size: 12px;
    }
    
    .bank-value {
        font-size: 13px;
        flex: 1;
    }
    
    .copy-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* ==========================================================================
   Ödeme iframe Modal
   ========================================================================== */
.payment-modal-content {
    width: 95%;
    max-width: 550px;
    height: 85vh;
    max-height: 750px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    flex-shrink: 0;
}

.modal-header .modal-title {
    margin: 0;
    font-size: 18px;
    color: var(--primary);
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 300;
    color: var(--gray-500);
    background: none;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.payment-modal-body {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.payment-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--white);
    gap: 16px;
}

.payment-loading p {
    font-size: 14px;
    color: var(--gray-500);
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary-light);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#paymentIframe,
#threeDSecureFrame {
    width: 100%;
    height: 100%;
    border: none;
    display: none;
}

#paymentIframe.loaded,
#threeDSecureFrame.loaded {
    display: block;
}

/* Payment Error Message */
.payment-error {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--white);
    padding: 40px;
    text-align: center;
    gap: 16px;
}

.payment-error-icon {
    width: 64px;
    height: 64px;
    background: #fee2e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.payment-error h4 {
    font-size: 18px;
    color: var(--gray-800);
    margin: 0;
}

.payment-error p {
    font-size: 14px;
    color: var(--gray-500);
    margin: 0;
}

.payment-error-btn {
    margin-top: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Gowun Dodum', sans-serif;
    color: var(--white);
    background: var(--primary);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.payment-error-btn:hover {
    background: var(--primary-dark);
}

/* Mobil için Payment Modal */
@media (max-width: 480px) {
    .payment-modal-content {
        width: 100%;
        height: 100%;
        max-height: none;
        border-radius: 0;
    }
    
    .modal-header {
        padding: 12px 16px;
    }
    
    .modal-header .modal-title {
        font-size: 16px;
    }
}

/* ==========================================================================
   Kart Bilgileri Formu
   ========================================================================== */
.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

#kartNo {
    font-family: 'Gowun Dodum', sans-serif;
    font-size: 18px;
    letter-spacing: 2px;
}

#sonKullanma,
#cvv {
    font-family: 'Gowun Dodum', sans-serif;
    font-size: 16px;
    text-align: center;
    letter-spacing: 1px;
}

.card-info-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 165, 200, 0.08);
    border-radius: var(--radius);
    margin-top: 12px;
}

.card-info-note svg {
    flex-shrink: 0;
    color: var(--primary-light);
    margin-top: 2px;
}

.card-info-note span {
    font-size: 12px;
    color: var(--gray-600);
    line-height: 1.5;
}

/* Kart inputları - hata durumu */
#kartNo.error,
#sonKullanma.error,
#cvv.error,
#kartIsim.error {
    border-color: var(--error);
    background: #fef2f2;
}

@media (max-width: 480px) {
    .form-row {
        flex-direction: row;
        gap: 12px;
    }
    
    #kartNo {
        font-size: 16px;
        letter-spacing: 1px;
    }
}

/* ==========================================================================
   KREDİ KARTI ANİMASYONU
   ========================================================================== */

.credit-card-container {
    perspective: 1000px;
    margin-bottom: 24px;
}

.credit-card {
    position: relative;
    width: 100%;
    max-width: 272px;
    height: 160px;
    margin: 0 auto;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.credit-card.flipped {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.card-front {
    background: linear-gradient(135deg, #003D76 0%, #00A5C8 50%, #003D76 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-back {
    background: linear-gradient(135deg, #003D76 0%, #00A5C8 50%, #003D76 100%);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-chip {
    width: 40px;
    height: 32px;
}

.card-type {
    height: 32px;
    display: flex;
    align-items: center;
}

.card-type img {
    height: 30px;
    width: auto;
}

.card-type .visa-logo {
    font-size: 24px;
    font-weight: bold;
    font-style: italic;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.card-type .mastercard-logo {
    display: flex;
    gap: 0;
}

.card-type .mastercard-logo span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.card-type .mastercard-logo span:first-child {
    background: #eb001b;
    margin-right: -8px;
}

.card-type .mastercard-logo span:last-child {
    background: #f79e1b;
    opacity: 0.9;
}

.card-type .troy-logo {
    font-size: 18px;
    font-weight: bold;
    color: #00a0e3;
    background: white;
    padding: 4px 8px;
    border-radius: 4px;
}

.card-number {
    font-size: 17px;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    word-spacing: 6px;
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.card-holder,
.card-expiry {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-label {
    font-size: 8px;
    text-transform: uppercase;
    opacity: 0.7;
    letter-spacing: 0.5px;
}

.card-value {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-bank {
    position: absolute;
    top: 8px;
    right: 52px;
    font-size: 9px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Kart Arka Yüz */
.card-stripe {
    width: 100%;
    height: 40px;
    background: #000;
    margin-top: 24px;
}

.card-cvv-area {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 16px;
    gap: 6px;
}

.cvv-label {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
}

.cvv-band {
    width: 60%;
    height: 28px;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-style: italic;
    color: #333;
}

/* Kart Hover ve Focus Efektleri */
.credit-card:hover .card-front {
    box-shadow: 0 20px 40px rgba(0, 61, 118, 0.3);
}

/* Mobil için kart */
@media (max-width: 480px) {
    .credit-card {
        max-width: 240px;
        height: 140px;
    }
    
    .card-front,
    .card-back {
        padding: 12px;
    }
    
    .card-number {
        font-size: 14px;
        letter-spacing: 1.5px;
    }
    
    .card-value {
        font-size: 10px;
    }
    
    .card-chip svg {
        width: 35px;
        height: 28px;
    }
}
