/* ==========================================================================
   VELA DENTAL — GLOBAL CLINICAL DESIGN SYSTEM & FLOATING PILL GLASS NAVBAR
   Ngành: Nha Khoa Kỹ Thuật Số | Phong cách: Spatial Glassmorphism & Bento
   ========================================================================== */

:root {
    --bg-canvas: #f3f7fa;
    --bg-surface: #ffffff;
    --bg-ice: #e7f4f6;
    --bg-ice-soft: #f0f8fa;
    --bg-deep: #091e2c;
    --bg-deep-soft: #102b3d;
    --ink: #0c1b2a;
    --ink-muted: #4b6176;
    --ink-subtle: #788ea3;
    --primary: #0b848e;
    --primary-dark: #07666e;
    --mint: #20c2b7;
    --mint-soft: rgba(32, 194, 183, 0.14);
    --line: rgba(12, 27, 42, 0.09);
    --line-strong: rgba(12, 27, 42, 0.16);
    --line-light: rgba(255, 255, 255, 0.14);
    --font-display: 'Outfit', 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --radius-pill: 999px;
    --container: 1300px;
    --shadow-card: 0 12px 34px rgba(12, 27, 42, 0.055);
    --shadow-glass: 0 18px 42px rgba(9, 30, 44, 0.09);
    --shadow-deep: 0 26px 56px rgba(9, 30, 44, 0.22);
    --ease-swiss: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    font-size: 16px;
    background-color: var(--bg-canvas);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-canvas);
    color: var(--ink);
    line-height: 1.68;
    overflow-x: clip;
    padding-top: 96px;
}

body.nav-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.3s var(--ease-swiss);
}

button,
input,
select,
textarea {
    font-family: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

ul,
ol {
    list-style: none;
}

.vd-container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* Shared Clinical Badges & Headings */
.vd-pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    background-color: var(--bg-ice);
    color: var(--primary-dark);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vd-pill-tag .pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--mint);
    box-shadow: 0 0 0 4px rgba(32, 194, 183, 0.24);
}

.vd-heading {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: var(--ink);
}

.vd-heading span {
    color: var(--primary);
}

.vd-section-title {
    font-size: clamp(2rem, 3.6vw, 3rem);
    margin-top: 12px;
}

/* Shared Clinical Pill Buttons */
.vd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    transition: transform 0.3s var(--ease-swiss), background-color 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, color 0.28s ease;
}

.vd-btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    border: 1px solid var(--primary);
    box-shadow: 0 10px 24px rgba(11, 132, 142, 0.24);
}

.vd-btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(11, 132, 142, 0.32);
}

.vd-btn-dark {
    background-color: var(--bg-deep);
    color: #ffffff;
    border: 1px solid var(--bg-deep);
}

.vd-btn-dark:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.vd-btn-outline {
    background-color: rgba(255, 255, 255, 0.85);
    color: var(--ink);
    border: 1px solid var(--line-strong);
}

.vd-btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: #ffffff;
}

.vd-btn-white {
    background-color: #ffffff;
    color: var(--bg-deep);
    border: 1px solid #ffffff;
}

.vd-btn-white:hover {
    background-color: var(--bg-ice);
    border-color: var(--bg-ice);
    transform: translateY(-2px);
}

/* Top Clinical Reading Progress Bar */
.vd-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--mint));
    transform-origin: left center;
    transform: scaleX(0);
    z-index: 1200;
    pointer-events: none;
}

/* ==========================================================================
   FLOATING PILL GLASS NAVBAR (DETACHED 14PX FROM TOP — ZERO DARK TOPBAR)
   ========================================================================== */
.vd-nav-shell {
    position: fixed;
    top: 14px;
    left: 0;
    right: 0;
    z-index: 1050;
    padding: 0 20px;
    pointer-events: none;
}

.vd-pill-bar {
    pointer-events: auto;
    max-width: var(--container);
    margin: 0 auto;
    height: 68px;
    padding: 0 14px 0 22px;
    border-radius: var(--radius-pill);
    background-color: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 32px rgba(12, 27, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.vd-pill-bar.is-scrolled {
    background-color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 38px rgba(12, 27, 42, 0.12);
}

/* Brand Mark */
.vd-logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
}

.vd-logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--mint));
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    box-shadow: 0 6px 16px rgba(11, 132, 142, 0.28);
}

.vd-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.vd-logo-text strong {
    font-family: var(--font-display);
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.vd-logo-text small {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
}

/* Center Pill Links */
.vd-nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vd-nav-link {
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ink-muted);
    white-space: nowrap;
}

.vd-nav-link:hover,
.vd-nav-link.is-active {
    background-color: var(--bg-ice);
    color: var(--primary-dark);
}

/* Right Action Cluster */
.vd-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.vd-hotline-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    background-color: var(--bg-canvas);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
}

.vd-hotline-chip i {
    color: var(--primary);
}

.vd-hotline-chip:hover {
    background-color: var(--bg-ice);
    color: var(--primary-dark);
}

.vd-nav-cta {
    padding: 10px 20px;
    font-size: 0.84rem;
}

/* Mobile Hamburger */
.vd-mobile-btn {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--bg-canvas);
    color: var(--ink);
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

/* Frosted Glass Mobile Drawer Panel */
.vd-mobile-panel {
    position: fixed;
    inset: 0;
    z-index: 1120;
    background-color: rgba(9, 30, 44, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.32s ease, visibility 0.32s ease;
    display: flex;
    justify-content: flex-end;
}

.vd-mobile-panel.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.vd-mobile-card {
    width: min(360px, 90vw);
    height: 100%;
    background-color: var(--bg-surface);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateX(100%);
    transition: transform 0.38s var(--ease-swiss);
    box-shadow: -16px 0 42px rgba(9, 30, 44, 0.16);
}

.vd-mobile-panel.is-open .vd-mobile-card {
    transform: translateX(0);
}

.vd-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.vd-mobile-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-canvas);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.vd-mobile-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 22px 0;
}

.vd-mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--ink);
}

.vd-mobile-link:hover,
.vd-mobile-link.is-active {
    background-color: var(--bg-ice);
    color: var(--primary-dark);
}

.vd-mobile-link i {
    font-size: 0.78rem;
    color: var(--primary);
}

.vd-mobile-foot {
    padding-top: 18px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vd-mobile-info {
    font-size: 0.84rem;
    color: var(--ink-muted);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vd-mobile-info i {
    color: var(--primary);
    width: 18px;
}

/* Toast Notification */
.vd-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: var(--bg-deep);
    color: #ffffff;
    padding: 14px 24px;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-deep);
    z-index: 9995;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s var(--ease-swiss);
}

.vd-toast.is-show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.vd-toast i {
    color: var(--mint);
}

/* Responsive Floating Navbar */
@media (max-width: 1120px) {
    .vd-hotline-chip {
        display: none;
    }

    .vd-nav-link {
        padding: 8px 11px;
        font-size: 0.84rem;
    }
}

@media (max-width: 991px) {
    body {
        padding-top: 86px;
    }

    .vd-container {
        padding: 0 18px;
    }

    .vd-nav-shell {
        top: 10px;
        padding: 0 14px;
    }

    .vd-pill-bar {
        height: 62px;
        padding: 0 12px 0 16px;
    }

    .vd-nav-links,
    .vd-nav-actions .vd-nav-cta {
        display: none;
    }

    .vd-mobile-btn {
        display: inline-flex;
    }
}
