/* Reset ve Temel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* SNC Kurumsal Renkler */
    --primary-color: #dc2626; /* SNC Kırmızı */
    --primary-dark: #b91c1c;
    --secondary-color: #1e40af; /* SNC Mavi */
    --accent-color: #3b82f6;
    
    /* Nötr Renkler */
    --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;
    
    /* Durum Renkleri */
    --success-color: #10b981;
    --success-light: #d1fae5;
    --error-color: #ef4444;
    --error-light: #fee2e2;
    --warning-color: #f59e0b;
    --warning-light: #fef3c7;
    --info-color: #3b82f6;
    --info-light: #dbeafe;
    
    /* Gölgeler */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    padding: 2rem 0;
    text-align: center;
}

.logo-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-xl);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.company-logo {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.company-logo:hover {
    transform: scale(1.05);
}

.logo i {
    font-size: 2.5rem;
    color: var(--white);
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo span {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 400;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

.page {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Styles */
.card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header {
    padding: 2rem;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    border-bottom: 1px solid var(--gray-200);
}

.card-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-header h2 i {
    color: var(--primary-color);
}

.card-header p {
    color: var(--gray-600);
    font-size: 1rem;
}

.card-body {
    padding: 2rem;
}

/* Form Styles */
.search-form {
    max-width: 500px;
    margin: 0 auto;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.input-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-help {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.input-help i {
    color: var(--info-color);
}

.legal-links {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
}

.legal-links a {
    color: var(--gray-500);
    text-decoration: none;
    margin: 0 0.5rem;
    transition: var(--transition-fast);
}

.legal-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.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: left 0.5s;
}

.btn:hover:before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

#proceedToPayment {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--gray-600) 0%, var(--gray-700) 100%);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--gray-700) 0%, var(--gray-800) 100%);
}

.btn-back {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

.btn-back:hover {
    background: var(--gray-200);
    transform: translateX(-2px);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    width: 100%;
}

/* Info Section */
.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.info-card i {
    font-size: 2.5rem;
    color: var(--white);
    opacity: 0.8;
    margin-bottom: 1rem;
}

.info-card h3 {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.info-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Results Page */
.results-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.results-header h2 {
    color: var(--white);
    font-size: 1.75rem;
    font-weight: 600;
}

.address-info {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.address-info h3 {
    color: var(--gray-800);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.address-info h3 i {
    color: var(--primary-color);
}

.address-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.address-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.address-item .label {
    font-size: 0.875rem;
    color: var(--gray-500);
    font-weight: 500;
}

.address-item .value {
    font-size: 1rem;
    color: var(--gray-800);
    font-weight: 500;
}

/* Payments Section */
.payments-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.section-header h3 {
    color: var(--gray-800);
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header h3 i {
    color: var(--primary-color);
}

.selection-info {
    font-size: 0.9rem;
    color: var(--gray-600);
    background: var(--info-light);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--info-color);
}

/* Table Styles */
.payments-table-container {
    overflow-x: auto;
}

.payments-table {
    width: 100%;
    border-collapse: collapse;
}

.payments-table th,
.payments-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.payments-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.payments-table tbody tr {
    transition: var(--transition-fast);
}

.payments-table tbody tr:hover {
    background: var(--gray-50);
}

.payments-table tbody tr.selected {
    background: var(--info-light);
}

.payments-table tbody tr.paid-row {
    background: rgba(209, 250, 229, 0.3);
}

.payments-table tbody tr.paid-row:hover {
    background: rgba(209, 250, 229, 0.5);
}

.status-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition-fast);
    text-align: center;
}

.status-badge i {
    font-size: 1rem;
    margin-right: 0.375rem;
}

.status-badge .payment-date {
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.25rem;
    opacity: 1;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(4px);
}

.status-badge .payment-date::before {
    content: '📅';
    font-size: 0.8rem;
}

.status-badge.pending {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1.5px solid #f59e0b;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25);
}

.status-badge.paid {
    background: linear-gradient(135deg, #a7f3d0 0%, #6ee7b7 100%);
    color: #065f46;
    border: 1.5px solid #10b981;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}

.status-badge.paid .payment-date {
    background: rgba(255, 255, 255, 0.7);
    color: #047857;
    font-weight: 600;
}

.status-badge.paid:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.status-badge.overdue {
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
    color: #7f1d1d;
    border: 1.5px solid #ef4444;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25);
}

/* Selection Summary */
.selection-summary {
    padding: 1.5rem 2rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.summary-item span:last-child {
    color: var(--primary-color);
    font-weight: 600;
}

/* Payment Page */
.payment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.payment-header h2 {
    color: var(--white);
    font-size: 1.75rem;
    font-weight: 600;
}

.payment-content {
    display: grid;
    gap: 2rem;
}

.payment-summary-card,
.payment-form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.payment-summary-card h3,
.payment-form-card h3 {
    color: var(--gray-800);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-summary-card h3 i,
.payment-form-card h3 i {
    color: var(--primary-color);
}

.selected-payment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--primary-color);
}

.payment-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.payment-item-id {
    font-weight: 600;
    color: var(--gray-800);
}

.payment-item-type {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.payment-item-amount {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Payment Calculation */
.payment-calculation {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.calc-row:last-child {
    border-bottom: none;
}

.calc-row.total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    border-top: 2px solid var(--primary-color);
    margin-top: 0.5rem;
    padding-top: 1rem;
}

/* Payment Form */
.payment-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .input-group.half {
    flex: 1;
}

.payment-form-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Credit Card Simulation */
.credit-card-simulation {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.credit-card {
    width: 350px;
    height: 220px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
    cursor: pointer;
}

.credit-card.flipped {
    transform: rotateY(180deg);
}

.card-content,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.card-content {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-back {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: rotateY(180deg);
    padding: 20px;
    color: white;
}

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="20" cy="80" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    border-radius: 15px;
}

.card-chip {
    width: 45px;
    height: 35px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 6px;
    position: relative;
    margin-bottom: 10px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.chip-line {
    position: absolute;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 1px;
}

.chip-line:nth-child(1) {
    width: 30px;
    height: 2px;
    top: 8px;
    left: 7px;
}

.chip-line:nth-child(2) {
    width: 25px;
    height: 2px;
    top: 15px;
    left: 10px;
}

.chip-line:nth-child(3) {
    width: 2px;
    height: 20px;
    top: 7px;
    left: 15px;
}

.chip-line:nth-child(4) {
    width: 2px;
    height: 15px;
    top: 10px;
    left: 25px;
}

.chip-main {
    position: absolute;
    width: 20px;
    height: 15px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 2px;
    top: 10px;
    left: 12px;
}

.card-type {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    opacity: 0.8;
}

.card-number {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 3px;
    margin: 20px 0;
    display: flex;
    gap: 15px;
}

.card-number span {
    display: inline-block;
    min-width: 60px;
}

.card-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.card-label {
    font-size: 0.7rem;
    opacity: 0.8;
    margin-bottom: 2px;
    letter-spacing: 1px;
}

.card-name,
.card-date {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-name {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Card Back Styles */
.card-stripe {
    width: 100%;
    height: 40px;
    background: #000;
    margin: 20px 0;
}

.card-cvv {
    background: white;
    color: #333;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Courier New', monospace;
}

.cvv-label {
    font-size: 0.8rem;
    font-weight: bold;
}

.cvv-value {
    font-size: 1rem;
    letter-spacing: 2px;
}

.card-signature {
    background: white;
    color: #333;
    padding: 8px 12px;
    border-radius: 4px;
    height: 40px;
}

.signature-label {
    font-size: 0.7rem;
    margin-bottom: 4px;
    color: #666;
}

.signature-area {
    height: 20px;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        #ddd 2px,
        #ddd 3px
    );
    border-radius: 2px;
}

/* Card Type Icons */
.card-type .fa-cc-visa {
    color: #1a1f71;
}

.card-type .fa-cc-mastercard {
    color: #eb001b;
}

.card-type .fa-cc-amex {
    color: #006fcf;
}

/* Input Focus Effects */
.payment-form input:focus + .card-highlight {
    opacity: 1;
}

/* Responsive Card */
@media (max-width: 480px) {
    .credit-card {
        width: 300px;
        height: 190px;
        transform: scale(0.9);
    }
    
    .card-number {
        font-size: 1.2rem;
        gap: 10px;
    }
    
    .card-number span {
        min-width: 50px;
    }
}

/* Payment Status */
.status-content {
    text-align: center;
    padding: 3rem 2rem;
}

.status-page {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    margin: 2rem auto;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.status-page h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
    text-align: center;
}

.status-page .status-message {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.6;
    text-align: center;
}

/* Status Icons */
.status-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.status-icon i {
    font-size: 4rem;
    z-index: 1;
}

.status-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Success Status */
.status-icon.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: var(--success-color);
}

.status-icon.success::before {
    background: var(--success-color);
}

.status-success {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    margin: 0 auto;
}

.status-success .status-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1.5rem;
}

.status-success h2 {
    color: var(--success-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.status-success p {
    color: var(--gray-600);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Error Status */
.status-icon.error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: var(--error-color);
}

.status-icon.error::before {
    background: var(--error-color);

}

.error-page h1 {
    color: var(--error-color);
    text-align: center;
}

.status-error {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    margin: 0 auto;
}

.status-error .status-icon {
    font-size: 4rem;
    color: var(--error-color);
    margin-bottom: 1.5rem;
}

.status-error h2 {
    color: var(--error-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.status-error p {
    color: var(--gray-600);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Info Box */
.info-box {
    background: var(--gray-50);
    border-left: 4px solid var(--info-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    animation: slideInRight 0.5s ease-out 0.3s both;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.info-box i {
    font-size: 1.5rem;
    color: var(--info-color);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.info-box p {
    margin: 0;
    color: var(--gray-700);
    font-size: 0.95rem;
    line-height: 1.6;
}

.info-box.error {
    background: var(--error-light);
    border-left-color: var(--error-color);
}

.info-box.error i {
    color: var(--error-color);
}

.info-box.success {
    background: var(--success-light);
    border-left-color: var(--success-color);
}

.info-box.success i {
    color: var(--success-color);
}

.info-box.warning {
    background: var(--warning-light);
    border-left-color: var(--warning-color);
}

.info-box.warning i {
    color: var(--warning-color);
}

/* Error Reasons */
.error-reasons {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 2rem 0;
    animation: slideInLeft 0.5s ease-out 0.5s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.error-reasons h3 {
    color: var(--gray-800);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-reasons h3::before {
    content: '💡';
    font-size: 1.3rem;
}

.error-reasons ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1.5rem;
}

.error-reasons li {
    padding-left: 1.75rem;
    position: relative;
    color: var(--gray-600);
    line-height: 1.6;
    transition: var(--transition-fast);
    font-size: 0.95rem;
}

.error-reasons li::before {
    content: '•';
    position: absolute;
    left: 0.5rem;
    color: var(--error-color);
    font-size: 1.5rem;
    line-height: 1;
}

.error-reasons li:hover {
    color: var(--gray-800);
    padding-left: 2rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    animation: fadeIn 0.5s ease-out 0.7s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.action-buttons .btn {
    min-width: 180px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    transform: translateY(0);
}

.action-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.action-buttons .btn i {
    font-size: 1.1rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .header {
        padding: 1.5rem 0;
    }
    
    .logo-section {
        padding: 1.5rem;
    }
    
    .logo {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .logo i,
    .logo span {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .card-header,
    .card-body {
        padding: 1.5rem;
    }
    
    .card-header h2 {
        font-size: 1.5rem;
    }
    
    .info-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .results-header h2 {
        font-size: 1.5rem;
    }
    
    .address-info,
    .payment-summary-card,
    .payment-form-card,
    .payment-calculation {
        padding: 1.5rem;
    }
    
    .address-details {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .payments-table th,
    .payments-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .selection-summary {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .summary-item {
        justify-content: space-between;
    }
    
    .payment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .payment-header h2 {
        font-size: 1.5rem;
    }

    .payment-form-layout {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-row .input-group.half {
        flex: none;
    }
    
    .status-success,
    .status-error,
    .status-page {
        padding: 2rem 1.5rem;
        margin: 1rem auto;
    }
    
    .status-success .status-icon,
    .status-error .status-icon,
    .status-page .status-icon {
        font-size: 3rem;
        width: 80px;
        height: 80px;
    }
    
    .status-success h2,
    .status-error h2,
    .status-page h1 {
        font-size: 1.5rem;
    }
    
    .status-page .status-message {
        font-size: 1rem;
    }
    
    .error-reasons {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .error-reasons h3 {
        font-size: 1rem;
    }
    
    .error-reasons ul {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .error-reasons li {
        font-size: 0.9rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .action-buttons .btn {
        width: 100%;
        min-width: auto;
    }
}

@media (min-width: 992px) {
    .payment-form-layout {
        flex-direction: row;
        align-items: center;
    }

    .payment-form-layout .credit-card-simulation {
        flex: 0 0 350px; /* Sabit genişlik */
    }

    .payment-form-layout .payment-form {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .payments-table-container {
        font-size: 0.8rem;
    }
    
    .payments-table th,
    .payments-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Selection Styles */
::selection {
    background: var(--primary-color);
    color: var(--white);
}

/* Alert Mesajları */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
    box-shadow: var(--shadow);
    animation: slideDown 0.3s ease-out;
}

.alert i {
    font-size: 1.25rem;
}

.alert-success {
    background-color: var(--success-light);
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

.alert-error {
    background-color: var(--error-light);
    color: #991b1b;
    border-left: 4px solid var(--error-color);
}

.alert-warning {
    background-color: var(--warning-light);
    color: #92400e;
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background-color: var(--info-light);
    color: #1e40af;
    border-left: 4px solid var(--info-color);
}


@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Spinner */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    gap: 1rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-200);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

/* ==========================================
   Sözleşme Onayları Stilleri - Minimal
   ========================================== */
.terms-agreements {
    margin: 1.5rem 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    transition: var(--transition);
}

.terms-agreements.shake {
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
    10%, 90% {
        transform: translateX(-1px);
    }
    20%, 80% {
        transform: translateX(2px);
    }
    30%, 50%, 70% {
        transform: translateX(-4px);
    }
    40%, 60% {
        transform: translateX(4px);
    }
}

.terms-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terms-title i {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.terms-error {
    background: var(--error-light);
    border-left: 3px solid var(--error-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--error-color);
    font-weight: 500;
    font-size: 0.875rem;
    animation: slideDown 0.3s ease-out, pulse 0.5s ease-in-out;
}

.terms-error i {
    font-size: 1rem;
    flex-shrink: 0;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.02);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0;
    background: transparent;
    border-radius: 0;
    border: none;
    border-left: 2px solid transparent;
    padding-left: 0.75rem;
    transition: var(--transition-fast);
}

.checkbox-item:hover {
    border-left-color: var(--primary-color);
    padding-left: 1rem;
}

.checkbox-item.invalid {
    animation: wiggle 0.3s ease-in-out;
    border-left-color: var(--error-color);
}

@keyframes wiggle {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-3px);
    }
    75% {
        transform: translateX(3px);
    }
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    cursor: pointer;
    margin-top: 2px;
    accent-color: var(--primary-color);
    transition: var(--transition);
}

.checkbox-item input[type="checkbox"]:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.checkbox-item label {
    flex: 1;
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.5;
    cursor: pointer;
    user-select: none;
}

.checkbox-item label a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.checkbox-item label a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.checkbox-item label .required-mark {
    color: var(--error-color);
    font-weight: bold;
    margin: 0 1px;
}

/* Checkbox işaretlendiğinde animasyon */
.checkbox-item input[type="checkbox"]:checked {
    animation: checkBounce 0.3s ease-in-out;
}

@keyframes checkBounce {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

.checkbox-item input[type="checkbox"]:checked + label {
    color: var(--gray-800);
    font-weight: 500;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .terms-agreements {
        padding: 0;
        margin: 1rem 0;
    }
    
    .terms-title {
        font-size: 0.875rem;
    }
    
    .checkbox-item {
        padding: 0.4rem 0;
        padding-left: 0.5rem;
    }
    
    .checkbox-item label {
        font-size: 0.8125rem;
    }
    
    .checkbox-item:hover {
        padding-left: 0.5rem;
    }
}

/* Ödeme Yap Butonu Stilleri */
.btn-payment {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    box-shadow: var(--shadow-sm);
}

.btn-payment:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-payment:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-payment i {
    font-size: 0.75rem;
}

/* Status badge içindeki buton stilleri */
.status-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.status-badge.pending {
    align-items: flex-start;
}

.status-badge .btn-payment {
    align-self: stretch;
    justify-content: center;
}


