/* ════════════════════════════════════════════════════════════════
   shared.css — CSS comun pentru TOATE paginile PUBLICE client
   Încărcat prin: includes/header_products.php
   Pagini: products.php, product_page.php și orice pagină publică
   DUPĂ el se încarcă: menu.css (specific products.php)
   NU este folosit în admin — pentru admin vezi admin.css
   ════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ═══════════════════════════════════════════
   VARIABLES
═══════════════════════════════════════════ */
:root {
    --bg:                #f0f4f8;
    --bg2:               #dddddf;
    --bg3:               #21262d;
    --border:            #30363d;
    --accent:            #4f8ef7;
    --accent2:           #2956a0;
    --accent-warm:       #e8a020;
    --danger:            #e05252;
    --success:           #27ae60;
    --text:              #c9d1d9;
    --text-muted:        #8b949e;
    --title:             #acaeaf;
    --card-bg:           #ffffff;
    --price:             #27ae60;
    --card-shadow:       0 4px 20px rgba(0,0,0,0.35);
    --radius:            12px;
    --font:              'FlagEmoji', 'DM Sans', DD-TTNorms, -apple-system, BlinkMacSystemFont, sans-serif;
    --header-h:          2px;
    --var-header-width:  1200px;
    --text-size-xxxxl:   22;
	--bg-blue: 			#254968;
	--bg-blue-button: 	#3498db;
}

body.dark {
    --bg:                #0d1117;
    --bg2:               rgba(7,14,22,0.82);
    --bg3:               #21262d;
    --border:            #30363d;
    --accent:            #4f8ef7;
    --accent2:           #2956a0;
    --accent-warm:       #e8a020;
    --danger:            #e05252;
    --success:           #27ae60;
    --text:              #7d7d7d;
    --text-muted:        #8b949e;
    --title:             #f0f6fc;
    --card-bg:           #ffffff;
    --price:             #27ae60;
    --card-shadow:       0 4px 20px rgba(0,0,0,0.35);
    --radius:            12px;
    --font:              'FlagEmoji', 'DM Sans', DD-TTNorms, -apple-system, BlinkMacSystemFont, sans-serif;
    --header-h:          2px;
    --var-header-width:  1200px;
    --text-size-xxxxl:   22;
	--bg-blue: 			#254968;
	--bg-blue-button: 	#3498db;
}

@media (min-width: 380px)  { :root { --text-size-xxxxl: 26; } }
@media (min-width: 480px)  { :root { --text-size-xxxxl: 30; } }
@media (min-width: 768px)  { :root { --text-size-xxxxl: 36; } }
@media (min-width: 1024px) { :root { --text-size-xxxxl: 42; } }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

/* ═══════════════════════════════════════════
   HEADER (comun locations.php + products.php)
═══════════════════════════════════════════ */
.menu-header {
    position: relative;
    width: 100%;
    min-height: var(--header-h);
    overflow: clip;
	background: linear-gradient(135deg, var(--bg-blue-button) 0%, var(--bg-blue) 100%);
    font-family: 'DM Sans', sans-serif;
}

.header-bg {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center;
    filter: blur(4px) brightness(0.35) saturate(1.4);
    z-index: 0;
}

.header-bg-pattern {
    position: absolute; inset: 0; z-index: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(102,126,234,0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118,75,162,0.4) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(79,142,247,0.2) 0%, transparent 35%);
}

.header-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient( to bottom, rgb(221, 226, 237) 0%, rgba(220,235,255,0.55) 50%, rgb(37, 73, 104) 100% );
    /* margin-top: 3rem; */
}
body.dark .header-overlay {
    background: linear-gradient( to bottom, rgb(21, 32, 53) 0%, rgb(0, 1, 2) 10%, rgb(37, 73, 104) 100% );
}

.header-content {
    position: relative; z-index: 2;
    padding: 1.5rem 1.25rem 1.25rem;
    max-width: var(--var-header-width);
    margin: auto;
    display: flex; flex-direction: column; gap: 1.25rem;
}

.menu-header-top {
    display: flex; align-items: flex-start; gap: 1rem;
    animation: fade-down 0.5s ease both;
}

@keyframes fade-down {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0);     }
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0);   }
}

.menu-header-logo {
    width: 130px; height: 125px;
    border-radius: 25px; overflow: hidden;
    background: #ffffff; backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
    align-items: center; justify-content: center;
    font-size: 1.8rem; box-shadow: 0 4px 20px rgba(0,0,0,0.4); flex-shrink: 0;
}
.menu-header-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 16px; }

.menu-header-text { flex: 1; }

.menu-header-loc {
    font-family: 'Oswald', sans-serif;
	font-size: clamp(1.8rem, 6vw, 3.5rem);
    font-weight: 700; color: #fff; line-height: 1.1;
    text-shadow: 0 2px 16px rgba(0,0,0,0.55);
    text-transform: uppercase; letter-spacing: 0.01em;
}
.menu-header-sub {
    font-size: 0.9rem; color: rgba(255,255,255,0.72); margin-top: 0.3rem;
    display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap;
}

.menu-header-contact {
    display: flex; flex-wrap: wrap; gap: 0.45rem 0.7rem; margin-top: 0.5rem;
}
.hdr-contact-link {
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.13); backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2); border-radius: 50%;
    width: 44px; height: 44px; font-size: 1.15rem;
    color: rgba(255,255,255,0.92); text-decoration: none;
    transition: background 0.18s; flex-shrink: 0; cursor: pointer;
}
.hdr-contact-link:hover { background: rgba(255,255,255,0.22); color: #fff; }
.hdr-contact-link svg { width: 20px; height: 20px; flex-shrink: 0; }
.hdr-contact-link span { display: none; }

/* ── PDF icon + dropdown în contact bar ── */
.hdr-pdf-wrap { position: relative; }
.hdr-pdf-btn { background: rgba(255,255,255,0.13); border: 1px solid rgba(255,255,255,0.2); }
.hdr-pdf-drop {
    display: none; position: fixed; min-width: 180px;
    background: rgba(20,20,40,0.96); backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15); border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5); z-index: 9990; overflow: hidden;
}
.hdr-pdf-drop.open { display: block; }
.hdr-pdf-drop-item {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.6rem 0.9rem; color: rgba(255,255,255,0.9);
    text-decoration: none; font-size: 0.83rem; transition: background 0.15s;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.hdr-pdf-drop-item:last-child { border-bottom: none; }
.hdr-pdf-drop-item:hover { background: rgba(255,255,255,0.1); }

/* ── PDF meniu full (fără produse) ── */
.pdf-menu-list {
    padding: 0.75rem 0.75rem; max-width: 480px; margin: 0 auto;
}
.pdf-menu-title {
    font-size: 1rem; font-weight: 600; margin-bottom: 0.6rem; text-align: center;
    color: var(--text, #e2e8f0);
}
.pdf-menu-card {
    display: flex; align-items: center; gap: 0.65rem;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px; padding: 0.5rem 0.75rem; margin-bottom: 0.4rem;
    text-decoration: none; color: inherit; transition: background 0.18s;
}
.pdf-menu-card:hover { background: rgba(255,255,255,0.12); }
.pdf-menu-card-icon { flex-shrink: 0; opacity: 0.85; }
.pdf-menu-card-name { flex: 1; font-size: 0.95rem; font-weight: 500; }
.pdf-menu-card-arrow { opacity: 0.5; font-size: 1.1rem; }

/* ── Menu top-bar (products.php + product_page.php) ── */
.menu-top-bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 950;
    height: 54px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 10px; gap: 6px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.menu-top-bar-left  { display: flex; align-items: center; gap: 6px; }
.menu-top-bar-right { display: flex; align-items: center; gap: 6px; }

.menu-top-bar-toggle {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 5px; width: 44px; height: 44px; border-radius: 50%;
    background: none; border: none;
    cursor: pointer; color: #fff; padding: 0; flex-shrink: 0;
    transition: background .15s;
}
.menu-top-bar-toggle:hover { background: rgba(255,255,255,.15); }
.menu-top-bar-toggle span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; }

.menu-top-cart {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,.12); border: none;
    color: #fff; cursor: pointer; padding: 0; flex-shrink: 0;
    transition: background .15s;
}
.menu-top-cart:hover { background: rgba(255,255,255,.22); }
.menu-top-cart svg { width: 18px; height: 18px; stroke-width: 2; }
.menu-top-cart-count {
    position: absolute; top: 4px; right: 4px;
    min-width: 16px; height: 16px; border-radius: 8px;
    background: #e74c3c; color: #fff;
    font-size: .62rem; font-weight: 700; line-height: 1;
    display: flex; align-items: center; justify-content: center; padding: 0 3px;
}

/* Selector limbă în top-bar — override minim față de .lang-selected global */
.menu-top-bar-right .lang-selected {
    height: 44px; border: none; border-radius: 22px;
    background: rgba(255,255,255,.12); color: #fff;
    padding: 0 12px; gap: 5px;
}
.menu-top-bar-right .lang-selected:hover { background: rgba(255,255,255,.22); }

/* Buton notificări comenzi în top-bar */
.menu-top-bar-right .osw-btn {
    width: 44px !important; height: 44px !important;
    border-radius: 50% !important; border: none !important;
    background: rgba(255,255,255,.12) !important;
}
.menu-top-bar-right .osw-btn:hover { background: rgba(255,255,255,.22) !important; }
.menu-top-bar-right .osw-btn svg { width: 18px !important; height: 18px !important; }

/* ── Badges status locație ── */
.badge-open {
    display: inline-flex; align-items: center; gap: 0.25rem;
    background: rgba(39,174,96,0.22); border: 1px solid rgba(39,174,96,0.4);
    border-radius: 50px; padding: 0.35rem 0.75rem;
    font-size: 0.75rem; font-weight: 600; color: #4ade80;
}
.badge-closed {
    display: inline-flex; align-items: center; gap: 0.25rem;
    background: rgba(224,82,82,0.18); border: 1px solid rgba(224,82,82,0.35);
    border-radius: 50px; padding: 0.15rem 0.55rem;
    font-size: 0.75rem; font-weight: 600; color: #f87171;
}
.badge-type {
    display: inline-flex; align-items: center; gap: 0.25rem;
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18);
    border-radius: 50px; padding: 0.35rem 0.75rem;
    font-size: 0.75rem; font-weight: 500; color: rgba(255,255,255,0.85);
}
.menu-header-table {
    display: inline-flex; align-items: center; gap: 0.25rem;
    background: rgba(255,255,255,0.13); backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2); border-radius: 50px;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem; font-weight: 500; color: rgba(255,255,255,0.92);
    white-space: nowrap;
}

/* ── Grup dreapta-sus (login + limbă + coș) ── */
.header-top-right {
	position: fixed;
    top: 0;
    right: 0;
    z-index: 10;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    pointer-events: auto;
}

.header-login-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: rgba(255,255,255,0.13); backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255,255,255,0.92); text-decoration: none;
    border-radius: 50px; padding: 0.4rem 0.85rem 0.4rem 0.55rem;
    font-size: 0.82rem; font-weight: 500; white-space: nowrap;
    border: 1px solid #b3b3b3;
    transition: background 0.2s, transform 0.15s;
}
.header-login-btn:hover { background: rgba(255,255,255,0.22); transform: translateY(-1px); }
.header-login-btn:active { transform: scale(0.97); }

.header-login-icon {
    width: 26px; height: 26px; background: rgba(255,255,255,0.18);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.header-avatar-img {
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block;
}
.header-login-name {
    color: #b3b3b3;
    max-width: 120px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── Language Selector ── */
.lang-selector { position: relative; flex-shrink: 0; }
.lang-selected {
    display: flex; align-items: center; gap: 0.3rem;
    background: rgba(255,255,255,0.13); backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid #b3b3b3; border-radius: 50px;
    padding: 0.68rem 0.75rem; font-size: 0.82rem; font-weight: 500;
    cursor: pointer;
    transition: background 0.2s; white-space: nowrap; user-select: none;
}
.lang-selected:hover { background: rgba(255,255,255,0.22); }
.lang-arrow { font-size: 0.6rem; opacity: 0.7; transition: transform 0.2s; }
.lang-selector.open .lang-arrow { transform: rotate(180deg); }
.lang-dropdown {
    position: absolute; top: calc(100% + 6px); right: 0;
    background: rgba(22, 18, 12, 0.95); backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.12); border-radius: 12px;
    overflow: hidden; min-width: 140px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5); z-index: 1100;
    opacity: 0; pointer-events: none;
    transform: translateY(-6px); transition: opacity 0.2s, transform 0.2s;
}
.lang-selector.open .lang-dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }
.lang-dropdown.open-drop { opacity: 1 !important; pointer-events: all !important; transform: translateY(0) !important; }
.lang-dropdown a {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.6rem 1rem; font-size: 0.85rem; font-weight: 600;
    color: rgba(255,255,255,0.85); text-decoration: none; transition: background 0.15s;
}
.lang-dropdown a:hover { background: rgba(255,255,255,0.1); }
.lang-dropdown a.active { color: var(--accent-warm); }
.lang-name { font-size: 0.85em; opacity: 0.75; margin-left: 2px; }

@media (max-width: 600px) {
    .lang-name { display: none; }
}

/* ═══════════════════════════════════════════
   SEARCH BAR (input + container)
   Dropdown-ul specific e în home.css (.search-results-drop)
   sau menu.css (.prod-search-drop)
═══════════════════════════════════════════ */
.search-bar-wrap {
    position: relative; z-index: 1000; width: 100%; max-width: 720px;
    animation: fade-up 0.5s ease 0.15s both; overflow: visible;
}
.search-bar {
    display: flex; align-items: center; gap: 0.5rem;
    background: rgba(255,255,255,0.14); backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.22); border-radius: 50px;
    padding: 0.5rem 0.5rem 0.5rem 1.1rem;
    transition: background 0.2s, border-color 0.2s;
}
.search-bar:focus-within { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.45); }
.search-input {
    flex: 1; background: none; border: none; outline: none;
    color: #fff; font-family: var(--font); font-size: 0.95rem; min-width: 0;
}
.search-input::placeholder { color: rgba(255,255,255,0.55); }
.search-divider { width: 1px; height: 20px; background: rgba(255,255,255,0.25); flex-shrink: 0; }

/* ═══════════════════════════════════════════
   NAV (nivelele 2 și 3 — comune locations + products)
   Nivelul 1 și filter-bar sunt în home.css
═══════════════════════════════════════════ */
.subcat-nav {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 80;
    /* box-shadow: 0 4px 12px rgba(0,0,0,0.3); clip-path: inset(0 0 -10px 0); */
    background: var(--bg-blue);
}

/* Level 2 — categorii */
.nav-level-2 {
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.25s;
    opacity: 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-level-2.open { max-height: 160px; opacity: 1; }
.nav-level-2-inner {
    display: flex; gap: 0.4rem; padding: 0.5rem 0.75rem;
    overflow-x: auto; scrollbar-width: none; justify-content: center;
}
.nav-level-2-inner::-webkit-scrollbar { display: none; }
.nav-l2-btn {
    display: flex; align-items: center; gap: 0.4rem;
    padding: 0 1rem; min-height: 44px;
    background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px; color: rgba(255,255,255,0.72);
    font-family: var(--font); font-size: 0.85rem; font-weight: 500;
    white-space: nowrap; cursor: pointer; transition: all 0.2s;
}
.nav-l2-btn:hover { background: rgba(255,255,255,0.14); color: #fff; }
.nav-l2-btn.active { background: var(--bg-blue-button); border-color: #3498db; color: #fff; font-weight: 600; }

/* Level 3 — subcategorii */
.nav-level-3 {
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.25s; opacity: 0;
}
.nav-level-3.open { max-height: 120px; opacity: 1; }
.nav-level-3-inner {
    display: flex; gap: 0.3rem; padding: 0.4rem 0.75rem 0.55rem;
    overflow-x: auto; scrollbar-width: none; justify-content: center;
}
.nav-level-3-inner::-webkit-scrollbar { display: none; }
.nav-l3-btn {
    display: inline-flex; align-items: center;
    padding: 0 0.85rem; min-height: 44px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px; color: var(--text); font-size: 0.82rem; font-weight: 500;
    cursor: pointer; white-space: nowrap; transition: all 0.18s; flex-shrink: 0; user-select: none;
    font-family: var(--font);
}
.nav-l3-btn:hover { border-color: var(--accent); color: var(--accent); }
.nav-l3-btn.active { color: #424345; font-weight: 600; background: rgba(255, 255, 255, 0.46); border: 1px solid rgba(255, 255, 255, 0.58); }

@media (max-width: 768px) {

    .nav-level-2-inner,
    .nav-level-3-inner {
        justify-content: flex-start;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

}
/* z-index pentru elementul <header> */
header { position: relative; z-index: 90; overflow: visible; }

/* ═══════════════════════════════════════════
   TOAST
═══════════════════════════════════════════ */
#toast-msg,
.toast-menu {
    position: fixed; bottom: 1.5rem; left: 50%;
    transform: translateX(-50%) translateY(30px);
    background: var(--bg2); border: 1px solid var(--border); border-radius: 50px;
    color: var(--title); font-size: 0.9rem; font-weight: 500;
    padding: 0.65rem 1.4rem; white-space: nowrap; opacity: 0;
    pointer-events: none; transition: opacity 0.25s, transform 0.25s;
    z-index: 9999; box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
#toast-msg.show,
.toast-menu.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ═══════════════════════════════════════════
   NO RESULTS (comun — filtrare locații + produse)
═══════════════════════════════════════════ */
.no-results { text-align: center; padding: 4rem 1rem; color: var(--text-muted); grid-column: 1 / -1; }
.no-results-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.no-results h3 { font-size: 1.2rem; color: var(--title); margin-bottom: 0.5rem; }
.no-results p  { font-size: 0.9rem; line-height: 1.6; }

/* ═══════════════════════════════════════════
   MEDIA QUERIES — header comun
═══════════════════════════════════════════ */
@media (max-width: 768px) {
    .header-content { padding: 0.75rem 1rem; }
    .menu-header { min-height: 0; }
    .menu-header-logo { width: 80px; height: 80px; }
}

@media (max-width: 600px) {
    .header-top-right { display: none; }
    .header-content { padding: 4.2rem 1rem 0.9rem; }
    .menu-header-loc { font-size: 1.6rem; }
    .menu-header-logo { display: none; }
    .menu-header-top { gap: 0.6rem; }
    .menu-header-text { text-align: center; }
    .menu-header-sub { justify-content: center; }
    .menu-header-text { min-width: 0; }
    .menu-header-contact {
        flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
        -webkit-overflow-scrolling: touch; scrollbar-width: none;
        padding-bottom: 2px; min-width: 0;
    }
    .menu-header-contact::-webkit-scrollbar { display: none; }
}

@media (max-width: 420px) {
    .menu-header-loc { font-size: 1.35rem; }
    .header-login-btn { font-size: 0.76rem; padding: 0.32rem 0.7rem 0.32rem 0.45rem; }
    .header-login-icon { width: 22px; height: 22px; }
    .share-btn { font-size: .6rem; }
}

/* ══ Share Modal — folosește variabilele temei locației (--bg2, --border, --accent, --text) ═══ */
.share-overlay {
    position: fixed; inset: 0; z-index: 9500;
    background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
    display: flex; align-items: flex-end; justify-content: center;
    animation: share-fade .2s ease;
}
@media (min-width: 520px) { .share-overlay { align-items: center; } }
@keyframes share-fade { from { opacity: 0; } to { opacity: 1; } }

.share-modal {
    /* Resetează variabilele temei — modalul e mereu light */
    --bg2: #ffffff;
    --bg3: #f1f5f9;
    --border: #e2e8f0;
    --text: #0f172a;
    --text-muted: #64748b;
    --accent: #3b82f6;
    background: #ffffff;
    color: #0f172a;
    border-radius: 20px 20px 0 0;
    padding: 1.35rem 1.25rem 1.6rem;
    width: 100%; max-width: 480px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 -8px 40px rgba(0,0,0,.3);
    animation: share-up .26s cubic-bezier(.34,1.4,.64,1);
}
@media (min-width: 520px) { .share-modal { border-radius: 20px; box-shadow: 0 8px 40px rgba(0,0,0,.4); } }
@keyframes share-up { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
body.dark .share-modal {
    background: #0f1923;
    color: #e2e8f0;
    border-color: #1e3248;
    --bg2: #0f1923;
    --bg3: #0a1628;
    --border: #1e3248;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --accent: #4f8ef7;
}

.share-modal-hdr {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: .9rem;
}
.share-modal-title { font-weight: 700; font-size: 1rem; color: var(--text, #1e293b); }
.share-modal-close {
    background: none; border: none; font-size: 1.1rem; cursor: pointer;
    color: var(--text-muted, #7a94b0); width: 32px; height: 32px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.share-modal-close:hover { background: var(--bg3, rgba(255,255,255,.08)); }

.share-url-bar {
    display: flex; align-items: center; gap: .5rem;
    background: var(--bg3, rgba(255,255,255,.06));
    border: 1px solid var(--border, rgba(255,255,255,.1));
    border-radius: 10px; padding: .5rem .75rem; margin-bottom: 1rem;
}
.share-url-bar input {
    flex: 1; background: none; border: none; outline: none;
    font-size: .78rem; color: var(--text-muted, #94a3b8);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.share-copy-btn {
    background: var(--accent, #2a69b1); color: #fff; border: none;
    border-radius: 7px; padding: .28rem .75rem; font-size: .78rem;
    font-weight: 600; cursor: pointer; white-space: nowrap; flex-shrink: 0;
    transition: filter .15s;
}
.share-copy-btn:hover { filter: brightness(1.15); }

.share-grid {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: .55rem;
}
.share-btn {
    display: flex; flex-direction: column; align-items: center; gap: .3rem;
    padding: .7rem .3rem; border-radius: 14px;
    border: 1px solid var(--border, rgba(255,255,255,.1));
    background: var(--bg3, rgba(255,255,255,.06)); cursor: pointer;
    font-size: .7rem; font-weight: 600; color: var(--text, #e2e8f0);
    transition: transform .18s, box-shadow .18s, background .15s, border-color .15s;
}
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.share-btn svg, .share-btn .s-ico { width: 28px; height: 28px; flex-shrink: 0; }
.share-btn.s-wa:hover { background: rgba(37,211,102,.18); border-color: #25d366; color: #25d366; }
.share-btn.s-fb:hover { background: rgba(24,119,242,.18); border-color: #1877f2; color: #1877f2; }
.share-btn.s-tg:hover { background: rgba(0,136,204,.18);  border-color: #0088cc; color: #0088cc; }
.share-btn.s-tw:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); color: #fff; }
.share-btn.s-em:hover { background: rgba(245,124,0,.18);  border-color: #f57c00; color: #f5a623; }

/* ── Share Preview Card ── */
.share-preview {
    display: flex; gap: .75rem; align-items: stretch;
    background: var(--bg3, rgba(255,255,255,.06));
    border: 1px solid var(--border, rgba(255,255,255,.1));
    border-radius: 12px; overflow: hidden; margin-bottom: .85rem;
}
.share-preview-img {
    width: 90px; min-width: 90px; flex-shrink: 0;
    background: var(--border, rgba(255,255,255,.08));
}
.share-preview-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.share-preview-body {
    padding: .6rem .75rem .6rem 0;
    display: flex; flex-direction: column; justify-content: center; gap: .2rem; min-width: 0;
}
.share-preview-title {
    font-weight: 700; font-size: .88rem; color: var(--text, #e2e8f0);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.share-preview-desc {
    font-size: .76rem; color: var(--text-muted, #94a3b8); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    line-clamp: 2; overflow: hidden;
}
.share-preview-domain { font-size: .7rem; color: var(--accent, #4f8ef7); margin-top: .1rem; }

/* ── Share Email Panel ── */
.share-email-panel { display: flex; flex-direction: column; gap: .65rem; }
.share-email-back {
    background: none; border: none; color: var(--accent, #4f8ef7);
    font-size: .8rem; cursor: pointer; padding: 0; text-align: left; width: fit-content;
}
.share-email-back:hover { text-decoration: underline; }
.share-email-card {
    display: flex; gap: .75rem; align-items: stretch;
    background: var(--bg3, rgba(255,255,255,.06));
    border: 1px solid var(--border, rgba(255,255,255,.1));
    border-radius: 12px; overflow: hidden;
}
.share-email-card-img { width: 90px; min-width: 90px; flex-shrink: 0; }
.share-email-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.share-email-card-body {
    padding: .65rem .75rem .65rem 0;
    display: flex; flex-direction: column; justify-content: center; gap: .2rem; min-width: 0;
}
.share-email-card-title {
    font-weight: 700; font-size: .88rem; color: var(--text, #e2e8f0);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.share-email-card-desc {
    font-size: .76rem; color: var(--text-muted, #94a3b8); line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-clamp: 2; overflow: hidden;
}
.share-email-card-url { font-size: .7rem; color: var(--accent, #4f8ef7); margin-top: .1rem; }
.share-email-field input:focus { border-color: var(--accent, #4f8ef7) !important; }
