/* ========================================
   Global Styles & Reset
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #818CF8;
    --secondary-color: #10B981;
    --danger-color: #EF4444;
    --warning-color: #F59E0B;
    --info-color: #3B82F6;
    --dark: #1F2937;
    --dark-light: #374151;
    --gray: #6B7280;
    --gray-light: #D1D5DB;
    --gray-lighter: #F3F4F6;
    --white: #FFFFFF;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background-color: #FAFAFA;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Header
   ======================================== */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 20px 0;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
    font-size: 15px;
}

.nav-link:hover,
.nav-link.active {
    opacity: 0.8;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.65) 0%, rgba(118, 75, 162, 0.65) 100%), 
                url('../images/hero-bg.jpg') center center / cover no-repeat;
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-badge {
    margin-top: 30px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    display: inline-block;
    backdrop-filter: blur(10px);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

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

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

.btn-secondary {
    background: white;
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--gray-lighter);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

/* ========================================
   Operators Section
   ======================================== */
.operators-section {
    background: white;
}

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

.operator-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 35px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.operator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--operator-color, var(--primary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.operator-card:hover::before {
    opacity: 0.05;
}

.operator-card:hover {
    border-color: var(--operator-color, var(--primary-color));
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px var(--operator-shadow, rgba(79, 70, 229, 0.3));
}

.operator-card > * {
    position: relative;
    z-index: 1;
}

/* Turkcell - Sarı */
.operator-card[href*="turkcell"] {
    --operator-color: #FFC900;
    --operator-shadow: rgba(255, 201, 0, 0.4);
}

/* Vodafone - Kırmızı */
.operator-card[href*="vodafone"] {
    --operator-color: #E60000;
    --operator-shadow: rgba(230, 0, 0, 0.4);
}

/* Türk Telekom - Mavi */
.operator-card[href*="turktelekom"] {
    --operator-color: #0099FF;
    --operator-shadow: rgba(0, 153, 255, 0.4);
}

/* Bimcell - Kırmızı */
.operator-card[href*="bimcell"] {
    --operator-color: #E6212A;
    --operator-shadow: rgba(230, 33, 42, 0.4);
}

.operator-icon {
    margin-bottom: 20px;
}

.operator-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white !important;
    transition: all 0.3s ease;
}

.operator-logo .logo-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.operator-card:hover .operator-logo .logo-img {
    transform: scale(1.1);
}

.operator-card:hover .operator-logo {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.operator-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.operator-desc {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ========================================
   Installment Section
   ======================================== */
.installment-section {
    background: linear-gradient(135deg, #f0f4f8 0%, #e8ecf1 50%, #f0f4f8 100%);
    position: relative;
    overflow: hidden;
}

.installment-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(79,70,229,0.05)"/></svg>');
    opacity: 0.5;
}

.installment-section .container {
    position: relative;
    z-index: 1;
}

.installment-image-container {
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
    position: relative;
}

.installment-image-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.installment-cards-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    transition: all 0.4s ease;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.15));
}

.installment-cards-image:hover {
    transform: translateY(-5px);
    filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.2));
}

.installment-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.installment-info p {
    background: white;
    padding: 25px 30px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    font-size: 15px;
    color: var(--text-primary);
    text-align: left;
    transition: all 0.3s ease;
    border-left: 5px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.installment-info p::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.installment-info p::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(79, 70, 229, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.installment-info p:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.15);
}

.installment-info p:hover::after {
    opacity: 1;
}

.installment-info strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* ========================================
   Steps Section
   ======================================== */
.steps-section {
    background: var(--gray-lighter);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.step-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.step-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.step-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-desc {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   Security & Supported Sections
   ======================================== */
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.security-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.security-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.security-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.security-desc {
    color: var(--text-secondary);
    font-size: 14px;
}

.supported-section {
    background: white;
}

.supported-logos {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.supported-logo {
    text-align: center;
}

.logo-badge {
    width: 110px;
    height: 110px;
    border: 3px solid;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    background-color: white !important;
    transition: all 0.3s ease;
}

.logo-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--dark);
    color: white;
    padding: 50px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-col p {
    color: #9CA3AF;
    font-size: 14px;
    margin-bottom: 8px;
}

.qr-code {
    text-align: center;
}

.qr-code svg {
    transition: transform 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.qr-code svg:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-bottom {
    border-top: 1px solid var(--dark-light);
    padding-top: 30px;
    text-align: center;
    color: #9CA3AF;
    font-size: 14px;
}

/* ========================================
   Page Content
   ======================================== */
.page-content {
    min-height: calc(100vh - 400px);
    padding: 40px 0;
}

.breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

/* ========================================
   Query Page
   ======================================== */
.query-page {
    max-width: 600px;
    margin: 0 auto;
}

.query-header {
    text-align: center;
    margin-bottom: 40px;
}

.operator-badge {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background-color: white !important;
}

.operator-badge .logo-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.operator-logo-large {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    width: fit-content;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.query-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.query-header p {
    color: var(--text-secondary);
}

.query-form-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

/* ========================================
   Forms
   ======================================== */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.input-with-icon {
    position: relative;
}

.input-with-icon .form-control {
    padding-left: 45px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.expiry-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-check label {
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    margin: 0;
}

/* ========================================
   Alerts
   ======================================== */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.security-note {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--gray-lighter);
    border-radius: 8px;
}

.security-note .security-icon {
    font-size: 32px;
}

.security-note strong {
    display: block;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.security-note p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

/* ========================================
   Payment Page
   ======================================== */
.payment-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

/* ========================================
   Credit Card Display - Canlı Kart Görseli
   ======================================== */
.credit-card-display {
    margin-bottom: 40px;
    perspective: 1000px;
}

.credit-card {
    width: 100%;
    max-width: 400px;
    height: 240px;
    margin: 0 auto;
    padding: 25px 30px;
    border-radius: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    color: white;
    position: relative;
    transition: all 0.6s ease;
    transform-style: preserve-3d;
}

.credit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="30" fill="rgba(255,255,255,0.05)"/></svg>');
    border-radius: 20px;
    pointer-events: none;
}

.card-chip {
    margin-bottom: 30px;
}

.card-number {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 25px;
    font-family: 'Courier New', monospace;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

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

.card-label {
    font-size: 10px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.card-name {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-date {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
}

.card-logo {
    position: absolute;
    top: 25px;
    right: 30px;
}

/* Kartın Arka Yüzü */
.card-back {
    display: none;
    width: 100%;
    max-width: 400px;
    height: 240px;
    margin: 0 auto;
    border-radius: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.card-stripe {
    width: 100%;
    height: 50px;
    background: #2D3748;
    margin-top: 30px;
    margin-bottom: 20px;
}

.card-cvv-box {
    background: white;
    height: 45px;
    margin: 0 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 15px;
}

.card-cvv {
    font-size: 20px;
    font-weight: 700;
    color: #1F2937;
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
}

.bill-summary {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.bill-summary h3 {
    font-size: 20px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.summary-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.summary-value {
    font-weight: 600;
    font-size: 14px;
}

.summary-divider {
    height: 1px;
    background: var(--border-color);
    margin: 20px 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-amount {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
}

.security-badges {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.security-badges .badge {
    padding: 6px 12px;
    background: var(--gray-lighter);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.payment-form-container h3 {
    font-size: 20px;
    margin-bottom: 25px;
}

/* ========================================
   Success Page
   ======================================== */
.success-page {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 20px;
}

/* Üst Bilgi */
.success-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E5E7EB;
}

.success-date {
    font-size: 14px;
    color: #6B7280;
    font-weight: 500;
}

.success-page-title {
    font-size: 14px;
    color: #6B7280;
    font-weight: 500;
}

.success-icon-large {
    margin: 30px auto 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.success-icon-large svg {
    width: 120px;
    height: 120px;
}

.success-icon {
    margin-bottom: 30px;
}

.checkmark {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: white;
    font-size: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.success-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
}

.success-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.receipt-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 35px;
    overflow: hidden;
    border: 1px solid #E5E7EB;
}

.receipt-header {
    background: #F9FAFB;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #E5E7EB;
}

.receipt-header h3 {
    font-size: 20px;
    margin: 0;
    font-weight: 700;
    color: #1F2937;
}

.receipt-badge-approved {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #D1FAE5;
    color: #065F46;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.receipt-badge-approved svg {
    width: 16px;
    height: 16px;
    stroke: #065F46;
}

.receipt-body {
    padding: 30px;
    text-align: left;
}

.receipt-content-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.receipt-info {
    flex: 1;
}

.receipt-qr {
    flex: 0 0 auto;
}

.qr-code-box {
    text-align: center;
    padding: 15px;
    background: #F9FAFB;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
}

.qr-code-box h4 {
    font-size: 12px;
    margin: 0 0 10px 0;
    color: #6B7280;
    font-weight: 600;
}

.qr-code-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    background: white;
    padding: 5px;
    display: block;
    margin: 0 auto;
}

.qr-vezne-no {
    margin-top: 8px;
    font-size: 10px;
    color: #9CA3AF;
    margin-bottom: 0;
}

.receipt-row {
    display: block;
}

.receipt-col {
    display: block;
}

.receipt-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #F3F4F6;
}

.receipt-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.receipt-label {
    color: #6B7280;
    font-size: 14px;
    font-weight: 500;
    margin-right: 8px;
    white-space: nowrap;
}

.receipt-value {
    font-weight: 600;
    font-size: 15px;
    color: #1F2937;
}

.receipt-divider {
    height: 1px;
    background: var(--border-color);
    margin: 20px 0;
}

.receipt-total {
    display: flex;
    align-items: center;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 2px solid #E5E7EB;
}

.receipt-total .receipt-label {
    font-size: 16px;
    font-weight: 700;
    color: #1F2937;
    margin-right: 10px;
}

.receipt-amount {
    font-size: 28px;
    font-weight: 800;
    color: #4F46E5;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.success-note {
    background: #F9FAFB;
    padding: 25px 30px;
    border-radius: 12px;
    font-size: 14px;
    color: #6B7280;
    line-height: 1.8;
    border: 1px solid #E5E7EB;
    margin-top: 30px;
    text-align: left;
}

.success-note p {
    margin: 8px 0;
}

.success-note p:first-child {
    margin-top: 0;
}

.success-note strong {
    color: #1F2937;
    font-weight: 600;
}

/* ========================================
   Admin Styles
   ======================================== */
.admin-body {
    background: var(--gray-lighter);
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--dark);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.admin-logo {
    padding: 25px 20px;
    border-bottom: 1px solid var(--dark-light);
}

.admin-logo h2 {
    font-size: 20px;
}

.admin-nav {
    flex: 1;
    padding: 20px 0;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #9CA3AF;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 15px;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    background: var(--dark-light);
    color: white;
}

.admin-sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--dark-light);
}

.admin-sidebar-footer a {
    color: var(--gray-light);
    text-decoration: none;
    font-size: 14px;
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    padding: 0;
}

.admin-header {
    background: white;
    padding: 25px 40px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-header h1 {
    font-size: 28px;
    font-weight: 800;
}

.admin-user {
    font-size: 14px;
    color: var(--text-secondary);
}

.admin-content {
    padding: 40px;
}

.admin-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.admin-card h3 {
    font-size: 20px;
    margin-bottom: 25px;
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.admin-card-header h3 {
    margin: 0;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    display: flex;
    gap: 20px;
    align-items: center;
    box-shadow: var(--shadow);
    border-left: 4px solid;
}

.stat-primary { border-color: var(--primary-color); }
.stat-success { border-color: var(--secondary-color); }
.stat-info { border-color: var(--info-color); }
.stat-warning { border-color: var(--warning-color); }

.stat-icon {
    font-size: 40px;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Operator Stats */
.operator-stats {
    display: grid;
    gap: 15px;
}

.operator-stat-item {
    padding: 20px;
    background: var(--gray-lighter);
    border-radius: 8px;
}

.operator-stat-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.operator-stat-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

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

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table thead {
    background: var(--gray-lighter);
}

.admin-table th {
    padding: 14px 12px;
    text-align: left;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.admin-table td {
    padding: 16px 12px;
    border-bottom: 1px solid var(--border-color);
}

.admin-table tbody tr:hover {
    background: var(--gray-lighter);
}

.admin-table code {
    background: var(--gray-lighter);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'Courier New', monospace;
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #D1FAE5;
    color: #065F46;
}

.badge-warning {
    background: #FEF3C7;
    color: #92400E;
}

/* Filters */
.admin-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.admin-filters .form-control {
    flex: 1;
}

/* Admin Login */
.admin-login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.admin-login-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 450px;
}

.admin-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.admin-login-header h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.admin-login-header p {
    color: var(--text-secondary);
    font-size: 15px;
}

.admin-login-footer {
    text-align: center;
    margin-top: 25px;
}

.admin-login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .installment-image-container {
        max-width: 100%;
        margin-bottom: 30px;
    }
    
    .installment-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .installment-info p {
        padding: 20px;
        font-size: 14px;
    }
    
    .payment-grid {
        grid-template-columns: 1fr;
    }
    
    .bill-summary {
        position: static;
    }
    
    .credit-card,
    .card-back {
        max-width: 100%;
        height: 200px;
    }
    
    .card-number {
        font-size: 20px;
        letter-spacing: 2px;
    }
    
    .sms-verify-container,
    .waiting-container {
        padding: 50px 30px 30px 30px;
    }

    .sms-header-banner {
        width: calc(100% + 60px);
        margin: -50px -30px 20px -30px;
        padding: 25px 30px;
        flex-direction: column;
        gap: 15px;
    }
    
    .sms-bank-logo {
        width: 100%;
        justify-content: center;
    }
    
    .bank-logo-sms-header {
        max-height: 45px;
        max-width: 150px;
    }
    
    .id-check-badge-header {
        width: 100%;
        justify-content: center;
    }
    
    .sms-title,
    .waiting-title {
        font-size: 24px;
        margin-top: 15px;
    }
    
    .sms-subtitle,
    .waiting-subtitle {
        font-size: 15px;
    }
    
    .sms-code-input {
        font-size: 28px;
        letter-spacing: 8px;
        padding: 16px;
    }
    
    .sms-info p,
    .waiting-info p {
        font-size: 14px;
    }
    
    .sms-reference-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sms-reference {
        width: 100%;
    }
    
    .success-header-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .success-page-title {
        width: 100%;
        text-align: left;
    }
    
    .receipt-content-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .receipt-qr {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .qr-code-box {
        max-width: 200px;
    }
    
    .receipt-item {
        flex-wrap: wrap;
    }
    
    .receipt-label {
        margin-right: 5px;
    }
    
    .receipt-value {
        text-align: left;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .success-actions .btn {
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .admin-layout {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        position: static;
        height: auto;
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .admin-filters {
        flex-direction: column;
    }
}

/* ========================================
   SMS Verify & Waiting Pages
   ======================================== */
.sms-verify-page,
.waiting-page {
    max-width: 600px;
    margin: 40px auto;
}

.sms-verify-container,
.waiting-container {
    background: white;
    padding: 50px 40px 40px 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
    overflow: hidden;
}

.sms-icon-large {
    font-size: 80px;
    margin-bottom: 20px;
}

.bank-logo-container {
    margin-bottom: 25px;
    /* DÜZ BEYAZ ARKA PLAN - Temiz görünüm */
    background: #FFFFFF;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border: 2px solid #E5E7EB;
}

.bank-logo {
    height: 100px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    /* Temiz görünüm - filter yok */
}

.bank-logo-container p {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
}

/* ========================================
   SMS Onay - Banka Logosu ve ID CHECK Yan Yana
   ======================================== */
.sms-header-banner {
    width: calc(100% + 100px);
    margin: -50px -50px 30px -50px;
    padding: 30px 50px;
    background: #FFFFFF;
    border-bottom: 3px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 16px 16px 0 0;
    gap: 20px;
}

.sms-bank-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.bank-logo-sms-header {
    max-height: 50px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.id-check-badge-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    flex: 0 0 auto;
}

.id-check-badge-header svg {
    width: 20px;
    height: 20px;
    stroke: white;
    fill: none;
}

.sms-title,
.waiting-title {
    font-size: 32px;
    font-weight: 700;
    margin-top: 10px;
    margin-bottom: 20px;
    color: #1F2937;
}

.sms-subtitle,
.waiting-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 35px;
    line-height: 1.8;
}

.sms-code-input {
    text-align: center;
    font-size: 36px;
    letter-spacing: 12px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    padding: 20px;
}

.sms-info,
.waiting-info {
    margin-top: 35px;
    padding: 25px 30px;
    background: #F9FAFB;
    border-radius: 12px;
    text-align: left;
    border: 1px solid #E5E7EB;
}

.sms-info p,
.waiting-info p {
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
}

.sms-info p:first-child {
    font-size: 17px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 15px;
}

.sms-note,
.waiting-note {
    margin-top: 30px;
    padding: 25px;
    background: #FFFBF0;
    border: 2px solid #FDE68A;
    border-radius: 12px;
    text-align: center;
}

.sms-note p {
    margin-bottom: 0 !important;
}

/* SMS Referans Kodu ve ID CHECK */
.sms-reference-section {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #E5E7EB;
}

.sms-reference {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sms-reference .reference-label {
    font-size: 14px;
    color: #6B7280;
    font-weight: 500;
}

.sms-reference .reference-code {
    font-size: 15px;
    font-weight: 700;
    color: #1F2937;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    background: #FFFFFF;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #D1D5DB;
}

.id-check-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    flex: 0 0 auto;
}

.id-check-badge svg {
    width: 20px;
    height: 20px;
    stroke: white;
    fill: none;
}

/* Loading Spinner */
.loading-spinner {
    margin: 0 auto 30px;
    width: 80px;
    height: 80px;
}

.spinner {
    width: 80px;
    height: 80px;
    border: 6px solid var(--gray-lighter);
    border-top: 6px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   Rejected Page
   ======================================== */
.rejected-page {
    max-width: 700px;
    margin: 0 auto;
}

.rejected-container {
    background: white;
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    text-align: center;
}

.rejected-icon {
    margin-bottom: 30px;
}

.error-mark {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #EF4444;
    color: white;
    font-size: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation: shake 0.5s ease;
}

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

.rejected-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #DC2626;
}

.rejected-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.rejected-reasons {
    background: #FEF2F2;
    border: 2px solid #FCA5A5;
    border-radius: 12px;
    padding: 25px;
    text-align: left;
    margin-bottom: 25px;
}

.rejected-reasons h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #DC2626;
}

.rejected-reasons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rejected-reasons li {
    padding: 8px 0;
    color: #666;
    font-size: 14px;
}

.rejected-info {
    text-align: left;
    margin-bottom: 30px;
}

.rejected-info h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.rejected-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.rejected-note {
    background: var(--gray-lighter);
    padding: 20px;
    border-radius: 8px;
}

@media print {
    /* Gereksiz elementleri gizle */
    .header, .footer, .success-actions, .nav {
        display: none !important;
    }
    
    /* Sayfa ayarları */
    @page {
        size: A4;
        margin: 10mm;
    }
    
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    
    body {
        margin: 0;
        padding: 0;
        background: white;
        font-size: 10px;
        line-height: 1.3;
    }
    
    .page-content {
        padding: 0;
        margin: 0;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    /* Success page - ultra kompakt */
    .success-page {
        max-width: 100%;
        padding: 0;
        margin: 0;
        page-break-inside: avoid;
    }
    
    .success-header-info {
        margin-bottom: 8px;
        padding-bottom: 5px;
        font-size: 9px;
        border-bottom: 1px solid #ddd;
    }
    
    .success-date,
    .success-page-title {
        font-size: 9px;
    }
    
    /* İkonu küçült */
    .success-icon-large {
        margin: 5px auto 5px;
    }
    
    .success-icon-large svg {
        width: 40px;
        height: 40px;
    }
    
    .success-title {
        font-size: 16px;
        margin-bottom: 2px;
        margin-top: 2px;
    }
    
    .success-subtitle {
        font-size: 11px;
        margin-bottom: 8px;
    }
    
    /* Dekont kartı - minimal boşluk */
    .receipt-card {
        margin-bottom: 8px;
        border: 1px solid #ddd;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .receipt-header {
        padding: 8px 12px;
        background: #f5f5f5 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .receipt-header h3 {
        font-size: 12px;
        margin: 0;
    }
    
    .receipt-badge-approved {
        padding: 3px 8px;
        font-size: 9px;
    }
    
    .receipt-badge-approved svg {
        width: 10px;
        height: 10px;
    }
    
    .receipt-body {
        padding: 10px 12px;
    }
    
    .receipt-content-wrapper {
        flex-direction: row;
        gap: 15px;
    }
    
    .receipt-info {
        flex: 1;
    }
    
    .receipt-qr {
        flex: 0 0 auto;
    }
    
    .qr-code-box {
        padding: 8px;
        background: #f5f5f5 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .qr-code-box h4 {
        font-size: 9px;
        margin-bottom: 5px;
    }
    
    .qr-code-image {
        width: 60px;
        height: 60px;
        padding: 3px;
    }
    
    .qr-vezne-no {
        font-size: 8px;
        margin-top: 4px;
    }
    
    .receipt-item {
        margin-bottom: 3px !important;
        padding-bottom: 3px !important;
        font-size: 10px;
        border-bottom: none !important;
        display: flex;
        align-items: center;
    }
    
    .receipt-item:last-child {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .receipt-label {
        font-size: 9px;
        margin-right: 5px;
        white-space: nowrap;
    }
    
    .receipt-value {
        font-size: 10px;
    }
    
    .receipt-divider {
        margin: 5px 0;
        height: 1px;
    }
    
    .receipt-total {
        padding-top: 5px;
        margin-top: 5px;
        border-top: 1px solid #ddd;
        display: flex;
        align-items: center;
    }
    
    .receipt-total .receipt-label {
        font-size: 11px;
        margin-right: 5px;
    }
    
    .receipt-amount {
        font-size: 16px;
    }
    
    /* Not bölümü - minimal */
    .success-note {
        padding: 8px 12px;
        margin-top: 8px;
        font-size: 9px;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .success-note p {
        margin: 2px 0;
        line-height: 1.4;
    }
    
    .success-note p:first-child {
        margin-top: 0;
    }
    
    .success-note strong {
        font-size: 9px;
    }
    
    /* Renkleri koru */
    * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    /* Sayfa sonlarını kontrol et */
    .receipt-card,
    .success-note {
        page-break-inside: avoid;
        break-inside: avoid;
    }
}

