/* ===== KURYE TAKİP SİSTEMİ - RESPONSIVE KURUMSAL TASARIM ===== */

/* CSS Custom Properties */
:root {
    --primary-blue: #0d1b2a;
    --primary-blue-light: #526d82;
    --primary-green: #1b5e20;
    --primary-green-light: #388e3c;
    --secondary-gray: #b0bec5;
    --light-gray: #f5f7fa;
    --white: #ffffff;
    --dark-text: #0a192f;
    --border-color: #dde4e6;
    --orange: #e8b923;
    --navy-blue: #0d1b2a;
    --error-red: #ef4444;
    --error-red-dark: #dc2626;
    
    /* Toast Colors */
    --toast-bg-primary: #374151;
    --toast-bg-secondary: #4b5563;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    
    /* Container Widths */
    --container-max-width: 1400px;
    --container-padding: clamp(16px, 4vw, 30px);
    
    /* Font Sizes */
    --font-xs: clamp(11px, 2.5vw, 12px);
    --font-sm: clamp(13px, 3vw, 14px);
    --font-base: clamp(14px, 3.5vw, 16px);
    --font-lg: clamp(16px, 4vw, 18px);
    --font-xl: clamp(18px, 4.5vw, 20px);
    --font-2xl: clamp(20px, 5vw, 24px);
    --font-3xl: clamp(24px, 6vw, 28px);
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background: var(--light-gray);
    font-size: var(--font-base);
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* ===== MAIN CONTAINER ===== */
#kurye-takip-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0;
    background: transparent;
    min-height: 100vh;
    position: relative;
    width: 100%;
}

/* ===== PROGRESS TRACKER ===== */
.kurye-progress-tracker {
    background: var(--white);
    padding: clamp(20px, 5vw, 30px);
    box-shadow: var(--shadow-md);
    margin-bottom: 0;
    position: relative;
    z-index: 100;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 0 0 16px 16px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: min(900px, 90vw);
    margin: 0 auto;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.progress-steps::-webkit-scrollbar {
    display: none;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 5%;
    right: 5%;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.progress-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
    max-width: 150px;
}

.progress-step-number {
    width: clamp(40px, 8vw, 50px);
    height: clamp(40px, 8vw, 50px);
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: clamp(14px, 3.5vw, 18px);
    color: var(--secondary-gray);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.progress-step-title {
    font-size: var(--font-xs);
    color: var(--secondary-gray);
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    word-break: break-word;
    line-height: 1.2;
    max-width: 100px;
}

.progress-step.active .progress-step-number {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(13, 27, 42, 0.1);
}

.progress-step.active .progress-step-title {
    color: var(--primary-blue);
    font-weight: 700;
}

.progress-step.completed .progress-step-number {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--white);
}

.progress-step.completed .progress-step-number::after {
    content: '✓';
    font-size: clamp(18px, 4vw, 22px);
}

.progress-step.completed .progress-step-title {
    color: var(--primary-green);
}

/* ===== MAIN CONTENT ===== */
.kurye-main-content {
    padding: var(--container-padding);
    background: transparent;
    min-height: calc(100vh - 120px);
}

/* ===== FORM CONTAINERS ===== */
.kurye-form-container {
    background: var(--white);
    border-radius: clamp(8px, 2vw, 12px);
    padding: 0;
    margin-bottom: clamp(20px, 4vw, 30px);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
    width: 100%;
}

.kurye-form-container h3,
#musteri-bilgileri h3,
#bilgilendirme-faturasi h3 {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    color: var(--white);
    font-size: var(--font-xl);
    font-weight: 700;
    padding: clamp(15px, 4vw, 20px) clamp(20px, 5vw, 30px);
    margin: 0;
    letter-spacing: 0.3px;
}

/* ===== FORMS ===== */
.kurye-form {
    padding: clamp(20px, 5vw, 30px);
    display: grid;
    gap: clamp(15px, 4vw, 25px);
    position: relative;
    overflow: visible;
}

.adres-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(15px, 4vw, 25px);
    position: relative;
    z-index: 100;
}

.adres-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.adres-group label {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 8px;
    font-size: var(--font-sm);
    display: flex;
    align-items: center;
    gap: 8px;
}

.adres-group label::before {
    content: '📍';
    font-size: clamp(14px, 3.5vw, 16px);
}

.adres-input {
    padding: clamp(10px, 3vw, 12px) clamp(12px, 3.5vw, 16px);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: var(--font-base);
    transition: all 0.3s ease;
    background: var(--white);
    width: 100%;
}

.adres-input:focus {
    outline: none;
    border-color: var(--primary-blue-light);
    box-shadow: 0 0 0 4px rgba(82, 109, 130, 0.1);
}

.adres-input::placeholder {
    color: var(--secondary-gray);
}

/* ===== BUTTONS ===== */
.kurye-btn,
#hesapla-mesafe,
#devam-et,
#kurye-cagir {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
    color: var(--white);
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: auto;
}

#kurye-cagir {
    max-width: none;
    padding: clamp(14px, 3.5vw, 16px) clamp(40px, 8vw, 50px);
    font-size: var(--font-lg);
    font-weight: 700;
    border-radius: 10px;
}

#kurye-cagir::before {
    content: '🏍️';
    font-size: clamp(18px, 4vw, 20px);
}

.kurye-btn:hover,
#hesapla-mesafe:hover,
#devam-et:hover,
#kurye-cagir:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.kurye-btn:active,
#hesapla-mesafe:active,
#devam-et:active,
#kurye-cagir:active {
    transform: translateY(0);
}

.info-section > div[style*="text-align: center"] {
    margin-top: calc(12px * 1.15) !important; /* Üst boşluk azaltıldı */
    padding-top: 0 !important;
}

/* İleri butonu stilini optimize et */
#harita-ileri-btn {
    margin-top: 0 !important;
    padding: clamp(12px, 3vw, 14px) clamp(28px, 6vw, 36px);
}

/* Info section genel boşluk ayarları */
.info-section {
    padding: calc(clamp(20px, 4vw, 30px) * 1.15);
    background: var(--white);
    border-left: 1px solid var(--border-color);
    border-top: none;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: calc(clamp(15px, 3vw, 18px) * 1.15); /* Gap azaltıldı */
}

/* Info section başlık altı boşluk */
.info-section h4 {
    color: var(--primary-blue);
    font-size: calc(var(--font-lg) * 1.15);
    font-weight: 700;
    margin: 0 0 calc(clamp(12px, 2.5vw, 15px) * 1.15) 0; /* Alt margin azaltıldı */
    padding-bottom: calc(10px * 1.15);
    border-bottom: 2px solid var(--primary-blue);
    display: flex;
    align-items: center;
    gap: calc(8px * 1.15);
}

/* Kargo seçimi ile mesafe bilgileri arası boşluk */
.kargo-secimi-modern {
    margin-bottom: calc(clamp(12px, 2.5vw, 15px) * 1.15); /* Margin azaltıldı */
}

/* ===== RESPONSIVE AYARLAMALAR ===== */

@media (max-width: 768px) {
    .mesafe-bilgileri-modern {
        padding: calc(10px * 1.15);
        margin-bottom: 0;
    }
    
    .bilgi-item-modern.total {
        padding: calc(8px * 1.15);
        margin-top: calc(6px * 1.15);
        margin-bottom: 0;
    }
    
    .info-section {
        gap: calc(12px * 1.15);
        padding: calc(16px * 1.15);
    }
    
    .info-section h4 {
        margin-bottom: calc(10px * 1.15);
    }
    
    .info-section > div[style*="text-align: center"] {
        margin-top: calc(10px * 1.15) !important;
    }
    
    #harita-ileri-btn {
        padding: clamp(10px, 2.5vw, 12px) clamp(24px, 5vw, 32px);
    }
}

@media (max-width: 480px) {
    .mesafe-bilgileri-modern {
        padding: calc(8px * 1.15);
        margin-bottom: 0;
    }
    
    .bilgi-item-modern.total {
        padding: calc(7px * 1.15);
        margin-top: calc(5px * 1.15);
        margin-bottom: 0;
    }
    
    .info-section {
        gap: calc(10px * 1.15);
        padding: calc(12px * 1.15);
    }
    
    .info-section h4 {
        margin-bottom: calc(8px * 1.15);
        padding-bottom: calc(8px * 1.15);
    }
    
    .kargo-secimi-modern {
        margin-bottom: calc(10px * 1.15);
    }
    
    .info-section > div[style*="text-align: center"] {
        margin-top: calc(8px * 1.15) !important;
    }
    
    #harita-ileri-btn {
        padding: clamp(8px, 2vw, 10px) clamp(20px, 4vw, 28px);
        font-size: clamp(13px, 3vw, 14px);
    }
}

/* ===== EKSTRA KÜÇÜK EKRANLAR ===== */
@media (max-width: 360px) {
    .mesafe-bilgileri-modern {
        padding: calc(6px * 1.15);
    }
    
    .bilgi-item-modern.total {
        padding: calc(6px * 1.15);
        margin-top: calc(4px * 1.15);
    }
    
    .info-section {
        gap: calc(8px * 1.15);
        padding: calc(10px * 1.15);
    }
    
    .info-section > div[style*="text-align: center"] {
        margin-top: calc(6px * 1.15) !important;
    }
}

/* ===== LANDSCAPE TABLET DÜZELTMESİ ===== */
@media (max-width: 1024px) and (orientation: landscape) {
    .info-section {
        gap: calc(10px * 1.15);
        padding: calc(15px * 1.15);
    }
    
    .mesafe-bilgileri-modern {
        padding: calc(8px * 1.15);
        margin-bottom: 0;
    }
    
    .bilgi-item-modern.total {
        padding: calc(7px * 1.15);
        margin-top: calc(5px * 1.15);
        margin-bottom: 0;
    }
    
    .info-section > div[style*="text-align: center"] {
        margin-top: calc(8px * 1.15) !important;
    }
}

/* ===== COMPACT MODE - TOUCH DEVICES ===== */
@media (pointer: coarse) {
    .info-section {
        gap: calc(12px * 1.15);
    }
    
    .mesafe-bilgileri-modern {
        padding: calc(10px * 1.15);
        margin-bottom: 0;
    }
    
    .bilgi-item-modern.total {
        padding: calc(9px * 1.15);
        margin-top: calc(6px * 1.15);
        margin-bottom: 0;
        min-height: 48px; /* Touch-friendly minimum height */
    }
    
    #harita-ileri-btn {
        min-height: 48px; /* Touch-friendly minimum height */
        margin-top: 0 !important;
    }
    
    .info-section > div[style*="text-align: center"] {
        margin-top: calc(10px * 1.15) !important;
    }
}

/* ===== MAP CONTAINER ===== */
#harita-container {
    background: var(--white);
    border-radius: clamp(8px, 2vw, 12px);
    padding: 0;
    margin-bottom: clamp(20px, 4vw, 30px);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 60% 40%;
    min-height: clamp(400px, 60vh, 500px);
    width: 100%;
}

.map-section {
    position: relative;
    background: var(--light-gray);
    min-height: clamp(400px, 60vh, 500px);
}

#map {
    width: 100%;
    height: 100%;
    min-height: inherit;
}

.info-section {
    padding: calc(clamp(20px, 4vw, 30px) * 1.15);
    background: var(--white);
    border-left: 1px solid var(--border-color);
    border-top: none;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: calc(clamp(20px, 4vw, 25px) * 1.15);
}

.info-section h4 {
    color: var(--primary-blue);
    font-size: calc(var(--font-lg) * 1.15);
    font-weight: 700;
    margin: 0 0 calc(clamp(15px, 3vw, 20px) * 1.15) 0;
    padding-bottom: calc(12px * 1.15);
    border-bottom: 2px solid var(--primary-blue);
    display: flex;
    align-items: center;
    gap: calc(8px * 1.15);
}

/* ===== KARGO OPTIONS ===== */
.kargo-secimi-modern {
    margin-bottom: calc(clamp(15px, 3vw, 20px) * 1.15);
}

.kargo-options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: calc(clamp(6px, 1.5vw, 8px) * 1.15);
}

.kargo-option-card {
    position: relative;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: calc(8px * 1.15);
    padding: calc(clamp(8px, 2vw, 12px) * 1.15);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.kargo-option-card:hover {
    border-color: var(--primary-blue-light);
    box-shadow: var(--shadow-md);
    transform: scale(1.02);
}

.kargo-option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.kargo-option-content {
    display: flex;
    align-items: center;
    gap: calc(clamp(8px, 2vw, 12px) * 1.15);
    flex-wrap: nowrap;
}

.kargo-icon {
    font-size: calc(clamp(20px, 4vw, 24px) * 1.15);
    filter: grayscale(50%);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.kargo-details {
    flex: 1;
    min-width: calc(100px * 1.15);
}

.kargo-name {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: calc(2px * 1.15);
    font-size: calc(clamp(12px, 2.5vw, 14px) * 1.15);
    line-height: 1.2;
}

.kargo-size {
    font-size: calc(clamp(10px, 2vw, 11px) * 1.15);
    color: var(--secondary-gray);
    line-height: 1.2;
}

.kargo-price {
    font-size: calc(clamp(14px, 3vw, 16px) * 1.15);
    font-weight: 700;
    color: var(--primary-green);
    margin-top: calc(2px * 1.15);
    text-align: right;
}

.kargo-option-card:has(input[type="radio"]:checked) {
    background: linear-gradient(135deg, #e9ecef, #e3e7eb);
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(13, 27, 42, 0.1);
}

.kargo-option-card:has(input[type="radio"]:checked) .kargo-icon {
    filter: grayscale(0%);
    transform: scale(1.25);
}

/* ===== DISTANCE INFO ===== */
/* ===== DISTANCE INFO ===== */
.mesafe-bilgileri-modern {
    background: var(--light-gray);
    border-radius: calc(8px * 1.15);
    padding: calc(clamp(10px, 2.5vw, 12px) * 1.15); /* Padding azaltıldı */
    flex-shrink: 0;
    margin-bottom: 0; /* Alt margin kaldırıldı */
}
.bilgi-item-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(clamp(6px, 1.5vw, 8px) * 1.15) 0;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: nowrap;
    gap: calc(10px * 1.15);
}

.bilgi-item-modern:last-child {
    border-bottom: none;
}

.bilgi-label-modern {
    font-size: calc(clamp(11px, 2.2vw, 12px) * 1.15);
    color: #2d3748;
    font-weight: 500;
    flex: 1;
    min-width: calc(80px * 1.15);
}

.bilgi-value-modern {
    font-size: calc(clamp(12px, 2.5vw, 14px) * 1.15);
    font-weight: 700;
    color: var(--dark-text);
    text-align: right;
    white-space: nowrap;
}

.bilgi-item-modern.total {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    color: var(--white);
    padding: calc(clamp(8px, 2vw, 10px) * 1.15); /* Padding azaltıldı */
    border-radius: calc(6px * 1.15);
    margin-top: calc(8px * 1.15); /* Margin azaltıldı */
    margin-bottom: 0; /* Alt margin kaldırıldı */
}

.bilgi-item-modern.total .bilgi-label-modern,
.bilgi-item-modern.total .bilgi-value-modern {
    color: var(--white);
}

.bilgi-item-modern.total .bilgi-value-modern {
    font-size: calc(clamp(14px, 3vw, 16px) * 1.15);
}

/* ===== CUSTOMER INFO FORMS ===== */
#musteri-bilgileri {
    background: var(--white);
    border-radius: clamp(8px, 2vw, 12px);
    padding: 0;
    margin-bottom: clamp(20px, 4vw, 30px);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    width: 100%;
}

.bilgi-formlari {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 30px;
    padding: 30px;
    width: 100%;
    box-sizing: border-box;
}

.gonderici-form,
.alici-form {
    padding: 20px;
    background: var(--light-gray);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 400px;
}

.gonderici-form h4,
.alici-form h4 {
    color: var(--primary-blue);
    font-size: clamp(14px, 3vw, 16px);
    font-weight: 600;
    margin-bottom: clamp(15px, 3vw, 20px);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-blue);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.musteri-input-group {
    margin-bottom: clamp(12px, 3vw, 18px);
    width: 100%;
    max-width: 100%;
}

.musteri-input-group label {
    display: block;
    font-size: clamp(12px, 2.5vw, 14px);
    font-weight: 600;
    color: var(--secondary-gray);
    margin-bottom: 6px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.musteri-input-group input,
.musteri-input-group textarea {
    width: 100%;
    padding: clamp(8px, 2vw, 10px) clamp(10px, 2.5vw, 14px);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: clamp(13px, 2.8vw, 14px);
    transition: all 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
}

.musteri-input-group input:focus,
.musteri-input-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue-light);
    box-shadow: 0 0 0 3px rgba(82, 109, 130, 0.1);
}

.musteri-input-group textarea {
    resize: vertical;
    min-height: clamp(60px, 12vw, 80px);
    max-height: 150px;
}

.teslimat-zamani-secenekleri {
    grid-column: 1 / -1;
    margin-top: clamp(15px, 3vw, 25px);
    padding: clamp(15px, 3vw, 20px);
    background: var(--white);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    width: 100%;
    box-sizing: border-box;
}

.teslimat-zamani-secenekleri h4 {
    color: var(--primary-blue);
    font-size: clamp(16px, 3.5vw, 18px);
    font-weight: 700;
    margin-bottom: clamp(15px, 3vw, 20px);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-blue);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.teslimat-secenekleri {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(10px, 2vw, 20px);
    margin-bottom: clamp(15px, 3vw, 20px);
    width: 100%;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 768px) {
    .bilgi-formlari {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .gonderici-form,
    .alici-form {
        padding: 15px;
        min-height: auto;
    }
    
    .teslimat-secenekleri {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .bilgi-formlari {
        padding: 15px;
        gap: 15px;
    }
    
    .gonderici-form,
    .alici-form {
        padding: 12px;
    }
    
    .teslimat-zamani-secenekleri {
        padding: 12px;
        margin-top: 12px;
    }
}

.fatura-detay-item span {
    color: var(--dark-text);
    font-weight: 700;
    font-size: var(--font-sm);
}

/* ===== FINAL ACTIONS ===== */
.final-actions {
    padding: clamp(20px, 5vw, 30px);
    background: var(--light-gray);
    text-align: center;
    border-top: 1px solid var(--border-color);
}

/* ===== TRACKING SEARCH ===== */
.kurye-takip-container {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 20px;
}

.kurye-arama-form {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.kurye-arama-form::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.kurye-arama-form h2 {
    color: var(--white);
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.kurye-arama-form > p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    text-align: center;
    margin: 0 0 25px 0;
}

.arama-secenekleri {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: nowrap;
}

.arama-tipi-label {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 12px 24px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
    flex: 1;
    text-align: center;
    white-space: nowrap;
}

.arama-tipi-label:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.3);
}

.arama-tipi-label input[type="radio"] {
    display: none;
}

.arama-tipi-label input[type="radio"]:checked + span {
    color: var(--white);
}

.arama-tipi-label:has(input:checked) {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

.arama-input-container {
    max-width: 100%;
    margin: 0 auto 25px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.arama-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark-text);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.arama-input:focus {
    outline: none;
    background: var(--white);
    border-color: var(--primary-blue-light);
    box-shadow: 0 0 0 4px rgba(82, 109, 130, 0.1);
    transform: translateY(-1px);
}

.arama-input::placeholder {
    color: var(--secondary-gray);
}

.arama-input-container .kurye-btn.primary {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
    color: var(--white);
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    width: auto;
    max-width: 300px;
    text-align: center;
    align-self: center;
}

.arama-input-container .kurye-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.arama-ornekleri {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.arama-ornekleri p {
    margin: 5px 0;
}

.arama-ornekleri strong {
    color: var(--white);
}

/* ===== TRACKING MODAL RESPONSIVE FIXES ===== */

/* Base modal styles - updated for responsive behavior */
.kurye-takip-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 27, 42, 0.85);
    backdrop-filter: blur(12px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
    padding: clamp(10px, 3vw, 20px);
}

.kurye-takip-modal-card {
    background: #ffffff;
    border-radius: clamp(16px, 4vw, 24px);
    max-width: min(1000px, 95vw);
    width: 100%;
    max-height: min(90vh, 800px);
    overflow: hidden;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.15),
        0 10px 40px rgba(13, 27, 42, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.kurye-modal-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    padding: clamp(20px, 5vw, 30px) clamp(20px, 5vw, 40px);
    position: relative;
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.kurye-modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.kurye-modal-header h2 {
    margin: 0;
    font-size: clamp(18px, 4vw, 28px);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: clamp(8px, 2vw, 12px);
    padding-right: clamp(50px, 12vw, 60px);
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

.kurye-modal-header h2::before {
    content: '📦';
    font-size: clamp(20px, 5vw, 32px);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.kurye-modal-close-btn {
    position: absolute;
    top: clamp(15px, 4vw, 20px);
    right: clamp(15px, 4vw, 20px);
    width: clamp(36px, 8vw, 44px);
    height: clamp(36px, 8vw, 44px);
    border-radius: clamp(8px, 2vw, 12px);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: clamp(16px, 4vw, 20px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    font-weight: 500;
}

.kurye-modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.kurye-modal-close-btn:active {
    transform: scale(0.95);
}

.kurye-modal-content {
    padding: 0;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
    display: flex;
    flex-direction: column;
}

.kurye-modal-content::-webkit-scrollbar {
    width: 8px;
}

.kurye-modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.kurye-modal-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.kurye-modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gray);
}

/* Status section responsive */
.takip-durum-section {
    text-align: center;
    padding: clamp(20px, 5vw, 40px) clamp(20px, 5vw, 40px) clamp(15px, 4vw, 30px);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    flex-shrink: 0;
}

.takip-durum-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

/* Status badge responsive */
.durum-badge {
    display: inline-flex;
    align-items: center;
    gap: clamp(6px, 1.5vw, 8px);
    padding: clamp(10px, 2.5vw, 14px) clamp(20px, 5vw, 32px);
    border-radius: 50px;
    font-size: clamp(13px, 3vw, 16px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    word-break: keep-all;
    white-space: nowrap;
}

.durum-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: badgeShimmer 3s infinite;
}

.durum-siparis-alindi {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    color: var(--white);
}

.durum-kurye-yolda {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: var(--white);
}

.durum-kargo-alindi,
.durum-teslim-edildi {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
    color: var(--white);
}

.durum-planli-siparis {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: var(--white);
}

/* Detail grid responsive */
.siparis-detay-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: clamp(16px, 4vw, 24px);
    padding: clamp(20px, 5vw, 40px);
    flex: 1;
}

/* Detail cards responsive */
.detay-card {
    background: var(--white);
    border-radius: clamp(12px, 3vw, 20px);
    padding: clamp(16px, 4vw, 28px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    min-width: 0;
}

.detay-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue-light));
}

.detay-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 8px 16px rgba(0, 0, 0, 0.04);
    border-color: var(--primary-blue-light);
}

.detay-card h3 {
    color: var(--primary-blue);
    font-size: clamp(16px, 4vw, 20px);
    font-weight: 700;
    margin: 0 0 clamp(16px, 4vw, 24px) 0;
    padding-bottom: clamp(12px, 3vw, 16px);
    border-bottom: 2px solid rgba(13, 27, 42, 0.1);
    display: flex;
    align-items: center;
    gap: clamp(8px, 2vw, 12px);
    letter-spacing: -0.5px;
    word-break: break-word;
}

.gonderici-kart h3::before { 
    content: '📤'; 
    font-size: clamp(20px, 5vw, 24px);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.alici-kart h3::before { 
    content: '📥'; 
    font-size: clamp(20px, 5vw, 24px);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.siparis-kart h3::before { 
    content: '📋'; 
    font-size: clamp(20px, 5vw, 24px);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.ucret-kart h3::before { 
    content: '💰'; 
    font-size: clamp(20px, 5vw, 24px);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Detail items responsive */
.detay-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: clamp(8px, 2vw, 12px) 0;
    border-bottom: 1px solid rgba(241, 245, 249, 0.8);
    transition: all 0.2s ease;
    flex-wrap: wrap;
    gap: clamp(8px, 2vw, 12px);
    min-width: 0;
}

.detay-item:hover {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    margin: 0 -12px;
    padding: 12px;
    border-radius: 12px;
    border-bottom: 1px solid transparent;
}

.detay-item:last-child {
    border-bottom: none;
}

.detay-item .label {
    color: #64748b;
    font-size: clamp(12px, 2.8vw, 14px);
    font-weight: 600;
    flex: 1;
    min-width: clamp(80px, 20vw, 120px);
    line-height: 1.5;
    word-break: break-word;
}

.detay-item .value {
    color: #1e293b;
    font-size: clamp(13px, 3vw, 15px);
    font-weight: 700;
    text-align: right;
    word-break: break-word;
    line-height: 1.5;
    max-width: 60%;
}

.detay-item .value a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.2s ease;
    word-break: break-all;
    border-bottom: 1px solid transparent;
}

.detay-item .value a:hover {
    color: var(--primary-blue-light);
    border-bottom-color: var(--primary-blue-light);
}

.detay-item.toplam-ucret {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
    color: var(--white);
    padding: 20px;
    border-radius: 16px;
    margin: 20px -8px 0;
    border: none;
    box-shadow: 0 8px 24px rgba(27, 94, 32, 0.2);
}

.detay-item.toplam-ucret:hover {
    margin: 20px -8px 0;
    transform: none;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
}

.detay-item.toplam-ucret .label,
.detay-item.toplam-ucret .value {
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Modal actions responsive */
.modal-actions {
    display: flex;
    gap: clamp(12px, 3vw, 16px);
    justify-content: center;
    padding: clamp(20px, 5vw, 32px) clamp(20px, 5vw, 40px);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    flex-wrap: wrap;
    flex-shrink: 0;
}

.modal-actions .kurye-btn {
    flex: 1 1 clamp(140px, 30vw, 200px);
    min-width: clamp(140px, 30vw, 160px);
    max-width: clamp(200px, 40vw, 240px);
    padding: clamp(12px, 3vw, 16px) clamp(20px, 5vw, 32px);
    border-radius: clamp(8px, 2vw, 12px);
    font-size: clamp(12px, 2.8vw, 14px);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    min-height: clamp(44px, 10vw, 52px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(6px, 1.5vw, 10px);
    text-decoration: none;
    box-sizing: border-box;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    word-break: keep-all;
    white-space: nowrap;
}

.modal-actions .kurye-btn.primary,
.popup-actions .btn-close-popup {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
    color: var(--white);
    box-shadow: 
        0 8px 24px rgba(27, 94, 32, 0.2),
        0 4px 8px rgba(27, 94, 32, 0.1);
}

.modal-actions .kurye-btn.secondary {
    background: var(--white);
    color: var(--dark-text);
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.modal-actions .kurye-btn.primary:hover,
.popup-actions .btn-close-popup:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 32px rgba(27, 94, 32, 0.3),
        0 8px 16px rgba(27, 94, 32, 0.15);
}

.modal-actions .kurye-btn.secondary:hover {
    background: var(--light-gray);
    border-color: var(--primary-blue-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* ===== TABLET RESPONSIVE (768px and below) ===== */
@media (max-width: 768px) {
    .kurye-arama-form {
        padding: 30px 20px;
    }

    .kurye-arama-form h2 {
        font-size: 24px;
    }
    
    .arama-secenekleri {
        flex-direction: row;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .arama-tipi-label {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .arama-input {
        font-size: 16px;
        padding: 14px 18px;
    }
    
    .arama-input-container .kurye-btn.primary {
        padding: 12px 24px;
        font-size: 15px;
    }
    
    #harita-container {
        grid-template-columns: 1fr;
    }
    
    .info-section {
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
    
    /* Modal responsive adjustments */
    .kurye-takip-modal-overlay {
        padding: 10px;
    }
    
    .kurye-takip-modal-card {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 16px;
    }
    
    .kurye-modal-header {
        padding: 20px;
    }
    
    .kurye-modal-header h2 {
        font-size: 18px;
        padding-right: 45px;
        gap: 8px;
    }
    
    .kurye-modal-close-btn {
        width: 36px;
        height: 36px;
        top: 16px;
        right: 16px;
        font-size: 16px;
        border-radius: 8px;
    }
    
    .takip-durum-section {
        padding: 24px 20px 20px;
    }
    
    .durum-badge {
        padding: 10px 20px;
        font-size: 13px;
        gap: 6px;
        letter-spacing: 0.3px;
    }
    
    .siparis-detay-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 24px 20px;
    }
    
    .detay-card {
        padding: 18px;
        border-radius: 12px;
    }
    
    .detay-card h3 {
        font-size: 16px;
        margin-bottom: 16px;
        padding-bottom: 12px;
        gap: 8px;
    }
    
    .detay-item {
        padding: 8px 0;
        gap: 8px;
    }
    
    .detay-item .label {
        font-size: 12px;
        min-width: 90px;
    }
    
    .detay-item .value {
        font-size: 13px;
        max-width: 65%;
    }
    
    .modal-actions {
        padding: 20px;
        gap: 12px;
        flex-direction: row;
    }
    
    .modal-actions .kurye-btn {
        min-width: 120px;
        font-size: 12px;
        padding: 12px 20px;
        min-height: 44px;
    }

    /* Toast adjustments for mobile */
    .kurye-toast-message {
        right: clamp(10px, 2.5vw, 15px);
        left: auto;
        min-width: 220px;
        max-width: 320px;
        transform: translateX(350px);
        padding: 14px 16px;
        max-height: 100px;
    }
    
    .toast-message {
        font-size: 14px;
        -webkit-line-clamp: 2;
        max-height: 56px;
    }
    
    .toast-icon {
        font-size: 18px;
    }
}

/* ===== MOBILE RESPONSIVE (480px and below) ===== */
@media (max-width: 480px) {
    /* Toast adjustments for small mobile */
    .kurye-toast-message {
        top: clamp(10px, 2vw, 12px);
        right: clamp(8px, 2vw, 12px);
        left: clamp(8px, 2vw, 12px);
        transform: translateY(-100px);
        min-width: 200px;
        max-width: 280px;
        padding: 12px 14px;
        max-height: 90px;
    }
    
    .kurye-toast-message.show {
        transform: translateY(0);
    }
    
    .kurye-toast-message.hide {
        transform: translateY(-100px);
    }
    
    .toast-message {
        font-size: 13px;
        -webkit-line-clamp: 2;
        max-height: 52px;
    }
    
    .toast-icon {
        font-size: 16px;
    }
    
    .toast-close {
        width: 24px;
        height: 24px;
        min-width: 24px;
        min-height: 24px;
        font-size: 14px;
    }
    
    .progress-step {
        min-width: 60px;
    }
    
    .progress-step-number {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .progress-step-title {
        font-size: 9px;
        max-width: 60px;
    }
    
    /* Modal mobile fixes */
    .kurye-takip-modal-overlay {
        padding: 5px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .kurye-takip-modal-card {
        border-radius: 12px;
        max-height: calc(100vh - 40px);
    }
    
    .kurye-modal-header {
        padding: 16px;
    }
    
    .kurye-modal-header h2 {
        font-size: 16px;
        padding-right: 40px;
        gap: 6px;
        line-height: 1.3;
    }
    
    .kurye-modal-close-btn {
        width: 32px;
        height: 32px;
        top: 12px;
        right: 12px;
        font-size: 14px;
        border-radius: 6px;
    }
    
    .takip-durum-section {
        padding: 20px 16px 16px;
    }
    
    .durum-badge {
        padding: 8px 16px;
        font-size: 11px;
        gap: 4px;
        letter-spacing: 0.2px;
        border-radius: 20px;
    }
    
    .siparis-detay-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }
    
    .detay-card {
        padding: 14px;
        border-radius: 10px;
    }
    
    .detay-card h3 {
        font-size: 14px;
        margin-bottom: 12px;
        padding-bottom: 8px;
        gap: 6px;
    }
    
    .detay-card h3::before {
        font-size: 16px;
    }
    
    .detay-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 6px 0;
    }
    
    .detay-item .label {
        font-size: 11px;
        min-width: auto;
        color: #6b7280;
    }
    
    .detay-item .value {
        font-size: 13px;
        text-align: left;
        max-width: 100%;
        font-weight: 600;
        color: #1f2937;
    }
    
    .detay-item.toplam-ucret {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 12px;
        margin: 12px -6px 0;
        border-radius: 8px;
    }
    
    .detay-item.toplam-ucret .label,
    .detay-item.toplam-ucret .value {
        font-size: 14px;
    }
    
    .modal-actions {
        padding: 16px;
        gap: 10px;
        flex-direction: column;
    }
    
    .modal-actions .kurye-btn {
        width: 100%;
        min-width: auto;
        max-width: none;
        flex: none;
        font-size: 11px;
        padding: 12px 16px;
        min-height: 40px;
        letter-spacing: 0.3px;
    }
    
    .arama-secenekleri {
        flex-direction: column;
        gap: 12px;
    }
    
    .form-actions,
    .modal-actions,
    .popup-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .form-actions .kurye-btn,
    .modal-actions .kurye-btn,
    .popup-actions .btn-close-popup,
    .popup-actions .btn-cancel-order {
        width: 100%;
        max-width: none;
        flex: none;
    }
    
    .cancel-confirmation-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .confirm-cancel-btn,
    .back-to-details-btn {
        width: 100%;
        min-width: auto;
        flex: none;
    }
}

/* ===== VERY SMALL MOBILE (360px and below) ===== */
@media (max-width: 360px) {
    .kurye-modal-header h2 {
        font-size: 14px;
        padding-right: 35px;
    }
    
    .kurye-modal-close-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .durum-badge {
        padding: 6px 12px;
        font-size: 10px;
        border-radius: 16px;
    }
    
    .siparis-detay-grid {
        padding: 12px;
    }
    
    .detay-card {
        padding: 12px;
    }
    
    .detay-card h3 {
        font-size: 13px;
        margin-bottom: 10px;
        padding-bottom: 6px;
    }
    
    .modal-actions {
        padding: 12px;
    }
    
    .modal-actions .kurye-btn {
        font-size: 10px;
        padding: 10px 14px;
        min-height: 36px;
    }
}

/* ===== LANDSCAPE MOBILE FIXES ===== */
@media (max-height: 600px) and (orientation: landscape) {
    .kurye-takip-modal-overlay {
        align-items: flex-start;
        padding-top: 10px;
    }
    
    .kurye-takip-modal-card {
        max-height: 95vh;
    }
    
    .kurye-modal-header {
        padding: 12px 16px;
    }
    
    .kurye-modal-header h2 {
        font-size: 14px;
    }
    
    .takip-durum-section {
        padding: 16px;
    }
    
    .siparis-detay-grid {
        padding: 16px;
        gap: 10px;
    }
    
    .detay-card {
        padding: 12px;
    }
    
    .modal-actions {
        padding: 12px 16px;
    }

    /* Toast for landscape tablets */
    .kurye-toast-message {
        min-width: 200px;
        max-width: 300px;
        padding: 12px 14px;
    }
}

/* ===== CANCEL BUTTONS ===== */
.cancel-order-btn,
.confirm-cancel-btn {
    background: linear-gradient(135deg, var(--error-red), var(--error-red-dark));
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 
        0 8px 24px rgba(239, 68, 68, 0.2),
        0 4px 8px rgba(239, 68, 68, 0.1);
    min-width: 160px;
    min-height: 52px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.popup-actions .btn-cancel-order,
.cancel-order-btn {
    background: linear-gradient(135deg, var(--error-red), var(--error-red-dark));
    color: white;
    box-shadow: 
        0 8px 24px rgba(239, 68, 68, 0.2),
        0 4px 8px rgba(239, 68, 68, 0.1);
}

.popup-actions .btn-cancel-order:hover,
.cancel-order-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 32px rgba(239, 68, 68, 0.3),
        0 8px 16px rgba(239, 68, 68, 0.15);
}

.cancel-order-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== CANCEL CONFIRMATION MODAL ===== */
.cancel-confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    padding: clamp(15px, 4vw, 20px);
}

.cancel-confirmation-card {
    background: white;
    border-radius: 16px;
    max-width: min(500px, 95vw);
    width: 100%;
    padding: clamp(25px, 6vw, 30px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: slideUp 0.4s ease;
}

.cancel-confirmation-card h3 {
    color: var(--error-red-dark);
    font-size: clamp(18px, 4.5vw, 22px);
    font-weight: 700;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cancel-reason-section {
    background: #f9fafb;
    border-radius: 12px;
    padding: clamp(15px, 4vw, 20px);
    margin: clamp(15px, 4vw, 20px) 0;
    text-align: left;
}

.cancel-reason-section label {
    display: block;
    color: #374151;
    font-size: var(--font-sm);
    font-weight: 600;
    margin-bottom: 8px;
}

.cancel-reason-input {
    width: 100%;
    padding: clamp(10px, 2.5vw, 12px) clamp(12px, 3vw, 15px);
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: var(--font-sm);
    font-family: inherit;
    resize: vertical;
    min-height: clamp(60px, 15vw, 80px);
    transition: all 0.3s ease;
}

.cancel-reason-input:focus {
    outline: none;
    border-color: var(--error-red);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.confirmation-actions {
    display: flex;
    gap: clamp(10px, 2.5vw, 12px);
    margin-top: clamp(20px, 5vw, 25px);
    flex-wrap: wrap;
}

.confirm-cancel-btn,
.back-to-details-btn {
    flex: 1;
    padding: clamp(12px, 3vw, 14px) clamp(20px, 5vw, 24px);
    border-radius: 10px;
    font-size: var(--font-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    min-width: 120px;
}

.confirm-cancel-btn {
    background: linear-gradient(135deg, var(--error-red), var(--error-red-dark));
    color: white;
}

.back-to-details-btn {
    background: #6b7280;
    color: white;
}

.confirm-cancel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
}

.back-to-details-btn:hover {
    background: #4b5563;
    transform: translateY(-2px);
}

/* ===== PLANNED DELIVERY ===== */
.planli-teslimat-section {
    background: var(--light-gray);
    border-radius: 12px;
    padding: clamp(20px, 5vw, 25px);
    margin: clamp(20px, 5vw, 25px) 0;
    border-left: 4px solid var(--orange);
}

.planli-teslimat-section h4 {
    color: var(--primary-blue);
    font-size: var(--font-lg);
    font-weight: 700;
    margin: 0 0 clamp(15px, 4vw, 20px) 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 8px;
}

.teslimat-option {
    position: relative;
    min-width: 0;
}

.teslimat-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.teslimat-option-label {
    display: flex;
    align-items: center;
    gap: clamp(8px, 2vw, 15px);
    padding: clamp(12px, 3vw, 18px) clamp(12px, 3vw, 20px);
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: clamp(60px, 12vw, 80px);
    width: 100%;
    box-sizing: border-box;
}

.teslimat-option-label:hover {
    border-color: var(--primary-blue-light);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

.teslimat-option input[type="radio"]:checked + .teslimat-option-label {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
}

.option-icon {
    font-size: clamp(20px, 5vw, 28px);
    flex-shrink: 0;
}

.teslimat-option input[type="radio"]:checked + .teslimat-option-label .option-icon {
    opacity: 1;
    transform: scale(1.1);
}

.option-content {
    flex: 1;
    min-width: 0;
}

.option-title {
    font-size: clamp(14px, 3vw, 16px);
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 4px;
    word-wrap: break-word;
}

.option-desc {
    font-size: clamp(11px, 2.5vw, 12px);
    color: var(--secondary-gray);
    line-height: 1.4;
    word-wrap: break-word;
}

#planli-teslimat-detaylar {
    background: var(--white);
    border-radius: 10px;
    padding: clamp(15px, 4vw, 20px);
    border: 2px solid var(--primary-blue-light);
    margin-top: clamp(15px, 4vw, 20px);
    animation: fadeInUp 0.3s ease;
}

.planli-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: clamp(10px, 2vw, 20px);
    margin-bottom: clamp(15px, 3vw, 20px);
}

.planli-inputs .musteri-input-group label {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--font-sm);
}

.planli-inputs input[type="date"],
.planli-inputs select {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: clamp(10px, 2.5vw, 12px) clamp(12px, 3vw, 14px);
    font-size: var(--font-sm);
    transition: all 0.3s ease;
    font-family: inherit;
    width: 100%;
}

.planli-inputs input[type="date"]:focus,
.planli-inputs select:focus {
    outline: none;
    border-color: var(--primary-blue-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.planli-inputs select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.planli-info {
    margin-top: 15px;
}

.info-box {
    background: linear-gradient(135deg, #e0f2fe, #b3e5fc);
    border: 1px solid #4fc3f7;
    border-radius: 8px;
    padding: clamp(12px, 3vw, 15px);
    display: flex;
    align-items: flex-start;
    gap: clamp(10px, 2.5vw, 12px);
    flex-wrap: wrap;
}

.info-icon {
    font-size: clamp(18px, 4vw, 20px);
    flex-shrink: 0;
    margin-top: 2px;
}

.info-text {
    flex: 1;
    font-size: var(--font-sm);
    line-height: 1.5;
    color: #0277bd;
    min-width: 200px;
}

.info-text strong {
    color: #01579b;
}

/* ===== AUTOCOMPLETE STYLES ===== */
.moto-suggestions-container,
.pac-container {
    position: fixed !important;
    background: var(--white);
    border: none !important;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 999999 !important;
    max-height: 320px;
    overflow-y: auto;
    min-width: 300px;
    max-width: min(500px, 90vw);
    font-family: inherit;
    margin-top: 5px;
}

.moto-suggestion-item,
.pac-item {
    padding: clamp(10px, 2.5vw, 14px) clamp(14px, 3.5vw, 18px);
    cursor: pointer;
    border-bottom: 1px solid var(--light-gray);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: clamp(10px, 2.5vw, 12px);
    background: var(--white);
    font-size: var(--font-sm);
    color: var(--dark-text);
}

.moto-suggestion-item:hover,
.pac-item:hover {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding-left: clamp(18px, 4.5vw, 22px);
}

.moto-suggestion-item:last-child,
.pac-item:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.moto-suggestion-item:first-child,
.pac-item:first-child {
    border-radius: 8px 8px 0 0;
}

.pac-item-selected {
    background-color: #f8fafc;
}

.pac-matched {
    font-weight: 700;
    color: var(--primary-blue);
}

.pac-item-query {
    font-size: var(--font-xs);
    color: var(--secondary-gray);
}

/* ===== TOAST MESSAGES - UPDATED WITH LARGER SIZE AND NEW COLORS ===== */
.kurye-toast-message {
    position: fixed;
    top: clamp(15px, 3vw, 20px);
    right: clamp(15px, 3vw, 20px);
    left: auto;
    min-width: 280px;
    max-width: 420px;
    background: var(--toast-bg-primary);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(55, 65, 81, 0.25);
    border-left: 5px solid var(--toast-bg-secondary);
    padding: 18px 20px;
    z-index: 999999;
    opacity: 0;
    transform: translateX(350px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-height: 120px;
    margin-left: auto;
    backdrop-filter: blur(10px);
}

.kurye-toast-message.show {
    opacity: 1;
    transform: translateX(0);
}

.kurye-toast-message.hide {
    opacity: 0;
    transform: translateX(350px);
    transition: all 0.3s ease-in-out;
}

.kurye-toast-message.toast-success {
    border-left-color: var(--primary-green);
    background: linear-gradient(135deg, var(--toast-bg-primary), var(--toast-bg-secondary));
    border-color: rgba(27, 94, 32, 0.3);
}

.kurye-toast-message.toast-error {
    border-left-color: var(--error-red);
    background: linear-gradient(135deg, var(--toast-bg-primary), var(--toast-bg-secondary));
    border-color: rgba(239, 68, 68, 0.3);
}

.kurye-toast-message.toast-warning {
    border-left-color: var(--orange);
    background: linear-gradient(135deg, var(--toast-bg-primary), var(--toast-bg-secondary));
    border-color: rgba(232, 185, 35, 0.3);
}

.kurye-toast-message.toast-info {
    border-left-color: var(--primary-blue-light);
    background: linear-gradient(135deg, var(--toast-bg-primary), var(--toast-bg-secondary));
    border-color: rgba(82, 109, 130, 0.3);
}

.toast-message {
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
    word-wrap: break-word;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    max-height: 72px;
}

.toast-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
    animation: none;
}

.kurye-toast-message.toast-success .toast-icon {
    color: var(--primary-green);
    filter: drop-shadow(0 2px 4px rgba(27, 94, 32, 0.3));
}

.kurye-toast-message.toast-error .toast-icon {
    color: var(--error-red);
    filter: drop-shadow(0 2px 4px rgba(239, 68, 68, 0.3));
}

.kurye-toast-message.toast-warning .toast-icon {
    color: var(--orange);
    filter: drop-shadow(0 2px 4px rgba(232, 185, 35, 0.3));
}

.kurye-toast-message.toast-info .toast-icon {
    color: var(--primary-blue-light);
    filter: drop-shadow(0 2px 4px rgba(82, 109, 130, 0.3));
}

.toast-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.kurye-toast-message.toast-success .toast-message {
    color: #ffffff;
}

.kurye-toast-message.toast-error .toast-message {
    color: #ffffff;
}

.kurye-toast-message.toast-warning .toast-message {
    color: #ffffff;
}

.kurye-toast-message.toast-info .toast-message {
    color: #ffffff;
}

.toast-close {
    background: none;
    border: none;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
    min-height: 26px;
    min-width: 26px;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: scale(1.1);
}

.toast-close span {
    line-height: 1;
    font-weight: bold;
    font-size: 14px;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    width: 100%;
    transform-origin: left;
    animation: progressBar 8s linear forwards;
}

.kurye-toast-message.toast-success .toast-progress {
    background: var(--primary-green);
}

.kurye-toast-message.toast-error .toast-progress {
    background: var(--error-red);
}

.kurye-toast-message.toast-warning .toast-progress {
    background: var(--orange);
}

.kurye-toast-message.toast-info .toast-progress {
    background: var(--primary-blue-light);
}

.kurye-toast-message:hover .toast-progress {
    animation-play-state: paused;
}

/* ===== CANCEL ORDER SECTION ===== */
.cancel-order-section {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 2px solid var(--error-red);
    border-radius: 16px;
    padding: clamp(20px, 5vw, 25px);
    margin: clamp(20px, 5vw, 25px) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cancel-order-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cancel-order-section h4 {
    color: var(--error-red-dark);
    font-size: clamp(16px, 4vw, 18px);
    font-weight: 700;
    margin: 0 0 clamp(10px, 2.5vw, 12px) 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cancel-order-section p {
    color: #7f1d1d;
    font-size: clamp(13px, 3vw, 14px);
    margin: 10px 0 clamp(15px, 4vw, 20px) 0;
    line-height: 1.5;
}

/* ===== CANCELLED ORDER POPUP ===== */
.cancelled-order-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.cancelled-order-popup {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.5s ease;
}

.cancelled-order-popup button {
    background: #3b82f6;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 7px;
}

.cancelled-order-popup button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cancelled-order-popup button:last-child {
    background: #10b981;
}

/* ===== LOADING & MESSAGES ===== */
.loading-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    padding: clamp(30px, 7vw, 40px);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    z-index: 9999;
    text-align: center;
    min-width: clamp(280px, 70vw, 350px);
}

.moto-spinner {
    font-size: clamp(32px, 8vw, 40px);
    animation: motoSpin 1.5s ease-in-out infinite;
    margin-bottom: 20px;
}

/* ===== ERROR STATES ===== */
.input-error {
    border-color: var(--error-red) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.input-success {
    border-color: var(--primary-green) !important;
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.1) !important;
}

/* ===== LOADING STATES ===== */
.loading {
    position: relative;
    color: transparent !important;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

/* ===== ANIMATIONS ===== */
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes badgeShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes progressBar {
    0% { transform: scaleX(1); }
    100% { transform: scaleX(0); }
}

@keyframes motoSpin {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(10px) rotate(5deg); }
    75% { transform: translateX(-10px) rotate(-5deg); }
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .info-section {
        padding: calc(clamp(15px, 3vw, 20px) * 1.15);
    }
    
    .kargo-name {
        font-size: calc(clamp(11px, 2.2vw, 13px) * 1.15);
    }
    
    .kargo-price {
        font-size: calc(clamp(13px, 2.8vw, 15px) * 1.15);
    }
    
    .kargo-icon {
        font-size: calc(clamp(18px, 3.5vw, 22px) * 1.15);
    }

    /* Toast adjustments for tablet */
    .kurye-toast-message {
        min-width: 240px;
        max-width: 360px;
        padding: 16px 18px;
    }
}

/* ===== TABLET LANDSCAPE ===== */
@media (max-width: 767px) and (orientation: landscape) {
    .kurye-progress-tracker {
        padding: 10px 15px;
    }
    
    .progress-step-number {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }
    
    .progress-step-title {
        font-size: 8px;
    }
    
    .kurye-modal-header {
        padding: 15px 20px;
    }
    
    .kurye-modal-header h2 {
        font-size: 16px;
    }

    /* Toast for landscape tablets */
    .kurye-toast-message {
        min-width: 200px;
        max-width: 300px;
        padding: 12px 14px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .kurye-progress-tracker,
    .kurye-btn,
    .cancel-order-btn,
    .modal-actions,
    .form-actions,
    .kurye-toast-message {
        display: none !important;
    }
    
    .kurye-takip-modal-card {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .detay-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .kurye-toast-message {
        transition: opacity 0.3s ease !important;
    }
}

@media (prefers-contrast: high) {
    .kurye-btn,
    .cancel-order-btn,
    .confirm-cancel-btn {
        border: 2px solid currentColor;
    }
    
    .kargo-option-card,
    .detay-card {
        border-width: 2px;
    }
    
    .kurye-toast-message {
        border: 2px solid currentColor;
        background: var(--toast-bg-primary) !important;
    }
}

/* ===== FOCUS VISIBLE SUPPORT ===== */
@supports selector(:focus-visible) {
    .kurye-btn:focus:not(:focus-visible),
    .cancel-order-btn:focus:not(:focus-visible),
    .arama-input:focus:not(:focus-visible),
    .musteri-input-group input:focus:not(:focus-visible) {
        outline: none;
    }
    
    .kurye-btn:focus-visible,
    .cancel-order-btn:focus-visible {
        outline: 3px solid rgba(59, 130, 246, 0.5);
        outline-offset: 2px;
    }
}

/* ===== SAFE AREA INSETS ===== */
@supports (padding: max(0px)) {
    .kurye-main-content {
        padding-left: max(var(--container-padding), env(safe-area-inset-left));
        padding-right: max(var(--container-padding), env(safe-area-inset-right));
    }
    
    .kurye-toast-message {
        right: max(clamp(15px, 3vw, 20px), env(safe-area-inset-right));
        top: max(clamp(15px, 3vw, 20px), env(safe-area-inset-top));
    }
}

/* ===== CONTAINER QUERIES SUPPORT ===== */
@supports (container-type: inline-size) {
    .kurye-form-container {
        container-type: inline-size;
    }
    
    @container (max-width: 600px) {
        .adres-row {
            grid-template-columns: 1fr;
        }
        
        .bilgi-formlari {
            grid-template-columns: 1fr;
        }
    }
}

/* ===== TOUCH FRIENDLY ADJUSTMENTS ===== */
@media (pointer: coarse) {
    .kurye-btn,
    .cancel-order-btn,
    .confirm-cancel-btn,
    .back-to-details-btn,
    .teslimat-option-label,
    .kargo-option-card,
    .arama-tipi-label {
        min-height: 48px;
        min-width: 48px;
    }
    
    .progress-step {
        padding: 8px;
    }
    
    .toast-close {
        min-height: 44px;
        min-width: 44px;
    }
    
    .kurye-btn:hover,
    .kargo-option-card:hover,
    .detay-card:hover,
    .cancel-order-btn:hover {
        transform: none;
    }

    .kurye-toast-message {
        min-width: 300px;
        max-width: 400px;
        padding: 16px 18px;
    }
}

/* ===== VIEWPORT HEIGHT FIX ===== */
.kurye-main-content {
    min-height: calc(100vh - 120px);
    min-height: calc(100dvh - 120px);
}

/* ===== Z-INDEX MANAGEMENT ===== */
.kurye-toast-message {
    z-index: 9999999 !important;
}

.kurye-takip-modal-overlay {
    z-index: 999999;
}

.progress-steps {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.progress-steps::-webkit-scrollbar {
    display: none;
}

/* ===== SUCCESS ANIMATIONS ===== */
.progress-step.success-animation {
    animation: successPulse 1s ease-in-out;
}

.progress-step.completed .progress-step-number {
    background: var(--primary-green) !important;
    border-color: var(--primary-green) !important;
    color: white !important;
    transition: all 0.5s ease;
}

.progress-step.completed .progress-step-number::after {
    content: '✓';
    font-size: clamp(16px, 3.5vw, 20px);
    font-weight: bold;
}

.progress-step.completed .progress-step-title {
    color: var(--primary-green) !important;
    font-weight: 700 !important;
    transition: all 0.5s ease;
}

/* ===== FINAL CLEANUP - REMOVE OLD DUPLICATE CLASSES ===== */
.kurye-message {
    display: none !important;
}

.form-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    padding: 20px;
    width: 100%;
}

#devam-et.kurye-btn.success {
    background: linear-gradient(135deg, #0d4f1c, #1b5e20);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(13, 79, 28, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 250px;
    justify-content: center;
    text-transform: none;
    letter-spacing: 0.5px;
}

#devam-et.kurye-btn.success:hover {
    background: linear-gradient(135deg, #1b5e20, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 79, 28, 0.4);
}

#devam-et.kurye-btn.success:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(27, 94, 32, 0.3);
}

#devam-et.kurye-btn.success:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.2);
}

@media (max-width: 768px) {
    .form-actions {
        margin: 20px 0;
        padding: 15px;
    }
    
    #devam-et.kurye-btn.success {
        min-width: 200px;
        padding: 14px 24px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .form-actions {
        margin: 15px 0;
        padding: 10px;
    }
    
    #devam-et.kurye-btn.success {
        min-width: 180px;
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 10px;
    }
}

/* ===== MAP TOAST STYLES ===== */
.map-toast-message {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--toast-bg-primary), var(--toast-bg-secondary));
    color: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(55, 65, 81, 0.4);
    z-index: 1000;
    max-width: 280px;
    width: auto;
    transform: translateX(-100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.map-toast-message.show {
    transform: translateX(0);
    opacity: 1;
}

.map-toast-message.hide {
    transform: translateX(-100%);
    opacity: 0;
}

.map-toast-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.map-toast-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #ffffff;
}

.map-toast-icon {
    font-size: 16px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.map-toast-title {
    flex: 1;
    color: #ffffff;
}

.map-toast-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.map-toast-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.map-toast-item .info-icon {
    font-size: 14px;
    width: 16px;
    text-align: center;
    color: #f3f4f6;
}

.map-toast-item .info-text {
    font-weight: 500;
    color: #f9fafb;
}

.map-toast-message:hover {
    transform: translateX(0) scale(1.02);
    box-shadow: 0 12px 40px rgba(55, 65, 81, 0.5);
    background: linear-gradient(135deg, var(--toast-bg-secondary), #6b7280);
}

@media (max-width: 768px) {
    .map-toast-message {
        top: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
        width: calc(100% - 20px);
    }
}

/* ===== SUCCESS ANIMATION STYLES ===== */
#success-animation-style {
    /* Bu style tag JavaScript tarafından ekleniyor */
}

@keyframes successPulse {
    0% { transform: translateY(-50%) scale(0); opacity: 0; }
    50% { transform: translateY(-50%) scale(1.2); opacity: 1; }
    100% { transform: translateY(-50%) scale(1); opacity: 1; }
}

/* ===== PREMIUM LOADING OVERLAY STYLES ===== */
.premium-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-loading-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
}

.premium-loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
}

.spinner-ring {
    width: 80px;
    height: 80px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    animation: bounce 2s infinite;
}

.premium-loading-card h3 {
    color: #1f2937;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.premium-loading-card p {
    color: #6b7280;
    margin: 0;
    font-size: 14px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, -50%) translateY(0); }
    40% { transform: translate(-50%, -50%) translateY(-10px); }
    60% { transform: translate(-50%, -50%) translateY(-5px); }
}

/* ===== TRACKING POPUP STYLES ===== */
.tracking-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    padding: 20px;
}

.tracking-popup-card {
    background: white;
    border-radius: 20px;
    max-width: 550px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUpBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUpBounce {
    from {
        opacity: 0;
        transform: translateY(100px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tracking-popup-header {
    background: linear-gradient(135deg, #10b981, #059669);
    padding: 30px;
    text-align: center;
}

.success-animation {
    display: inline-block;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.check-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid white;
    background: rgba(255, 255, 255, 0.1);
}

.icon-line {
    height: 5px;
    background-color: white;
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

.icon-line.line-tip {
    top: 46px;
    left: 14px;
    width: 25px;
    transform: rotate(45deg);
    animation: icon-line-tip 0.75s;
}

.icon-line.line-long {
    top: 38px;
    right: 8px;
    width: 47px;
    transform: rotate(-45deg);
    animation: icon-line-long 0.75s;
}

.icon-circle {
    top: -4px;
    left: -4px;
    z-index: 10;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: absolute;
    box-sizing: content-box;
    border: 4px solid rgba(255, 255, 255, 0.5);
}

.icon-fix {
    top: 8px;
    width: 5px;
    left: 26px;
    z-index: 1;
    height: 85px;
    position: absolute;
    transform: rotate(-45deg);
    background-color: #10b981;
}

@keyframes icon-line-tip {
    0% { width: 0; left: 1px; top: 19px; }
    54% { width: 0; left: 1px; top: 19px; }
    70% { width: 50px; left: -8px; top: 37px; }
    84% { width: 17px; left: 21px; top: 48px; }
    100% { width: 25px; left: 14px; top: 45px; }
}

@keyframes icon-line-long {
    0% { width: 0; right: 46px; top: 54px; }
    65% { width: 0; right: 46px; top: 54px; }
    84% { width: 55px; right: 0px; top: 35px; }
    100% { width: 47px; right: 8px; top: 38px; }
}

.tracking-popup-content {
    padding: 35px;
}

.tracking-popup-content h2 {
    color: #1f2937;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-align: center;
}

.success-message {
    color: #6b7280;
    font-size: 16px;
    text-align: center;
    margin: 0 0 30px 0;
}

.tracking-info-box {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 2px solid #86efac;
    border-radius: 16px;
    padding: 25px;
    margin: 25px 0;
    text-align: center;
}

.tracking-number-display {
    position: relative;
}

.tracking-label {
    display: block;
    color: #059669;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tracking-number-value {
    font-size: 32px;
    font-weight: 800;
    color: #059669;
    letter-spacing: 2px;
    margin: 10px 0;
    font-family: 'Courier New', monospace;
    background: white;
    padding: 12px 20px;
    border-radius: 10px;
    display: inline-block;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.copy-tracking-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    display: inline-block;
}

.copy-tracking-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.popup-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 30px 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: #f3f4f6;
    transform: translateX(5px);
}

.info-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.info-text {
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    flex: 1;
}

.popup-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 30px;
}

.btn-close-popup,
.btn-cancel-order {
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-close-popup {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-close-popup:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}

.btn-cancel-order {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-cancel-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
}

@media (max-width: 480px) {
    .tracking-popup-card {
        margin: 10px;
    }
    
    .tracking-popup-content {
        padding: 25px;
    }
    
    .tracking-popup-content h2 {
        font-size: 22px;
    }
    
    .tracking-number-value {
        font-size: 24px;
        padding: 10px 16px;
    }
    
    .popup-actions {
        flex-direction: column;
    }
}

/* ===== CANCEL CONFIRMATION STYLES ===== */
.cancel-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    padding: 20px;
}

.cancel-confirm-card {
    background: white;
    border-radius: 16px;
    max-width: 450px;
    width: 100%;
    padding: 35px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUpBounce 0.4s ease;
    text-align: center;
}

.cancel-confirm-header h3 {
    color: #dc2626;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px 0;
}

.cancel-reason-section {
    text-align: left;
    margin: 20px 0;
}

.cancel-reason-section label {
    display: block;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.cancel-reason-section textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.cancel-reason-section textarea:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.cancel-confirm-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.btn-confirm-cancel,
.btn-cancel-back {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-confirm-cancel {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.btn-cancel-back {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.btn-confirm-cancel:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
}

.btn-cancel-back:hover {
    background: #e5e7eb;
}

@media (max-width: 480px) {
    .cancel-confirm-card {
        padding: 25px;
    }
    
    .cancel-confirm-actions {
        flex-direction: column-reverse;
    }
}

/* ===== CANCELLED ORDER MESSAGE STYLES ===== */
.cancelled-order-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border: 3px solid #ef4444;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    z-index: 999999;
    text-align: center;
    max-width: 500px;
    width: 90%;
    animation: slideInUp 0.5s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0) scale(1);
    }
}

/* ===== BUSY TIMES SUMMARY STYLES ===== */
.busy-times-summary {
    margin-top: 8px;
    padding: 8px 12px;
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 6px;
    font-size: 12px;
    color: #92400e;
    text-align: center;
}

/* ===== PLANLI CALISMA SAATI UYARI STYLES ===== */
.planli-calisma-saati-uyari {
    /* Bu class JavaScript tarafından dinamik olarak ekleniyor */
}

.calisma-saatleri-mesaj {
    /* Bu class JavaScript tarafından dinamik olarak ekleniyor */
}

/* ===== ANDROID SPECIFIC STYLES ===== */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    /* Android için özel input stilleri */
    input[type="text"],
    input[type="tel"],
    input[type="email"],
    input[type="date"],
    textarea,
    select {
        font-size: 16px !important;
        -webkit-appearance: none !important;
    }
}

/* ===== ADDITIONAL TOAST CUSTOMIZATIONS ===== */
.kurye-toast-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kurye-toast-message:hover::before {
    opacity: 1;
}

/* Enhanced toast shadow for better visibility */
.kurye-toast-message.toast-success {
    box-shadow: 
        0 8px 32px rgba(55, 65, 81, 0.25),
        0 0 0 1px rgba(27, 94, 32, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.kurye-toast-message.toast-error {
    box-shadow: 
        0 8px 32px rgba(55, 65, 81, 0.25),
        0 0 0 1px rgba(239, 68, 68, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.kurye-toast-message.toast-warning {
    box-shadow: 
        0 8px 32px rgba(55, 65, 81, 0.25),
        0 0 0 1px rgba(232, 185, 35, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.kurye-toast-message.toast-info {
    box-shadow: 
        0 8px 32px rgba(55, 65, 81, 0.25),
        0 0 0 1px rgba(82, 109, 130, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
/* ===== SİPARİŞ ÖZETİ DETAY STİLLERİ ===== */
.siparis-ozeti-detaylar {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.siparis-ozeti-detaylar h3 {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f3f4f6;
}

.siparis-ozeti-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
    overflow-x: auto;
    padding: 5px;
}

.siparis-ozeti-item {
    border: 2px solid #000000;
    border-radius: 8px;
    padding: 10px 5px;
    text-align: center;
    min-width: 90px;
}

.siparis-ozeti-icon {
    color: #000000;
    font-size: 20px;
    margin-bottom: 3px;
}

.siparis-ozeti-label {
    color: #000000;
    font-size: 11px;
    font-weight: 600;
}

.siparis-ozeti-value {
    color: #000000;
    font-weight: 700;
}

.siparis-ozeti-value.mesafe {
    font-size: 16px;
}

.siparis-ozeti-value.sure {
    font-size: 16px;
}

.siparis-ozeti-value.kargo-tipi {
    font-size: 15px;
}

.siparis-ozeti-value.teslimat-tipi {
    font-size: 14px;
}

.siparis-ozeti-value.ucret {
    font-size: 16px;
}

.siparis-ozeti-value.km-fiyat {
    font-size: 16px;
}

/* ===== TOPLAM ÜCRET KART STİLLERİ ===== */
.toplam-ucret-container {
    background: linear-gradient(135deg, #0d4f1c, #1b5e20);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.toplam-ucret-baslik {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ===== RESPONSİVE DÜZENLEMELER ===== */
@media (max-width: 768px) {
    .siparis-ozeti-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
    
    .siparis-ozeti-item {
        min-width: 70px;
        padding: 8px 4px;
    }
    
    .siparis-ozeti-icon {
        font-size: 18px;
    }
    
    .siparis-ozeti-label {
        font-size: 10px;
    }
    
    .siparis-ozeti-value {
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .siparis-ozeti-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }
    
    .siparis-ozeti-item {
        min-width: 60px;
        padding: 6px 3px;
    }
    
    .siparis-ozeti-icon {
        font-size: 16px;
    }
    
    .siparis-ozeti-label {
        font-size: 9px;
    }
    
    .siparis-ozeti-value {
        font-size: 12px !important;
    }
    
    .toplam-ucret-baslik {
        font-size: 20px;
    }
}
/* ==================== MODAL TEMEL STİLLER ==================== */

/* Modal overlay - Tam ekran siyah arka plan */
.kurye-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Modal açık durumda */
.kurye-modal.show {
    display: block !important;
    opacity: 1;
}

/* Siyah arka plan - Tıklanabilir backdrop */
.kurye-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1;
    cursor: pointer;
}

/* Modal dialog wrapper - Ortalama için */
.kurye-modal-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 2;
    overflow-y: auto;
    pointer-events: none;
}

/* Modal content - Beyaz kutu */
.kurye-modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    margin: auto;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
}

/* Modal açık durumda content animasyonu */
.kurye-modal.show .kurye-modal-content {
    transform: scale(1);
    opacity: 1;
}

/* Modal header - Minimal (sadece kapatma butonu) */
.kurye-modal-header-minimal {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 15px 20px 10px 20px;
    background: white;
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
}

/* Kapatma butonu */
.kurye-modal-close {
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    color: #6b7280;
    line-height: 1;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    background: rgba(107, 114, 128, 0.1);
}

.kurye-modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    transform: rotate(90deg);
}

/* Modal body - DÜZELTİLMİŞ */
.kurye-modal-body {
    padding: 0 30px 30px 30px;
    overflow-y: auto;
    flex: 1;
    background: white;
    border-radius: 0 0 12px 12px;
    line-height: 1.8 !important;
}

/* Contract content - TEMEL CONTAINER */
.contract-content {
    background: transparent;
    border-radius: 0;
    padding: 0;
    text-align: left;
    border: none;
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* Contract text - ANA METIN CONTAINER - DÜZELTİLMİŞ */
.contract-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.8 !important;
    color: #374151 !important;
    text-align: left !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    display: block !important;
    width: 100% !important;
}

/* BAŞLIK HİYERARŞİSİ - ZORUNLU STİLLER */
.contract-text h1 {
    color: #1f2937 !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    text-align: center !important;
    margin: 0 0 2em 0 !important;
    padding: 0 0 15px 0 !important;
    border-bottom: 3px solid #3b82f6 !important;
    line-height: 1.3 !important;
    display: block !important;
    width: 100% !important;
}

.contract-text h2 {
    color: #3b82f6 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin: 2.5em 0 1.2em 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    display: block !important;
    width: 100% !important;
}

.contract-text h3 {
    color: #1e40af !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    margin: 2em 0 1em 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    display: block !important;
    width: 100% !important;
}

.contract-text h4 {
    color: #374151 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    margin: 1.8em 0 0.8em 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    display: block !important;
    width: 100% !important;
}

/* PARAGRAF STİLLERİ - EN ÖNEMLİ KISIM */
.contract-text p {
    margin: 0 0 1.5em 0 !important;
    padding: 0 !important;
    text-align: justify !important;
    line-height: 1.8 !important;
    color: #374151 !important;
    display: block !important;
    width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* KURYE ÇAĞIR BUTON DURUMLARİ */
#kurye-cagir.disabled {
    background: linear-gradient(135deg, #9ca3af, #6b7280) !important;
    color: #f3f4f6 !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
    transform: none !important;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3) !important;
    border: 2px solid #d1d5db !important;
}

#kurye-cagir.disabled:hover {
    background: linear-gradient(135deg, #9ca3af, #6b7280) !important;
    transform: none !important;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3) !important;
}

/* Aktif buton durumu */
#kurye-cagir:not(.disabled) {
    background: linear-gradient(135deg, #0d4f1c, #1b5e20);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

#kurye-cagir:not(.disabled):hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* CONTRACT APPROVAL SECTION */
.contract-approval-section {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 2px solid #3b82f6;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.contract-approval-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.15);
}

.contract-checkbox-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

#contract-approval {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #3b82f6;
}

label[for="contract-approval"] {
    font-size: 16px;
    font-weight: 600;
    color: #1e40af;
    cursor: pointer;
    user-select: none;
}

#contract-link {
    text-decoration: underline;
    cursor: pointer;
    color: #3b82f6;
    font-weight: 700;
}

#contract-link:hover {
    color: #1d4ed8;
}

.contract-note {
    font-size: 12px;
    color: #64748b;
    font-style: italic;
}

/* Shake animasyonu */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake-animation {
    animation: shake 0.6s ease-in-out;
    border-color: #ef4444 !important;
    background: linear-gradient(135deg, #fee2e2, #fecaca) !important;
}

/* SCROLLBAR STİLLERİ */
.kurye-modal-body::-webkit-scrollbar {
    width: 12px;
}

.kurye-modal-body::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 12px;
    margin: 10px;
}

.kurye-modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    border-radius: 12px;
    border: 2px solid #f8fafc;
    transition: background 0.2s ease;
}

.kurye-modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
}

/* RESPONSIVE DÜZELTMELERİ */
@media (max-width: 768px) {
    .kurye-modal-dialog {
        padding: 10px;
        align-items: flex-start;
    }
    
    .kurye-modal-content {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 8px;
    }
    
    .kurye-modal-header-minimal {
        padding: 12px 15px 8px 15px;
        border-radius: 8px 8px 0 0;
    }
    
    .kurye-modal-body {
        padding: 0 20px 20px 20px;
    }
    
    .contract-text {
        font-size: 14px !important;
        line-height: 1.7 !important;
    }
    
    .contract-text h1 { 
        font-size: 22px !important; 
        margin-bottom: 1.5em !important;
    }
    .contract-text h2 { 
        font-size: 18px !important; 
        margin: 2em 0 1em 0 !important;
    }
    .contract-text h3 { 
        font-size: 16px !important; 
        margin: 1.8em 0 0.8em 0 !important;
    }
    .contract-text h4 { 
        font-size: 15px !important; 
        margin: 1.6em 0 0.7em 0 !important;
    }
    
    .contract-text p {
        margin-bottom: 1.3em !important;
        line-height: 1.7 !important;
    }
}

@media (max-width: 480px) {
    .kurye-modal-dialog {
        padding: 0;
    }
    
    .kurye-modal-content {
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }
    
    .kurye-modal-header-minimal {
        padding: 10px 12px 6px 12px;
        border-radius: 0;
    }
    
    .kurye-modal-close {
        width: 32px;
        height: 32px;
        font-size: 28px;
    }
    
    .kurye-modal-body {
        padding: 0 15px 15px 15px;
    }
    
    .contract-text {
        font-size: 13px !important;
        line-height: 1.6 !important;
    }
    
    .contract-text h1 { 
        font-size: 20px !important; 
    }
    .contract-text h2 { 
        font-size: 17px !important; 
    }
    .contract-text h3 { 
        font-size: 15px !important; 
    }
    .contract-text h4 { 
        font-size: 14px !important; 
    }
}

/* ANIMASYONLAR */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: scale(0.9) translateY(30px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.kurye-modal.show .kurye-modal-backdrop {
    animation: fadeIn 0.3s ease;
}

.kurye-modal.show .kurye-modal-content {
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
body.araba-kapali #arac-tipi-secimi-modern {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

body.araba-kapali #araba-tab-item {
    display: none !important;
    visibility: hidden !important;
}

/* ===== END OF FILE ===== */