/* 1) ძირითადი ამბასადორის ფონტი */
@font-face {
    font-family: 'NotoAmbassadori';
    src: url('fonts/NotoSansAmbassadori-Bold.woff2') format('woff2'),
         url('fonts/NotoSansAmbassadori-Bold.woff') format('woff'),
         url('fonts/NotoSansAmbassadori-Bold.otf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* 2) portlineregular.ttf – ღილაკებისთვის */
@font-face {
    font-family: 'PortlineRegular';
    src: url('fonts/portlineregular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

/* 3) portline.ttf – სათაურებისთვის ("შეამოწმე ავტომობილი") */
@font-face {
    font-family: 'PortlineTitle';
    src: url('fonts/portline.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}


/* Use NotoAmbassadori everywhere */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'NotoAmbassadori', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* GLOBAL */
body {
    background: #ffffff; /* თეთრი ფონზე (Light) */
    color: #0f172a; /* მუქი ტექსტი Light რეჟიმში */
}

/* როცა მენიუ გახსნილია, სქროლი ითიშება */
body.menu-open {
    overflow: hidden;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 18px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14); /* მხოლოდ გამყოფი ხაზი საწყის ეტაპზე */
    background: transparent;
    backdrop-filter: none;
}

.logo img {
    height: 60px;        /* ოდნავ დიდი ლოგო */
    cursor: pointer;
    margin-left: 20px;   /* ოდნავ მარჯვნივ მოწეული */
}

/* HEADER RIGHT WRAPPER */
.header-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* CENTER MENU */
.center-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.center-menu a {
    margin: 0 15px;
    color: #ffffff;
    font-size: 16px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.center-menu a:hover {
    color: #dc3545;
    transform: translateY(-1px);
}

/* RIGHT BLOCK */
.right-block {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* ===========================
   LANGUAGE SWITCHER – FLAGS SLIDE OUT
   =========================== */
.lang-switch {
    position: relative;
}

/* ძირითადი ბუნტონი – მხოლოდ main დროშა + ისარი */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border-radius: 6px;
    cursor: pointer;
    outline: none;
    background: transparent;
    border: none;
    backdrop-filter: none;
    transition: background 0.2s ease, border-color 0.2s.ease, transform 0.18s ease, box-shadow 0.2s ease;
}

.lang-toggle img[data-current-flag] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    object-fit: cover;
    display: block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.55);
}

.lang-toggle i {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.85);
    display: none;
}

.lang-toggle:hover {
    background: transparent;
    box-shadow: none;
}
.lang-toggle:hover img[data-current-flag] {
    transform: scale(1.08);
    transition: transform 0.18s ease;
}

.lang-switch.open .lang-toggle {
    transform: translateY(-1px);
    background: transparent;
    box-shadow: none;
    border: none;
}

/* DROPDOWN – დროშების რიგი მარჯვნივ, ჩარჩოს გარეშე */
.lang-dropdown {
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%) translateX(6px);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 2px;
    background: transparent;
    border-radius: 6px;
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s.ease, transform 0.22s ease;
    z-index: 50;
}

/* გახსნისას სრიალით + fade */
.lang-switch.open .lang-dropdown {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    pointer-events: auto;
}

/* არ გვჭირდებაისრის შავი ჩრდილი / სამკუთხედი */
.lang-dropdown::before {
    content: none;
}

/* ინდივიდუალური ენის ვარიანტები – მხოლოდ დროშები, ტექსტი დამალული */
.lang-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    text-decoration: none;
    color: #ffffff;
    font-size: 14px;
    background: transparent;
    transition: transform 0.16s ease, opacity 0.16s ease;
}

.lang-option img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.55);
}

/* span-ს ვმალავთ, რომ მხოლოდ დროშები ჩანდეს */
.lang-option span {
    display: none;
}

.lang-option:hover {
    transform: translateY(-1px) scale(1.06);
    opacity: 0.95;
}

/* active ენას ჩარჩო არ აქვს, მხოლოდ ოდნავ გაიზრდება */
.lang-option.active {
    transform: scale(1.06);
}

/* AUTH BUTTON RIGHT */
.auth-btn a {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    background: #dc3545;
    border: 1px solid #dc3545;
    padding: 7px 20px;
    border-radius: 6px;
    transition: transform 0.2s ease;
}

.auth-btn a:hover {
    transform: scale(1.03);
}

/* HAMBURGER BUTTON (desktop hidden) */
.hamburger {
    display: none; /* default: only mobile shows */
    width: 46px;
    height: 38px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
    outline: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    transition: background 0.25s ease, border-color 0.25s.ease, transform 0.18s ease;
}

.hamburger span {
    width: 18px;
    height: 2px;
    border-radius: 6px;
    background: #ffffff;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.hamburger:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: #ffc117;
    transform: translateY(-1px);
}

/* MOBILE MENU OVERLAY + PANEL */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s.ease;
}

.mobile-menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* PANEL - შავი სრული ეკრანი */
.mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    background: #000000; /* შავი ფონზე */
    color: #ffffff;
    padding: 22px 22px 32px;
    box-shadow: -12px 0 30px rgba(0, 0, 0, 0.35);
    transform: translateX(100%);
    transition: transform 0.28s ease-out;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-menu-overlay.open .mobile-menu-panel {
    transform: translateX(0); /* მარჯვენა მხრიდან გამოსრიალება */
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mobile-menu-logo img {
    height: 40px;
}

.mobile-menu-close {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: rgba(15, 23, 42, 0.06);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close i {
    font-size: 16px;
    color: #ffffff;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu-nav a {
    display: block;
    padding: 10px 4px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.18s.ease, transform 0.15s ease;
}

.mobile-menu-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}

.mobile-menu-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* მობილურ პანელშიც იგივე flags-row ლოგიკა მუშაობს */
.mobile-menu-panel .lang-toggle {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 4px 8px;
}

.mobile-menu-panel .lang-toggle:hover {
    background: transparent;
    box-shadow: none;
}
.lang-toggle:hover img[data-current-flag] {
    transform: scale(1.08);
    transition: transform 0.18s.ease;
}

.mobile-menu-panel .lang-dropdown {
    background: transparent;
    box-shadow: none;
}

.mobile-auth { 
    display: none !important; 
}

.mobile-auth a {
    display: inline-block;
    width: 100%;
    text-align: center;
    color: #ffffff;
    background: #dc3545;
    border-radius: 6px;
    padding: 10px 18px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #dc3545;
}

/* SLIDER */
.slider {
    width: 100%;
    height: 100vh; /* კიდევ უფრო დიდი სლაიდერი */
    position: relative;
    overflow: hidden;
}

/* შავი ფონის ეფექტი თუ სურათი უცბად არ ჩაიტვირთა */
.slides {
    width: 100%;
    height: 100%;
    background: #000000;
    position: relative;
}

.slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* ზედა dark overlay, რომ უფრო დრამატული იყოს */
.slider::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0,0,0,0.15), rgba(0,0,0,0.6));
    pointer-events: none;
}

/* SLIDER CAPTION bottom-center */
.slider-caption {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 40px;
    z-index: 6;
    text-align: center;

    /* ახალი – რომ ქარფაქსის ლოგო ყოველთვის ზემოთ დადგეს */
    display: flex;
    flex-direction: column;
    align-items: center;
}


.slider-caption .hashtag {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    display: inline-block;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.9); /* შავი ფონდის ნაცვლად დახვეწილი ჩრდილი */
}

/* social icons row */
.slider-caption .social {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.6);
    text-decoration: none;
    color: #ffffff;
    background: transparent; /* შავი фონი მოცილებულია */
    transition: background 0.25s ease, transform 0.2s.ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.slider-caption .social-icons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.slider-caption .social:hover {
    transform: translateY(-1px);
    border-color: #ffc117;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

/* individual brand accents if needed */
.slider-caption .social.tiktok:hover {
    background: radial-gradient(circle at 30% 30%, #25f4ee, #000000 60%, #fe2c55);
}
.slider-caption .social.facebook:hover {
    background: #1877f2;
}
.slider-caption .social.instagram:hover {
    background: radial-gradient(circle at 30% 30%, #feda75, #d62976, #962fbf, #4f5bd5);
}

/* DOTS - bottom right */
.controls-right {
    position: absolute;
    right: 40px;
    bottom: 40px;
    display: flex;
    gap: 10px;
    z-index: 5;
}

.dot {
    height: 14px;
    width: 14px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.5);
    transition: background 0.3s ease, transform 0.2s ease;
}

.dot.active,
.dot:hover {
    background: #ffc117; /* ბრენდის фერი */
    transform: scale(1.1);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    /* HEADER MOBILE LAYOUT */
    header {
        padding: 10px 16px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.92);
        border-bottom: 1px solid rgba(255, 255, 255, 0.16);
        z-index: 20;
    }

    /* Center logo in the header */
    .logo {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin: 0 auto;
    }

    .logo img {
        height: 48px;
        margin: 0;
    }

    .center-menu {
        display: none; /* მობილურზე მენიუს დამალვა */
    }

    /* Right side: auth (mobile) */
    .right-block {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* Hide language switch in header on mobile */
    .right-block .lang-switch {
        display: none;
    }

    .auth-btn a {
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0;
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.7);
    }

    .auth-btn a::before {
        content: "\f007";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 18px;
        color: #ffffff;
    }

    .lang-toggle {
        padding: 2px 4px;
    }

    .lang-toggle img[data-current-flag] {
        width: 24px;
        height: 24px;
    }

    /* Left side: hamburger (mobile) */
    .header-right {
        position: static;
    }

    .hamburger {
        display: flex;
        position: absolute;
        left: 16px;
        top: calc(50% + 2px);
        transform: translateY(-50%);
    }

    /* SLIDER MOBILE TWEAKS */
    .slider {
        height: 80vh;
    }

    .slider-caption {
        left: 50%;
        transform: translateX(-50%);
        bottom: 26px;
    }

    .slider-caption .hashtag {
        font-size: 22px;
    }

    .controls-right {
        right: 20px;
        bottom: 22px;
    }

    .dot {
        height: 12px;
        width: 12px;
    }
}


/* === Language switch: remove borders & adjust desktop dropdown === */
.lang-toggle img[data-current-flag],
.lang-option img {
    border: none !important;
}

/* Desktop: open language dropdown to the LEFT of the toggle */
@media (min-width: 1024px) {
    header .lang-switch .lang-dropdown {
        left: auto;
        right: 100%;
        transform: translateY(-50%) translateX(-6px);
    }

    header .lang-switch.open .lang-dropdown {
        transform: translateY(-50%) translateX(0);
    }
}

/* === Mobile hamburger layout: logo center, lang left, auth icon right === */
@media (max-width: 768px) {

    /* Center logo in mobile menu header */
    .mobile-menu-header {
        justify-content: center;
    }

    /* Hide close button icon (we'll close by tap on overlay or links) */
    .mobile-menu-close {
        display: none;
    }

    .mobile-menu-panel {
        position: relative;
    }

    /* Language switch - bottom right inside hamburger panel */
    .mobile-menu-panel .lang-switch {
        position: absolute;
        left: 18px;
        bottom: 18px;
        right: auto;
        top: auto;
        transform: none;
        z-index: 5;
    }

    .mobile-menu-panel .lang-toggle {
        background: transparent;
        border: none;
        padding: 0;
        box-shadow: none;
    }

    .mobile-menu-panel .lang-toggle img[data-current-flag] {
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    }

    /* Auth icon - top right inside hamburger panel */
    .mobile-menu-panel .mobile-auth {
        position: absolute;
        right: 18px;
        top: 14px;
        display: none !important;
        z-index: 5;
    }

    .mobile-menu-panel .mobile-auth a {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: none;
        background: transparent;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0; /* ტექსტი არ ჩანდეს */
        box-shadow: none;
    }

    .mobile-menu-panel .mobile-auth a::before {
        content: "\f007"; /* Font Awesome user icon */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 20px;
        color: #0f172a;
    }

    .mobile-menu-panel .mobile-auth a:hover {
        transform: translateY(-1px) scale(1.05);
    }
}


/* =========================
   FOOTER
   ========================= */
.footer {
    background: #000;
    color: #fff;
    padding: 60px 40px 30px;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.footer-container {
    max-width: 1400px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-logo img {
    height: 52px;
    margin-bottom: 12px;
}

.footer h3, .footer h4 {
    margin-bottom: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffc117;
}

.footer-nav a,
.footer-contact p {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
    transition: 0.2s;
}

.footer-nav a:hover {
    opacity: 1;
    color: #ffc117;
}

.footer-social .social-row {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.6);
    display:flex;
    justify-content:center;
    align-items:center;
    color:#fff;
    transition:0.25s;
}

.footer-social a:hover {
    border-color:#ffc117;
    transform: translateY(-2px);
}

.footer-bottom {
    margin-top: 40px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 12px;
    opacity: 0.75;
}

/* MOBILE FOOTER */
@media (max-width: 768px) {
    .footer {
        padding: 40px 20px 24px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }

    /* მხოლოდ ლოგო + კონტაქტი + სოციალური პატარა ეკრანზე */
    .footer-about-text {
        display: none;
    }

    .footer-nav {
        display: none;
    }

    .footer-logo {
        display: flex;
        justify-content: center;
    }

    .footer-contact {
        margin-top: 4px;
    }

    .footer-social {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-social .social-row {
        justify-content: center;
    }
}


/* === Footer refinements: remove yellow, improve icons, remove underline on phone/email === */
.footer h3,
.footer h4 {
    color: #e5e7eb; /* ღია ნაცრისфერი ტაითლები */
}

.footer-nav a:hover {
    color: #f9fafb; /* ძალიან ღია ნაცრისფერი/თეთრი */
}

.footer-social a {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.footer-social a i {
    font-size: 18px;
}

.footer-social a:hover {
    border-color: #f9fafb;
}

.footer-contact p,
.footer-contact a {
    text-decoration: none;
    border-bottom: none;
}

/* === Mobile language dropdown: more spacing between flags === */
.mobile-menu-panel .lang-dropdown {
    gap: 16px;
}

/* === Mobile hamburger close button: white close icon in top corner === */
@media (max-width: 768px) {

    .mobile-menu-header {
        position: relative;
        justify-content: center;
    }

    .mobile-menu-close {
        display: flex;
        position: absolute;
        right: 0;
        top: 0;
        width: 32px;
        height: 32px;
        border-radius: 6px;
        background: #ffffff;
        border: none;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    }

    .mobile-menu-close i {
        color: #000000;
        font-size: 16px;
    }
}


/* =========================
   OVERRIDES 2025-12-06 (Nika requests)
   ========================= */

/* 1) Remove background behind social icons in slider and footer */
.slider-caption .social {
    background: transparent !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

.footer-social a {
    background: transparent !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

/* 2–5) Mobile hamburger tweaks */
@media (max-width: 768px) {
    /* Hamburger menu header: logo bigger and aligned left */
    .mobile-menu-header {
        justify-content: flex-start !important;
    }

    .mobile-menu-logo img {
        height: 56px !important;
    }

    /* Close (X) button – white icon, no round white background */
    .mobile-menu-close {
        position: absolute;
        right: 0;
        top: 0;
        width: auto;
        height: auto;
        padding: 4px;
        border-radius: 0;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    .mobile-menu-close i {
        color: #ffffff !important;
        font-size: 20px;
    }

    /* Hamburger icon should NOT move down with animation on tap */
    .hamburger {
        transition: background 0.25s.ease, border-color 0.25s.ease;
    }

    .hamburger:hover {
        transform: none !important;
    }

    /* Flags inside mobile hamburger menu: more space and bigger size */
    .mobile-menu-panel .lang-toggle img[data-current-flag] {
        width: 30px;
        height: 30px;
    }

    .mobile-menu-panel .lang-dropdown {
        gap: 22px;
        margin-left: 10px;
    }

    .mobile-menu-panel .lang-option img {
        width: 30px;
        height: 30px;
    }
}


/* ==== 2025-12-06 FIX: Footer social icons quality ==== */
.footer-social a {
    width: auto !important;
    height: auto !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.footer-social a i {
    font-size: 22px !important;
    line-height: 1 !important;
}

.footer-social a:hover {
    transform: none !important;
    border: none !important;
}

/* ==== 2025-12-06 NEW: Footer icons 1:1 with slider & hamburger no down animation ==== */

/* Footer clean minimal icons */
.footer .footer-social a {
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;          /* FontAwesome ჩრდილის მოშლა */
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease;
}

/* Smaller + no shadow icons */
.footer .footer-social a i {
    font-size: 18px !important;            /* ოდნავ პატარა ზომა */
    color: #ffffff !important;
    line-height: 1 !important;
    text-shadow: none !important;          /* ჩრდილი სრულად მოიშლება */
}

/* Hover: only soft zoom */
.footer .footer-social a:hover {
    transform: scale(1.10) !important;      /* მსუბუქი ზუმი */
    box-shadow: none !important;
}




/* Mobile: hamburger icon must stay in place, no down animation on click */
@media (max-width: 768px) {
    .hamburger,
    .hamburger:hover,
    .hamburger:active,
    .hamburger:focus {
        transform: translateY(-50%) !important;
        transition: background 0.25s.ease, border-color 0.25s.ease !important;
    }
}

/* FINAL FIX: ჰამბურგის ენების დროშებზე ერთნაირი დაშორება */
@media (max-width: 768px) {
    .mobile-menu-panel .lang-dropdown {
        gap: 14px !important;                         /* ყველა დროშას ერთი და იგივე დისტანცია */
        margin-left: 0 !important;                    /* ზედმეტი გადაწევა ვშლით */
        left: 100% !important;
        transform: translateY(-50%) translateX(14px) !important; /* მთავარი დროშიდანაც ~იგივე დაშორება */
    }
}


/* =====================
   SPA DYNAMIC CONTENT AREA
   ===================== */
.app-content {
    max-width: 1200px;
    margin: 40px auto 80px;
    padding: 0 24px;
    position: relative;
    z-index: 5;
}

.page-section {
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.18);
    padding: 24px 24px 28px;
    margin-bottom: 24px;
    color: #0f172a;
}

.page-section + .page-section {
    margin-top: 16px;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #111827;
}

.page-subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #111827;
}

.page-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #374151;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.app-card {
    border: none;
    outline: none;
    background: #0f172a;
    color: #f9fafb;
    border-radius: 6px;
    padding: 18px 18px 20px;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.32);
    transition: transform 0.18s.ease, box-shadow 0.18s.ease, background 0.18s ease;
}

.app-card h2 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
}

.app-card p {
    font-size: 0.9rem;
    opacity: 0.92;
    margin: 0;
}

.app-card span.tag {
    font-size: 0.75rem;
    opacity: 0.8;
}

.app-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.36);
    background: #020617;
}

.app-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
    font-size: 0.78rem;
    color: #9ca3af;
}

.app-pill {
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.app-loading,
.app-error {
    padding: 40px 0;
    text-align: center;
    font-size: 0.98rem;
    color: #111827;
}

.app-error {
    color: #b91c1c;
}

.nav-active {
    position: relative;
}

.center-menu a.nav-active::after,
.mobile-menu-nav a.nav-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    border-radius: 6px;
    
}

@media (max-width: 768px) {
    .app-content {
        max-width: 100%;
        margin: 24px auto 60px;
        padding: 0 16px 16px;
    }

    .page-section {
        border-radius: 6px;
        padding: 18px 16px 20px;
        box-shadow: 0 10px 26px rgba(15, 23, 42, 0.2);
    }
}

/* =============================
   HOME – PURCHASED CARS SLIDER
   ============================= */
.purchased-slider-section {
    margin-bottom: 28px;
}

.purchased-slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.purchased-slider-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #111827;
}

.purchased-slider-arrows {
    display: flex;
    align-items: center;
    gap: 10px;
}

.purchased-slider-arrow {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: transform 0.15s.ease, background 0.15s ease;
}

.purchased-slider-arrow span {
    font-size: 18px;
    line-height: 1;
    color: #111827;
}

.purchased-slider-arrow:hover {
    transform: translateY(-1px) scale(1.05);
    background: rgba(15, 23, 42, 0.04);
}

/* Horizontal scroll with cards */
.purchased-slider-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.purchased-slider-scroll::-webkit-scrollbar {
    display: none;
}

.purchased-slider-scroll {
    scrollbar-width: none;
}

.purchased-card {
    flex: 0 0 auto;
    min-width: 230px;
    max-width: 280px;
    border-radius: 6px;
    overflow: hidden;
    background: #0b1120;
    position: relative;
}

.purchased-card-image-wrap {
    position: relative;
    width: 100%;
    padding-top: 64%;
    overflow: hidden;
}

.purchased-card-image-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 0.4s ease;
}

.purchased-card:hover .purchased-card-image-wrap img {
    transform: scale(1.08);
}

.purchased-card-name {
    position: absolute;
    left: 12px;
    bottom: 10px;
    padding: 5px 9px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.85);
    color: #f9fafb;
    font-size: 0.78rem;
    font-weight: 600;
    max-width: calc(100% - 24px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.purchased-slider-empty {
    padding: 24px 0 10px;
    font-size: 0.95rem;
    color: #4b5563;
}

/* Mobile tweaks */
@media (max-width: 768px) {
    .purchased-slider-title {
        font-size: 1.05rem;
    }

    .purchased-card {
        min-width: 70%;
        max-width: 80%;
    }
}

/* =============================
   2025-12-06 – Purchased Cars Slider Redesign (Nika)
   ============================= */

/* 1) Remove blue background from purchased cards – neutral dark tone */
.purchased-card { background: #f1f1f1 !important;
}

/* 2) Larger cards on desktop screens */
@media (min-width: 1024px) {
    .purchased-card {
        min-width: 340px !important;
        max-width: 360px !important;
    }

    .purchased-card-image-wrap {
        padding-top: 70% !important;
    }
}

/* 3) Slider section full width inside content container */
.purchased-slider-section {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 0 28px 0 !important;
}

/* 4) Clean car names – no background pill, just nice text on image */
.purchased-card-name {
    background: transparent !important;
    padding: 0 !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    bottom: 14px !important;
    left: 14px !important;
    max-width: calc(100% - 28px) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 3px 6px rgba(0,0,0,0.9);
}

/* 5) Arrows – thin, sharp, long, no background/frames */
.purchased-slider-arrows {
    display: flex;
    align-items: center;
    gap: 10px;
}

.purchased-slider-arrow {
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s.ease;
}

.purchased-slider-arrow span {
    font-size: 32px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    color: #111827 !important;
    letter-spacing: -4px;
}

.purchased-slider-arrow:hover {
    transform: scale(1.12) !important;
    background: transparent !important;
}



/* =============================
   2025-12-06 – Purchased slider wider on desktop
   ============================= */
@media (min-width: 1200px) {

    /* Make the main content wider ONLY on pages where "ჩვენი შეძენილი" exists */
    .app-content:has(.purchased-slider-section) {
        max-width: 1400px;
    }

    /* Reduce side padding for the section that contains the purchased slider */
    .page-section:has(.purchased-slider-section) {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Ensure the slider row itself uses the whole inner width */
    .purchased-slider-scroll {
        padding-left: 0;
        padding-right: 0;
    }
}


/* =============================
   2025-12-06 – Purchased slider: rectangular images, divider strip, line arrows
   ============================= */

/* 1) Make car images more rectangular (a bit taller) */
.purchased-card-image-wrap {
    padding-top: 70% !important;
}

/* Keep same ratio on large screens too */
@media (min-width: 1024px) {
    .purchased-card-image-wrap {
        padding-top: 70% !important;
    }
}

/* 2) Add bottom divider strip with car name */
.purchased-card {
    display: flex;
    flex-direction: column;
}

.purchased-card-meta {
    padding: 12px 16px;
    border-top: 1px solid rgba(0,0,0,0.1);
    background: #f1f1f1 !important;
}

.purchased-card-name {
    position: static !important;
    left: auto !important;
    bottom: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    max-width: 100% !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #f9fafb !important;
    text-shadow: none !important;
}

/* 3) Slider arrows – thin, long line with arrow head (------>) */
.purchased-slider-arrow {
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

.purchased-slider-arrow span {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 16px;
    font-size: 0 !important; /* hide the original ‹ › */
}

.purchased-slider-arrow span::before,
.purchased-slider-arrow span::after {
    content: "";
    display: block;
}

/* main line */
.purchased-slider-arrow span::before {
    flex: 1;
    height: 1.5px;
    border-radius: 6px;
    background: #111827;
}

/* arrow head */
.purchased-slider-arrow span::after {
    width: 8px;
    height: 8px;
    border-top: 1.5px solid #111827;
    border-right: 1.5px solid #111827;
    transform: rotate(45deg);
    margin-left: 7px;
}

/* flip direction for PREV button */
.purchased-slider-arrow[data-purchased-dir="prev"] span {
    flex-direction: row-reverse;
}

.purchased-slider-arrow[data-purchased-dir="prev"] span::after {
    margin-left: 0;
    margin-right: 7px;
    transform: rotate(-135deg);
}


/* =============================
   2025-12-06 – FINAL TWEAKS FOR PURCHASED SLIDER (NIKA)
   ============================= */

/* Card image ratio – ოდნავ ნაკლები სიმაღლე, ერთი სტანდარტი */
.purchased-card-image-wrap {
    padding-top: 64% !important;
}

/* Desktop შემთხვევაშიც იგივე პროპორცია */
@media (min-width: 1024px) {
    .purchased-card-image-wrap {
        padding-top: 64% !important;
    }
}

/* მანქანის სახელის ფერი – მკვეთრი მუქი, რომ ნაცრისფერზე კარგად გამოჩნდეს */
.purchased-card-name {
    color: #111827 !important;
}

/* ============================
   PURCHASED SLIDER – THIN ARROWS (FINAL)
   ============================ */

.purchased-slider-arrows {
    display: flex;
    align-items: center;
    gap: 4px !important;      /* VERY SMALL DISTANCE */
}

.purchased-slider-arrow {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.purchased-slider-arrow span {
    font-size: 22px !important;   /* Arrow size */
    font-weight: 200 !important;  /* Thin arrow */
    line-height: 1 !important;
    color: #111827 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* remove triangle/line leftovers from older arrow designs */
.purchased-slider-arrow span::before,
.purchased-slider-arrow span::after {
    content: none !important;
    display: none !important;
}
/* === FINAL MOBILE FIX: purchased cards same size on all phones === */
@media (max-width: 768px) {

    /* ყველა ბარათი ერთნაირად ფართო */
    .purchased-card {
        min-width: 260px !important;
        max-width: 260px !important;
        border-radius: 6px !important;
    }

    /* სურათის ზუსტი პროპორცია ყველგან ერთნაირი */
    .purchased-card-image-wrap {
        padding-top: 60% !important; /* სტანდარტი, ზუსტი Rectangle look */
    }

    /* სახელის ზომა ერთნაირი */
    .purchased-card-name {
        font-size: 0.85rem !important;
    }
}






/* ============================
   2025-12-06 – TRANSPORT CALCULATOR: TOP-RIGHT (A) – NIKA
   ============================ */

/* Root container – top-right, under header divider */
.slider-transport-calculator {
    position: absolute;
    left: 40px;
    top: 120px;
    right: auto;
    bottom: auto;
    transform: none;
    z-index: 7;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;

    /* Layout: small title on first row, three pills on second row */
    display: grid;
    grid-template-columns: repeat(3, minmax(0, auto));
    grid-auto-rows: auto;
    column-gap: 8px;
    row-gap: 4px;
    align-items: stretch;
}

/* Header – tiny title, aligned to the right, full width */
.slider-transport-calculator .calc-header {
    grid-column: 1 / 4;
    text-align: left;
    margin: 0;
    padding: 0;
}

/* Main title: very small, Ambassadori font already global */
.slider-transport-calculator .calc-title {
    font-size: 11px;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: none;
    color: #f9fafb;
    opacity: 0.92;
}

/* Divider and optional notes are not needed visually */
.slider-transport-calculator .calc-divider,
.slider-transport-calculator .calc-note,
.slider-transport-calculator .calc-hint {
    display: none !important;
}

/* Make inner wrappers transparent – we want 3 separate grid items */
.slider-transport-calculator .calc-fields,
.slider-transport-calculator .calc-summary {
    display: contents;
}

/* Auction select – first column */
.slider-transport-calculator .calc-fields .calc-field:nth-child(1) {
    grid-column: 1;
}

/* Location select – second column */
.slider-transport-calculator .calc-fields .calc-field:nth-child(2) {
    grid-column: 2;
}

/* Result pill – third column */
.slider-transport-calculator #calc-summary .calc-line {
    grid-column: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
}

/* Default state – summary is faded until we have a real price */
.slider-transport-calculator #calc-summary .calc-line {
    opacity: 0.6;
}

/* When JS marks summary as filled, show it fully and hide the label text */
.slider-transport-calculator #calc-summary.is-filled .calc-line {
    opacity: 1;
}

/* Location text is never shown inside the result pill */
.slider-transport-calculator #calc-location-name {
    display: none;
}

/* When we have a price, hide the static 'ფასი' label so only the number stays */
.slider-transport-calculator #calc-summary.is-filled .calc-result-separator {
    display: none;
}


/* Hide field labels – text already lives inside the selects */
.slider-transport-calculator .calc-field label {
    display: none !important;
}

/* All three pills share the same shape */
.slider-transport-calculator .calc-field select,
.slider-transport-calculator #calc-summary .calc-line {
    min-width: 140px;
    padding: 9px 14px;
    border-radius: 6px;
    border: none;
    background: #000000;
    color: #f9fafb;
    font-size: 0.85rem;
    outline: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Disabled state for second select before auction is chosen */
.slider-transport-calculator .calc-field select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Result text pieces inside the pill */
.slider-transport-calculator #calc-summary .calc-line span.calc-result-separator {
    opacity: 0.7;
}

.slider-transport-calculator #calc-summary .calc-line strong {
    font-size: 0.85rem;
    font-weight: 600;
    color: #f9fafb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* MOBILE – keep calculator centered and stacked so it won't run off-screen */
@media (max-width: 768px) {
    .slider-transport-calculator {
        left: 50%;
        right: auto;
        top: 60%;
        transform: translate(-50%, -50%);
        grid-template-columns: 1fr;
        row-gap: 6px;
    }

    .slider-transport-calculator .calc-header {
        grid-column: 1;
        text-align: center;
    }

    .slider-transport-calculator .calc-title {
        font-size: 12px;
    }

    .slider-transport-calculator .calc-fields .calc-field:nth-child(1),
    .slider-transport-calculator .calc-fields .calc-field:nth-child(2),
    .slider-transport-calculator #calc-summary .calc-line {
        grid-column: 1;
    }

    .slider-transport-calculator .calc-field select,
    .slider-transport-calculator #calc-summary .calc-line {
        width: 100%;
        min-width: 0;
    }
}

/* =============================
   2025-12-06 – CHECK CAR BLOCK (Nika)
   ============================= */

.check-car-section {
    /* full-bleed banner: image goes from left edge to right edge of the window */
    position: relative;
    width: 100vw;
    max-width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 28px;
    border-radius: 0;
    overflow: hidden;
    min-height: 260px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
}

.check-car-overlay {
    position: relative;
    inset: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0,0,0,0.2), rgba(0,0,0,0.7));
}

.check-car-inner {
    min-height: 260px;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.check-car-title {
    font-family: 'PortlineTitle', 'NotoAmbassadori', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.1;
    color: #f9fafb;
    text-shadow: 0 8px 22px rgba(0,0,0,0.9);
    letter-spacing: 0.03em;
    margin-bottom: 18px;
}

.check-car-btn {
    
        font-family: 'PortlineRegular', sans-serif; 

    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 30px;
    border-radius: 6px;              /* ოთკუთხედი ოდნავი სიმრგვალით */
    border: 1px solid #dc3545;       /* იგივე ფერი, რაც ავტორიზაციაზე */
    background: #dc3545;
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    box-shadow: 0 10px 26px rgba(0,0,0,0.55);
    transition: transform 0.16s ease, box-shadow 0.16s.ease, background 0.16s ease, border-color 0.16s ease;
}

.check-car-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(0,0,0,0.65);
    background: #b92a37;
    border-color: #b92a37;
}

.check-car-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Mobile tweaks */
@media (max-width: 768px) {
    .check-car-section {
        margin-top: 22px;
        border-radius: 0;
    }

    .check-car-inner {
        min-height: 220px;
        padding: 28px 16px;
    }

    .check-car-title {
        font-size: 1.4rem;
    }

    .check-car-btn {
        width: 100%;
        max-width: 260px;
    }
}


/* =========================================
   2025-12-06 – FINAL RESPONSIVE POLISH (NIKA)
   ========================================= */

/* 1) Desktop header – prevent nav from wrapping down */
@media (min-width: 769px) and (max-width: 1280px) {
    header {
        padding: 14px 36px;
    }

    .center-menu a {
        margin: 0 10px;
        font-size: 14px;
        white-space: nowrap;
    }

    .logo img {
        height: 54px;
    }
}

/* Slightly smaller laptops – if still tight, reduce spacing a bit more */
@media (min-width: 769px) and (max-width: 1024px) {
    .center-menu a {
        margin: 0 8px;
        font-size: 13px;
    }
}

/* 2) Footer bottom text – always perfectly centered on desktop */
.footer-bottom {
    margin-top: 40px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 12px;
    opacity: 0.75;
}

/* 3) Mobile slider calculator – three pills in a row, under header divider */
@media (max-width: 768px) {

    .slider-transport-calculator {
        top: 88px;                                  /* just under fixed header */
        left: 50%;
        right: auto;
        bottom: auto;
        transform: translateX(-50%);                /* center horizontally */
        width: calc(100% - 32px);                   /* side padding */
        grid-template-columns: repeat(3, 1fr);       /* three equal columns */
        column-gap: 6px;
        row-gap: 4px;
        align-items: stretch;
    }

    .slider-transport-calculator .calc-header {
        grid-column: 1 / 4;
        text-align: left;
        margin: 0 0 6px 0;
        padding: 0;
    }

    .slider-transport-calculator .calc-title {
        font-size: 11px;
    }

    /* each field + result occupies its own column */
    .slider-transport-calculator .calc-fields .calc-field:nth-child(1),
    .slider-transport-calculator .calc-fields .calc-field:nth-child(2),
    .slider-transport-calculator #calc-summary .calc-line {
        grid-column: auto;
    }

    /* 3 pills visually identical and full-width inside their column */
    .slider-transport-calculator .calc-field select,
    .slider-transport-calculator #calc-summary .calc-line {
        width: 100%;
        min-width: 0;
        font-size: 0.8rem;
        padding: 9px 10px;
    }
}



/* =========================================
   2025-12-06 – RESPONSIVE FIX ROUND 2
   - Stop horizontal scroll on desktop
   - Keep header nav on one line around 1450px
   ========================================= */

/* 0) Never allow horizontal scroll from overflow */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* 1) Header menu tweaks for medium/large desktops (~1025–1450px) */
@media (min-width: 1025px) and (max-width: 1450px) {
    header {
        padding: 16px 40px;
    }

    .center-menu a {
        margin: 0 10px;
        font-size: 14px;
        white-space: nowrap; /* არ გადატყდეს ახალ ხაზზე */
    }

    .logo img {
        height: 54px;
    }
}


/* =========================================
   2025-12-06 – EXTRA FIXES (NIKA FINAL)
   - Mobile calculator pills same size on all phones
   - Desktop header never wraps before mobile breakpoint
   - Header turns black on scroll
   ========================================= */

/* Header color on scroll (class added via JS) */
header.scrolled {
    background: #000000 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(6px);
    transition: background 0.25s ease, border-color 0.25s ease;
}

/* Desktop header – keep nav on a single line on all widths until mobile */
.center-menu {
    white-space: nowrap;
}

.center-menu a {
    white-space: nowrap !important;
}

/* Medium / smaller desktops – tighten spacing a bit more so nothing drops down */
@media (min-width: 900px) and (max-width: 1440px) {
    header {
        padding: 12px 32px !important;
    }

    .center-menu a {
        margin: 0 8px !important;
        font-size: 14px !important;
    }

    .logo img {
        height: 52px !important;
    }
}

/* FINAL: Mobile – calculator pills identical on every device width */
@media (max-width: 768px) {

    .slider-transport-calculator .calc-field select,
    .slider-transport-calculator #calc-summary .calc-line {
        width: 100%;
        min-width: 0 !important;
        height: 42px !important;          /* one standard height */
        padding: 0 14px !important;
        font-size: 0.85rem !important;
        border-radius: 6px !important;
    }
}

/* =============================
   2025-12-06 – Become Dealer Block (Updated)
   ============================= */

.dealer-cta-section {
    width: 100%;
    margin: 32px 0 60px;
    padding: 0 12px;
}

/* Use Ambassadori on everything inside this block */
.dealer-cta-section,
.dealer-cta-section * {
    font-family: 'NotoAmbassadori', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.dealer-cta-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
    gap: 32px;
    align-items: flex-start;
    padding: 24px 0;
    color: #0f172a;
    background: transparent;
}

/* Middle divider */
.dealer-cta-inner::before {
    content: '';
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 50%;
    width: 1px;
    background: rgba(15, 23, 42, 0.12);
}

.dealer-cta-text {
    padding-right: 24px;
}

.dealer-cta-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    margin-bottom: 10px;
    color: #111827;
}

.dealer-cta-subtitle {
    font-size: 0.98rem;
    line-height: 1.6;
    color: #4b5563;
    max-width: 520px;
}

.dealer-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
    padding-left: 24px;
}

.dealer-form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dealer-form-row label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #6b7280;
}

/* Unified fields: text, email, tel, select */
.dealer-form-row input[type="text"],
.dealer-form-row input[type="email"],
.dealer-form-row input[type="tel"],
.dealer-form-row select {
    height: 46px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 0 12px;
    font-size: 0.9rem;
    background: #f9fafb;
    color: #111827;
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s.ease, background 0.16s.ease;
}

.dealer-form-row input::placeholder {
    color: #9ca3af;
}

.dealer-form-row select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #9ca3af 50%), 
                      linear-gradient(135deg, #9ca3af 50%, transparent 50%);
    background-position: right 12px center, right 7px center;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.dealer-form-row input:focus,
.dealer-form-row select:focus {
    border-color: #045d87;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(4, 93, 135, 0.25);
}

/* Submit button – brand yellow */
.dealer-form-submit {
    grid-column: 1 / -1;
    margin-top: 4px;
    height: 46px;
    border-radius: 9px;
    border: none;
    background: #FFC117;
    color: #111827;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease, box-shadow 0.18s.ease, transform 0.12s.ease;
}

.dealer-form-submit:hover {
    background: #e3a815;
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.32);
}

.dealer-form-submit:active {
    transform: translateY(0);
    box-shadow: none;
}

.dealer-form-message {
    grid-column: 1 / -1;
    margin-top: 4px;
    font-size: 0.84rem;
    line-height: 1.5;
}

.dealer-form-message--pending {
    color: #6b7280;
}

.dealer-form-message--success {
    color: #16a34a;
}

.dealer-form-message--error {
    color: #b91c1c;
}

/* Responsive */
@media (max-width: 900px) {
    .dealer-cta-section {
        padding: 0 16px;
        margin: 24px 0 40px;
    }

    .dealer-cta-inner {
        grid-template-columns: 1fr;
        padding: 20px 0 22px;
        gap: 18px;
    }

    .dealer-cta-inner::before {
        display: none;
    }

    .dealer-cta-text {
        padding-right: 0;
    }

    .dealer-form {
        grid-template-columns: 1fr;
        padding-left: 0;
    }

    .dealer-cta-title {
        font-size: 1.5rem;
    }

    .dealer-form-submit {
        width: 100%;
    }
}



/* 2025-12-06 – Desktop footer bottom text smaller */
@media (min-width: 769px) {
    .footer-bottom {
    margin-top: 40px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 12px;
    opacity: 0.75;
}
}


/* =============================
   2025-12-06 – Footer divider line + perfect centering
   ============================= */
.footer-bottom {
    position: relative;
    margin-top: 32px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 12px;
    opacity: 0.75;
    padding-top: 14px; /* space above text for the divider line */
}

.footer-bottom::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;                 /* small, simple central line */
    height: 1px;
    border-radius: 999px;
    background: rgba(249, 250, 251, 0.18);
}

/* ======================
   PAGE PRELOADER (Nika)
   ====================== */
#preloader {
    position: fixed;
    inset: 0;
    background: #000000; /* სუფთა შავი უკანა ფონი */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* როცა დავმალავთ, ნაზად ქრება */
#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 28px 32px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
}

/* ლოგო */
.preloader-logo img {
    width: 110px;
    max-width: 40vw;
    display: block;
}

/* სპინერი */
.preloader-spinner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.18);
    border-top-color: #ffc117; /* Portline ყვითელი */
    border-right-color: #ffc117;
    animation: preloader-spin 0.8s linear infinite;
}

/* ტექსტი */
.preloader-text {
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #e5e7eb;
    opacity: 0.9;
}

/* სპინის ანიმაცია */
@keyframes preloader-spin {
    to {
        transform: rotate(360deg);
    }
}

/* მობილური – ოდნავ პატარა */
@media (max-width: 768px) {
    .preloader-inner {
        padding: 20px 22px;
        border-radius: 16px;
    }

    .preloader-spinner {
        width: 40px;
        height: 40px;
    }

    .preloader-text {
        font-size: 12px;
    }
}


/* =====================
   THEME TOGGLE (LIGHTBULB)
   ===================== */
.theme-toggle {
    border: none;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle i {
    font-size: 24px;
    line-height: 1;
}

/* desktop placement – between lang and auth */
header .right-block .theme-toggle--desktop {
    margin: 0 12px;
}

/* mobile header must be positioned absolutely */
.mobile-menu-header {
    position: relative;
}

.theme-toggle--mobile {
    position: absolute;
    top: 8px;
    right: 8px;
}

/* move close (X) a bit to the left so both fit */
.mobile-menu-close {
    position: absolute;
    top: 8px;
    right: 40px;
}

/* hide desktop toggle on mobile */
@media (max-width: 768px) {
    .theme-toggle--desktop {
        display: none;
    }
}

/* hide mobile toggle on desktop */
@media (min-width: 769px) {
    .theme-toggle--mobile {
        display: none;
    }
}

/* =====================
   DARK MODE GLOBAL
   ===================== */

body.dark-mode {
    background: #282C33;
    color: #f9fafb;
}

/* Header background on dark */
body.dark-mode header {
    background: rgba(0, 0, 0, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.16);
}

/* keep scrolled variant strong */
body.dark-mode header.scrolled {
    background: #000000 !important;
    border-bottom-color: rgba(255, 255, 255, 0.18) !important;
}

/* General text – არ ვიყენებთ ლურჯს Dark-ზე */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode p,
body.dark-mode .section-title,
body.dark-mode .page-title,
body.dark-mode .page-subtitle,
body.dark-mode .purchased-slider-title {
    color: #ffffff;
}

/* Links */
body.dark-mode a {
    color: #e5e7eb;
}

body.dark-mode a:hover {
    color: #ffffff;
}

/* Header links მაინც თეთრად */
body.dark-mode .center-menu a,
body.dark-mode .auth-btn a {
    color: #ffffff;
}

/* SPA content wrapper */
body.dark-mode #app-content {
    background: transparent;
}

/* ზოგადი ბლოკები მგრძნობიარე ფონით */
body.dark-mode .page-section,
body.dark-mode .app-card {
    background: #111827;
    color: #f9fafb;
}

/* Purchased cars slider */
body.dark-mode .purchased-card {
    background: #020617;
}

body.dark-mode .purchased-card-name {
    background: rgba(15, 23, 42, 0.9);
    color: #f9fafb;
}

/* Footer dark */
body.dark-mode .footer {
    background: #020617;
    color: #f9fafb;
}

body.dark-mode .footer h3,
body.dark-mode .footer h4 {
    color: #f9fafb;
}

/* Mobile menu overlay + panel */
body.dark-mode .mobile-menu-overlay {
    background: rgba(0, 0, 0, 0.7);
}

body.dark-mode .mobile-menu-panel {
    background: #020617;
    color: #f9fafb;
}

body.dark-mode .mobile-menu-nav a {
    color: #f9fafb;
}

/* =====================
   SLIDER TEXT COLOR
   ===================== */

/* Light რეჟიმშიც და Dark-შიც სლაიდერზე ტექსტი უნდა იყოს თეთრი */
.slider-caption,
.slider-caption .hashtag {
    color: #ffffff;
}

/* DARK MODE – Purchased slider arrows become white */
body.dark-mode .purchased-slider-arrow span {
    color: #ffffff !important;
}
/* DARK MODE — Become Dealer form white text */
body.dark-mode .dealer-form-row label {
    color: #ffffff !important;
}

body.dark-mode .dealer-form-row input::placeholder,
body.dark-mode .dealer-form-row select option,
body.dark-mode .dealer-form-row input,
body.dark-mode .dealer-form-row select {
    color: #ffffff !important;
}

/* input/select borders and background on dark */
body.dark-mode .dealer-form-row input,
body.dark-mode .dealer-form-row select {
    background: #1a1d23 !important;
    border: 1px solid #ffffff33 !important;
}

/* DARK MODE — Footer must stay fully black */
body.dark-mode .footer {
    background: #000000 !important;
}
/* DARK MODE — Mobile (hamburger) menu must remain pure black */
body.dark-mode .mobile-menu-panel {
    background: #000000 !important;
}

body.dark-mode .mobile-menu-overlay {
    background: rgba(0, 0, 0, 0.7) !important;
}

/* =========================
   DESKTOP – Lang / Theme / Auth ახლოს ერთმანეთთან
   ========================= */
@media (min-width: 769px) {

    /* სამივე ელემენტი ერთმანეთს უფრო მიუახლოვდეს */
    .right-block {
        gap: 8px; /* 18px-ის მაგივრად */
    }

    /* ნათურის აიქონი აღარ იყოს ზედმეტად შორს ორივე მხრიდან */
    header .right-block .theme-toggle--desktop {
        margin: 0 4px; /* 0 12px -> 0 4px */
    }

    /* ენების გადამრთველი და ავტორიზაცია აღარ ეშალოს მარჯინებით */
    header .right-block .lang-switch {
        margin-right: 0;
    }

    header .right-block .auth-btn {
        margin-left: 0;
    }
}

/* 1171px-მდე გადავიყვანოთ ჰედერი ჰამბურგერზე (დამატებითი "ტაბლეტ" ბრეკპოინტი) */
@media (min-width: 769px) and (max-width: 1171px) {

    /* ჰედერი გახდეს კომპაქტური, შავი ზოლი როგორც მობილურზე */
    header {
        padding: 10px 24px;
        background: rgba(0, 0, 0, 0.92);
        border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    }

    /* ლოგო შუაში */
    .logo {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin: 0 auto;
    }

    .logo img {
        height: 52px;
        margin: 0;
    }

    /* მენიუს ტექსტები (center-menu) აღარ გამოჩნდეს — გადავდივართ ჰამბურგერზე */
    .center-menu {
        display: none;
    }

    /* მარცხნივ ჰამბურგერი ჩავრთოთ */
    .hamburger {
        display: flex;
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
    }

    .header-right {
        position: static;
    }

    /* მარჯვნივ ენები/ნათურა/ავტორიზაცია კომპაქტურად */
    .right-block {
        position: absolute;
        right: 24px;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* სურვილის მიხედვით: ენების გადამრთველი მაინც იყოს, nothing fancy */
    .right-block .lang-switch {
        display: block;
    }
}

@media (max-width: 768px) {
    .theme-toggle--mobile i {
        font-size: 18px !important;  /* აქ დაუპატარავებ */
    }
}


/* ===========================
   DESKTOP – FINAL VERSION
   Transparent language toggle + clean spacing + closer to Dark Mode icon
   =========================== */
@media (min-width: 769px) {

    /* გადაახლოვებს ენების გადამრთველს Dark Mode-icon–თან */
    .right-block {
        gap: 10px !important;  /* ადრე იყო 18px */
    }

    /* მთავარი ბლოკი – სრულიად ტრანსპარენტი */
    .lang-toggle {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 4px 4px !important;   /* მინიმალური საჭირო დაშორება */
        margin: 0 !important;
    }

    .lang-toggle:hover {
        background: transparent !important;
        box-shadow: none !important;
        transform: none !important;
    }

    /* dropdown flags – ლამაზი დაშორება */
    .lang-dropdown {
        display: flex !important;
        gap: 10px !important;        /* დროშებს შორის თანაბარი 10px დაშორება */
        padding: 2px 4px !important;
        margin-left: 6px !important; /* მცირე სივრცე ძირითადი დროშიდან */
        margin-right: 0 !important;
    }

    /* ინდივიდუალური დროშები */
    .lang-option img {
        width: 26px !important;
        height: 26px !important;
        border-radius: 6px;
        box-shadow: none !important;
    }

    /* მთავარი დროშა */
    .lang-toggle img[data-current-flag] {
        width: 26px !important;
        height: 26px !important;
        box-shadow: none !important;
        margin-right: 2px !important; /* რომ dropdown-ს ზედ არ მიეკრას */
    }
}

/* 1171px-დან დაბლა ენების გადამრთველი ჰედერიდან სრულად გაქრეს */
@media (max-width: 1171px) {
    header .right-block .lang-switch {
        display: none !important;
    }
}

/* ============================
   PURCHASED CAR CARDS – ზედა მრგვალი, ქვედა სწორი
   ============================ */

/* ყველა ბარათი – ზემოთ მრგვალი, ქვემოთ სწორი */
.purchased-card {
    border-radius: 14px 14px 0 0 !important;  /* ზედა ორი კუთხე მრგვალი, ქვედა ორი სწორი */
    overflow: hidden;                         /* რომ სურათიც ჩაეჭრას ამ ფორმაზე */
}

/* სურათის wrapper-იც იგივე ფორმას იმეორებს ზემოთ */
.purchased-card-image-wrap {
    border-radius: 14px 14px 0 0 !important;
}

/* ქვედა ინფო-ზოლი (სახელი) იყოს 완ად ოთკუთხედი */
.purchased-card-meta {
    border-radius: 0 !important;
}
    
/* მობილურზეც იგივე ფორმა, რომ იქაც არ „დამრგვალდეს“ თავიდან */
@media (max-width: 768px) {
    .purchased-card {
        border-radius: 14px 14px 0 0 !important;
    }
}


/* =============================
   CARFAX REQUEST POPUP
   ============================= */
.carfax-trigger {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0 0 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.carfax-trigger:focus-visible {
    outline: 2px solid #ffc117;
    outline-offset: 4px;
}

.carfax-logo {
    display: block;
    height: auto;
    max-width: 110px;
    width: 22vw;
    min-width: 70px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
}

@media (max-width: 768px) {
    .carfax-logo {
        max-width: 90px;
        width: 30vw;
        min-width: 60px;
    }
}

/* Overlay */
.carfax-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 60;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.carfax-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.carfax-modal {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.55);
    padding: 24px 26px 20px;
    width: min(460px, 92vw);
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .carfax-modal {
        width: 520px;
    }
}

.carfax-header h3 {
    margin: 0 0 6px;
    font-size: 1.1rem;
    font-weight: 800;
    color: #111827;
}

.carfax-header p {
    margin: 0;
    font-size: 0.9rem;
    color: #4b5563;
}

.carfax-subtitle-step2 {
    display: none;
}

.carfax-divider {
    margin: 14px 0 12px;
    border-top: 1px solid rgba(229, 231, 235, 0.9);
}

.carfax-step {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(10px);
    max-height: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.25s ease;
}

.carfax-step label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
}

.carfax-step input {
    border-radius: 10px;
    border: 1px solid rgba(156, 163, 175, 0.7);
    padding: 9px 11px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.carfax-step input:focus {
    border-color: #045d87;
    box-shadow: none;
}

/* Step visibility controlled by parent classes */
.carfax-overlay.step-1 .carfax-step-1,
.carfax-overlay.step-2 .carfax-step-2 {
    opacity: 1;
    transform: translateY(0);
    max-height: 120px;
    pointer-events: auto;
}

.carfax-overlay.step-1 .carfax-subtitle-step1 {
    display: block;
}
.carfax-overlay.step-1 .carfax-subtitle-step2 {
    display: none;
}
.carfax-overlay.step-2 .carfax-subtitle-step1 {
    display: none;
}
.carfax-overlay.step-2 .carfax-subtitle-step2 {
    display: block;
}

.carfax-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 4px;
}

.carfax-submit,
.carfax-cancel {
    border-radius: 10px;
    font-size: 0.85rem;
    padding: 8px 18px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.carfax-submit {
    background: #FFC117;
    color: #111827;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.30);
}

.carfax-submit:hover {
    transform: translateY(-1px);
}

.carfax-cancel {
    background: transparent;
    color: #6b7280;
}

.carfax-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    cursor: pointer;
    color: #9ca3af;
}

.carfax-close:hover {
    color: #4b5563;
}

.carfax-message {
    margin-top: 8px;
    font-size: 0.8rem;
    min-height: 1em;
    color: #6b7280;
}

.carfax-message--pending {
    color: #92400e;
}

.carfax-message--success {
    color: #166534;
}

.carfax-message--error {
    color: #b91c1c;
}

@media (max-width: 480px) {
    .carfax-modal {
        padding: 18px 16px 16px;
        border-radius: 16px;
    }
}


/* Center Carfax logo above hashtag in slider caption */
.slider-caption {
    text-align: center;
}
.slider-caption .carfax-trigger {
    display: inline-block;
    margin: 0 auto 8px;
}




/* =============================
   2025-12-12 – Carfax popup redesign (Nika)
   ============================= */

.carfax-modal {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(4, 93, 135, 0.16);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.65);
    padding: 26px 28px 22px;
    width: min(520px, 94vw);
    position: relative;
    overflow: hidden;
    transform: translateY(10px) scale(0.97);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.carfax-overlay.is-open .carfax-modal {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.carfax-modal::before {
    content: "";
    position: absolute;
    inset: -20%;
    background-image: url("image/carfax.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 280px auto;
    opacity: 0.06;
    pointer-events: none;
}

.carfax-modal-inner {
    position: relative;
    z-index: 1;
}

.carfax-header {
    text-align: center;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.carfax-header h3 {
    margin: 0 0 4px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #111827;
}

.carfax-subtitle-step1,
.carfax-subtitle-step2 {
    font-size: 0.85rem;
}

.carfax-subtitle-step2 {
    text-transform: uppercase;
    letter-spacing: 0.11em;
    font-size: 0.75rem;
    font-weight: 700;
    color: #045d87;
}

@media (min-width: 1024px) {
    .carfax-modal {
        width: 580px;
        padding: 28px 32px 24px;
    }
}

@media (max-width: 480px) {
    .carfax-modal {
        width: 92vw;
        padding: 20px 16px 18px;
        border-radius: 16px;
    }
}



/* === 2025-12-12 – Carfax logo fix (no faint background boy) === */
.carfax-modal::before {
    content: none !important;
}

.carfax-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.carfax-logo img {
    width: 74px;
    height: auto;
    display: block;
}
