:root{--card-bg:#ffffff;--on-primary:#000000;--primary-alt:#ff8800;--primary-ink:#664d00;--primary-soft:#fff2cc;--surface-2:#f5f5f5;--text-muted:#9ca3af}
    * { box-sizing: border-box; margin: 0; padding: 0}
    :root {
        --bg: #ffffff;
        --text-primary: #000000;
        --text-secondary: #6b6b6b;
        --border: #e0e0e0;
        --primary: #ffcc00;
        --primary-dark: #e6b800;
        --radius: 16px;
        --radius-small: 12px;
        --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        --shadow-strong: 0 8px 20px rgba(255, 204, 0, 0.25);
        --success: #22c55e;
        --danger: #ef4444}
    body {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
        background: var(--bg);
        color: var(--text-primary);
        line-height: 1.4;
        min-height: 100vh}

    .compact-header {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
        padding: 12px 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 2px solid var(--primary);
        position: sticky;
        top: 0;
        z-index: 10}
    .price-badge {
        background: color-mix(in srgb,var(--primary) 15%,transparent);
        border-radius: 30px;
        padding: 6px 14px;
        font-size: 13px;
        font-weight: 500;
        color: var(--primary);
        display: inline-flex;
        align-items: center;
        gap: 6px}
    .home-btn {
        background: rgba(255,255,255,0.1);
        border: none;
        border-radius: 40px;
        padding: 8px 16px;
        font-size: 14px;
        font-weight: 500;
        color: white;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        gap: 6px;
        backdrop-filter: blur(4px)}
    .home-btn:hover { background: color-mix(in srgb,var(--primary) 20%,transparent); transform: translateY(-1px)}

    .map-container { height: 32vh; width: 100%; position: relative; z-index: 1}
    #map { height: 100%; width: 100%; background: var(--surface-2)}
    .map-gradient {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 40px;
        background: linear-gradient(to top, color-mix(in srgb,var(--card-bg) 95%,transparent), transparent);
        pointer-events: none}

    .panel { padding: 16px 16px 32px; position: relative; z-index: 2; background: var(--card-bg)}

    .user-info-bar {
        background: var(--surface-2);
        border-radius: var(--radius);
        padding: 12px 16px;
        margin-bottom: 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border: 1px solid var(--surface-2)}
    .user-info-bar .user-data {
        display: flex;
        align-items: center;
        gap: 12px}
    .user-info-bar .user-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--border);
        overflow: hidden;
        border: 2px solid var(--primary)}
    .user-info-bar .user-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover}
    .user-info-bar .user-name { font-weight: 600; font-size: 14px}
    .user-info-bar .user-balance { font-size: 13px; color: var(--text-secondary)}
    .user-info-bar .user-balance strong { color: var(--primary); font-weight: 700}
    .profile-link {
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 13px;
        padding: 6px 12px;
        border-radius: 30px;
        border: 1px solid var(--border);
        transition: all 0.2s}
    .profile-link:hover { border-color: var(--primary); background: var(--primary-soft)}

    .address-card {
        background: var(--surface-2);
        border-radius: var(--radius);
        padding: 16px 18px;
        border: 1px solid var(--border);
        box-shadow: var(--shadow);
        margin-bottom: 16px;
        transition: all 0.2s ease}
    .address-card:hover { border-color: var(--primary); box-shadow: var(--shadow-strong)}
    .address-label {
        font-size: 11px;
        font-weight: 600;
        color: var(--text-secondary);
        letter-spacing: 0.5px;
        margin-bottom: 6px;
        display: flex;
        align-items: center;
        gap: 6px;
        text-transform: uppercase}
    #address { font-size: 18px; font-weight: 600; word-break: break-word}

    .geo-btn {
        background: var(--surface-2);
        border: 1px solid var(--border);
        padding: 14px;
        border-radius: 40px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        cursor: pointer;
        transition: all 0.2s ease;
        margin-bottom: 20px;
        font-weight: 500;
        font-size: 15px}
    .geo-btn:hover { border-color: var(--primary); background: var(--primary-soft); transform: translateY(-2px)}

    .section-title {
        font-size: 13px;
        font-weight: 600;
        color: var(--text-secondary);
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        gap: 8px;
        text-transform: uppercase}

    /* DINAMIK YAKIT SEÇİMİ */
    .fuel-type-selector {
        display: flex;
        gap: 8px;
        margin-bottom: 1.5rem;
        background: var(--surface-2);
        padding: 0.5rem;
        border-radius: 50px;
        flex-wrap: wrap}
    .fuel-type-btn {
        flex: 1;
        min-width: 80px;
        padding: 0.7rem 0.4rem;
        text-align: center;
        font-weight: 700;
        border-radius: 40px;
        cursor: pointer;
        transition: 0.2s;
        color: var(--text-secondary);
        background: transparent;
        border: none;
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis}
    .fuel-type-btn.active {
        background: var(--primary);
        color:var(--on-primary);
        box-shadow: 0 2px 8px rgba(0,0,0,0.1)}

    .liters {
        display: flex;
        gap: 10px;
        justify-content: space-between;
        margin-bottom: 20px;
        flex-wrap: wrap}
    .liter {
        flex: 1;
        background: var(--surface-2);
        border: 1.5px solid var(--border);
        border-radius: var(--radius-small);
        padding: 14px 0;
        text-align: center;
        transition: all 0.2s ease;
        cursor: pointer;
        min-width: 65px}
    .liter b { display: block; font-size: 20px; font-weight: 800; margin-bottom: 4px}
    .liter small { display: none}
    .liter.active {
        border-color: var(--primary);
        background: var(--primary-soft);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px color-mix(in srgb,var(--primary) 30%,transparent)}
    .liter.active b { color: var(--text-primary)}

    .payment-type-selector {
        display: flex;
        gap: 12px;
        margin-bottom: 16px}
    .payment-btn {
        flex: 1;
        padding: 12px;
        text-align: center;
        border: 2px solid var(--border);
        border-radius: var(--radius-small);
        cursor: pointer;
        transition: all 0.2s;
        font-weight: 600;
        font-size: 14px;
        background: var(--card-bg);
        color: var(--text-secondary)}
    .payment-btn:hover { border-color: var(--text-muted)}
    .payment-btn.active {
        border-color: var(--primary);
        background: var(--primary-soft);
        color: var(--text-primary)}
    .payment-btn .icon { font-size: 24px; display: block; margin-bottom: 4px}
    .payment-btn .badge {
        font-size: 11px;
        font-weight: 500;
        display: block;
        color: var(--text-secondary)}

    .expand-btn {
        background: var(--surface-2);
        border: 1px solid var(--border);
        border-radius: 40px;
        padding: 14px 18px;
        font-size: 15px;
        font-weight: 500;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        cursor: pointer;
        margin-bottom: 8px}
    .expand-btn:hover { border-color: var(--primary); background: var(--primary-soft); transform: translateY(-2px)}

    .options {
        display: none;
        background: var(--surface-2);
        border-radius: var(--radius);
        padding: 20px 18px;
        border: 1px solid var(--border);
        margin-bottom: 20px;
        animation: slideIn 0.3s ease}
    @keyframes slideIn { from { opacity: 0; transform: translateY(-15px)} to { opacity: 1; transform: translateY(0)} }

    .input-field {
        background: var(--card-bg);
        border: 1px solid var(--border);
        border-radius: 24px;
        padding: 14px 16px;
        width: 100%;
        font-size: 15px;
        margin-bottom: 14px}
    .input-field:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb,var(--primary) 20%,transparent)}
    textarea.input-field { min-height: 90px; resize: vertical}

    .photo-box {
        position: relative;
        background: var(--card-bg);
        border: 2px dashed var(--border);
        border-radius: var(--radius);
        min-height: 130px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        overflow: hidden}
    .photo-box:hover { border-color: var(--primary); background: #fff2cc20}
    #prev {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: none;
        z-index: 2}
    .loader {
        display: none;
        position: absolute;
        inset: 0;
        background: color-mix(in srgb,var(--card-bg) 90%,transparent);
        z-index: 3;
        align-items: center;
        justify-content: center}
    .upload-ui { position: relative; z-index: 1; text-align: center; color: var(--text-secondary)}
    .upload-ui i { font-size: 40px; display: block; margin-bottom: 6px; font-style: normal}

    .order-btn {
        background: var(--primary);
        border: none;
        border-radius: 50px;
        padding: 16px 24px;
        font-size: 18px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        box-shadow: 0 8px 16px color-mix(in srgb,var(--primary) 30%,transparent);
        cursor: pointer;
        width: 100%;
        margin-top: 15px;
        transition: all 0.2s}
    .order-btn:hover { background: var(--primary-dark); transform: translateY(-3px)}
    .order-btn:disabled { background: var(--border); box-shadow: none; opacity: 0.7; cursor: not-allowed}

    .loading-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: color-mix(in srgb,var(--card-bg) 95%,transparent);
        backdrop-filter: blur(10px);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 9999}
    .loading-content {
        text-align: center;
        max-width: 280px;
        padding: 24px;
        background: var(--card-bg);
        border-radius: 32px;
        border: 1px solid var(--border);
        box-shadow: 0 20px 40px rgba(0,0,0,0.1)}
    .canister-container {
        position: relative;
        width: 140px;
        height: 140px;
        margin: 0 auto 16px;
        display: flex;
        justify-content: center;
        align-items: center}
    .canister { font-size: 80px; animation: float 3s ease-in-out infinite}
    @keyframes float { 0%, 100% { transform: translateY(0)} 50% { transform: translateY(-8px)} }
    .ring {
        position: absolute;
        border-radius: 50%;
        border: 2px solid transparent;
        animation: ringPulse infinite ease-out;
        opacity: 0}
    .ring-1 { width: 100%; height: 100%; border: 2px solid color-mix(in srgb,var(--primary) 30%,transparent); animation: ringRotate 8s linear infinite}
    .ring-2 { width: 85%; height: 85%; top: 7.5%; left: 7.5%; border-left: 3px solid var(--primary); animation: ringRotateReverse 6s linear infinite}
    @keyframes ringRotate { from { transform: rotate(0deg)} to { transform: rotate(360deg)} }
    @keyframes ringRotateReverse { from { transform: rotate(360deg)} to { transform: rotate(0deg)} }
    @keyframes ringPulse { 0% { transform: scale(0.95); opacity: 0.2} 50% { transform: scale(1.05); opacity: 0.8} 100% { transform: scale(0.95); opacity: 0.2} }
    .pulse-dots { display: flex; justify-content: center; gap: 10px; margin: 16px 0}
    .pulse-dot { width: 10px; height: 10px; background: var(--primary); border-radius: 50%; animation: premiumPulse 1.8s ease-in-out infinite}
    @keyframes premiumPulse { 0%, 100% { transform: scale(0.8); opacity: 0.5} 50% { transform: scale(1.3); opacity: 1} }
    .premium-progress { margin-top: 16px}
    .progress-steps { display: flex; justify-content: space-between; margin-bottom: 8px}
    .step { flex: 1; text-align: center; font-size: 11px; font-weight: 600; color: var(--text-secondary)}
    .step.active { color: var(--text-primary)}
    .progress-track { height: 4px; background: var(--surface-2); border-radius: 4px; position: relative; overflow: hidden}
    .progress-fill { position: absolute; height: 100%; width: 0%; background: var(--primary); transition: width 0.3s ease}
    .loading-text { font-size: 20px; font-weight: 700; margin-bottom: 4px}
    .surcharge-warning { background: var(--primary-soft); border-left: 4px solid var(--primary); padding: 12px 14px; margin-top: 12px; border-radius: 12px; font-size: 12px; color: var(--primary-ink)}
    .total-price-large {
        background: var(--surface-2);
        border-radius: 20px;
        padding: 12px;
        text-align: center;
        margin-bottom: 16px;
        font-size: 32px;
        font-weight: 800;
        border: 1px solid var(--border);
        color: var(--text-primary)}
    .total-price-large span {
        font-size: 16px;
        font-weight: 600;
        color: var(--text-secondary)}
    .total-price-large .total-amount {
        font-size: 32px;
        font-weight: 800;
        color: #d97706}
    .insufficient-balance {
        background: #fef3c7;
        border: 1px solid #f59e0b;
        border-radius: 12px;
        padding: 12px 14px;
        color: #78350f;
        font-size: 14px;
        display: none;
        margin-bottom: 12px;
        line-height: 1.6}
    .insufficient-balance a {
        color: #78350f;
        font-weight: 700}
    .insufficient-balance .highlight {
        color: #dc2626;
        font-weight: 700}
    .ymaps-2-1-79-copyright, .ymaps-2-1-79-map-copyrights-promo { display: none !important}

    .order-modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(8px);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 10001;
        animation: modalFadeIn 0.3s ease}
    .order-modal-overlay.active { display: flex}
    @keyframes modalFadeIn {
        from { opacity: 0; transform: scale(0.95)}
        to { opacity: 1; transform: scale(1)}
    }
    .order-modal {
        background: var(--card-bg);
        border-radius: 28px;
        padding: 32px 28px;
        max-width: 420px;
        width: 90%;
        box-shadow: 0 30px 60px rgba(0,0,0,0.3);
        border: 1px solid color-mix(in srgb,var(--primary) 30%,transparent);
        position: relative;
        overflow: hidden}
    .order-modal::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--primary), var(--primary-alt))}
    .order-modal .modal-icon {
        text-align: center;
        font-size: 56px;
        margin-bottom: 8px}
    .order-modal h2 {
        text-align: center;
        font-size: 22px;
        font-weight: 700;
        color: var(--text-primary);
        margin-bottom: 4px}
    .order-modal .sub-title {
        text-align: center;
        color: var(--text-secondary);
        font-size: 14px;
        margin-bottom: 20px}
    .order-modal .divider {
        height: 1px;
        background: var(--surface-2);
        margin: 16px 0}
    .order-modal .payment-details {
        background: var(--surface-2);
        border-radius: 16px;
        padding: 16px 18px;
        margin-bottom: 16px}
    .order-modal .payment-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 0;
        font-size: 15px}
    .order-modal .payment-row .label { color: var(--text-secondary); font-weight: 500}
    .order-modal .payment-row .value { font-weight: 700; color: var(--text-primary)}
    .order-modal .payment-row .value.green { color: #22c55e}
    .order-modal .payment-row .value.gold { color: #f59e0b}
    .order-modal .payment-row .value.red { color: #ef4444}
    .order-modal .payment-row .value.blue { color: #3b82f6}
    .order-modal .total-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0 4px 0;
        font-size: 18px;
        font-weight: 700;
        border-top: 2px solid var(--primary);
        margin-top: 8px}
    .order-modal .total-row .value { color: var(--primary-alt); font-size: 22px}
    .order-modal .btn-group { display: flex; gap: 12px; margin-top: 20px}
    .order-modal .btn-group button {
        flex: 1;
        padding: 14px;
        border: none;
        border-radius: 40px;
        font-weight: 700;
        font-size: 16px;
        cursor: pointer;
        transition: all 0.2s}
    .order-modal .btn-primary { background: var(--primary); color:var(--on-primary); box-shadow: 0 4px 12px color-mix(in srgb,var(--primary) 30%,transparent)}
    .order-modal .btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px)}
    .order-modal .btn-secondary { background: var(--surface-2); color: var(--text-secondary)}
    .order-modal .btn-secondary:hover { background: var(--border)}
    .order-modal .balance-warning {
        background: #fef3c7;
        border-radius: 12px;
        padding: 12px 14px;
        margin-bottom: 12px;
        border-left: 3px solid #f59e0b}
    .order-modal .balance-warning .text { font-size: 13px; color: #78350f; line-height: 1.5}
    .order-modal .balance-warning .highlight { font-weight: 700; color: #dc2626}

    .loading-spinner-small {
        display: inline-block;
        width: 14px;
        height: 14px;
        border: 2px solid var(--border);
        border-top: 2px solid var(--primary);
        border-radius: 50%;
        animation: spin 1s linear infinite;
        vertical-align: middle}
    @keyframes spin { to { transform: rotate(360deg)} }

    @media (max-width: 480px) {
        .user-info-bar { flex-wrap: wrap; gap: 8px}
        .user-info-bar .user-data { flex: 1}
        .payment-btn { font-size: 13px; padding: 10px}
        .payment-btn .icon { font-size: 20px}
        .order-modal { padding: 24px 18px}
        .order-modal .btn-group { flex-direction: column}
        .fuel-type-btn { font-size: 0.8rem; padding: 0.6rem 0.3rem}
    }
