/* ============================================================
   The Lifestyle Planning Consultancy — t-lpc.com
   Custom responsive stylesheet
   ============================================================ */
:root {
    /* Palette mirrored from the live t-lpc.com theme */
    --primary: #5bb252;          /* brand green (--third-color)  */
    --primary-dark: #4a9a42;
    --primary-rgb: 91, 178, 82;
    --teal: #0E2127;             /* dark teal-black (--six-color) */
    --dark: #0E2127;            /* headings / dark sections     */
    --navy: #0E2127;            /* footer                       */
    --warm: #57554c;            /* warm neutral (--primary-color) */
    --secondary: #383838;       /* near-black (--secondary-color) */
    --purple: #6c34bb;          /* accent (--five-color)        */
    --lime: #8fd694;            /* light-green accent on dark   */
    --light: #ECF0F0;           /* page / alt section bg (--body_bg-color) */
    --mint: #EEFCF4;            /* pale green tint (--lgreen-color) */
    --gray-500: #777;           /* muted text (--seven-color)   */
    --body: #57554c;            /* body copy                    */
    --white: #ffffff;
    --radius: 14px;
    --shadow: 0 15px 40px rgba(14, 33, 39, .08);
    --heading-font: 'Mona Sans', 'Instrument Sans', system-ui, sans-serif;
    --body-font: 'Mona Sans', system-ui, sans-serif;
    --alt-font: 'DM Sans', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: var(--body-font);
    font-size: 17px;
    line-height: 1.7;
    color: var(--body);
    background: var(--light);
    overflow-x: hidden;
    letter-spacing: -0.1px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: all .3s ease; }
ul { list-style: none; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--dark);
    line-height: 1.25;
    font-weight: 700;
}

.container { width: min(1300px, 92%); margin-inline: auto; }

section { padding: 90px 0; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 15px;
    padding: 0 34px;
    line-height: 56px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .3s ease;
}
.btn-pill { border-radius: 999px; }
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 6px 16px rgba(var(--primary-rgb), .18); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline { border-color: var(--dark); color: var(--dark); }
.btn-outline:hover { background: var(--dark); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--lime); }

/* ---------- Section headings ---------- */
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    font-size: 12px;
    color: var(--primary);
    margin-bottom: 14px;
}
.kicker::before { content: ""; width: 34px; height: 2px; background: var(--primary); }

.section-title { font-size: clamp(32px, 4vw, 50px); margin-bottom: 18px; line-height: 1.12; text-transform: capitalize; }

.section-head { max-width: 720px; margin: 0 auto 55px; text-align: center; }
.section-head .kicker::before { display: none; }
.section-head .kicker::after,
.section-head .kicker::before { content: ""; display: inline-block; width: 34px; height: 2px; background: var(--primary); }
.section-head .kicker::after { margin-left: 12px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    box-shadow: none;
    transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}
.site-header.scrolled {
    background: #fffef8;
    box-shadow: 0 2px 20px rgba(14, 33, 39, .08);
}
/* Transparent state: light nav over the hero / page banner */
.site-header:not(.scrolled) .nav-menu > li > a { color: #fff; }
.site-header:not(.scrolled) .nav-menu > li > a:hover,
.site-header:not(.scrolled) .nav-menu > li > a.active { color: var(--lime); }
.site-header:not(.scrolled) .hamburger span { background: #fff; }
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 92px;
}
.header-inner > .main-nav { flex: 1 1 auto; display: flex; justify-content: flex-end; }
.header-inner > .main-nav .nav-menu { margin-right: 60px; }
@media (max-width: 900px) { .header-inner > .main-nav { flex: 0 0 auto; } }
.logo img { height: 80px; width: auto; }

.main-nav .nav-menu { display: flex; align-items: center; gap: 34px; }
.main-nav .nav-menu > li { position: relative; }
.main-nav .nav-menu > li > a {
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 16px;
    color: var(--dark);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 32px 0;
}
.main-nav .nav-menu > li > a i { font-size: 11px; transition: transform .3s; }
.main-nav .nav-menu > li:hover > a i { transform: rotate(180deg); }
.main-nav .nav-menu > li > a:hover,
.main-nav .nav-menu > li > a.active { color: var(--primary); }

.dropdown {
    position: absolute;
    top: 100%;
    left: -22px;
    min-width: 300px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all .3s ease;
    border-top: 3px solid var(--primary);
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
    display: block;
    padding: 10px 24px;
    font-weight: 500;
    font-size: 15px;
    color: var(--dark);
}
.dropdown a:hover { color: var(--primary); padding-left: 30px; }

.header-cta { white-space: nowrap; }
.mobile-cta { display: none; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 6px;
}
.hamburger span { width: 26px; height: 3px; background: var(--dark); border-radius: 3px; transition: all .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* 3x3 grid menu button (next to "Make an inquiry") */
.grid-menu {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 10px;
    background: var(--white);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 3px;
    place-items: center;
    padding: 15px;
    cursor: pointer;
    transition: background .3s ease;
}
.grid-menu span { width: 4px; height: 4px; border-radius: 50%; background: var(--dark); transition: background .3s ease; }
.site-header.scrolled .grid-menu,
.grid-menu:hover { background: var(--primary); }
.site-header.scrolled .grid-menu span,
.grid-menu:hover span { background: var(--white); }

/* right-side action cluster */
.header-actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }

/* grid button opens the slide-in panel on desktop too */
.main-nav.panel-open {
    position: fixed;
    top: 0; right: 0;
    width: min(360px, 90vw);
    height: 100vh;
    background: var(--white);
    box-shadow: -12px 0 40px rgba(0,0,0,.16);
    padding: 96px 32px 40px;
    z-index: 999;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
}
.main-nav.panel-open .nav-menu { flex-direction: column; align-items: stretch; gap: 4px; width: 100%; margin-right: 0; }
.main-nav.panel-open .nav-menu > li { width: 100%; }
.main-nav.panel-open .nav-menu > li > a { color: var(--dark); padding: 13px 0; width: 100%; justify-content: space-between; }
.main-nav.panel-open .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: 0; padding: 4px 0 4px 14px; }
.main-nav.panel-open .mobile-cta { display: block; margin-top: 22px; }

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero {
    position: relative;
    overflow: hidden;
    padding: 0;
    background: #0e2127;
    min-height: 100vh;
}
/* faint photo + heavy teal gradient wash behind the split layout */
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(13,32,37,.94) 0%, rgba(16,40,44,.86) 46%, rgba(44,60,52,.78) 100%),
        var(--hero-bg-img) center/cover no-repeat;
    z-index: 0;
}
.hero .container {
    position: relative;
    z-index: 2;
    max-width: 1360px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 180px;
    padding-bottom: 120px;
}

/* two-column split: image slider | text */
.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: 56px;
    align-items: center;
}
.hero-layout > * { min-width: 0; }

/* LEFT — image slider, framed with an asymmetric radius */
.hero-media {
    position: relative;
    height: min(72vh, 700px);
    min-height: 480px;
    border-radius: 20px 20px 20px 120px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,.35);
}
.hero-media-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1s ease, transform 6s ease;
}
.hero-media-slide.active { opacity: 1; transform: scale(1); }

/* RIGHT — text column: stacked slides + a static footer row */
.hero-text {
    position: relative;
    color: var(--white);
    display: flex;
    flex-direction: column;
    text-align: left;
}
.hero-text-main {
    position: relative;
    min-height: clamp(360px, 46vh, 470px);
}
.hero-text-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s ease, visibility .7s;
}
.hero-text-slide.active { opacity: 1; visibility: visible; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Instrument Sans', var(--heading-font);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #b3a980;
    margin-bottom: 24px;
}
.hero-eyebrow i { color: var(--primary); font-size: 16px; }

.hero-title {
    color: var(--white);
    font-family: var(--heading-font);       /* Mona Sans */
    font-weight: 500;
    font-size: clamp(38px, 4.4vw, 74px);
    line-height: 1.16;
    letter-spacing: -2.2px;
    text-transform: capitalize;
    margin-bottom: 28px;
    max-width: 640px;
}
.hero-title span { color: var(--primary); }

.hero-note {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 580px;
    padding: 15px 30px 15px 15px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 90px;
}
.hero-note-icon {
    flex: 0 0 78px;
    width: 78px;
    height: 78px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
}
.hero-note p {
    font-family: var(--heading-font);
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255,255,255,.64);
}

/* footer row under the text: google review widget (left) + slide thumbs (right) */
.hero-text-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 40px;
}
.hero-review { display: flex; align-items: center; gap: 14px; }
.hero-stars { display: inline-flex; gap: 3px; color: #f5b301; font-size: 15px; }
.hero-review-meta { display: flex; flex-direction: column; line-height: 1.35; }
.hero-review-meta strong { font-family: var(--heading-font); font-size: 15px; color: #fff; font-weight: 600; }
.hero-review-meta small { font-size: 12px; color: rgba(255,255,255,.55); display: inline-flex; align-items: center; gap: 6px; }
.hero-review-meta small i { color: var(--primary); }

/* slide thumbnails — small, bottom-right of the text column */
.hero-thumbs { display: flex; gap: 10px; z-index: 5; }
.hero-thumbs button {
    width: 68px;
    height: 46px;
    border: 0;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    opacity: .45;
    filter: grayscale(.4);
    transition: opacity .3s ease, filter .3s ease, box-shadow .3s ease;
}
.hero-thumbs button.active { opacity: 1; filter: none; box-shadow: 0 0 0 2px var(--primary); }

/* staggered entrance — replays on each slide activation */
.hero-text-slide.active .hero-eyebrow { animation: heroIn .8s .05s cubic-bezier(.2,.7,.2,1) both; }
.hero-text-slide.active .hero-title   { animation: heroIn .8s .16s cubic-bezier(.2,.7,.2,1) both; }
.hero-text-slide.active .hero-note    { animation: heroIn .8s .28s cubic-bezier(.2,.7,.2,1) both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ============================================================
   ABOUT / EXPERIENCE
   ============================================================ */
.about-section { background: #f6f6f1; overflow: hidden; }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.06fr;
    gap: 80px;
    align-items: center;
}
.about-media { position: relative; padding: 30px 40px 40px 0; }
.about-img-wrap {
    position: relative;
    z-index: 2;
    border-radius: 16px 16px 16px 130px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(14,33,39,.14);
}
.about-img-wrap img {
    width: 100%;
    aspect-ratio: 3/3.3;
    object-fit: cover;
    display: block;
}
.about-frame {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    opacity: .9;
}
.about-frame.af1 { top: -6px; left: -34px; width: 190px; }
.about-frame.af2 { right: 0; bottom: 0; width: 220px; }

.exp-badge {
    position: absolute;
    z-index: 3;
    right: -6px;
    top: 8%;
    background: var(--primary);
    color: var(--white);
    border-radius: 16px;
    padding: 20px 24px;
    text-align: center;
    box-shadow: 0 18px 35px rgba(var(--primary-rgb), .4);
    animation: floatY 4s ease-in-out infinite;
}
.exp-badge strong { display: block; font-family: var(--heading-font); font-size: 42px; line-height: 1; font-weight: 700; }
.exp-badge strong span { font-size: 24px; vertical-align: top; }
.exp-badge span { font-size: 12.5px; letter-spacing: .5px; }
@keyframes floatY { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-12px);} }

.about-text .kicker { color: var(--primary); }
.about-text .section-title { color: #c9ccce; font-weight: 500; text-transform: none; margin-bottom: 8px; }
.rating-row { display: flex; align-items: center; gap: 14px; margin: 6px 0 24px; }
.rating-row img { height: 20px; width: auto; }
.rating-row span { font-weight: 600; font-size: 15px; color: var(--dark); font-family: var(--heading-font); }
.about-text p { margin-bottom: 20px; color: var(--body); }
.about-text p.lead { font-size: 19px; font-weight: 500; color: var(--dark); line-height: 1.55; }
.about-text .btn { margin: 4px 0 26px; }

blockquote.about-quote {
    border-left: 4px solid var(--primary);
    padding-left: 18px;
    font-style: italic;
    color: var(--dark);
    font-weight: 500;
    margin: 18px 0 24px;
}

/* ---------- About page ---------- */
.about-page { background: var(--white); }
.about-page-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 70px;
}
.about-page-media { position: relative; }
.about-page-img {
    width: 100%;
    border-radius: 0 0 200px 0;
    object-fit: cover;
}
.float-badge {
    position: absolute;
    right: -16px;
    top: -24px;
    background: var(--primary);
    color: var(--white);
    border-radius: 17px;
    padding: 22px 26px;
    text-align: center;
    box-shadow: 0 18px 35px rgba(98,176,88,.45);
    animation: floatY 4s ease-in-out infinite;
}
.float-badge strong { display: block; font-family: var(--heading-font); font-size: 44px; line-height: 1; }
.float-badge span { font-size: 13px; }
.about-page-text p { margin-bottom: 18px; color: var(--body); }
.about-page-text .section-title { font-size: clamp(26px, 3.4vw, 44px); }
.about-page-text .btn { margin-top: 10px; }
.about-goals {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.goals-card {
    background: var(--light);
    border: 1px solid #ececec;
    border-radius: 20px;
    padding: 32px 30px;
    transition: all .35s ease;
}
.goals-card:hover { box-shadow: var(--shadow); transform: translateY(-6px); border-color: var(--primary); }
.goals-card h4 { font-size: 20px; margin-bottom: 14px; color: var(--dark); position: relative; padding-left: 18px; }
.goals-card h4::before {
    content: "";
    position: absolute;
    left: 0; top: 4px; bottom: 4px;
    width: 5px;
    background: var(--primary);
    border-radius: 4px;
}
.goals-card p { font-size: 15.5px; margin-bottom: 14px; color: var(--body); }

/* ============================================================
   INTRO (Through Knowledge) + STATS + MARQUEE
   ============================================================ */
.intro-section { padding: 50px 0 0; text-align: center; }
.intro-section .intro-body { padding: 20px 0 0; max-width: 820px; margin: 0 auto; }
.intro-section p { margin-bottom: 16px; font-size: 20px; font-weight: 500; line-height: 30px; letter-spacing: -0.4px; color: var(--dark); }

.stats-section { background: var(--white); padding: 80px 0; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}
.stat-number {
    font-family: var(--heading-font);
    font-size: 90px;
    line-height: .9;
    font-weight: 600;
    color: var(--dark);
    display: inline-flex;
    align-items: baseline;
}
.stat-number .stat-suffix { font-size: 40px; color: var(--primary); font-weight: 600; }
.stat-label {
    display: block;
    margin-top: 14px;
    font-size: 16px;
    color: var(--body);
    font-weight: 500;
}
.stats-head { text-align: center; margin-bottom: 46px; }

.text-marquee {
    padding: 26px 0;
    overflow: hidden;
    background: var(--dark);
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
}
.text-marquee .marquee-track span:nth-child(2n) { color: var(--primary); }
.text-marquee .marquee {
    gap: 0;
    display: flex;
    overflow: hidden;
}
.text-marquee .marquee-track {
    display: flex;
    align-items: center;
    gap: 0;
    min-width: 100%;
    animation: scrollX 28s linear infinite;
}
.text-marquee .marquee-track span { padding: 0 24px; }

/* ============================================================
   SERVICES (tabs)
   ============================================================ */
.services-section { background: #ecf0f0; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.service-card {
    background: var(--white);
    border: 1px solid #ececec;
    border-radius: var(--radius);
    padding: 36px 30px;
    position: relative;
    transition: all .35s ease;
    overflow: hidden;
}
.service-card::before {
    content: "";
    position: absolute;
    inset: auto -40% -60% auto;
    width: 240px; height: 240px;
    border-radius: 50%;
    background: var(--mint);
    transition: all .5s ease;
    z-index: 0;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scale(1.6); }
.service-card > * { position: relative; z-index: 1; }
.service-num {
    font-family: var(--heading-font);
    font-weight: 800;
    font-size: 15px;
    color: var(--primary);
    letter-spacing: 1px;
}
.service-icon { width: 64px; margin: 18px 0; }
.service-card h3 { font-size: 19px; margin-bottom: 12px; }
.service-card h3 a:hover { color: var(--primary); }
.service-card p { font-size: 15px; margin-bottom: 18px; }
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-family: var(--heading-font);
    font-size: 14px;
    color: var(--dark);
}
.read-more i { transition: transform .3s; color: var(--primary); }
.read-more:hover { color: var(--primary); }
.read-more:hover i { transform: translateX(5px); }

/* ---------- Services carousel / grid — numbered cards ---------- */
.services-section .services-head { text-align: center; margin: 0 auto 44px; }
.svc-carousel { overflow: hidden; }
.svc-track {
    display: flex;
    gap: 26px;
    transition: transform .55s cubic-bezier(.5,0,.1,1);
    will-change: transform;
}

/* ---------- CIS / LDC service listing (pxl-service-style1) ---------- */
.svc-l-section { padding: 96px 0 100px; }
.svc-l-head { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.svc-l-head h3 {
    font-family: var(--heading-font);
    font-size: clamp(32px, 4vw, 50px);
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 16px;
    text-transform: none;
}
.svc-l-head p { color: var(--body); font-size: 16px; line-height: 1.7; }

.svc-l-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.svc-l-card {
    background: var(--white);
    border: 1px solid #e6e9e9;
    border-radius: 16px;
    padding: 34px 30px 30px;
    transition: box-shadow .35s ease, transform .35s ease, border-color .35s ease;
}
.svc-l-card:hover { box-shadow: 0 22px 46px rgba(14,33,39,.1); transform: translateY(-6px); border-color: transparent; }

.svc-l-featured {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}
.svc-l-num {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 20px;
    color: rgba(var(--primary-rgb), .5);
    line-height: 1;
}
.svc-l-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: var(--mint);
    color: var(--primary);
}
.svc-l-body h3 { font-size: 19px; line-height: 1.4; margin-bottom: 12px; }
.svc-l-body h3 a { color: var(--dark); }
.svc-l-body h3 a:hover { color: var(--primary); }
.svc-l-body p { font-size: 14.5px; line-height: 1.65; color: var(--body); margin-bottom: 20px; }
.svc-l-more {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 13.5px;
    color: var(--dark);
}
.svc-l-more svg { transition: transform .3s ease; }
.svc-l-more:hover { color: var(--primary); }
.svc-l-more:hover svg { transform: translateX(4px); }

@media (max-width: 980px) { .svc-l-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .svc-l-grid { grid-template-columns: 1fr; } }
.svc-card {
    flex: 0 0 calc((100% - 78px) / 4);
    background: var(--white);
    border: 1px solid #e6e9e9;
    border-radius: 18px;
    padding: 36px 30px 30px;
    position: relative;
    overflow: hidden;
    transition: box-shadow .35s ease, transform .35s ease, border-color .35s ease;
}
.svc-card::after {
    content: "";
    position: absolute;
    right: -30%;
    bottom: -55%;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: var(--mint);
    transition: transform .5s ease;
    z-index: 0;
}
.svc-card:hover { box-shadow: 0 26px 55px rgba(14,33,39,.13); border-color: transparent; transform: translateY(-6px); }
.svc-card:hover::after { transform: scale(2.1); }
.svc-card > * { position: relative; z-index: 1; }
.svc-card-num {
    position: absolute;
    top: 26px;
    right: 30px;
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 52px;
    line-height: 1;
    color: rgba(14,33,39,.06);
    z-index: 0;
}
.svc-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: var(--mint);
    color: var(--primary);
    font-size: 26px;
    margin-bottom: 24px;
}
.svc-card h3 { font-size: 20px; line-height: 1.35; margin-bottom: 14px; }
.svc-card h3 a { color: var(--dark); }
.svc-card h3 a:hover { color: var(--primary); }
.svc-card p {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--body);
    margin-bottom: 22px;
    min-height: 96px;
}
.svc-card .read-more { font-size: 13.5px; }

.svc-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}
.svc-arrow {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid #d6dbdb;
    background: var(--white);
    color: var(--dark);
    cursor: pointer;
    transition: all .3s ease;
}
.svc-arrow:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.svc-dots { display: flex; gap: 8px; }
.svc-dots button {
    width: 9px; height: 9px;
    border-radius: 50%;
    border: 0;
    background: #cdd4d4;
    cursor: pointer;
    transition: all .3s ease;
}
.svc-dots button.active { background: var(--primary); width: 26px; border-radius: 20px; }

/* ============================================================
   MEETING YOUR NEEDS — horizontal accordion
   ============================================================ */
.needs-section {
    position: relative;
    overflow: hidden;
    background: var(--dark);
}
/* same background treatment as the hero banner */
.needs-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(13,32,37,.94) 0%, rgba(16,40,44,.86) 46%, rgba(44,60,52,.78) 100%),
        url('../img/diving-scaled-1.jpg') center/cover no-repeat;
    z-index: 0;
}
.needs-section > .container { position: relative; z-index: 1; }
.needs-section .section-head { text-align: center; margin-bottom: 50px; }
.needs-section .kicker { color: var(--primary); }
.needs-section .kicker::after,
.needs-section .kicker::before { background: var(--primary); }
.needs-section .section-title { color: var(--white); }
.needs-section .section-head p { color: rgba(255,255,255,.72); }

.needs-accordion {
    display: flex;
    gap: 18px;
    height: 460px;
}
.needs-panel {
    position: relative;
    flex-grow: 0.0001;
    flex-shrink: 1;
    flex-basis: 96px;
    min-width: 96px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    cursor: pointer;
    will-change: flex-grow;
    transition: flex-grow .6s cubic-bezier(.4, 0, .2, 1);
}
.needs-panel.active { flex-grow: 6; cursor: default; }

.needs-panel-tab {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: .3px;
    color: var(--white);
    white-space: nowrap;
    transition: opacity .3s ease;
}
.needs-panel.active .needs-panel-tab { opacity: 0; pointer-events: none; }

.needs-panel-inner {
    display: flex;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s ease .15s;
}
.needs-panel.active .needs-panel-inner { opacity: 1; visibility: visible; }
.needs-panel-media {
    flex: 0 0 46%;
    background-image: var(--panel-img);
    background-size: cover;
    background-position: center;
}
.needs-panel-text {
    flex: 1;
    padding: 46px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 320px;
}
.needs-panel-text h3 { color: var(--white); font-size: 26px; margin-bottom: 16px; }
.needs-panel-text p { color: rgba(255,255,255,.7); font-size: 15.5px; margin-bottom: 22px; line-height: 1.65; }
.needs-panel-text .read-more { color: var(--primary); }
.needs-panel-text .read-more i { color: var(--primary); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section { background: var(--dark); position: relative; overflow: hidden; }
.testimonials-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../img/h2-img8.png') center/cover no-repeat;
    opacity: .12;
    z-index: 0;
}
.testimonials-section .container, .testimonials-section .testi-decor { position: relative; z-index: 1; }
.testimonials-section .section-title { color: var(--white); }
.testimonials-section .kicker { color: var(--white); }
.testimonials-section .kicker::before { background: var(--white); }
.testimonials-section .testi-slide blockquote { color: var(--white); }
.testimonials-section .testi-author strong { color: var(--white); }
.testimonials-section .testi-author span { color: var(--lime); }
.testimonials-section .testi-dots button { background: rgba(255,255,255,.5); }
.testimonials-section .testi-dots button.active { background: var(--white); }
.testi-decor { position: absolute; right: -80px; top: 50%; transform: translateY(-50%); width: 420px; opacity: .35; }
.testi-wrap { position: relative; max-width: 860px; margin: 0 auto; text-align: center; }
.quote-mark { width: 54px; margin: 0 auto 26px; }
.testi-slides { position: relative; min-height: 300px; }
.testi-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(40px);
    transition: all .6s ease;
}
.testi-slide.active { opacity: 1; visibility: visible; transform: none; position: relative; }
.testi-avatar {
    width: 92px; height: 92px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 22px;
    border: 4px solid var(--white);
    box-shadow: var(--shadow);
}
.testi-slide blockquote {
    font-size: clamp(16px, 2vw, 20px);
    font-style: italic;
    color: var(--dark);
    max-width: 700px;
    margin: 0 auto 24px;
}
.testi-author strong { display: block; font-family: var(--heading-font); font-size: 18px; color: var(--dark); }
.testi-author span { font-size: 14px; color: var(--primary); font-weight: 600; }
.testi-dots { display: flex; justify-content: center; gap: 10px; margin-top: 36px; }
.testi-dots button {
    width: 11px; height: 11px; border-radius: 50%;
    border: 0; background: #c9dcd0; cursor: pointer; transition: all .3s;
}
.testi-dots button.active { background: var(--primary); width: 28px; border-radius: 20px; }

/* ============================================================
   NEWS / BLOG
   ============================================================ */
.news-section { background: var(--white); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.blog-card {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #ececec;
    transition: all .35s ease;
    background: var(--white);
}
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-8px); }
.blog-thumb { overflow: hidden; }
.blog-thumb img { width: 100%; aspect-ratio: 500/295; object-fit: cover; transition: transform .6s; }
.blog-card:hover .blog-thumb img { transform: scale(1.07); }
.blog-body { padding: 24px 26px 28px; }
.blog-date {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 13px; font-weight: 600; color: var(--primary);
    margin-bottom: 10px;
}
.blog-body h3 { font-size: 19px; margin-bottom: 10px; line-height: 1.4; }
.blog-body h3 a:hover { color: var(--primary); }
.news-cta { text-align: center; margin-top: 44px; }

/* ============================================================
   CLIENT LOGOS MARQUEE
   ============================================================ */
.logos-section { padding: 40px 0; background: #62B058; overflow: hidden; }
.logos-section .marquee { display: flex; overflow: hidden; user-select: none; gap: 26px; }
.logos-section .marquee-track {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-shrink: 0;
    min-width: 100%;
    animation: scrollX 34s linear infinite;
}
.logos-section .marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scrollX { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.logo-card {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 190px;
    height: 110px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 12px;
    padding: 20px 28px;
}
.logo-card img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    position: relative;
    overflow: hidden;
    background: #FBFBF2;
    color: var(--body);
}
/* faint flowing line-art in the corners */
.footer-decor {
    position: absolute;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: repeating-radial-gradient(circle at center,
        transparent 0 22px, rgba(var(--primary-rgb), .12) 22px 24px);
    pointer-events: none;
    z-index: 0;
}
.footer-decor-l { left: -230px; bottom: -230px; }
.footer-decor-r { right: -260px; top: -280px; opacity: .6; }
.site-footer > .footer-top,
.site-footer > .footer-bottom { position: relative; z-index: 1; }

.footer-top { padding: 90px 0 60px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
    gap: 46px;
}
.footer-brand .logo img { height: 64px; width: auto; }
.footer-brand p { font-size: 15px; line-height: 1.75; margin-top: 24px; color: var(--body); }

.footer-col h4 {
    color: var(--dark);
    font-family: var(--heading-font);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
}
.footer-col ul li { margin-bottom: 12px; font-size: 15px; }
.footer-col ul a { color: var(--body); transition: color .25s ease, padding-left .25s ease; }
.footer-col ul a:hover { color: var(--primary); padding-left: 5px; }

.footer-contact ul { display: grid; gap: 18px; }
.footer-contact li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; }
.footer-contact i {
    width: 42px; height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--mint);
    color: var(--primary);
    border-radius: 50%;
    font-size: 15px;
}
.footer-contact a { color: var(--primary); font-weight: 600; }

.footer-bottom {
    padding: 28px 0 34px;
    border-top: 1px solid rgba(14,33,39,.1);
    font-size: 14px;
}
.disclaimer {
    max-width: 1000px;
    margin: 0 auto 22px;
    text-align: center;
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.7;
}
.disclaimer strong { color: var(--dark); }
.footer-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}
.footer-bottom-bar p { color: var(--gray-500); }
.footer-bottom-bar a { color: var(--dark); font-weight: 600; }
.footer-bottom-bar a:hover { color: var(--primary); }

.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 40px; height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--mint);
    color: var(--primary);
    font-size: 14px;
    transition: all .3s ease;
}
.footer-social a:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }

/* ============================================================
   POPUP MODAL
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(12,30,33,.66);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all .35s ease;
    padding: 20px;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box {
    background: var(--white);
    border-radius: 18px;
    max-width: 480px;
    width: 100%;
    position: relative;
    transform: translateY(30px) scale(.97);
    transition: transform .35s ease;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-overlay.open .modal-box { transform: none; }
.modal-close {
    position: absolute;
    top: 14px; right: 18px;
    font-size: 30px;
    background: none; border: 0;
    cursor: pointer;
    color: var(--dark);
    line-height: 1;
    z-index: 2;
}
.modal-body { padding: 40px 38px 34px; text-align: center; position: relative; overflow: hidden; }
.modal-body .logo img { height: 64px; margin: 0 auto 18px; }
.modal-disclaimer { font-size: 12.5px; color: var(--gray-500); margin-bottom: 22px; }
.modal-decor .decor { position: absolute; opacity: .5; pointer-events: none; }
.decor-1 { top: -10px; left: -30px; width: 130px; }
.decor-2 { bottom: -20px; right: -30px; width: 150px; }
.modal-body h3 { margin-bottom: 20px; }
.modal-contact { display: grid; gap: 16px; text-align: left; margin-bottom: 24px; position: relative; z-index: 1; }
.modal-contact li { display: flex; gap: 14px; align-items: center; }
.modal-contact i {
    width: 44px; height: 44px; flex: 0 0 44px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--mint); color: var(--primary); border-radius: 50%;
}
.modal-contact a { color: var(--primary); font-weight: 700; }
.modal-social { justify-content: center; }
.modal-social a { background: var(--navy); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
    position: fixed;
    right: 26px; bottom: 26px;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 24px rgba(98,176,88,.4);
    opacity: 0; visibility: hidden;
    transform: translateY(14px);
    transition: all .3s;
    z-index: 900;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ============================================================
   INNER PAGES
   ============================================================ */
.page-banner {
    position: relative;
    padding: 175px 0 95px;
    text-align: center;
    background: linear-gradient(rgba(14,33,39,.82), rgba(14,33,39,.72)), url('../img/slider-1-min-scaled.jpg') center/cover no-repeat;
    color: var(--white);
}
.page-banner h1 { color: var(--white); font-size: clamp(30px, 4.4vw, 50px); }
.page-banner .crumbs { margin-top: 12px; font-size: 15px; }
.page-banner .crumbs a { color: var(--lime); font-weight: 600; }

.page-content { padding: 90px 0; }
.content-narrow { max-width: 860px; margin-inline: auto; }
.content-narrow h2 { margin: 34px 0 14px; font-size: 28px; }
.content-narrow h3 { margin: 34px 0 12px; font-size: 24px; color: var(--dark); }
.content-narrow h4 { margin: 30px 0 12px; font-size: 20px; color: var(--dark); }
.content-narrow p { margin-bottom: 16px; }
.content-narrow ul.bullets { list-style: disc; padding-left: 24px; margin: 14px 0 22px; }
.content-narrow ul.bullets li { margin-bottom: 9px; }

/* service detail page — title / Overview / Retail Example (text left + image right) / Corporate Example */
.service-detail-page { padding: 78px 0 96px; }
.sd-inner { max-width: 1140px; margin: 0 auto; }
.sd-title {
    font-family: var(--heading-font);
    font-size: clamp(30px, 3.6vw, 44px);
    font-weight: 600;
    color: var(--dark);
    line-height: 1.25;
    padding: 4px 0 30px;
}
.sd-heading {
    font-family: var(--heading-font);
    font-size: 24px;
    font-weight: 600;
    color: var(--dark);
    margin-top: 30px;
    margin-bottom: 20px;
}
.sd-inner > .sd-heading:first-of-type { margin-top: 30px; }
.sd-text {
    font-size: 16px;
    line-height: 1.85;
    color: var(--body);
    text-align: justify;
    margin-bottom: 32px;
}
.sd-text:last-child { margin-bottom: 0; }

/* Retail Example — text column left, image right */
.sd-row {
    display: flex;
    align-items: flex-start;
    gap: 44px;
    margin-top: 10px;
}
.sd-row .sd-col-text { flex: 1 1 48%; min-width: 0; }
.sd-row .sd-col-text .sd-heading { margin-top: 0; }
.sd-row .sd-col-text .sd-text { margin-bottom: 0; }
.sd-row .sd-col-media { flex: 1 1 48%; }
.sd-row .sd-col-media img {
    width: 100%;
    aspect-ratio: 21 / 10;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (max-width: 860px) {
    .sd-row { flex-direction: column; gap: 24px; }
    .sd-row .sd-col-text, .sd-row .sd-col-media { flex: 1 1 auto; width: 100%; }
    .sd-row .sd-col-text .sd-text { margin-bottom: 24px; }
}
@media (max-width: 640px) { .sd-text, .sd-row .sd-col-text .sd-text { text-align: left; } }

.leaders-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 40px; }
.leader-card {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #ececec;
    text-align: center;
    transition: all .35s;
}
.leader-card:hover { box-shadow: var(--shadow); transform: translateY(-6px); }
.leader-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.leader-card .leader-info { padding: 20px; }
.leader-card h3 { font-size: 19px; }
.leader-card span { color: var(--primary); font-weight: 600; font-size: 14px; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 50px; align-items: start; }
.contact-info-card {
    background: var(--navy);
    color: rgba(255,255,255,.78);
    border-radius: var(--radius);
    padding: 40px 34px;
    position: relative;
    overflow: hidden;
}
.contact-info-card h3 { color: var(--white); margin-bottom: 26px; }
.contact-info-card ul { display: grid; gap: 20px; }
.contact-info-card li { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-card i {
    width: 44px; height: 44px; flex: 0 0 44px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(98,176,88,.18); color: var(--primary);
    border-radius: 50%;
}
.contact-info-card a { color: var(--lime); font-weight: 600; }
.contact-form {
    background: var(--white);
    border: 1px solid #ececec;
    border-radius: var(--radius);
    padding: 42px 38px;
    box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-weight: 600;
    font-family: var(--heading-font);
    color: var(--dark);
    margin-bottom: 8px;
    font-size: 14.5px;
}
.form-control {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #e3e6e4;
    border-radius: 10px;
    font: inherit;
    color: var(--dark);
    background: var(--light);
    transition: all .3s;
}
.form-control:focus { outline: 0; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(98,176,88,.14); }
textarea.form-control { resize: vertical; min-height: 140px; }
.invalid-feedback { color: #d93f21; font-size: 13px; margin-top: 6px; }
.form-control.is-invalid { border-color: #d93f21; }
.form-control-sm { padding: 8px 12px; font-size: 13.5px; border-radius: 8px; }
.alert-success {
    background: var(--mint);
    border: 1px solid var(--primary);
    color: var(--primary-dark);
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 22px;
    font-weight: 500;
}

/* ---------- Coming soon ---------- */
.coming-soon { text-align: center; padding: 130px 0; }
.coming-soon .big-icon { font-size: 60px; color: var(--primary); margin-bottom: 24px; }

/* ---------- Service detail / Blog post / FAQ ---------- */
.service-detail { display: grid; grid-template-columns: 320px 1fr; gap: 50px; align-items: start; }
.service-side {
    background: var(--light);
    border-radius: var(--radius);
    padding: 30px 26px;
    position: sticky;
    top: 104px;
}
.side-list li a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--dark);
}
.side-list li a:hover,
.side-list li a.active { background: var(--primary); color: var(--white); }
.service-hero {
    width: 100%;
    border-radius: var(--radius);
    aspect-ratio: 16/8;
    object-fit: cover;
    margin-bottom: 30px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 6px 0 24px;
    font-size: 14px;
    color: var(--gray-500);
}
.post-hero {
    width: 100%;
    border-radius: var(--radius);
    aspect-ratio: 16/8;
    object-fit: cover;
    margin-bottom: 30px;
}
.post-nav { display: flex; justify-content: space-between; margin-top: 40px; }
.post-nav a { font-family: var(--heading-font); font-weight: 600; color: var(--dark); }
.post-nav a:hover { color: var(--primary); }

.faq-item {
    border: 1px solid #ececec;
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
}
.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    text-align: left;
    background: var(--white);
    border: 0;
    cursor: pointer;
    font: 600 16.5px var(--heading-font);
    color: var(--dark);
    padding: 20px 24px;
    transition: all .3s;
}
.faq-q:hover { color: var(--primary); }
.faq-q i { transition: transform .3s; color: var(--primary); font-size: 13px; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 24px 20px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    .svc-card { flex-basis: calc((100% - 52px) / 3); }
}

@media (max-width: 1080px) {
    .services-grid, .portfolio-grid, .blog-grid, .leaders-grid { grid-template-columns: repeat(2, 1fr); }
    .svc-card { flex-basis: calc((100% - 26px) / 2); }
    .svc-card p { min-height: 0; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .about-media { padding: 20px 24px 24px 0; }
    .about-frame.af1 { width: 140px; }
    .about-frame.af2 { width: 160px; }

    /* Meeting Your Needs — stack panels vertically on tablet */
    .needs-accordion { flex-direction: column; height: auto; gap: 14px; }
    .needs-panel { flex: none; }
    .needs-panel:not(.active) { min-height: 72px; }
    .needs-panel.active { min-height: 420px; }
    .needs-panel-tab { writing-mode: horizontal-tb; transform: none; justify-content: flex-start; padding-left: 26px; font-size: 16px; }
    .needs-panel-inner { flex-direction: column; }
    .needs-panel-media { flex-basis: 220px; }
    .needs-panel-text { min-width: 0; padding: 30px 26px; }

    .hero-layout { grid-template-columns: 1fr; gap: 34px; }
    .hero-media { height: 42vh; min-height: 300px; border-radius: 16px 16px 16px 56px; order: 2; }
    .hero-text { order: 1; max-width: none; }
    .hero-text-main { min-height: 0; }
    .hero-text-slide { position: relative; display: none; }
    .hero-text-slide.active { position: relative; display: block; }
    .hero-text-foot { margin-top: 30px; flex-direction: column; align-items: flex-start; gap: 22px; }
    .hero .container { min-height: auto; padding-top: 150px; padding-bottom: 70px; }
    .hero { min-height: 0; }
}

@media (max-width: 900px) {
    .service-detail { grid-template-columns: 1fr; }
    .service-side { position: static; }
    section { padding: 68px 0; }

    /* hide the hero banner image + slide thumbs on mobile/tablet — text-only hero */
    .hero-media, .hero-thumbs { display: none; }

    /* prevent page zoom when focusing inputs (iOS/Android zoom if < 16px) */
    input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="submit"]):not([type="button"]),
    select, textarea { font-size: 16px; }

    .header-inner { height: 72px; }
    .logo img { height: 60px; }
    .header-cta { display: none; }
    .grid-menu { display: none; }
    .hamburger { display: flex; }

    .main-nav {
        position: fixed;
        top: 0; right: 0;
        width: min(340px, 88vw);
        height: 100vh;
        background: var(--white);
        box-shadow: -12px 0 40px rgba(0,0,0,.14);
        padding: 84px 28px 40px;
        transform: translateX(105%);
        transition: transform .4s cubic-bezier(.7,0,.3,1);
        overflow-y: auto;
        z-index: 999;
        /* stack panel children (nav-menu, mobile-user-actions, mobile-cta) vertically */
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
    }
    /* neutralize the desktop inline-nav flex rules inside the panel */
    .header-inner > .main-nav { justify-content: flex-start; }
    .main-nav.open { transform: none; }
    /* nav lives in a white slide-out panel on mobile — keep links dark */
    .site-header .main-nav .nav-menu > li > a,
    .site-header:not(.scrolled) .main-nav .nav-menu > li > a { color: var(--dark); }
    .site-header.scrolled .hamburger span { background: var(--dark); }
    .hamburger.open span { background: var(--dark); }
    /* full-width menu column so links span the panel and chevrons align right */
    .header-inner > .main-nav .nav-menu { flex-direction: column; align-items: stretch; gap: 4px; margin-right: 0; }
    .main-nav .nav-menu > li { width: 100%; }
    .main-nav .nav-menu > li > a { padding: 13px 0; width: 100%; justify-content: space-between; }
    .dropdown {
        position: static;
        opacity: 1; visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: 0;
        border-left: 2px solid var(--mint);
        border-radius: 0 0 0 8px;
        margin: 0 0 6px 14px;
        padding: 6px 0 6px 10px;
        display: none;
    }
    .dropdown.open { display: block; }
    .dropdown a { padding: 8px 4px; font-size: 15px; }
    .has-dropdown.open > a i { transform: rotate(180deg); }
    .mobile-cta { display: block; margin-top: 26px; }
    .mobile-cta .btn { width: 100%; justify-content: center; }

    .about-grid { grid-template-columns: 1fr; gap: 46px; }
    .exp-badge { right: 10px; }
    .contact-grid { grid-template-columns: 1fr; }
    .about-page-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-goals { grid-template-columns: 1fr; }
    .float-badge { right: 10px; }
}

@media (max-width: 640px) {
    .services-grid, .portfolio-grid, .blog-grid, .leaders-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 38px; }
    .form-row { grid-template-columns: 1fr; }
    .hero .container { padding-top: 128px; padding-bottom: 60px; }
    .hero-eyebrow { font-size: 12px; letter-spacing: 1.5px; margin-bottom: 16px; }
    .hero-title { font-size: clamp(30px, 8.4vw, 40px); letter-spacing: -1px; line-height: 1.2; margin-bottom: 22px; }
    .hero-note { align-items: flex-start; border-radius: 20px; padding: 16px 18px; gap: 14px; max-width: 100%; }
    .hero-note-icon { flex: 0 0 56px; width: 56px; height: 56px; font-size: 16px; }
    .hero-note p { font-size: 13.5px; }
    .hero-thumbs button { width: 62px; height: 44px; }
    .hero-review-meta strong { font-size: 14px; }
    .hero-media { height: 40vh; min-height: 240px; border-radius: 14px 14px 14px 44px; }
    .about-media { padding: 16px 16px 16px 0; }
    .stats-grid { grid-template-columns: 1fr; gap: 34px; }
    .stat-number { font-size: 72px; }
    .svc-card { flex-basis: 100%; padding: 28px 24px; }
    .svc-card h3 { min-height: 0; }
    .intro-section p { font-size: 18px; }
    .marquee-track { gap: 40px; }
    .marquee-track img { height: 46px; }
    .footer-bottom-bar { justify-content: center; text-align: center; }
    /* readable disclaimer on phones — centered, open line spacing,
       and enough bottom padding so it clears the back-to-top button */
    .disclaimer {
        text-align: center;
        line-height: 1.85;
        max-width: 100%;
        margin-bottom: 26px;
    }
    .footer-bottom { padding: 26px 0 110px; }
    .footer-decor { display: none; }
    .testi-decor { display: none; }
}

/* ============================================================
   AUTH / LOGIN
   ============================================================ */
.auth-section {
    padding: 175px 0 100px;
    background: linear-gradient(rgba(14,33,39,.88), rgba(14,33,39,.78)), url('../img/slider-1-min-scaled.jpg') center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.auth-card {
    max-width: 480px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    padding: 44px 42px;
    box-shadow: 0 30px 70px rgba(0,0,0,.35);
    position: relative;
}
.auth-card-full { width: 70%; max-width: 100%; }
.payment-summary {
    background: var(--white);
    border: 1.5px solid #e3e6e4;
    border-radius: 14px;
    padding: 18px 20px;
    margin: 8px 0 24px;
}
.payment-summary-title { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--primary-dark); margin-bottom: 12px; }
.payment-summary-title i { color: var(--primary); }
.payment-summary-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; color: var(--body); }
.payment-summary-rate { color: var(--gray-500); font-size: 13px; }
.payment-summary-row strong { font-weight: 600; }
.payment-summary-total { border-top: 1px dashed #d5d9d4; margin-top: 8px; padding-top: 12px; }
.payment-summary-total span { font-weight: 700; }
.payment-summary-total strong { font-size: 17px; font-weight: 700; }
.payment-summary-note { font-size: 12px; color: var(--gray-500); margin-top: 10px; }
.register-plan-wrap { max-width: 420px; margin: 0 auto 26px; }
.register-plans-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 920px;
    margin: 0 auto 30px;
    align-items: stretch;
}
.register-plans-col { min-width: 0; display: flex; }
.register-plans-col > * { width: 100%; }
.register-plans-row .payment-summary,
.register-plans-row .subs-plan-card { margin: 0; height: 100%; }
.mobile-group { display: flex; gap: 10px; }
.mobile-group .searchable-select { flex: 0 0 130px; min-width: 130px; }
.register-form .mobile-group .searchable-select { flex: 0 0 110px; min-width: 110px; }
.mobile-group .form-control { width: 100%; }

/* Searchable select */
.searchable-select { position: relative; }
.searchable-select-input { cursor: text; }
.searchable-select-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 50;
    max-height: 220px;
    overflow-y: auto;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--white);
    border: 1px solid #e3e6e4;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
}
.searchable-select-list li {
    padding: 8px 12px;
    border-radius: 7px;
    font-size: 14px;
    color: var(--body);
    cursor: pointer;
}
.searchable-select-list li:hover,
.searchable-select-list li.active { background: var(--mint); color: var(--primary-dark); }
.searchable-select-hidden { display: none; }
.auth-header { text-align: center; margin-bottom: 30px; }
.auth-header .logo img { height: 72px; margin: 0 auto 22px; }
.auth-header h2 { font-size: 28px; margin-bottom: 8px; }
.auth-header p { color: var(--gray-500); font-size: 15px; }
.auth-form { display: grid; gap: 4px; }
.auth-form .form-group { margin-bottom: 16px; }
.register-form { grid-template-columns: repeat(2, 1fr); column-gap: 22px; align-items: start; }
.register-form .form-group { min-width: 0; }
.register-form .register-form-full { grid-column: 1 / -1; }
.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 22px;
    font-size: 14px;
}
.auth-link { color: var(--primary); font-weight: 600; }
.auth-link:hover { color: var(--primary-dark); }
.checkbox-label { display: inline-flex; align-items: center; gap: 8px; color: var(--body); cursor: pointer; }
.checkbox-label input { accent-color: var(--primary); width: 16px; height: 16px; }
.auth-btn { width: 100%; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 14px; }
.auth-footer a { color: var(--body); font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.auth-footer a:hover { color: var(--primary); }
.alert-warning {
    background: #fff7e0;
    border: 1px solid #e6b800;
    color: #8a6d00;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 22px;
    font-weight: 500;
}
.alert-error {
    background: #fde8e8;
    border: 1px solid #d93f21;
    color: #a03017;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 22px;
    font-weight: 500;
}

/* ============================================================
   HEADER USER MENU
   ============================================================ */
.user-menu { position: relative; flex: 0 0 auto; }
.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 6px;
    border-radius: 40px;
    transition: background .3s;
}
.user-menu-toggle:hover { background: rgba(255,255,255,.12); }
.user-menu-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 15px;
    flex: 0 0 44px;
    border: 2px solid rgba(255,255,255,.3);
}
.user-menu-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-chevron { color: var(--white); font-size: 11px; transition: transform .3s; }
.site-header.scrolled .user-chevron { color: var(--dark); }
.user-menu.open .user-chevron { transform: rotate(180deg); }
.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 240px;
    background: var(--white);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .3s ease;
    border-top: 3px solid var(--primary);
    z-index: 1200;
}
.user-menu.open .user-dropdown { opacity: 1; visibility: visible; transform: none; }
.user-dropdown .ud-name { padding: 10px 12px 12px; border-bottom: 1px solid #f0f0ee; margin-bottom: 8px; }
.user-dropdown .ud-name strong { display: block; color: var(--dark); font-family: var(--heading-font); font-size: 15px; }
.user-dropdown .ud-name span { color: var(--gray-500); font-size: 13px; word-break: break-all; }
.user-dropdown a,
.user-dropdown form button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 12px;
    border-radius: 9px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--dark);
    background: none;
    border: 0;
    cursor: pointer;
    text-align: left;
    font-family: var(--heading-font);
    transition: all .25s;
}
.user-dropdown a i,
.user-dropdown form button i { width: 18px; color: var(--primary); font-size: 14px; }
.user-dropdown a:hover,
.user-dropdown form button:hover { background: var(--mint); color: var(--primary-dark); }
.ud-divider { border: 0; border-top: 1px solid #f0f0ee; margin: 8px 0; }
.site-header:not(.scrolled) .user-menu-toggle { background: rgba(255,255,255,.12); }
.mobile-user-actions { display: none; }
/* Mobile nav — account links styled as plain rows, matching the desktop user dropdown (not buttons) */
.mobile-user-actions .ud-divider { margin: 4px 0 8px; }
.mobile-user-actions a,
.mobile-user-actions form button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 2px;
    color: var(--dark);
    background: none;
    border: 0;
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    text-align: left;
}
.mobile-user-actions a i,
.mobile-user-actions form button i { width: 18px; color: var(--primary); font-size: 14px; }
.mobile-user-actions a:hover,
.mobile-user-actions form button:hover { color: var(--primary); }
.w-100 { width: 100%; }
@media (max-width: 1100px) {
    .header-inquiry { display: none; }
}
@media (max-width: 900px) {
    .header-cta { display: none; }
    .user-menu { display: none; }
}

/* ============================================================
   DASHBOARD (user + admin)
   ============================================================ */
.dashboard-section { background: var(--light); padding: 80px 0 100px; }
.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 26px;
    margin-top: 40px;
}
.dash-card {
    background: var(--white);
    border: 1px solid #ececec;
    border-radius: var(--radius);
    padding: 30px 28px;
    box-shadow: var(--shadow);
}
.dash-card h4 { font-size: 19px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.dash-card h4 i { color: var(--primary); }

/* Profile card */
.dash-profile-header { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; }
.dash-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--mint);
    flex: 0 0 76px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dash-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dash-avatar .avatar-placeholder {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 24px;
    color: var(--primary);
}
.dash-profile-header h3 { font-size: 20px; margin-bottom: 2px; }
.dash-profile-header p { color: var(--gray-500); font-size: 13.5px; margin-bottom: 8px; word-break: break-all; }
.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
}
.role-admin { background: #eef0ff; color: #4a3fc1; }
.role-user { background: var(--mint); color: var(--primary-dark); }
.dash-profile-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-sm {
    padding: 0 20px;
    line-height: 42px;
    font-size: 13.5px;
    border-radius: 8px;
}
.btn-danger { background: #d93f21; color: var(--white); }
.btn-danger:hover { background: #b93318; }

/* Subscription status */
.sub-status { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 12px; }
.sub-status-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    flex: 0 0 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.sub-status strong { display: block; font-family: var(--heading-font); color: var(--dark); font-size: 16px; margin-bottom: 3px; }
.sub-status p { font-size: 13.5px; }
.sub-active { background: var(--mint); }
.sub-active .sub-status-icon { background: var(--primary); color: #fff; }
.sub-expired { background: #fde8e8; }
.sub-expired .sub-status-icon { color: #d93f21; }
.sub-none { background: #f0f0ee; }
.sub-none .sub-status-icon { color: var(--gray-500); }
.sub-status p { color: var(--gray-500); }

/* Quick links */
.dash-links-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.dash-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 22px 14px;
    background: var(--light);
    border: 1px solid #ececec;
    border-radius: 12px;
    text-align: center;
    transition: all .3s ease;
}
.dash-link-card i { font-size: 22px; color: var(--primary); }
.dash-link-card span { font-size: 13.5px; font-weight: 600; color: var(--dark); font-family: var(--heading-font); }
.dash-link-card:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-3px); }
.dash-link-card:hover i,
.dash-link-card:hover span { color: #fff; }
.read-post-link { color: var(--primary-dark); font-weight: 600; text-decoration: none; }
.read-post-link:hover { color: var(--primary); text-decoration: underline; }
.dash-reads { max-width: 100%; }

/* Subscription alert banner */
.subscription-alert {
    background: #fff7e0;
    border: 1px solid #e6b800;
    border-radius: 14px;
    padding: 22px 26px;
    margin-bottom: 30px;
}
.sub-alert-inner { display: flex; align-items: center; gap: 18px; }
.sub-alert-inner > i { font-size: 34px; color: #e6b800; }
.sub-alert-inner h3 { font-size: 18px; color: #8a6d00; margin-bottom: 4px; }
.sub-alert-inner p { font-size: 14px; color: #8a6d00; }

/* Profile form */
.dash-profile-form { max-width: 100%; }
.form-divider { border: 0; border-top: 1px solid #ececec; margin: 26px 0; }
.form-note { font-size: 13px; color: var(--gray-500); margin-bottom: 16px; }
.form-actions { display: flex; gap: 14px; margin-top: 24px; }

/* ============================================================
   ADMIN
   ============================================================ */
.stat-card { display: flex; align-items: center; gap: 20px; }
.stat-icon {
    width: 62px; height: 62px;
    flex: 0 0 62px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: var(--mint);
    color: var(--primary);
}
.stat-icon.stat-active { background: var(--mint); color: var(--primary); }
.stat-icon.stat-expired { background: #fde8e8; color: #d93f21; }
.stat-icon.stat-none { background: #f0f0ee; color: var(--gray-500); }
.stat-info span { display: block; color: var(--gray-500); font-size: 13px; margin-bottom: 2px; }
.stat-info strong { font-family: var(--heading-font); font-size: 30px; color: var(--dark); }
.admin-nav-card { margin-top: 26px; }
.admin-nav-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 22px 28px;
}
.admin-search { display: flex; gap: 10px; flex: 1 1 300px; }
.admin-search .form-control { max-width: 340px; }
.admin-filter { display: flex; gap: 6px; }
.filter-link {
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--body);
    background: var(--light);
}
.filter-link.active,
.filter-link:hover { background: var(--primary); color: #fff; }

.table-card { padding: 12px 16px 20px; }
.table-responsive { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
    text-align: left;
    font-family: var(--heading-font);
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: .4px;
    padding: 14px 12px;
    border-bottom: 2px solid #f0f0ee;
    white-space: nowrap;
}
.admin-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #f4f4f2;
    font-size: 14.5px;
    color: var(--dark);
    vertical-align: middle;
}
.admin-table tbody tr:hover { background: #fafaf6; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.table-user { display: flex; align-items: center; gap: 14px; }
.table-user strong { display: block; font-family: var(--heading-font); font-size: 15px; margin-bottom: 2px; }
.table-user small { color: var(--gray-500); font-size: 12.5px; display: block; }
.table-avatar { width: 46px; height: 46px; flex: 0 0 46px; }
.table-avatar .avatar-placeholder { font-size: 15px; }
.table-date { color: var(--gray-500) !important; font-size: 13px !important; white-space: nowrap; }
/* Modifier for longer .table-date sentences (notes, not table cells) that must wrap instead of overflowing */
.table-date.wrap { white-space: normal; }
.table-actions { display: flex; gap: 8px; align-items: center; }
.table-empty { text-align: center; color: var(--gray-500); padding: 40px 0 !important; }
.sub-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
}
.sub-active-chip { background: var(--mint); color: var(--primary-dark); }
.sub-active-chip i { font-size: 8px; color: var(--primary); }
.sub-inactive-chip { background: #f0f0ee; color: var(--gray-500); }
.sub-inactive-chip i { font-size: 8px; color: var(--gray-500); }
.pagination-wrap { padding: 18px 4px 6px; }
.pagination-wrap nav { display: flex; justify-content: center; }

/* Pagination navigation (custom view) */
.page-nav { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 4px 6px; }
.page-nav-summary { margin: 0; font-size: 12.5px; color: var(--gray-500); letter-spacing: .02em; }
.page-nav-list { display: flex; gap: 6px; list-style: none; flex-wrap: wrap; justify-content: center; padding: 0; margin: 0; }
.page-nav-item { display: inline-flex; }
.page-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 6px;
    border-radius: 10px;
    border: 1px solid #e3e6e4;
    background: #fff;
    color: var(--dark);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all .18s ease;
}
.page-nav-link:hover { background: var(--mint); border-color: var(--primary); color: var(--primary-dark); transform: translateY(-1px); }
.page-nav-link--current { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(var(--primary-rgb), .28); }
.page-nav-link--current:hover { background: var(--primary-dark); color: #fff; }
.page-nav-link--arrow { font-size: 13px; color: var(--dark); }
.page-nav-item--disabled .page-nav-link { opacity: .4; cursor: not-allowed; }
.page-nav-item--disabled .page-nav-link:hover { background: #fff; border-color: #e3e6e4; color: var(--dark); transform: none; }
.page-nav-ellipsis { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; font-size: 13.5px; color: var(--gray-500); }

/* Role selection */
.role-select { display: flex; gap: 14px; }
.radio-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border: 1.5px solid #e3e6e4;
    border-radius: 10px;
    cursor: pointer;
    transition: all .3s;
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
}
.radio-label input { accent-color: var(--primary); }
.radio-label:has(input:checked) { border-color: var(--primary); background: var(--mint); }

/* ============================================================
   SUBSCRIPTION MODAL
   ============================================================ */
.subscription-modal { max-width: 430px; }
.subscription-modal .modal-body { padding: 28px 26px 24px; }
.subs-modal-decor {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--mint);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
}
.subs-modal-sub { color: var(--gray-500); font-size: 14px; margin-bottom: 18px; }
.subs-plan-card {
    background: var(--light);
    border: 1.5px solid var(--primary);
    border-radius: 16px;
    padding: 20px 22px;
    position: relative;
    text-align: left;
    overflow: hidden;
}
.subs-plan-badge {
    position: absolute;
    top: 18px;
    right: -32px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 40px;
    transform: rotate(45deg);
}
.subs-plan-name { display: flex; align-items: center; gap: 10px; font-family: var(--heading-font); font-size: 18px; font-weight: 700; color: var(--dark); }
.subs-plan-name i { color: var(--primary); }
.subs-plan-desc { font-size: 13.5px; color: var(--body); margin: 8px 0 14px; line-height: 1.6; }
.subs-plan-price { margin-bottom: 12px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.subs-plan-amount { display: block; font-family: var(--heading-font); font-weight: 800; font-size: 21px; color: var(--primary-dark); }
.subs-plan-period { font-size: 13px; color: var(--gray-500); }
.subs-plan-features { margin-bottom: 14px; }
.subs-plan-features li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; padding: 5px 0; color: var(--body); }
.subs-plan-features li i { color: var(--primary); font-size: 12px; }
.subs-plan-cta { width: 100%; }
.subs-modal-foot { font-size: 12px; color: var(--gray-500); margin-top: 14px; }
.subs-modal-login { font-size: 12.5px; color: var(--gray-500); margin-top: 12px; }
.subs-modal-login a { color: var(--primary); font-weight: 600; }

/* Footer subscription link */
.subs-link { display: flex !important; align-items: center; gap: 8px; }
.subs-link i { color: var(--primary); }
.footer-col ul a.subs-link:hover i { color: #fff; }

/* ============================================================
   LIBRARY (members area)
   ============================================================ */
.library-section { padding: 60px 0 100px; }
.library-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-bottom: 50px;
}
.library-card {
    background: var(--white);
    border: 1px solid #ececec;
    border-radius: var(--radius);
    padding: 38px 30px;
    text-align: center;
    transition: all .35s ease;
}
.library-card:hover { box-shadow: var(--shadow); transform: translateY(-6px); border-color: var(--primary); }
.library-card-icon {
    width: 66px; height: 66px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--mint);
    color: var(--primary);
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.library-card h3 { font-size: 19px; margin-bottom: 12px; }
.library-card p { font-size: 14.5px; color: var(--body); }
.library-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    max-width: 700px;
    margin: 0 auto;
    background: var(--mint);
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 18px 26px;
}
.library-status i { color: var(--primary); font-size: 24px; }
.library-status p { color: var(--primary-dark); font-weight: 600; font-size: 14.5px; }

@media (max-width: 900px) {
    .mobile-user-actions { display: block; margin-top: 26px; }
    .auth-section { padding: 140px 0 70px; }
    .auth-card-full { width: 100%; }
    .register-plans-row { grid-template-columns: 1fr; gap: 18px; }
    .register-form { grid-template-columns: 1fr; }
    .register-form .mobile-group .searchable-select { flex: 0 0 130px; min-width: 130px; }
}
@media (max-width: 640px) {
    .library-grid { grid-template-columns: 1fr; }
    .auth-card { padding: 34px 24px; }
    .auth-options { flex-direction: column; gap: 12px; align-items: flex-start; }
    .dash-grid { grid-template-columns: 1fr; }
    .dash-links-grid { grid-template-columns: repeat(2, 1fr); }
    .role-select { flex-direction: column; }
    .mobile-group { flex-direction: column; }
    .mobile-group .searchable-select { flex: 1 1 auto; min-width: 0; }
}

/* ============================================================
   ADMIN LOGIN (standalone — no background image)
   ============================================================ */
.admin-login-body {
    min-height: 100vh;
    background: #f2f3f5;
}
.admin-login-wrap {
    display: grid;
    grid-template-columns: minmax(360px, 1.05fr) 1.35fr;
    min-height: 100vh;
}
/* Left brand panel — flat color, no image */
.admin-login-aside {
    position: relative;
    overflow: hidden;
    background: var(--navy);
    color: rgba(255,255,255,.75);
    display: flex;
    align-items: center;
    padding: 60px clamp(32px, 5vw, 72px);
}
.admin-login-aside-inner { position: relative; z-index: 1; max-width: 430px; }
.admin-login-logo img { height: 88px; width: auto; margin-bottom: 56px; }
.admin-login-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--heading-font);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--primary);
    margin-bottom: 18px;
}
.admin-login-kicker::before { content: ""; width: 34px; height: 2px; background: var(--primary); }
.admin-login-brand h1 {
    font-family: var(--heading-font);
    font-size: clamp(38px, 4.4vw, 58px);
    line-height: 1.12;
    color: var(--white);
    font-weight: 600;
    letter-spacing: -1.5px;
    margin-bottom: 22px;
}
.admin-login-brand p {
    color: rgba(255,255,255,.6);
    font-size: 16px;
    line-height: 1.75;
    max-width: 380px;
}
.admin-login-perks { margin: 38px 0 44px; display: grid; gap: 14px; }
.admin-login-perks li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--heading-font);
    font-weight: 500;
    font-size: 15px;
    color: rgba(255,255,255,.85);
}
.admin-login-perks i {
    width: 38px; height: 38px;
    flex: 0 0 38px;
    border-radius: 10px;
    background: rgba(var(--primary-rgb), .16);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}
.admin-login-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,.65);
    font-weight: 600;
    font-size: 14px;
    transition: color .3s;
}
.admin-login-back:hover { color: var(--primary); }
.admin-login-aside-decor {
    position: absolute;
    right: -140px;
    bottom: -140px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: repeating-radial-gradient(circle at center,
        transparent 0 22px, rgba(var(--primary-rgb), .14) 22px 24px);
    pointer-events: none;
    z-index: 0;
}
/* Right panel — clean white form, no background image */
.admin-login-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px clamp(24px, 5vw, 72px);
    background: #f2f3f5;
}
.admin-login-card {
    width: 100%;
    max-width: 440px;
    background: var(--white);
    border-radius: 20px;
    padding: 42px 40px 34px;
    box-shadow: 0 24px 60px rgba(14,33,39,.1);
    border-top: 3px solid var(--primary);
}
.admin-login-card-head { text-align: center; margin-bottom: 30px; }
.admin-login-card-icon {
    width: 66px; height: 66px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--mint);
    color: var(--primary);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.admin-login-card-head h2 { font-size: 26px; margin-bottom: 8px; }
.admin-login-card-head p { font-size: 14.5px; color: var(--gray-500); }
.admin-input-wrap { position: relative; }
.admin-input-wrap > i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}
.admin-input {
    padding-left: 44px;
    background: #f7f8f9;
}
.admin-input:focus { background: #fff; }
.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 0;
    color: var(--gray-500);
    cursor: pointer;
    font-size: 14px;
    padding: 8px;
}
.password-toggle:hover { color: var(--primary); }
.admin-login-card-foot {
    text-align: center;
    margin-top: 22px;
    font-size: 14px;
}
.admin-login-card-foot a { color: var(--body); font-weight: 600; }
.admin-login-card-foot a:hover { color: var(--primary); }
.admin-login-copy {
    margin-top: 34px;
    font-size: 12.5px;
    color: var(--gray-500);
    text-align: center;
}
@media (max-width: 960px) {
    .admin-login-wrap { grid-template-columns: 1fr; }
    .admin-login-aside { display: none; }
    .admin-login-main { min-height: 100vh; }
}
@media (max-width: 480px) {
    .admin-login-card { padding: 32px 22px 26px; }
}

/* ============================================================
   CHECKOUT
   ============================================================ */
.checkout-wrap { display: flex; justify-content: center; }
.checkout-card {
    max-width: 560px;
    width: 100%;
    margin-top: 40px;
    background: var(--white);
    border-radius: 20px;
    padding: 44px 40px 38px;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--primary);
    text-align: center;
}
.checkout-card h3 { font-size: 26px; margin-bottom: 6px; }
.checkout-sub { color: var(--gray-500); font-size: 14.5px; margin-bottom: 28px; }
.checkout-plan-card { text-align: left; margin-bottom: 4px; }
.checkout-currency { margin: 18px 0; text-align: center; }
.checkout-currency-label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-500); margin-bottom: 10px; }
.currency-toggle {
    display: inline-flex;
    gap: 6px;
    background: var(--light);
    border: 1px solid #e3e6e4;
    border-radius: 999px;
    padding: 5px;
}
.currency-btn {
    padding: 9px 22px;
    border-radius: 999px;
    border: 0;
    font-family: var(--heading-font);
    font-size: 14px;
    font-weight: 600;
    color: var(--body);
    background: transparent;
    cursor: pointer;
    transition: all .25s;
}
.currency-btn.active { background: var(--primary); color: #fff; box-shadow: 0 6px 14px rgba(var(--primary-rgb), .3); }
.checkout-price { margin-top: 14px; font-family: var(--heading-font); }
.checkout-price-amount { font-size: 22px; font-weight: 800; color: var(--primary-dark); }
.checkout-price-duration { font-size: 14px; color: var(--gray-500); font-weight: 500; }
.checkout-pay-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin-top: 6px; }
.checkout-pay-btn-sub { font-size: 12px; opacity: .85; font-weight: 500; }

/* ============================================================
   CURRENCY TOGGLE (shared)
   ============================================================ */
.subs-plan-card .currency-toggle { background: var(--white); }

/* ============================================================
   AUTH REVEAL (register panel on login page)
   ============================================================ */
.auth-reveal { margin-top: 26px; border-top: 1px dashed #e3e6e4; padding-top: 22px; }
.auth-reveal-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    border: 1.5px solid var(--primary);
    border-radius: 12px;
    background: var(--mint);
    color: var(--primary-dark);
    font-family: var(--heading-font);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s;
}
.auth-reveal-toggle:hover { background: var(--primary); color: #fff; }
.auth-reveal-toggle i { color: var(--primary); }
.auth-reveal-toggle:hover i { color: rgb(255,255,255); }
.auth-reveal-chevron { transition: transform .3s; margin-left: auto; }
.auth-reveal-chevron.rotate { transform: rotate(180deg); }
.auth-reveal-panel { margin-top: 22px; animation: authRevealIn .35s ease; }
@keyframes authRevealIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
}
.auth-footer .register-cta {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 18px;
    border: 1.5px solid var(--primary);
    border-radius: 12px;
    background: var(--mint);
    color: var(--primary-dark);
    font-family: var(--heading-font);
    font-size: 15px;
    font-weight: 600;
    transition: all .25s;
}
.auth-footer .register-cta:hover { background: var(--primary); color: #fff; }
.auth-footer .register-cta i { color: var(--primary); }
.auth-footer .register-cta:hover i { color: #fff; }
.login-plan-card { margin-bottom: 0; }
.register-plan-wrap .login-plan-card { padding: 16px 20px; }
.register-plan-wrap .login-plan-card .subs-plan-name { font-size: 15px; }
.register-plan-wrap .login-plan-card .subs-plan-amount { font-size: 18px; }
.register-plan-wrap .login-plan-card .subs-plan-features { margin-bottom: 0; }
.register-plan-wrap .login-plan-card .subs-plan-price { margin-bottom: 8px; }
.register-plan-wrap .login-plan-card .subs-plan-badge { top: 16px; right: -34px; padding: 5px 38px; font-size: 10px; }

/* ============================================================
   DASHBOARD — pending status + subscription actions
   ============================================================ */
.sub-pending { background: #fff7e0; }
.sub-pending .sub-status-icon { background: #e6b800; color: #fff; }
.dash-sub-action { display: inline-flex; margin-top: 14px; align-items: center; }
.pay-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
}
.pay-paid { background: var(--mint); color: var(--primary-dark); }
.pay-pending { background: #fff7e0; color: #8a6d00; }
.pay-failed { background: #fde8e8; color: #a03017; }
.pay-refunded { background: #f0f0ee; color: var(--gray-500); }
.sub-pending-chip { background: #fff7e0; color: #8a6d00; }
.sub-pending-chip i { font-size: 8px; color: #e6b800; }

/* ============================================================
   ADMIN PANEL — standalone shell
   ============================================================ */
.admin-body { background: #f2f3f5; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 268px;
    flex: 0 0 268px;
    background: var(--navy);
    color: rgba(255,255,255,.75);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1300;
}
.admin-sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 26px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-logo img { height: 54px; width: auto; }
.admin-sidebar-close {
    display: none;
    background: none;
    border: 0;
    color: rgba(255,255,255,.7);
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
}
.admin-nav { flex: 1 1 auto; padding: 20px 14px; overflow-y: auto; }
.admin-nav-label {
    display: block;
    padding: 12px 14px 8px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,.35);
    font-family: var(--heading-font);
}
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 3px;
    color: rgba(255,255,255,.7);
    font-family: var(--heading-font);
    font-size: 14.5px;
    font-weight: 500;
    transition: all .25s;
}
.admin-nav a i { width: 20px; text-align: center; font-size: 15px; }
.admin-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav a.active { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(var(--primary-rgb), .3); }
.admin-sidebar-footer { padding: 18px 14px; border-top: 1px solid rgba(255,255,255,.08); }
.admin-nav-logout {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 0;
    background: rgba(255,255,255,.06);
    color: #f5b3a8;
    font-family: var(--heading-font);
    font-size: 14.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all .25s;
}
.admin-nav-logout:hover { background: #d93f21; color: #fff; }
.admin-main { flex: 1 1 auto; margin-left: 268px; min-width: 0; display: flex; flex-direction: column; }
.admin-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(14,33,39,.5);
    z-index: 1250;
}
.admin-overlay.show { display: block; }

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 30px;
    background: var(--white);
    border-bottom: 1px solid #eef0ef;
    position: sticky;
    top: 0;
    z-index: 1200;
}
.admin-sidebar-toggle {
    display: none;
    background: none;
    border: 1px solid #e3e6e4;
    border-radius: 10px;
    width: 42px;
    height: 42px;
    color: var(--dark);
    cursor: pointer;
    font-size: 17px;
}
.admin-topbar-title h1 { font-size: 21px; margin: 0; }
.admin-topbar-user { display: flex; align-items: center; gap: 12px; }
.admin-topbar-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--mint);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 15px;
    flex: 0 0 44px;
}
.admin-topbar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.admin-topbar-meta strong { display: block; font-family: var(--heading-font); font-size: 14px; color: var(--dark); }
.admin-topbar-meta span { font-size: 12.5px; color: var(--gray-500); }

.admin-content { flex: 1 1 auto; padding: 30px; }
.admin-alert { margin-bottom: 24px; }
.admin-panel-wrap { display: grid; gap: 24px; }
.admin-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.admin-stat-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--white);
    border: 1px solid #ececec;
    border-radius: var(--radius);
    padding: 24px 22px;
    box-shadow: 0 10px 30px rgba(14,33,39,.05);
}
.admin-stat-icon {
    width: 54px; height: 54px;
    flex: 0 0 54px;
    border-radius: 13px;
    background: var(--mint);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
}
.admin-stat-icon.stat-pending { background: #fff7e0; color: #e6b800; }
.admin-stat-icon.stat-active { background: var(--mint); color: var(--primary); }
.admin-stat-icon.stat-none { background: #f0f0ee; color: var(--gray-500); }
.admin-stat-icon.stat-revenue { background: #eef0ff; color: #4a3fc1; }
.admin-stat-icon.stat-vat { background: #e7f6ee; color: #1f7a44; }
.admin-stat-info span { display: block; color: var(--gray-500); font-size: 12.5px; margin-bottom: 3px; }
.admin-stat-info strong { font-family: var(--heading-font); font-size: 25px; color: var(--dark); }
.admin-card {
    background: var(--white);
    border: 1px solid #ececec;
    border-radius: var(--radius);
    padding: 12px 20px 20px;
    box-shadow: var(--shadow);
}
.admin-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 4px 10px;
}
.admin-card-head h4 { font-size: 17px; display: flex; align-items: center; gap: 10px; margin: 0; }
.admin-card-head h4 i { color: var(--primary); }
.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    background: var(--white);
    border: 1px solid #ececec;
    border-radius: var(--radius);
    padding: 20px 22px;
    box-shadow: 0 10px 30px rgba(14,33,39,.05);
}
.admin-toolbar-info { font-size: 13.5px; color: var(--gray-500); max-width: 520px; }
.admin-toolbar-info p { margin: 0; }
.admin-search { display: flex; gap: 10px; flex: 1 1 300px; }
.admin-form-card { max-width: 720px; padding: 30px 32px; }
.admin-form-card h4 { font-size: 19px; margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.admin-form-card h4 i { color: var(--primary); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* Admin plans */
.admin-plans-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.admin-plan-card {
    background: var(--white);
    border: 1.5px solid #e3e6e4;
    border-radius: 16px;
    padding: 26px 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(14,33,39,.05);
}
.admin-plan-card.plan-active { border-color: var(--primary); }
.admin-plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-right: 30px; }
.admin-plan-top h4 { font-size: 18px; margin: 0; }
.admin-plan-badge { position: absolute; top: 14px; right: -30px; }
.admin-plan-duration { font-size: 13px; color: var(--gray-500); margin: 6px 0 14px; }
.admin-plan-price-single {
    display: flex;
    align-items: baseline;
    gap: 10px;
    background: var(--light);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 14px;
}
.admin-plan-price-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--gray-500);
    text-transform: uppercase;
}
.admin-plan-price-amount { font-family: var(--heading-font); font-size: 22px; color: var(--dark); font-weight: 700; }
.admin-plan-desc { font-size: 13.5px; color: var(--body); margin-bottom: 12px; }
.admin-plan-features { margin-bottom: 16px; }
.admin-plan-features li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; padding: 5px 0; color: var(--body); }
.admin-plan-features li i { color: var(--primary); font-size: 12px; }
.admin-plan-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.admin-plan-actions { display: flex; align-items: center; gap: 10px; }

/* Admin toolbar actions + currency toggle */
.admin-toolbar-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.admin-currency-toggle { display: inline-flex; gap: 6px; background: #fff; border: 1px solid #e3e6e4; border-radius: 999px; padding: 4px; }
.admin-currency-toggle .currency-btn { padding: 7px 16px; font-size: 13px; }
.admin-form-currency-toggle { display: inline-flex; gap: 6px; background: var(--light); border: 1px solid #e3e6e4; border-radius: 999px; padding: 5px; margin-bottom: 18px; }

/* Admin settings */
.admin-page-sub { font-size: 14px; color: var(--gray-500); max-width: 620px; margin: -4px 0 24px; }
.settings-section { border-top: 1px dashed #e3e6e4; padding: 22px 0; }
.settings-section:first-of-type { border-top: none; padding-top: 4px; }
.settings-section h4 { font-size: 17px; margin: 0 0 6px; display: flex; align-items: center; gap: 10px; }
.settings-section h4 i { color: var(--primary); }
.settings-hint { font-size: 13px; color: var(--gray-500); margin: 0 0 18px; }

@media (max-width: 1100px) {
    .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .admin-sidebar { transform: translateX(-100%); transition: transform .3s ease; width: 280px; }
    .admin-sidebar.open { transform: none; }
    .admin-sidebar-close { display: block; }
    .admin-main { margin-left: 0; }
    .admin-sidebar-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .admin-stats-grid { grid-template-columns: 1fr; }
    .form-row-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .admin-content { padding: 20px 16px; }
    .admin-topbar { padding: 14px 16px; }
    .admin-topbar-meta { display: none; }
    .admin-form-card { padding: 22px 18px; }
}

/* ============================================================
   VAT COUNTRY + BALANCE (checkout / dashboard / admin)
   ============================================================ */
.checkout-price { text-align: left; }
.checkout-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: var(--body);
}
.checkout-price-row .checkout-price-duration { margin-left: 4px; }
.checkout-vat-row { color: var(--gray-500); font-size: 13.5px; }
.checkout-total-row {
    border-bottom: 0;
    padding-top: 14px;
    font-size: 17px;
}
.checkout-total-row strong { color: var(--primary-dark); }
.checkout-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    background: var(--light);
    border: 1px dashed #d8dcd9;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 15px;
}
.checkout-total strong { font-size: 22px; color: var(--primary-dark); }

.sub-balance-alert { background: #ffefe6; border-color: #e08a3a; }
.sub-balance-alert .sub-alert-inner > i { color: #e08a3a; }
.sub-balance-alert .sub-alert-inner h3 { color: #b45309; }
.sub-balance-alert .sub-alert-inner p { color: #b45309; }

/* Admin notifications */
.notification-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    margin-left: 8px;
}
.admin-nav-badge {
    margin-left: 6px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    padding: 2px 7px;
    vertical-align: 2px;
}
.admin-nav a.active .admin-nav-badge { background: #fff; color: var(--primary); }

.notification-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid #ececec;
    border-radius: 12px;
    margin-bottom: 12px;
    background: #fff;
    width: 100%;
    text-align: left;
}
button.notification-row {
    font: inherit;
    color: inherit;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
}
button.notification-row:hover { border-color: var(--primary); box-shadow: 0 4px 14px rgba(var(--primary-rgb), .12); }
.notification-clickable { border-color: #e6d9f6; }
.notification-unread { background: #faf5ff; border-color: var(--primary); }
.notification-icon {
    width: 46px; height: 46px; flex: 0 0 46px;
    border-radius: 50%;
    background: var(--light);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.notification-body { flex: 1 1 auto; }
.notification-body strong { display: block; }
.notification-body p { font-size: 13.5px; margin: 4px 0 0; color: var(--body); }
.notification-body .table-date { font-size: 12px; }

/* Admin user edit */
.admin-form-card h4 { margin-bottom: 14px; }
.country-request-pending {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
    background: #fffbeb;
    border: 1px dashed #f59e0b;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 20px;
}
.country-request-pending-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
    background: #fef3c7;
    color: #b45309;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}
.country-request-pending-body { flex: 1 1 220px; min-width: 0; }
.country-request-pending-body strong { display: block; color: #8a6d00; font-size: 15px; margin-bottom: 4px; }
.country-request-pending-body p { margin: 4px 0 0; font-size: 13.5px; color: #6b5900; }
.country-request-approve-btn { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 480px) {
    .country-request-pending { flex-direction: column; }
    .country-request-approve-btn { width: 100%; justify-content: center; }
}

/* Dashboard — Edit Profile layout: profile form left, request-country card right */
.profile-layout.has-request-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    align-items: start;
}
.profile-layout.has-request-card > .dash-card { min-width: 0; }
@media (max-width: 900px) {
    .profile-layout.has-request-card { grid-template-columns: 1fr; }
}
.dash-profile-form .profile-actions-note { margin: 0 0 14px; }
.dash-profile-form .form-actions-full { gap: 14px; }
.dash-profile-form .form-actions-full .btn { flex: 1 1 0; }
@media (max-width: 480px) {
    .dash-profile-form .form-actions-full { flex-direction: column; }
    .dash-profile-form .form-actions-full .btn { width: 100%; }
}

/* Dashboard — Request Country Change card */
.dash-request-card {
    background: #fffbeb;
    border: 1px dashed #f59e0b;
    border-radius: 12px;
    padding: 22px 24px;
    margin-top: 0;
}
.dash-request-card h5 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #8a6d00;
    font-size: 16px;
}
.dash-request-card > p.table-date { margin-bottom: 18px; }
.request-country-form { max-width: 100%; }
.request-country-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px;
}
.request-country-field {
    flex: 1 1 240px;
    min-width: 0;
    margin: 0;
}
.request-country-btn { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 560px) {
    .request-country-row { flex-direction: column; align-items: stretch; }
    .request-country-btn { width: 100%; }
}

/* ============================================================
   LIBRARY POSTS — admin editor
   ============================================================ */
.post-form { max-width: 100%; }
.admin-form-card:has(.post-form) { max-width: 1180px; }
.post-form-grid { display: grid; grid-template-columns: 1fr 320px; gap: 30px; align-items: start; }
.post-form-main .form-group { margin-bottom: 20px; }
.post-form-side { display: grid; gap: 18px; position: sticky; top: 20px; }
.post-side-box { border: 1px solid #e6e6de; border-radius: 12px; padding: 16px 18px; background: #fcfcf8; }
.post-side-box h4 { font-size: 14px; margin: 0 0 12px; color: var(--dark); text-transform: uppercase; letter-spacing: .4px; }
.post-side-hint { font-size: 12px; color: var(--gray-500); margin: 8px 0 0; }
.post-side-hint a { color: var(--primary); font-weight: 600; }
.post-publish-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.post-publish-actions .btn { flex: 1; justify-content: center; padding: 0 16px; line-height: 44px; font-size: 14px; }
.post-check { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--dark); cursor: pointer; margin: 6px 0; }
.post-check input { margin-top: 3px; }
.post-featured-preview { border-radius: 10px; overflow: hidden; margin-bottom: 10px; background: #eef0ea; }
.post-featured-preview img { width: 100%; display: block; }
.post-featured-preview--empty { aspect-ratio: 16/10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #a7ada0; font-size: 13px; }
.post-featured-preview--empty i { font-size: 24px; }

.admin-post-cell { display: flex; align-items: center; gap: 12px; }
.admin-post-thumb { width: 52px; height: 40px; border-radius: 7px; object-fit: cover; flex: 0 0 52px; display: inline-flex; align-items: center; justify-content: center; background: #eef0ea; color: #a7ada0; }
.admin-post-thumb--empty { font-size: 14px; }
.admin-post-slug { display: block; font-size: 11px; color: var(--gray-500); margin-top: 2px; }
.admin-search select.form-control { max-width: 150px; }

@media (max-width: 900px) {
    .post-form-grid { grid-template-columns: 1fr; }
    .post-form-side { position: static; }
}

/* ============================================================
   LIBRARY — public grid (subscribers)
   ============================================================ */
.library-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.library-search { display: flex; gap: 10px; max-width: 560px; margin: 0 auto 40px; }
.library-search .form-control { flex: 1 1 auto; }
.library-chip {
    padding: 8px 18px; border-radius: 999px; border: 1px solid #d9ddd5;
    font-family: var(--heading-font); font-weight: 600; font-size: 13.5px; color: var(--body);
    transition: all .25s ease;
}
.library-chip:hover { border-color: var(--primary); color: var(--primary); }
.library-chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

.library-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.lib-card {
    display: flex; flex-direction: column; background: #fff;
    border: 1px solid #e8e8e0; border-radius: 16px; overflow: hidden;
    transition: box-shadow .3s ease, transform .3s ease;
}
.lib-card:hover { box-shadow: 0 24px 50px rgba(14,33,39,.12); transform: translateY(-6px); }
.lib-card-thumb { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--mint); }
.lib-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.lib-card:hover .lib-card-thumb img { transform: scale(1.05); }
.lib-card-thumb--empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 32px; }
.lib-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.lib-card-cat { font-size: 11.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }
.lib-card-body h3 { font-size: 18px; line-height: 1.4; margin-bottom: 10px; }
.lib-card-body h3 a { color: var(--dark); }
.lib-card-body h3 a:hover { color: var(--primary); }
.lib-card-body > p { font-size: 14px; color: var(--body); line-height: 1.6; margin-bottom: 16px; }
.lib-card-meta { display: flex; gap: 16px; font-size: 12px; color: var(--gray-500); margin-bottom: 14px; }
.lib-card-body .read-more { margin-top: auto; font-size: 13.5px; }
.library-empty { text-align: center; padding: 70px 0; color: var(--gray-500); }
.library-empty i { font-size: 40px; color: var(--primary); margin-bottom: 14px; }

@media (max-width: 980px) { .library-post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .library-post-grid { grid-template-columns: 1fr; } }

/* ============================================================
   LIBRARY — single post (protected)
   ============================================================ */
.lib-post-page { position: relative; }
.lib-post-wrap { max-width: 860px; }
.lib-post-back { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-family: var(--heading-font); font-size: 14px; color: var(--body); margin-bottom: 22px; }
.lib-post-back:hover { color: var(--primary); }
.lib-post-topline {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px; margin-bottom: 18px;
}
.lib-post-cat { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; color: var(--primary); }
.lib-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: 13.5px; color: var(--gray-500); }
.lib-post-download { display: inline-flex; align-items: center; gap: 9px; }
.lib-post-locked { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: #8a6d00; background: #fff7e0; border: 1px solid #f2e0a8; padding: 10px 16px; border-radius: 10px; margin-bottom: 24px; }
.lib-post-hero-img { width: 100%; height: auto; display: block; border-radius: 16px; margin: 8px 0 32px; }

/* rendered editor HTML — must read the same as the TinyMCE content_style */
.lib-post-content { font-size: 16px; line-height: 1.85; color: #333; }
.lib-post-content > *:first-child { margin-top: 0; }
.lib-post-content h2 { font-size: 26px; color: var(--dark); margin: 32px 0 14px; }
.lib-post-content h3 { font-size: 21px; color: var(--dark); margin: 26px 0 12px; }
.lib-post-content h4 { font-size: 18px; color: var(--dark); margin: 22px 0 10px; }
.lib-post-content p { margin: 0 0 18px; }
.lib-post-content a { color: var(--primary); text-decoration: underline; }
.lib-post-content ul, .lib-post-content ol { margin: 0 0 18px 24px; }
.lib-post-content li { margin-bottom: 8px; }
.lib-post-content img { max-width: 100%; height: auto; border-radius: 10px; margin: 14px 0; }
.lib-post-content figure { margin: 18px 0; }
.lib-post-content figcaption { font-size: 13px; color: var(--gray-500); text-align: center; margin-top: 8px; }
.lib-post-content blockquote { border-left: 4px solid var(--primary); padding: 4px 0 4px 20px; margin: 20px 0; color: var(--body); font-style: italic; }
.lib-post-content table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.lib-post-content th, .lib-post-content td { border: 1px solid #e3e3da; padding: 10px 12px; }
.lib-post-content pre { background: #0e2127; color: #e8f5e0; padding: 16px; border-radius: 10px; overflow-x: auto; }

.lib-post-guard-note { margin-top: 40px; display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--gray-500); border-top: 1px solid #e6e6de; padding-top: 18px; }

/* ---- content-protection ---- */
.lib-post-content, .lib-post-hero-img {
    -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;
    -webkit-touch-callout: none;
}
.lib-post-content img { -webkit-user-drag: none; user-drag: none; pointer-events: none; }
.lib-post-shield {
    position: fixed; inset: 0; z-index: 9999; display: none;
    background: #0e2127; color: #fff; align-items: center; justify-content: center; text-align: center;
}
.lib-post-shield.is-on { display: flex; }
.lib-post-shield i { font-size: 44px; margin-bottom: 14px; color: var(--primary); }
body.is-printing-blocked * { visibility: hidden !important; }

@media print {
    body { display: none !important; }
    html::after {
        content: "Printing is disabled for this protected content.";
        display: block; padding: 40px; font-size: 18px; font-family: sans-serif;
    }
}

/* ============================================================
   ADMIN SIDEBAR — collapsible dropdown group
   ============================================================ */
.admin-nav-group { margin: 4px 0; }
.admin-nav-group-toggle {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    padding: 12px 14px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    background: rgba(255,255,255,.05);
    color: rgba(255,255,255,.82);
    font-family: var(--heading-font);
    font-size: 14.5px;
    font-weight: 600;
    transition: background .25s, color .25s;
}
.admin-nav-group-toggle > i:first-child { width: 20px; text-align: center; font-size: 15px; }
.admin-nav-group-toggle span { flex: 1; text-align: left; }
.admin-nav-caret { font-size: 11px; opacity: .7; transition: transform .28s ease; }
.admin-nav-group-toggle:hover { background: rgba(255,255,255,.1); color: #fff; }
.admin-nav-group.is-open > .admin-nav-group-toggle {
    background: rgba(var(--primary-rgb), .22);
    color: #fff;
}
.admin-nav-group.is-open .admin-nav-caret { transform: rotate(180deg); }

.admin-nav-sub {
    overflow: hidden;
    max-height: 0;
    transition: max-height .3s ease;
    margin: 2px 0 2px 15px;
    padding-left: 12px;
    border-left: 2px solid rgba(var(--primary-rgb), .35);
}
.admin-nav-group.is-open .admin-nav-sub { max-height: 260px; }
.admin-nav-sub a {
    font-size: 13.5px;
    padding: 10px 12px;
    color: rgba(255,255,255,.68);
}
.admin-nav-sub a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav-sub a.active { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(var(--primary-rgb), .3); }

/* Post permalink line (slug — auto from content, edit only if needed) */
.post-permalink {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 8px;
    font-size: 12.5px;
    color: var(--gray-500);
}
.post-permalink-text { color: var(--gray-500); }
.post-permalink-base { color: #a7ada0; }
.post-permalink #slugPreview { color: var(--dark); font-weight: 600; }
.post-permalink-edit {
    border: 1px solid #d9ddd5;
    background: #fff;
    color: var(--primary);
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: all .2s;
}
.post-permalink-edit:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.post-permalink-input { max-width: 320px; margin-top: 6px; flex-basis: 100%; }
