/**
 * AI Coach Pro — Public Pages Premium Stylesheet
 * ================================================
 * Matches the landing page's premium dark theme with glassmorphism,
 * gradient orbs, glow effects, floating nav, and animated accents.
 *
 * Dependencies: Bootstrap 5.3, Font Awesome 6, theme.css (tokens)
 * Brand: #4fd1c5 teal, #68d391 green, #ff6b9d pink accent
 * Fonts: Inter (body), Space Grotesk (headings)
 */

/* ─────────────────────────────────────────────
   TOKENS & OVERRIDES
   ───────────────────────────────────────────── */
:root {
    --card-bg: rgba(25, 25, 55, 0.85);
    --card-bg-light: rgba(25, 25, 55, 0.6);
    --nav-height: 64px;
    --glow-primary: rgba(79, 209, 197, 0.6);
    --glow-secondary: rgba(104, 211, 145, 0.5);
    --glass-blur: 20px;
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --accent: #ff6b9d;
    --accent-light: #ff9ec4;
    --gradient-mesh: 
        radial-gradient(at 40% 20%, rgba(79, 209, 197, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(79, 209, 197, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(255, 107, 157, 0.08) 0px, transparent 50%),
        radial-gradient(at 80% 50%, rgba(79, 209, 197, 0.08) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(79, 209, 197, 0.1) 0px, transparent 50%);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0a0a1a;
    color: #f0f0ff;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: var(--gradient-mesh);
    pointer-events: none;
    z-index: 0;
}

::selection {
    background: rgba(79, 209, 197, 0.35);
    color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    letter-spacing: -0.02em;
    color: #f0f0ff;
}

/* ─────────────────────────────────────────────
   ANIMATED GRADIENT ORBS
   ───────────────────────────────────────────── */
.pub-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.pub-bg__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    will-change: transform;
}

.pub-bg__orb--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(79, 209, 197, 0.25) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation: orbFloat1 25s ease-in-out infinite;
}

.pub-bg__orb--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(79, 209, 197, 0.2) 0%, transparent 70%);
    top: 50%;
    right: -150px;
    animation: orbFloat2 30s ease-in-out infinite;
}

.pub-bg__orb--3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.15) 0%, transparent 70%);
    bottom: -100px;
    left: 30%;
    animation: orbFloat3 28s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(30px, 20px, 0); }
}
@keyframes orbFloat2 {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(-25px, -15px, 0); }
}
@keyframes orbFloat3 {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(20px, -25px, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .pub-bg__orb { animation: none !important; }
}

/* ─────────────────────────────────────────────
   MAIN WRAPPER
   ───────────────────────────────────────────── */
.pub-main {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - var(--nav-height));
}

/* ─────────────────────────────────────────────
   FLOATING PILL NAVIGATION (matches landing)
   ───────────────────────────────────────────── */
.pub-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    padding: 20px 0;
    background: transparent;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scrolled state: floating pill */
.pub-nav.scrolled {
    padding: 14px 20px;
}

.pub-nav__wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 0;
    position: relative;
}

.pub-nav.scrolled .pub-nav__wrap {
    background: linear-gradient(135deg, rgba(12, 12, 30, 0.92), rgba(18, 18, 45, 0.88));
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 60px;
    border: 1px solid rgba(79, 209, 197, 0.12);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 0 80px rgba(79, 209, 197, 0.08);
    padding: 8px 10px 8px 24px;
    max-width: 900px;
}

/* Top glow line on scrolled */
.pub-nav.scrolled .pub-nav__wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(79, 209, 197, 0.4) 20%, rgba(79, 209, 197, 0.3) 50%, rgba(79, 209, 197, 0.4) 80%, transparent 100%);
    opacity: 0.6;
    border-radius: 1px;
}

/* Separator line before CTA */
.pub-nav.scrolled .pub-nav__wrap::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 80px;
    transform: translateY(-50%);
    width: 1px;
    height: 24px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* ── Brand + Logo ── */
.pub-nav__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.pub-nav__brand:hover { opacity: 0.85; }

.pub-nav__brand img {
    height: 30px;
    transition: all 0.4s ease;
}

.pub-nav.scrolled .pub-nav__brand img {
    height: 22px;
}

/* ── Nav Links ── */
.pub-nav__menu {
    display: flex;
    align-items: center;
    gap: 2px;
}

.pub-nav__links {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pub-nav__links a {
    position: relative;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
    font-size: 13px;
    padding: 10px 16px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.pub-nav.scrolled .pub-nav__links a {
    padding: 8px 14px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.65);
}

.pub-nav__links a:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.06);
}

.pub-nav.scrolled .pub-nav__links a:hover {
    color: white;
    background: rgba(79, 209, 197, 0.15);
}

/* Animated underline */
.pub-nav__links a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary, #4fd1c5);
    border-radius: 2px;
    transition: width 0.3s ease;
    opacity: 0.8;
}

.pub-nav__links a:hover::after,
.pub-nav__links a.active::after {
    width: 16px;
}

.pub-nav__links a.active {
    color: rgba(255, 255, 255, 0.95);
}

/* ── Actions: Login + CTA ── */
.pub-nav__actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 12px;
}

.pub-nav__login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(79, 209, 197, 0.1);
    border: 1px solid rgba(79, 209, 197, 0.2);
    border-radius: 12px;
    color: #f0f0ff;
    font-weight: 600;
    font-size: 13px;
    padding: 10px 20px;
    text-decoration: none;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.pub-nav.scrolled .pub-nav__login {
    display: none;
}

.pub-nav__login:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    color: #f0f0ff;
}

.pub-nav__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(79, 209, 197, 0.1);
    border: 1px solid rgba(79, 209, 197, 0.2);
    border-radius: 12px;
    color: #f0f0ff;
    font-weight: 600;
    font-size: 13px;
    padding: 10px 20px;
    text-decoration: none;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.pub-nav.scrolled .pub-nav__cta {
    background: linear-gradient(135deg, var(--primary, #4fd1c5), #4fd1c5);
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(79, 209, 197, 0.35);
    color: #0a0a1a;
    padding: 10px 20px;
    font-size: 12px;
    letter-spacing: 0.03em;
}

.pub-nav__cta:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    color: #f0f0ff;
}

.pub-nav.scrolled .pub-nav__cta:hover {
    box-shadow: 0 8px 24px rgba(79, 209, 197, 0.3);
    color: #0a0a1a;
}

.pub-nav__cta i {
    font-size: 11px;
    transition: transform 0.3s ease;
}

.pub-nav__cta:hover i {
    transform: translateX(3px);
}

/* ── Hamburger Toggle ── */
.pub-nav__toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative;
    z-index: 10;
}

.pub-nav.scrolled .pub-nav__toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.pub-nav__toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.pub-nav__toggle-lines {
    width: 18px;
    height: 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pub-nav.scrolled .pub-nav__toggle-lines {
    width: 16px;
    height: 12px;
}

.pub-nav__toggle-lines span {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.pub-nav__toggle.open .pub-nav__toggle-lines span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
.pub-nav__toggle.open .pub-nav__toggle-lines span:nth-child(2) {
    opacity: 0;
}
.pub-nav__toggle.open .pub-nav__toggle-lines span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ─────────────────────────────────────────────
   GLASS CARDS + GLOW BORDERS (like landing)
   ───────────────────────────────────────────── */
.glass-card-premium {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card-premium::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(79, 209, 197, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glass-card-premium:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 209, 197, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.glass-card-premium:hover::before {
    opacity: 1;
}

/* Icon wrapper (like landing feature cards) */
.icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    position: relative;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0 auto 20px;
}

.icon-wrap::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(79, 209, 197, 0.3), transparent, rgba(79, 209, 197, 0.2));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.glass-card-premium:hover .icon-wrap {
    transform: scale(1.08) translateY(-4px) rotate(-3deg);
    border-color: transparent;
}

.glass-card-premium:hover .icon-wrap::before {
    opacity: 1;
}

/* ─────────────────────────────────────────────
   HERO SECTIONS
   ───────────────────────────────────────────── */
.pub-hero {
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
}

.pub-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.pub-hero h1 .gradient-text {
    background: linear-gradient(135deg, #4fd1c5, #68d391);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pub-hero .subtitle {
    color: rgba(240, 240, 255, 0.6);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Badge pill above hero title */
.pub-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    background: rgba(79, 209, 197, 0.08);
    border: 1px solid rgba(79, 209, 197, 0.2);
    color: var(--primary, #4fd1c5);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.pub-hero__badge i {
    font-size: 0.7rem;
}

/* ─────────────────────────────────────────────
   CTA BANNER (Premium)
   ───────────────────────────────────────────── */
.pub-cta {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.pub-cta__card {
    position: relative;
    background: linear-gradient(135deg, rgba(25, 25, 55, 0.85), rgba(18, 18, 40, 0.6));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 56px 44px;
    text-align: center;
    overflow: hidden;
    border: 1px solid rgba(79, 209, 197, 0.08);
}

/* Gradient border glow */
.pub-cta__card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(79, 209, 197, 0.4),
        rgba(104, 211, 145, 0.25),
        rgba(255, 107, 157, 0.15),
        rgba(79, 209, 197, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Ambient glow */
.pub-cta__card::after {
    content: '';
    position: absolute;
    top: -60%;
    left: 10%;
    width: 80%;
    height: 160%;
    background: radial-gradient(ellipse, rgba(79, 209, 197, 0.06) 0%, transparent 65%);
    pointer-events: none;
}

.pub-cta__card > * { position: relative; z-index: 1; }

.pub-cta__card h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.pub-cta__card > p {
    color: rgba(240, 240, 255, 0.6);
    font-size: 0.95rem;
    margin-bottom: 28px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.pub-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary, #4fd1c5), var(--secondary, #68d391));
    color: #0a0a1a;
    padding: 16px 40px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 24px rgba(79, 209, 197, 0.25);
    letter-spacing: 0.01em;
}

.pub-cta__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(79, 209, 197, 0.4);
    color: #0a0a1a;
}

.pub-cta__btn i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.pub-cta__btn:hover i {
    transform: translateX(4px);
}

.pub-cta__note {
    color: rgba(240, 240, 255, 0.4);
    font-size: 0.75rem;
    margin-top: 16px;
}

/* ─────────────────────────────────────────────
   FOOTER (Premium)
   ───────────────────────────────────────────── */
.pub-footer {
    background: linear-gradient(180deg, transparent 0%, rgba(8, 8, 20, 0.6) 30%, rgba(8, 8, 20, 0.98) 100%);
    margin-top: 120px;
    padding-top: 80px;
    position: relative;
    z-index: 1;
}

/* Top gradient divider */
.pub-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(79, 209, 197, 0.3), rgba(255, 107, 157, 0.15), transparent);
}

.pub-footer__grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding: 48px 0;
}

.pub-footer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.pub-footer__brand img {
    height: 28px;
}

.pub-footer__desc {
    color: rgba(240, 240, 255, 0.45);
    font-size: 0.85rem;
    line-height: 1.7;
    max-width: 320px;
}

/* Social links */
.pub-footer__social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.pub-footer__social a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(240, 240, 255, 0.5);
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pub-footer__social a:hover {
    background: rgba(79, 209, 197, 0.1);
    border-color: rgba(79, 209, 197, 0.3);
    color: var(--primary, #4fd1c5);
    transform: translateY(-2px);
}

.pub-footer__col h4 {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(240, 240, 255, 0.35);
    margin-bottom: 22px;
    font-weight: 600;
}

.pub-footer__col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pub-footer__col li { margin-bottom: 12px; }

.pub-footer__col a {
    color: rgba(240, 240, 255, 0.5);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.pub-footer__col a:hover {
    color: var(--primary, #4fd1c5);
    gap: 4px;
}

.pub-footer__col a::before {
    content: '';
    width: 0;
    height: 1px;
    background: var(--primary, #4fd1c5);
    transition: width 0.25s ease;
    flex-shrink: 0;
}

.pub-footer__col a:hover::before {
    width: 12px;
}

.pub-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: rgba(240, 240, 255, 0.3);
}

/* ─────────────────────────────────────────────
   PAGE-SPECIFIC: Calc, Blog, Forum, Status tags
   ───────────────────────────────────────────── */

/* Calc tag pills */
.calc-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(79, 209, 197, 0.08);
    color: var(--primary, #4fd1c5);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    margin-top: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(79, 209, 197, 0.15);
}

/* Breadcrumb bar */
.breadcrumb-bar {
    padding: 16px 0;
    font-size: 0.8rem;
}
.breadcrumb-bar a {
    color: rgba(240, 240, 255, 0.45);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb-bar a:hover { color: var(--primary, #4fd1c5); }
.breadcrumb-bar .sep { color: rgba(240, 240, 255, 0.2); margin: 0 8px; }

/* Form elements (dark) */
.pub-form input,
.pub-form select,
.pub-form textarea,
.calc-form input,
.calc-form select {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    color: #f0f0ff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.pub-form input:focus,
.pub-form select:focus,
.pub-form textarea:focus,
.calc-form input:focus,
.calc-form select:focus {
    outline: none;
    border-color: var(--primary, #4fd1c5);
    box-shadow: 0 0 0 3px rgba(79, 209, 197, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.pub-form select option,
.calc-form select option {
    background: #1a1a3a;
}

/* Primary action button */
.pub-btn-primary,
.calc-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary, #4fd1c5), var(--secondary, #68d391));
    color: #0a0a1a;
    border: none;
    border-radius: 14px;
    padding: 16px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(79, 209, 197, 0.2);
    letter-spacing: 0.01em;
}

.pub-btn-primary:hover,
.calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(79, 209, 197, 0.35);
}

/* Empty states */
.empty-state {
    text-align: center;
    padding: 80px 16px;
}
.empty-state i { font-size: 3rem; margin-bottom: 16px; opacity: 0.15; color: var(--primary, #4fd1c5); }
.empty-state h3 { font-size: 1.1rem; margin-bottom: 8px; color: #f0f0ff; }
.empty-state p { color: rgba(240, 240, 255, 0.5); }

/* ─────────────────────────────────────────────
   RESPONSIVE — TABLET
   ───────────────────────────────────────────── */
@media (max-width: 991px) {
    .pub-nav__links a {
        padding: 8px 10px;
        font-size: 12px;
    }
    .pub-nav__actions {
        margin-left: 8px;
    }
    .pub-hero { padding: 100px 0 48px; }
}

/* ─────────────────────────────────────────────
   RESPONSIVE — MOBILE
   ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .pub-nav__toggle { display: flex; }

    .pub-nav.scrolled .pub-nav__wrap {
        max-width: 100%;
        border-radius: 20px;
        padding: 10px 14px;
    }

    .pub-nav.scrolled .pub-nav__wrap::after { display: none; }

    .pub-nav__menu {
        display: none;
        position: absolute;
        top: calc(100% + 12px);
        left: 16px;
        right: 16px;
        flex-direction: column;
        background: rgba(18, 18, 40, 0.95);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 24px;
        padding: 20px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
        gap: 4px;
    }

    .pub-nav__menu.open {
        display: flex;
        animation: navDrop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes navDrop {
        from { opacity: 0; transform: translateY(-8px) scale(0.97); }
        to   { opacity: 1; transform: translateY(0) scale(1); }
    }

    .pub-nav__links {
        flex-direction: column;
        width: 100%;
        gap: 4px;
    }

    .pub-nav__links a,
    .pub-nav.scrolled .pub-nav__links a {
        display: block;
        padding: 14px 18px;
        font-size: 15px;
        border-radius: 14px;
        text-align: left;
        color: rgba(255, 255, 255, 0.8);
    }

    .pub-nav__links a::after { display: none; }

    .pub-nav__links a.active {
        background: rgba(79, 209, 197, 0.1);
    }

    .pub-nav__actions {
        flex-direction: column;
        width: 100%;
        gap: 8px;
        margin-left: 0;
        margin-top: 8px;
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .pub-nav__login,
    .pub-nav.scrolled .pub-nav__login {
        display: flex;
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 15px;
    }

    .pub-nav__cta,
    .pub-nav.scrolled .pub-nav__cta {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 15px;
        background: linear-gradient(135deg, var(--primary, #4fd1c5), var(--secondary, #68d391));
        border: none;
        border-radius: 14px;
        color: #0a0a1a;
    }

    .pub-hero { padding: 90px 0 40px; }
    .pub-hero h1 { font-size: 1.8rem; }

    .pub-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .pub-footer__bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .pub-cta__card { padding: 40px 24px; }
}

/* ─────────────────────────────────────────────
   RESPONSIVE — SMALL MOBILE
   ───────────────────────────────────────────── */
@media (max-width: 480px) {
    .pub-footer__grid { grid-template-columns: 1fr; gap: 28px; }
    .pub-cta__card h2 { font-size: 1.25rem; }
    .pub-cta__btn { padding: 14px 28px; font-size: 0.92rem; }
}

/* ─────────────────────────────────────────────
   UTILITY: Section glow / floating badge
   ───────────────────────────────────────────── */
.section-glow {
    position: relative;
}

.section-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(79, 209, 197, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ─────────────────────────────────────────────
   LEGAL / CONTENT PAGES
   Shared styles for termos, cookies, lgpd,
   politica, central-ajuda, comunidade, contato
   ───────────────────────────────────────────── */

/* Updated badge */
.last-updated-badge {
    display: inline-block;
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 24px;
    background: linear-gradient(135deg, rgba(79,209,197,0.12), rgba(104,211,145,0.10));
    color: #4fd1c5;
    border: 1px solid rgba(79,209,197,0.18);
    letter-spacing: 0.3px;
}

/* Glass content wrapper */
.content-container {
    max-width: 820px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 24px;
    padding: 60px 50px;
    backdrop-filter: blur(20px);
    position: relative;
}

.content-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4fd1c5, #68d391, transparent);
    border-radius: 24px 24px 0 0;
    opacity: 0.6;
}

/* Section title */
.legal-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 28px;
    margin-top: 48px;
    color: #f0f0ff;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 14px;
    position: relative;
}

.legal-title:first-child { margin-top: 0; }

.legal-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #4fd1c5, #68d391);
    border-radius: 2px;
}

/* Subsection title */
.legal-subtitle {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 18px;
    margin-top: 28px;
    background: linear-gradient(135deg, #4fd1c5, #68d391);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Body text */
.content-text {
    color: rgba(240,240,255,0.6);
    line-height: 1.85;
    margin-bottom: 18px;
    font-size: 15px;
}

/* Custom bullet list */
.content-list {
    margin: 18px 0;
    padding-left: 0;
    list-style: none;
}

.content-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 14px;
    color: rgba(240,240,255,0.6);
    line-height: 1.75;
    font-size: 15px;
}

.content-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #4fd1c5, #68d391);
    border-radius: 50%;
}

/* Highlight box */
.highlight-box {
    background: linear-gradient(135deg, rgba(79,209,197,0.08), rgba(104,211,145,0.06));
    border: 1px solid rgba(79,209,197,0.15);
    border-radius: 16px;
    padding: 28px;
    margin: 28px 0;
    position: relative;
    overflow: hidden;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #4fd1c5, #68d391);
    opacity: 0.5;
}

.highlight-box .highlight-title {
    font-size: 17px;
    font-weight: 600;
    color: #4fd1c5;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Warning box */
.warning-box {
    background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(239,68,68,0.06));
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: 16px;
    padding: 28px;
    margin: 28px 0;
    position: relative;
    overflow: hidden;
}

.warning-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #f59e0b, #ef4444);
    opacity: 0.5;
}

.warning-box .warning-title {
    font-size: 17px;
    font-weight: 600;
    color: #f59e0b;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Security box */
.security-box {
    background: linear-gradient(135deg, rgba(79,209,197,0.08), rgba(16,185,129,0.06));
    border: 1px solid rgba(79,209,197,0.2);
    border-radius: 16px;
    padding: 28px;
    margin: 28px 0;
    position: relative;
    overflow: hidden;
}

.security-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #4fd1c5, #10b981);
    opacity: 0.5;
}

.security-box .security-title {
    font-size: 17px;
    font-weight: 600;
    color: #68d391;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Contact info box */
.contact-info-box {
    background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 32px;
    margin: 36px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-info-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4fd1c5, transparent);
    opacity: 0.5;
}

.contact-info-box h3 {
    background: linear-gradient(135deg, #4fd1c5, #68d391);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    font-size: 20px;
}

.contact-info-box p {
    color: rgba(240,240,255,0.55);
    margin-bottom: 16px;
    line-height: 1.7;
}

.contact-info-box .contact-link {
    color: #4fd1c5;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-info-box .contact-link:hover {
    color: #68d391;
}

/* Glass table */
.glass-table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    overflow: hidden;
}

.glass-table th,
.glass-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 14px;
}

.glass-table th {
    background: rgba(79,209,197,0.08);
    color: #4fd1c5;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.glass-table td {
    color: rgba(240,240,255,0.55);
}

.glass-table tr:last-child td {
    border-bottom: none;
}

.glass-table tr:hover td {
    background: rgba(79,209,197,0.03);
}

/* Glass card (generic reusable for content pages) */
.glass-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 18px;
    padding: 32px 28px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #4fd1c5, #68d391);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glass-card:hover {
    border-color: rgba(79,209,197,0.15);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.glass-card:hover::before {
    opacity: 0.7;
}

/* Glass icon wrap */
.glass-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(79,209,197,0.12), rgba(104,211,145,0.08));
    border: 1px solid rgba(79,209,197,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #4fd1c5;
    margin-bottom: 18px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover .glass-icon-wrap {
    transform: rotate(-3deg) scale(1.05);
    box-shadow: 0 6px 20px rgba(79,209,197,0.2);
}

/* Compliance / DPO boxes */
.compliance-box {
    background: linear-gradient(135deg, rgba(79,209,197,0.08), rgba(16,185,129,0.06));
    border: 1px solid rgba(79,209,197,0.2);
    border-radius: 20px;
    padding: 40px;
    margin: 36px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.compliance-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #4fd1c5, #10b981);
    opacity: 0.6;
}

.compliance-box .compliance-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(79,209,197,0.15), rgba(104,211,145,0.10));
    border: 1px solid rgba(79,209,197,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #4fd1c5;
    font-size: 28px;
}

.compliance-box h3 {
    background: linear-gradient(135deg, #4fd1c5, #68d391);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 18px;
    font-size: 22px;
}

.dpo-section {
    background: linear-gradient(135deg, rgba(79,209,197,0.06), rgba(104,211,145,0.04));
    border: 1px solid rgba(79,209,197,0.15);
    border-radius: 20px;
    padding: 40px;
    margin: 36px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.dpo-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #4fd1c5, #8a63e6);
    opacity: 0.5;
}

.dpo-section .dpo-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #4fd1c5, #68d391);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #0a0a1a;
    font-size: 28px;
}

.dpo-section h3 {
    background: linear-gradient(135deg, #4fd1c5, #68d391);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 18px;
    font-size: 22px;
}

/* Rights grid */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin: 28px 0;
}

/* Cookie cards / types */
.cookie-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin: 28px 0;
}

.cookie-status-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-status-badge.essential {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16,185,129,0.2);
}

.cookie-status-badge.optional {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245,158,11,0.2);
}

/* Cookie manager box */
.cookie-manager-box {
    background: linear-gradient(135deg, rgba(79,209,197,0.06), rgba(104,211,145,0.04));
    border: 1px solid rgba(79,209,197,0.15);
    border-radius: 20px;
    padding: 40px;
    margin: 36px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cookie-manager-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #4fd1c5, #68d391);
    opacity: 0.5;
}

.cookie-manager-box h3 {
    background: linear-gradient(135deg, #4fd1c5, #68d391);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 22px;
    margin-bottom: 16px;
}

.cookie-controls {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 26px;
}

/* TOC (Table of Contents) */
.toc-container {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.toc-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4fd1c5, #68d391, transparent);
    opacity: 0.5;
}

.toc-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 28px;
    text-align: center;
    background: linear-gradient(135deg, #4fd1c5, #68d391);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.toc-list { list-style: none; padding: 0; }
.toc-item { margin-bottom: 6px; }

.toc-link {
    color: rgba(240,240,255,0.5);
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 12px;
    display: block;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
    font-size: 15px;
}

.toc-link:hover,
.toc-link.active {
    background: rgba(79,209,197,0.06);
    border-color: rgba(79,209,197,0.1);
    color: #4fd1c5;
    transform: translateX(8px);
}

/* Gradient button */
.btn-gradient {
    background: linear-gradient(135deg, #4fd1c5, #68d391);
    border: none;
    border-radius: 50px;
    padding: 14px 32px;
    color: #0a0a1a;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(79,209,197,0.35);
    color: #0a0a1a;
}

.btn-ghost {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    padding: 12px 26px;
    color: #f0f0ff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-ghost:hover {
    background: rgba(79,209,197,0.08);
    border-color: rgba(79,209,197,0.2);
    color: #4fd1c5;
    transform: translateY(-2px);
}

/* Content page section backgrounds */
.content-section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.content-section-alt {
    padding: 80px 0;
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,0.01);
}

/* Responsive for legal/content */
@media (max-width: 768px) {
    .content-container {
        padding: 36px 22px;
        margin: 0 16px;
        border-radius: 18px;
    }

    .legal-title { font-size: 22px; }
    .legal-subtitle { font-size: 17px; }

    .rights-grid,
    .cookie-types-grid {
        grid-template-columns: 1fr;
    }

    .compliance-box,
    .dpo-section,
    .cookie-manager-box {
        padding: 28px 20px;
    }

    .glass-table th,
    .glass-table td {
        padding: 10px 14px;
        font-size: 13px;
    }

    .toc-container {
        padding: 28px 20px;
        margin: 0 16px;
    }
}
