
:root{
    --v8-bg:#05091a;
    --v8-bg-soft:#09122a;
    --v8-panel:rgba(16,27,60,.82);
    --v8-panel-solid:#111d40;
    --v8-line:rgba(151,170,225,.20);
    --v8-text:#f8f9ff;
    --v8-soft:#aebbd7;
    --v8-blue:#3177ff;
    --v8-violet:#805cff;
    --v8-gold:#e4bd67;
    --v8-green:#73ddb4;
    --v8-danger:#ff9d9a;
    --v8-shadow:0 24px 80px rgba(0,0,0,.34);
    --v8-max:1540px;
}

html{
    color-scheme:dark;
    font-family:Poppins,Inter,"Segoe UI",Arial,Helvetica,sans-serif;
    text-rendering:optimizeLegibility;
    -webkit-font-smoothing:antialiased;
}

body,
button,
input,
select,
textarea,
table{
    font-family:Poppins,Inter,"Segoe UI",Arial,Helvetica,sans-serif!important;
}

body{
    position:relative;
    min-height:100vh;
    background:
        radial-gradient(circle at 12% 8%,rgba(49,119,255,.17),transparent 30rem),
        radial-gradient(circle at 88% 12%,rgba(128,92,255,.15),transparent 32rem),
        radial-gradient(circle at 56% 96%,rgba(228,189,103,.07),transparent 36rem),
        linear-gradient(155deg,#040817 0%,#071027 48%,#050918 100%)!important;
    color:var(--v8-text);
    background-attachment:fixed!important;
}

body::before{
    content:"";
    position:fixed;
    inset:0;
    z-index:-2;
    pointer-events:none;
    opacity:.35;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),
        linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);
    background-size:44px 44px;
    mask-image:linear-gradient(to bottom,black,transparent 86%);
}

body::after{
    content:"";
    position:fixed;
    inset:auto -14vw -34vh auto;
    z-index:-1;
    width:62vw;
    height:62vw;
    border:1px solid rgba(228,189,103,.11);
    border-radius:50%;
    box-shadow:
        0 0 0 60px rgba(49,119,255,.025),
        0 0 0 140px rgba(128,92,255,.018);
    pointer-events:none;
}

.shell,
.v8-public-shell{
    width:min(var(--v8-max),calc(100% - 28px));
    margin-inline:auto;
}

.mp-app-tools,
.v8-topbar{
    position:sticky;
    top:10px;
    z-index:80;
    display:flex;
    min-height:66px;
    margin:10px 0 16px;
    padding:10px 16px;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    border:1px solid var(--v8-line)!important;
    border-radius:21px!important;
    background:rgba(7,14,36,.82)!important;
    box-shadow:0 15px 55px rgba(0,0,0,.24);
    backdrop-filter:blur(18px);
}

.mp-app-tools-left,
.mp-app-tools-right,
.v8-nav{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:5px;
}

.v8-brand{
    display:inline-flex;
    width:154px;
    min-width:154px;
    height:42px;
    align-items:center;
    text-decoration:none;
}

.v8-brand img{
    display:block;
    width:100%;
    max-height:42px;
    object-fit:contain;
    object-position:left center;
}

.v8-nav-shell .mp-app-tools-right > a,
.v8-nav-shell .mp-app-tools-left > a:not(.v8-brand),
.v8-topbar .v8-nav > a,
.mp-home-link,
.v8-nav-link{
    position:relative;
    display:inline-flex;
    min-height:38px;
    padding:8px 10px!important;
    align-items:center;
    gap:7px;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    color:var(--v8-soft)!important;
    font-size:13px;
    font-weight:780;
    text-decoration:none;
    white-space:nowrap;
}

.v8-nav-shell .mp-app-tools-right > a::after,
.v8-topbar .v8-nav > a::after,
.mp-home-link::after,
.v8-nav-link::after{
    content:"";
    position:absolute;
    right:10px;
    bottom:3px;
    left:10px;
    height:2px;
    border-radius:99px;
    background:linear-gradient(90deg,var(--v8-blue),var(--v8-violet));
    opacity:0;
    transform:scaleX(.4);
    transition:.2s ease;
}

.v8-nav-shell .mp-app-tools-right > a:hover,
.v8-topbar .v8-nav > a:hover,
.mp-home-link:hover,
.v8-nav-link:hover{
    color:white!important;
}

.v8-nav-shell .mp-app-tools-right > a:hover::after,
.v8-topbar .v8-nav > a:hover::after,
.mp-home-link:hover::after,
.v8-nav-link:hover::after{
    opacity:1;
    transform:scaleX(1);
}

.v8-nav-badge{
    display:inline-grid;
    min-width:22px;
    height:22px;
    padding:0 6px;
    place-items:center;
    border-radius:999px;
    background:linear-gradient(135deg,var(--v8-blue),var(--v8-violet));
    color:white;
    font-size:11px;
    font-weight:900;
}

.dashboard,
.main,
.card,
.section{
    min-width:0;
}

.dashboard > section,
.main > section,
.v8-surface{
    box-shadow:var(--v8-shadow);
}

.card,
.section,
.tk-priority-strip,
.v8-surface,
.portal-card,
.v7-appointment,
.tk-card{
    border-color:var(--v8-line)!important;
    background:
        linear-gradient(145deg,rgba(20,34,73,.88),rgba(10,18,44,.85))!important;
}

h1,h2,h3{
    color:var(--v8-text);
    letter-spacing:-.025em;
}

h1{font-size:clamp(31px,3vw,52px);line-height:1.05}
h2{font-size:clamp(21px,1.7vw,30px)}
.lead,p{font-size:clamp(13px,.92vw,15px)}

.v8-profile-hero{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:20px;
    align-items:center;
    margin-bottom:16px;
    padding:24px;
    border:1px solid rgba(228,189,103,.22);
    border-radius:24px;
    background:
        radial-gradient(circle at 90% 10%,rgba(228,189,103,.13),transparent 18rem),
        linear-gradient(135deg,rgba(49,119,255,.12),rgba(128,92,255,.08)),
        rgba(12,22,52,.9);
    box-shadow:var(--v8-shadow);
}

.v8-profile-identity{
    display:flex;
    align-items:center;
    gap:16px;
}

.v8-avatar{
    display:grid;
    width:76px;
    height:76px;
    min-width:76px;
    overflow:hidden;
    place-items:center;
    border:1px solid rgba(228,189,103,.35);
    border-radius:23px;
    background:linear-gradient(135deg,rgba(49,119,255,.25),rgba(128,92,255,.24));
    color:white;
    font-size:24px;
    font-weight:900;
}

.v8-avatar img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.v8-profile-hero h1{
    margin:5px 0;
}

.v8-profile-specialty{
    color:var(--v8-gold);
    font-weight:800;
}

.v8-profile-actions{
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-end;
    gap:9px;
}

.v8-section-heading{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:20px;
    margin-bottom:16px;
}

.v8-section-heading h2{
    margin:5px 0 6px;
}

.v8-section-heading p{
    margin:0;
    color:var(--v8-soft);
}

.v8-text-link{
    color:#cbd5ff;
    font-weight:850;
    text-decoration:none;
    white-space:nowrap;
}

.v8-text-link:hover{color:white}

.v8-blog-section{
    margin-top:18px;
    padding:22px;
    border:1px solid var(--v8-line);
    border-radius:23px;
    background:rgba(9,17,42,.78);
    box-shadow:var(--v8-shadow);
}

.v8-blog-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:13px;
}

.v8-blog-card,
.v8-blog-placeholder{
    display:flex;
    min-height:205px;
    padding:17px;
    flex-direction:column;
    border:1px solid var(--v8-line);
    border-radius:17px;
    background:linear-gradient(145deg,rgba(23,38,78,.78),rgba(11,20,48,.74));
}

.v8-blog-card time{
    color:var(--v8-gold);
    font-size:11px;
    font-weight:850;
    text-transform:uppercase;
}

.v8-blog-card h3{
    margin:10px 0 8px;
    font-size:17px;
    line-height:1.28;
}

.v8-blog-card p{
    display:-webkit-box;
    overflow:hidden;
    color:var(--v8-soft);
    line-height:1.55;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
}

.v8-blog-card a{
    margin-top:auto;
    color:#d8ddff;
    font-size:13px;
    font-weight:850;
    text-decoration:none;
}

.v8-specialist-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:13px;
}

.v8-specialist-card{
    display:grid;
    grid-template-columns:auto 1fr;
    gap:14px;
    padding:17px;
    border:1px solid var(--v8-line);
    border-radius:18px;
    background:rgba(255,255,255,.03);
}

.v8-specialist-card h3{margin:2px 0 5px;font-size:18px}
.v8-specialist-card p{margin:0;color:var(--v8-soft);line-height:1.5}
.v8-specialist-card .v8-avatar{width:58px;height:58px;min-width:58px;border-radius:18px;font-size:18px}

.v8-profile-form{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
}

.v8-profile-form .full{grid-column:1/-1}

.v8-public-home{
    padding:18px 0 36px;
}

.v8-public-header{
    display:flex;
    padding:13px 18px;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    border:1px solid var(--v8-line);
    border-radius:22px;
    background:rgba(7,14,36,.82);
    backdrop-filter:blur(18px);
}

.v8-version{
    display:inline-flex;
    padding:8px 11px;
    align-items:center;
    gap:8px;
    border:1px solid rgba(115,221,180,.22);
    border-radius:999px;
    color:var(--v8-green);
    font-size:12px;
    font-weight:850;
}

.v8-public-hero{
    display:grid;
    grid-template-columns:minmax(0,1.2fr) minmax(350px,.8fr);
    gap:20px;
    align-items:stretch;
    padding:clamp(28px,5vw,70px) 0 22px;
}

.v8-hero-copy,
.v8-access-panel{
    padding:clamp(24px,3.4vw,50px);
    border:1px solid var(--v8-line);
    border-radius:28px;
    background:
        radial-gradient(circle at 12% 0,rgba(49,119,255,.18),transparent 22rem),
        linear-gradient(145deg,rgba(17,31,70,.9),rgba(7,14,36,.82));
    box-shadow:var(--v8-shadow);
}

.v8-hero-copy h1{
    max-width:900px;
    margin:10px 0 18px;
    font-size:clamp(44px,6vw,88px);
}

.v8-hero-copy p{
    max-width:790px;
    color:var(--v8-soft);
    font-size:clamp(15px,1.35vw,20px);
    line-height:1.7;
}

.v8-access-panel{
    display:flex;
    flex-direction:column;
}

.v8-access-choice{
    display:grid;
    gap:10px;
    margin-top:18px;
}

.v8-access-card{
    display:grid;
    grid-template-columns:auto 1fr auto;
    gap:13px;
    padding:16px;
    align-items:center;
    border:1px solid var(--v8-line);
    border-radius:17px;
    background:rgba(255,255,255,.035);
    color:white;
    text-decoration:none;
    transition:.2s ease;
}

.v8-access-card:hover{
    border-color:rgba(128,92,255,.5);
    transform:translateY(-2px);
    background:rgba(128,92,255,.08);
}

.v8-access-icon{
    display:grid;
    width:46px;
    height:46px;
    place-items:center;
    border-radius:15px;
    background:linear-gradient(135deg,rgba(49,119,255,.25),rgba(128,92,255,.25));
    font-size:20px;
}

.v8-access-card strong{display:block;font-size:16px}
.v8-access-card small{color:var(--v8-soft)}

.v8-no-register{
    margin-top:auto;
    padding-top:18px;
    color:var(--v8-soft);
    font-size:12px;
    line-height:1.55;
}

.v8-footer{
    display:flex;
    margin-top:22px;
    padding:18px 4px;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    color:var(--v8-soft);
    font-size:12px;
}

@media(max-width:1150px){
    .v8-blog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .v8-specialist-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:900px){
    .mp-app-tools,.v8-topbar{position:relative;top:0;align-items:flex-start;flex-direction:column}
    .v8-brand{width:138px;min-width:138px}
    .v8-public-hero{grid-template-columns:1fr}
    .v8-profile-hero{grid-template-columns:1fr}
    .v8-profile-actions{justify-content:flex-start}
}

@media(max-width:680px){
    .shell,.v8-public-shell{width:min(var(--v8-max),calc(100% - 16px))}
    .v8-blog-grid,.v8-specialist-grid,.v8-profile-form{grid-template-columns:1fr}
    .v8-section-heading,.v8-public-header,.v8-footer{align-items:flex-start;flex-direction:column}
    .v8-hero-copy h1{font-size:clamp(38px,13vw,60px)}
    .v8-profile-identity{align-items:flex-start}
    .v8-avatar{width:64px;height:64px;min-width:64px}
}
