/**
 * Hana Classic — eski mobil arayüzden ilham: sade, mor-mavi, okunaklı.
 * Tek sabit tema (saat / gece modu yok).
 */
:root {
    --hc-navy: #152A4A;
    --hc-blue: #2563EB;
    --hc-blue-dark: #1A4F8C;
    --hc-teal: #14B8A6;
    --hc-accent: #7ec8ff;
    --hc-primary: #2563EB;
    --hc-primary-light: #60A5FA;
    --hc-secondary: #14B8A6;
    --hc-bg: #F4F7FB;
    --hc-surface: #FFFFFF;
    --hc-text: #1E293B;
    --hc-text-muted: #64748B;
    --hc-border: #E2E8F0;
    --hc-header: linear-gradient(135deg, #152A4A 0%, #1A3D6B 45%, #2563EB 100%);
    --hc-radius: 10px;
    --hc-shadow: 0 1px 4px rgba(21, 42, 74, 0.08);

    --shell-bg: var(--hc-bg);
    --shell-surface: var(--hc-surface);
    --shell-header-bg: var(--hc-navy);
    --shell-hero-bg: transparent;
    --shell-accent: var(--hc-blue);
    --shell-accent-2: var(--hc-teal);
    --shell-text: var(--hc-text);
    --shell-text-muted: var(--hc-text-muted);
    --hana-surface: var(--hc-surface);
    --hana-surface-2: var(--hc-bg);
    --hana-text: var(--hc-text);
    --hana-text-muted: var(--hc-text-muted);
    --hana-primary: var(--hc-blue);
    --hana-accent: var(--hc-teal);
}

body.hana-app,
body.hana-partner {
    background: var(--hc-bg) !important;
    color: var(--hc-text);
    font-weight: 400;
}

/* Eski v3 çift header gizle — classic header kullanılıyor */
.hana-topbar,
.hana-app-hero {
    display: none !important;
}

/* ── Classic header ── */
.hana-classic-header {
    background: var(--hc-header);
    color: #fff;
    padding-bottom: 14px;
    box-shadow: 0 2px 8px rgba(21, 42, 74, 0.22);
}

.hana-classic-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    padding-top: max(8px, env(safe-area-inset-top));
    gap: 8px;
}

.hana-classic-header__icon {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    text-decoration: none;
    position: relative;
}

.hana-classic-header__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.02em;
}

.hana-classic-header__brand img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.hana-classic-header__badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #EF4444;
    color: #fff;
    font-size: 9px;
    font-style: normal;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hana-classic-header__body {
    padding: 4px 16px 0;
}

.hana-classic-header__greet {
    margin: 0 0 2px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.9;
    font-weight: 500;
    color: #fff;
}

.hana-classic-header__name {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
    color: #fff !important;
}

.hana-classic-header h1 {
    color: #fff !important;
}

.hana-classic-header__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
}

.hana-classic-header__meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.16);
    padding: 4px 10px;
    border-radius: 6px;
}

.hana-classic-header__feedback {
    margin-top: 10px;
}

/* ── Konum şeridi ── */
.hana-location-strip {
    background: #fff !important;
    border-bottom: 1px solid var(--hc-border) !important;
    color: var(--hc-text-muted) !important;
    padding: 8px 14px !important;
}

.hana-location-strip__theme {
    display: none !important;
}

.hana-location-strip__coords {
    background: #F5F5F5 !important;
    border: 1px solid var(--hc-border) !important;
    color: var(--hc-text) !important;
    font-weight: 600;
}

.hana-location-strip--ok {
    background: #F1F8F4 !important;
    border-bottom-color: #C8E6C9 !important;
}

.hana-location-strip--ok .hana-location-strip__status {
    color: #2E7D32;
}

.hana-location-strip--off {
    background: #FFF8E1 !important;
}

/* ── Sayfa içeriği ── */
.hana-page {
    padding: 12px 0 24px;
}

body.hana-app .hana-page > .hana-search-bar,
body.hana-app .hana-page > .hana-quick-stats,
body.hana-app .hana-page > .hana-dashboard-extra-notice,
body.hana-app .hana-page > .dashboard-area > .hana-dashboard-head {
    margin-left: 12px;
    margin-right: 12px;
}

body.hana-app .hana-transfer-panel > .card-body > .nav-tabs {
    margin-left: 12px;
    margin-right: 12px;
}

body.hana-app .hana-job-card {
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-radius: 0 !important;
}

body.hana-app .hana-job-card .accordion-item {
    border-radius: 0 !important;
}

body.hana-app .hana-transfer-stack {
    gap: 10px;
}

.hana-page-content {
    background: var(--hc-bg);
}

.hana-search-bar {
    background: #fff;
    border: 1px solid var(--hc-border);
    border-radius: 999px;
    box-shadow: var(--hc-shadow);
    padding: 6px 16px;
}

/* İstatistik kutuları */
.hana-quick-stat {
    background: #fff !important;
    border: 1px solid var(--hc-border) !important;
    border-radius: var(--hc-radius) !important;
    box-shadow: var(--hc-shadow) !important;
}

.hana-quick-stat--primary {
    background: var(--hc-primary) !important;
    border: none !important;
}

.hana-quick-stat--primary .hana-quick-stat__n,
.hana-quick-stat--primary .hana-quick-stat__l {
    color: #fff !important;
}

.hana-quick-stat--completed .hana-quick-stat__n {
    color: var(--hc-text) !important;
}

.hana-quick-stat--live {
    background: #E8F5E9 !important;
    border-color: #C8E6C9 !important;
}

.hana-quick-stat--live .hana-quick-stat__l {
    color: #2E7D32 !important;
}

/* Kartlar */
.hana-job-card,
body.hana-app .card,
body.hana-partner .card {
    background: #fff !important;
    border: 1px solid var(--hc-border) !important;
    border-radius: var(--hc-radius) !important;
    box-shadow: var(--hc-shadow) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.hana-app .card-header,
body.hana-app .accordion-header {
    background: #FAFAFA !important;
}

.hana-page-title,
.hana-dashboard-head .hana-page-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--hc-text);
}

/* Sekmeler */
body.hana-app .nav-tabs {
    border-bottom: 2px solid var(--hc-border);
    background: #fff;
    border-radius: var(--hc-radius) var(--hc-radius) 0 0;
    padding: 4px 4px 0;
}

body.hana-app .nav-tabs .nav-link {
    color: var(--hc-text-muted);
    font-weight: 500;
    font-size: 13px;
}

body.hana-app .nav-tabs .nav-link.active {
    color: var(--hc-primary);
    background: #fff;
    border-bottom: 2px solid var(--hc-primary);
    font-weight: 600;
}

/* Butonlar */
.hana-btn-cta--primary {
    background: linear-gradient(135deg, var(--hc-blue), var(--hc-teal)) !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.28) !important;
    border-radius: var(--hc-radius) !important;
    font-weight: 600 !important;
}

.hana-btn-cta--payment {
    background: #E53935 !important;
    box-shadow: 0 2px 6px rgba(229, 57, 53, 0.3) !important;
}

body.hana-app .btn-primary,
body.hana-partner .btn-primary {
    background: var(--hc-primary) !important;
    border-color: var(--hc-primary) !important;
}

body.hana-app .btn-success {
    background: var(--hc-teal) !important;
    border-color: var(--hc-teal) !important;
}

/* Uyarılar — belirgin kalsın */
.hana-dashboard-extra-notice {
    background: linear-gradient(135deg, #FFEBEE 0%, #FFF3E0 100%) !important;
    border: 1px solid #FFCDD2 !important;
    border-left: 4px solid #E53935 !important;
    color: #B71C1C !important;
    animation: hc-alert-pulse 2.5s ease-in-out infinite !important;
}

.hana-dashboard-extra-notice__icon {
    background: #E53935 !important;
}

@keyframes hc-alert-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); }
    50% { box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.12); }
}

.hana-job-card--has-extra .hana-transfer-card {
    box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.25), var(--hc-shadow) !important;
}

/* Alt menü */
.hana-bottom-nav {
    background: #fff !important;
    border-top: 1px solid var(--hc-border) !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06) !important;
}

.hana-bottom-nav__item.active {
    color: var(--hc-primary) !important;
}

.hana-sos-fab {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px;
    min-height: 42px;
    font-size: 15px !important;
    border-radius: 12px !important;
    left: 12px !important;
    bottom: calc(70px + env(safe-area-inset-bottom)) !important;
    background: #E53935 !important;
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.28) !important;
    opacity: 0.94;
}

.hana-sos-fab:active {
    transform: scale(0.94);
}

.hana-splash {
    background: var(--hc-primary) !important;
}

.hana-transfer-panel {
    background: transparent !important;
}

.hana-journey-status {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0 12px 8px;
    position: relative;
    z-index: 6;
    pointer-events: auto;
}

.hana-journey-status:not([hidden]) {
    display: block;
}

.hana-journey-status[hidden] {
    display: none !important;
}

.hana-journey-panel {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 12px;
    padding: 10px 12px;
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

.hana-journey-panel__title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--hc-blue-dark);
    margin-bottom: 8px;
}

.hana-journey-steps {
    display: flex;
    gap: 6px;
    justify-content: space-between;
}

.hana-journey-step {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    opacity: 0.45;
}

.hana-journey-step__dot {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid #93C5FD;
    color: var(--hc-blue);
    font-size: 12px;
}

.hana-journey-step__label {
    font-size: 10px;
    font-weight: 700;
    color: var(--hc-navy);
    line-height: 1.2;
}

.hana-journey-step.is-done {
    opacity: 1;
}

.hana-journey-step.is-done .hana-journey-step__dot {
    background: var(--hc-teal);
    border-color: var(--hc-teal);
    color: #fff;
}

.hana-journey-step.is-current .hana-journey-step__dot {
    background: var(--hc-blue);
    border-color: var(--hc-blue);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}

.hana-journey-step.is-next .hana-journey-step__dot {
    border-color: var(--hc-blue);
    color: var(--hc-blue);
    opacity: 1;
}

.hana-journey-extras {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #BFDBFE;
}

.hana-journey-extra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    background: #fff;
}

.hana-journey-extra--danger {
    background: #FFEBEE;
    border: 1px solid #FFCDD2;
}

.hana-journey-extra--success {
    background: #E8F5E9;
}

.hana-journey-extra--warning {
    background: #FFF8E1;
}

.hana-journey-extra__label {
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.hana-journey-extra__action {
    border: 0;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--hc-blue), var(--hc-teal));
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    z-index: 4;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(37, 99, 235, 0.2);
    min-height: 34px;
}

.hana-journey-extra__action:active {
    transform: scale(0.97);
}

.hana-journey-extra--photos {
    flex-direction: column;
    align-items: stretch;
}

.hana-journey-extra--photos .hana-journey-extra__label {
    width: 100%;
}

.hana-journey-photo-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    width: 100%;
}

.hana-journey-photo-gallery__btn {
    border: 0;
    border-radius: 8px;
    min-width: 36px;
    min-height: 34px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
    background: #EFF6FF;
    color: var(--hc-blue);
    border: 1px solid #BFDBFE;
    cursor: pointer;
    touch-action: manipulation;
    position: relative;
    z-index: 5;
    pointer-events: auto;
}

.hana-journey-photo-gallery__btn:active {
    transform: scale(0.97);
}

.hana-journey-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

.hana-journey-pill--info {
    background: #DBEAFE;
    color: #1D4ED8;
}

.hana-journey-pill--success {
    background: #CCFBF1;
    color: #0F766E;
}

.hana-journey-pill--warning {
    background: #FEF3C7;
    color: #B45309;
}

.hana-journey-pill--danger {
    background: #FEE2E2;
    color: #B91C1C;
    animation: hana-journey-pulse 1.4s ease-in-out infinite;
}

.hana-journey-pill__action {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    padding: 0;
    text-decoration: underline;
    cursor: pointer;
}

.hana-journey-photo-modal {
    position: fixed;
    inset: 0;
    z-index: 20000;
    background: rgba(0, 0, 0, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    pointer-events: auto;
}

.hana-journey-photo-modal__img {
    max-width: 100%;
    max-height: 88vh;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.hana-journey-photo-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 20px;
}

.hana-transfer-row--payment .hana-transfer-row__text {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    padding-top: 4px;
}

.hana-payment-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
}

.hana-payment-chip--paid {
    background: #CCFBF1;
    color: #0F766E;
    border-color: #99F6E4;
}

.hana-payment-chip--warn {
    background: #FEF3C7;
    color: #B45309;
    border-color: #FDE68A;
}

.hana-journey-photo-modal__open {
    margin-top: 12px;
    color: #7ec8ff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
}

@keyframes hana-journey-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.72; }
}

.hana-journey-pairing-inline {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}

.hana-journey-pairing-inline[hidden] {
    display: none !important;
}

.hana-journey-pairing-inline__btn {
    width: 100%;
    min-height: 52px;
}

.hana-journey-pairing-inline.is-paired .hana-journey-pairing-inline__btn {
    display: none !important;
}

.hana-journey-pairing-inline__ok {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    border-radius: 16px;
    background: #CCFBF1;
    color: #0F766E;
    border: 1px solid #99F6E4;
    font-size: 14px;
    font-weight: 700;
}

.hana-journey-status--history {
    opacity: 0.98;
}

.hana-job-card--history .hana-journey-panel {
    background: #F8FAFC;
    border-color: #E2E8F0;
}

.hana-job-card--history .hana-journey-panel__title {
    color: #475569;
}

.hana-meet-card__actions .hana-journey-pairing-inline {
    width: auto;
    flex: 0 0 auto;
}

.hana-meet-card__actions .hana-journey-pairing-inline__btn {
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    min-height: 40px;
    width: auto;
    padding: 8px 14px;
}

.hana-transfer-badge--terminal {
    background: #EFF6FF !important;
    color: #1D4ED8 !important;
    border: 1px solid #BFDBFE;
    font-weight: 700;
}

.hana-transfer-row--terminal {
    margin-top: 0;
    padding: 4px 8px;
    border-radius: 8px;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    align-items: center;
}

.hana-transfer-row--terminal-compact .hana-transfer-row__icon {
    width: 22px;
    height: 22px;
    font-size: 10px;
    border-radius: 6px;
}

.hana-transfer-row--terminal-compact .hana-transfer-row__text {
    padding-top: 0;
}

.hana-transfer-terminal--compact {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 6px;
    line-height: 1.25;
}

.hana-transfer-terminal--compact .hana-transfer-terminal__title {
    font-size: 10px;
    margin: 0;
}

.hana-transfer-terminal--compact .hana-transfer-terminal__value {
    font-size: 12px;
    font-weight: 700;
}

.hana-transfer-terminal__hint {
    display: none;
}

.hana-transfer-warn--note {
    background: linear-gradient(90deg, #FEF3C7, #FFFBEB);
    color: #92400E;
}

.hana-transfer-warn--note .hana-transfer-warn__icon {
    background: #FDE68A;
    color: #B45309;
}

.hana-transfer-warn__note-text {
    display: block;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    margin-top: 2px;
    white-space: pre-wrap;
    word-break: break-word;
}

.hana-transfer-warn__note-text em {
    font-style: normal;
    font-weight: 700;
    margin-right: 4px;
}

.hana-transfer-row--terminal-landing {
    background: #ECFEFF;
    border-color: #A5F3FC;
}

.hana-transfer-row--terminal-dropoff {
    background: #F0FDFA;
    border-color: #99F6E4;
}

.hana-transfer-row--terminal .hana-transfer-row__icon {
    background: #fff;
    color: var(--hc-blue);
}

.hana-transfer-row--terminal-landing .hana-transfer-row__icon {
    color: #0F766E;
}

.hana-transfer-row--terminal-dropoff .hana-transfer-row__icon {
    color: #0D9488;
}

.hana-transfer-terminal {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hana-transfer-terminal__title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--hc-blue);
}

.hana-transfer-row--terminal-landing .hana-transfer-terminal__title {
    color: #0F766E;
}

.hana-transfer-row--terminal-dropoff .hana-transfer-terminal__title {
    color: #0D9488;
}

.hana-transfer-terminal__value {
    font-size: 15px;
    font-weight: 700;
    color: var(--hc-navy);
    line-height: 1.25;
}

.hana-transfer-row--terminal-landing .hana-transfer-terminal__value {
    color: #134E4A;
}

.hana-transfer-row--terminal-dropoff .hana-transfer-terminal__value {
    color: #115E59;
}

.hana-transfer-terminal__hint {
    font-size: 12px;
    color: #546E7A;
    line-height: 1.3;
}

.partner-event-progress__bar {
    background: linear-gradient(90deg, var(--hc-primary), var(--hc-secondary)) !important;
}

@media (prefers-reduced-motion: reduce) {
    .hana-dashboard-extra-notice {
        animation: none !important;
    }
}
