/* ==========================================
   KARGO REHBERİ - ANA CSS
   ========================================== */

/* --- Tema Değişkenleri --- */
:root[data-theme="light"] {
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --accent-color: #f97316;
    --accent-hover: #ea580c;
    --input-bg: #f1f5f9;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --glass-border: rgba(255, 255, 255, 0.6);
}

:root[data-theme="dark"] {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    --primary-color: #3b82f6;
    --primary-hover: #60a5fa;
    --accent-color: #f97316;
    --accent-hover: #fb923c;
    --input-bg: #0f172a;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.5);
    --glass-border: rgba(255, 255, 255, 0.05);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* --- Navbar --- */
.navbar {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    transition: background-color 0.3s, border-color 0.3s;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

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

/* --- Kullanıcı Avatar (navbar) --- */
.user-nav-info {
    display: flex;
    align-items: center;
    gap: 9px;
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    user-select: none;
    box-shadow: 0 2px 6px rgba(37,99,235,0.35);
}

.user-name-text {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.92rem;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Hoş Geldin Banner (hero altı) --- */
.welcome-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37,99,235,0.08) 0%, rgba(124,58,237,0.08) 100%);
    border: 1px solid rgba(37,99,235,0.18);
    border-radius: 12px;
    padding: 12px 24px;
    margin-bottom: 24px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
}

/* --- Arama Geçmişi --- */
.history-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.history-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 9px;
    background: var(--input-bg);
    cursor: pointer;
    transition: background 0.15s;
    font-size: 0.88rem;
}

.history-item:hover { background: var(--border-color); }

.history-route {
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
}

.history-meta {
    color: var(--text-secondary);
    font-size: 0.83rem;
}

.history-date {
    color: var(--text-secondary);
    font-size: 0.8rem;
    white-space: nowrap;
}

/* --- Favori Güzergah Butonu --- */
.fav-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1.5px dashed var(--text-secondary);
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    width: 100%;
    justify-content: center;
}
.fav-toggle-btn:hover {
    border-color: #f59e0b;
    color: #92400e;
    background: #fef3c7;
}

.fav-item { position: relative; }

.fav-delete-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
    transition: color 0.15s, background 0.15s;
}
.fav-delete-btn:hover { color: #ef4444; background: #fee2e2; }

/* --- Sonuçlar Başlık + Kopyala --- */
.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}
.results-header h2 { margin: 0; }

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: var(--card-bg);
    border: 1.5px solid var(--primary-color);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-color);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.copy-btn:hover { background: var(--primary-color); color: #fff; }
.copy-btn-hidden { display: none !important; }

/* --- Adet Seçici --- */
.quantity-group { margin-top: 18px; }

.quantity-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1.5px solid var(--border-color);
    background: var(--card-bg);
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
    flex-shrink: 0;
}
.qty-btn:hover { background: var(--input-bg); border-color: var(--primary-color); }

#quantity {
    width: 64px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    padding: 7px 8px;
    border-radius: 8px;
    border: 1.5px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
}
#quantity:focus { outline: none; border-color: var(--primary-color); }

.qty-label {
    font-size: 0.92rem;
    color: var(--text-secondary);
}

/* Toplam fiyat alt yazısı */
.price-unit-detail {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: right;
    margin-top: 2px;
}

/* --- Geri Bildirim Floating Butonu --- */
.feedback-float-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 500;
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 18px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37,99,235,0.4);
    transition: all 0.25s ease;
}
.feedback-float-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(37,99,235,0.5);
}
.feedback-float-label {
    font-size: 0.88rem;
    letter-spacing: 0.01em;
}

/* --- Geri Bildirim Modalı --- */
.feedback-modal-card {
    max-width: 460px;
    width: 95vw;
}
.feedback-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}
.feedback-header-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}
.feedback-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}
.feedback-subtitle {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0;
}
.feedback-label {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.feedback-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.feedback-cat {
    padding: 7px 14px;
    border-radius: 20px;
    border: 1.5px solid var(--border-color);
    background: var(--input-bg);
    color: var(--text-secondary);
    font-size: 0.84rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.18s;
}
.feedback-cat:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.feedback-cat.selected {
    border-color: var(--primary-color);
    background: rgba(37,99,235,0.1);
    color: var(--primary-color);
    font-weight: 600;
}

/* --- SSS Bölümü --- */
.faq-section {
    padding: 48px 20px 60px;
}

.faq-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 780px;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-item.open  { border-color: var(--primary-color); box-shadow: 0 0 0 1px var(--primary-color); }

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.97rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    text-align: left;
    gap: 12px;
}

.faq-question:hover { color: var(--primary-color); }

.faq-icon {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--primary-color);
    flex-shrink: 0;
    transition: transform 0.25s ease;
    line-height: 1;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.25s ease;
    padding: 0 20px;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.faq-item.open .faq-body {
    max-height: 300px;
    padding: 0 20px 18px;
}

/* --- Buttons --- */
.btn {
    padding: 9px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.35);
}
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-accent {
    background-color: var(--accent-color);
    color: #fff;
    text-align: center;
}
.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249,115,22,0.35);
}

.btn-large { padding: 13px 24px; font-size: 1.05rem; }
.w-100 { width: 100%; }

.icon-btn {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 7px 10px;
    border-radius: 50%;
    transition: background-color 0.2s;
}
.icon-btn:hover { background-color: var(--border-color); }

.lang-btn {
    font-size: 0.82rem !important;
    border-radius: 8px !important;
    padding: 5px 10px !important;
    font-weight: 700;
    letter-spacing: 0.01em;
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
}

/* --- Hero --- */
.main-content { padding-bottom: 60px; }

.hero {
    text-align: center;
    padding: 55px 0 40px;
}

.hero h1 {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 14px;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* --- App Layout --- */
.app-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 28px;
}

@media (max-width: 820px) {
    .app-layout { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.9rem; }
}

/* --- Card --- */
.card {
    background-color: var(--card-bg);
    border-radius: 18px;
    padding: 28px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: background-color 0.3s, border-color 0.3s;
}

.glass-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(255,255,255,0.01) 100%);
}

h2 {
    font-size: 1.3rem;
    margin-bottom: 22px;
    color: var(--text-primary);
}

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

label {
    display: block;
    font-weight: 500;
    margin-bottom: 7px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
.form-select {
    width: 100%;
    padding: 11px 15px;
    border-radius: 10px;
    border: 1.5px solid var(--border-color);
    background-color: var(--input-bg);
    color: var(--text-primary);
    font-size: 0.97rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
}

input:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

/* --- Toggle Group (Dosya/Koli) --- */
.toggle-group {
    display: flex;
    gap: 10px;
}

.toggle-option {
    flex: 1;
    cursor: pointer;
    margin-bottom: 0;
}

.toggle-option input[type="radio"] {
    display: none;
}

.toggle-option span {
    display: block;
    text-align: center;
    padding: 10px 12px;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.2s;
    background-color: var(--input-bg);
}

.toggle-option input[type="radio"]:checked + span {
    border-color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.08);
    color: var(--primary-color);
}

/* --- Dimensions Grid --- */
.dimensions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.calculator-panel .dimensions-grid.three {
    grid-template-columns: repeat(3, 1fr);
}

/* --- Desi Info --- */
.desi-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: var(--bg-color);
    border-radius: 10px;
    border: 1.5px solid var(--border-color);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.desi-info .highlight {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* --- Results --- */
.results-panel > h2 { margin-bottom: 18px; }

.results-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.empty-state {
    text-align: center;
    padding: 55px 20px;
    background-color: var(--card-bg);
    border-radius: 18px;
    border: 2px dashed var(--border-color);
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 2.8rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.result-card {
    background-color: var(--card-bg);
    border-radius: 14px;
    border: 1.5px solid var(--border-color);
    padding: 18px 20px;
    transition: all 0.25s ease;
    animation: slideUp 0.35s ease forwards;
    opacity: 0;
    transform: translateY(15px);
}

.result-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.result-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.result-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    background-color: #fff;
    padding: 5px;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.result-details h3 { font-size: 1.1rem; margin-bottom: 3px; }

.result-meta {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.result-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.result-price {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-unit {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Kredili Kargo Badge */
.kredili-badge {
    margin-top: 12px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(37,99,235,0.07), rgba(139,92,246,0.07));
    border-radius: 10px;
    border: 1px solid rgba(37,99,235,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.kredili-badge-left { font-size: 0.82rem; }
.kredili-badge-left strong { display: block; color: var(--primary-color); margin-bottom: 2px; }
.kredili-badge-left span { color: var(--text-secondary); }

.kredili-badge-price {
    text-align: right;
    flex-shrink: 0;
}
.kredili-badge-price strong { font-size: 1.1rem; color: var(--text-primary); display: block; }
.kredili-badge-price a {
    font-size: 0.78rem;
    color: var(--primary-color);
    text-decoration: underline;
}

@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}

/* --- Modal --- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background-color: rgba(0,0,0,0.55);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
    animation: fadeIn 0.25s ease;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 420px;
}

.close-btn {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 26px;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.close-btn:hover { color: var(--accent-color); }

/* Auth Tabs */
.auth-tabs {
    display: flex;
    margin-bottom: 22px;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    font-family: 'Inter', sans-serif;
    transition: color 0.2s;
}

.tab-btn.active { color: var(--primary-color); }

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Alert Box */
.alert-box {
    padding: 11px 14px;
    border-radius: 9px;
    margin-bottom: 16px;
    font-size: 0.88rem;
    text-align: center;
    font-weight: 500;
}

.alert-error  { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }
.alert-success { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to   { opacity: 1; transform: scale(1); }
}

/* ── Hoş Geldin Modalı ───────────────────────────────────────── */
.welcome-modal-card {
    max-width: 430px;
    width: 92vw;
}

.welcome-modal-header {
    text-align: center;
    margin-bottom: 22px;
}

.welcome-modal-icon {
    font-size: 2.6rem;
    display: block;
    margin-bottom: 10px;
}

.welcome-modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.welcome-modal-header p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0;
}

.welcome-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin-bottom: 22px;
    padding: 0;
}

.welcome-features li {
    display: flex;
    align-items: center;
    gap: 13px;
}

.feature-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    background: var(--input-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-features li div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.welcome-features li strong {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
    display: block;
}

.welcome-features li span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ================================================================
   MOBİL UYUMLULUK
   ================================================================ */

/* Yatay taşmayı tüm ekranlarda önle */
/* ── Çoklu Gönderi ─────────────────────── */
.add-shipment-btn {
    font-size: 0.88rem;
    padding: 9px 14px;
    border-style: dashed;
    color: var(--primary-color);
    border-color: var(--primary-color);
    opacity: 0.85;
    transition: opacity 0.15s;
}
.add-shipment-btn:hover { opacity: 1; }

#savedShipmentsList { display: flex; flex-direction: column; gap: 7px; margin-top: 12px; }

.saved-ship-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 9px;
    padding: 8px 12px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    gap: 8px;
    animation: fadeInUp 0.2s ease;
}
.saved-ship-num {
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
    flex-shrink: 0;
}
.saved-ship-info { flex: 1; line-height: 1.4; }
.saved-ship-remove {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    padding: 2px 5px;
    border-radius: 5px;
    flex-shrink: 0;
    transition: color 0.15s, background 0.15s;
}
.saved-ship-remove:hover { color: #ef4444; background: rgba(239,68,68,0.08); }

.input-error { border-color: #ef4444 !important; outline: none; box-shadow: 0 0 0 2px rgba(239,68,68,0.18); }

/* Çoklu sonuç: toplam bilgisi */
.multi-ship-breakdown {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.5;
}
.multi-ship-total {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
}

html, body { overflow-x: hidden; }

/* ── Tablet (820px zaten var .app-layout için, buraya ek) ── */
@media (max-width: 820px) {
    .hero { padding: 36px 0 28px; }
}

/* ── Mobil: 600px ve altı ── */
@media (max-width: 600px) {

    /* --- Navbar --- */
    .nav-content { height: auto; padding: 10px 0; gap: 6px; }
    .logo { font-size: 1.1rem; }
    .user-name-text { display: none; }          /* İsmi gizle, sadece avatar */
    #loginBtn, #registerBtn, #logoutBtn {
        font-size: 0.82rem;
        padding: 7px 11px;
    }

    /* --- Hero --- */
    .hero { padding: 26px 0 18px; }
    .hero h1 { font-size: 1.5rem; }
    .hero p  { font-size: 0.93rem; }

    /* --- Kartlar --- */
    .card { padding: 18px 14px; }

    /* --- Sonuç kartları: fiyat + buton alt alta --- */
    .result-card { padding: 12px 14px; }
    .result-card-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .result-action {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 10px;
    }
    .result-action .btn-accent {
        flex: 1;
        text-align: center;
        font-size: 0.88rem;
        padding: 9px 10px;
    }
    .result-price { font-size: 1.4rem; }

    /* --- Kredili badge --- */
    .kredili-badge { flex-direction: column; align-items: flex-start; }
    .kredili-badge-price { text-align: left; }

    /* --- Geçmiş / favori item'ları --- */
    .history-item { flex-wrap: wrap; }
    .history-meta { display: none; }           /* Fiyat bilgisini gizle, sadece güzergah kalsın */

    /* --- SSS --- */
    .faq-section { padding: 28px 0 36px; }
    .faq-question { padding: 14px 16px; font-size: 0.9rem; }
    .faq-body { padding: 0 16px; }
    .faq-item.open .faq-body {
        max-height: 600px;                      /* İngilizce metinler için yeterli alan */
        padding: 0 16px 14px;
    }

    /* --- Feedback butonu: mobilde sadece emoji dairesi --- */
    .feedback-float-btn {
        padding: 13px;
        border-radius: 50%;
        bottom: 18px;
        right: 16px;
        font-size: 1.2rem;
    }
    .feedback-float-label { display: none; }

    /* --- Footer --- */
    footer { font-size: 0.78rem; padding: 16px 12px; line-height: 1.8; }
}

/* ── Çok küçük ekranlar (eski telefonlar, 380px altı) ── */
@media (max-width: 380px) {
    .logo { font-size: 1rem; }
    .nav-actions { gap: 4px; }
    #loginBtn, #registerBtn, #logoutBtn { padding: 6px 8px; font-size: 0.78rem; }
    .dimensions-grid { grid-template-columns: 1fr; } /* Şehir seçimi alt alta */
    .hero h1 { font-size: 1.3rem; }
}
