/* ==========================================================================
   VCard Studio — app.css
   Bootstrap 5.3 + custom design system
   ========================================================================== */

:root {
    --brand: #5b5bd6;
    --brand-600: #4b4bc4;
    --brand-700: #3d3da8;
    --accent: #22d3ee;
    --ink: #0f172a;
    --ink-soft: #475569;
    --muted: #64748b;
    --line: #e6e8f0;
    --surface: #ffffff;
    --surface-2: #f7f8fc;
    --surface-3: #eef0f8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 26px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow: 0 14px 40px -18px rgba(15, 23, 42, .25);
    --shadow-lg: 0 40px 80px -40px rgba(15, 23, 42, .4);
    --ring: 0 0 0 4px rgba(91, 91, 214, .18);
    --font: "Inter", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --nav-height: 74px;
}

[data-bs-theme="dark"] {
    --ink: #eef2ff;
    --ink-soft: #c7d2e5;
    --muted: #94a3b8;
    --line: #26304a;
    --surface: #111726;
    --surface-2: #0c1220;
    --surface-3: #1a2236;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 18px 40px -20px rgba(0, 0, 0, .7);
    --shadow-lg: 0 40px 90px -40px rgba(0, 0, 0, .9);
    --bs-body-bg: #0c1220;
    --bs-body-color: #e2e8f5;
    --bs-border-color: #26304a;
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 116, 139, .45) transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--surface-2);
    color: var(--ink);
    letter-spacing: -.01em;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--brand);
    text-decoration: none;
    transition: color .15s ease;
}

a:hover {
    color: var(--brand-600);
}

h1, h2, h3, h4, h5, .display-1, .display-2, .display-3, .display-4 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -.035em;
    color: var(--ink);
}

p {
    color: var(--ink-soft);
}

::selection {
    background: rgba(91, 91, 214, .22);
}

:focus-visible {
    outline: none;
    box-shadow: var(--ring);
    border-radius: 8px;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.text-gradient {
    background: linear-gradient(120deg, var(--brand) 10%, #8b5cf6 45%, var(--accent) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-soft {
    color: var(--ink-soft) !important;
}

.text-muted-2 {
    color: var(--muted) !important;
}

.bg-surface {
    background: var(--surface) !important;
}

.bg-surface-2 {
    background: var(--surface-2) !important;
}

.border-soft {
    border-color: var(--line) !important;
}

.shadow-soft {
    box-shadow: var(--shadow) !important;
}

.rounded-4xl {
    border-radius: var(--radius-lg) !important;
}

.rounded-3xl {
    border-radius: var(--radius) !important;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .42rem .9rem;
    border-radius: 999px;
    border: 1px solid rgba(91, 91, 214, .22);
    background: rgba(91, 91, 214, .08);
    color: var(--brand-600);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

[data-bs-theme="dark"] .eyebrow {
    color: #c7c7ff;
    background: rgba(91, 91, 214, .18);
}

.eyebrow .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, .16);
}

.icon-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(91, 91, 214, .14), rgba(34, 211, 238, .14));
    color: var(--brand);
    font-size: 1.45rem;
    flex: 0 0 auto;
}

.icon-tile.tile-accent {
    background: linear-gradient(135deg, rgba(34, 211, 238, .18), rgba(91, 91, 214, .12));
    color: #0891b2;
}

.divider-dot::before {
    content: "·";
    margin: 0 .5rem;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    --bs-btn-font-weight: 650;
    --bs-btn-border-radius: 12px;
    --bs-btn-padding-y: .62rem;
    --bs-btn-padding-x: 1.1rem;
    font-family: var(--font);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn-brand {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand-600);
    --bs-btn-hover-border-color: var(--brand-600);
    --bs-btn-active-bg: var(--brand-700);
    box-shadow: 0 12px 26px -12px rgba(91, 91, 214, .9);
}

.btn-brand:hover {
    box-shadow: 0 18px 30px -14px rgba(91, 91, 214, .95);
}

.btn-gradient {
    --bs-btn-color: #fff;
    background: linear-gradient(120deg, var(--brand), #8b5cf6 60%, #06b6d4);
    border: 0;
    box-shadow: 0 16px 34px -16px rgba(91, 91, 214, .95);
}

.btn-gradient:hover {
    color: #fff;
    filter: brightness(1.05);
    box-shadow: 0 22px 40px -18px rgba(91, 91, 214, 1);
}

.btn-soft {
    --bs-btn-color: var(--ink);
    --bs-btn-bg: var(--surface);
    --bs-btn-border-color: var(--line);
    --bs-btn-hover-bg: var(--surface-3);
    --bs-btn-hover-border-color: var(--line);
    --bs-btn-hover-color: var(--ink);
    background: var(--surface);
    border-color: var(--line);
    color: var(--ink);
}

.btn-soft:hover {
    background: var(--surface-3);
    color: var(--ink);
}

.btn-icon {
    --bs-btn-padding-x: .55rem;
    --bs-btn-padding-y: .45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
}

.btn-lg {
    --bs-btn-padding-y: .8rem;
    --bs-btn-padding-x: 1.4rem;
    --bs-btn-font-size: 1rem;
    --bs-btn-border-radius: 14px;
}

/* --------------------------------------------------------------------------
   Marketing header / footer
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    backdrop-filter: saturate(160%) blur(18px);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}

.site-header .navbar {
    min-height: var(--nav-height);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.12rem;
    letter-spacing: -.03em;
    color: var(--ink);
}

.brand:hover {
    color: var(--ink);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #fff;
    font-size: 1.15rem;
    background: linear-gradient(135deg, var(--brand), #8b5cf6 55%, var(--accent));
    box-shadow: 0 10px 22px -10px rgba(91, 91, 214, .9);
    flex: 0 0 auto;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.site-nav {
    gap: .15rem;
}

.site-nav .nav-link {
    color: var(--ink-soft);
    font-weight: 600;
    font-size: .94rem;
    padding: .5rem .85rem;
    border-radius: 10px;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
    color: var(--ink);
    background: var(--surface-3);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: .4rem;
}

.theme-toggle,
.lang-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-soft);
    transition: all .15s ease;
}

.theme-toggle:hover,
.lang-toggle:hover {
    color: var(--ink);
    background: var(--surface-3);
}

.theme-toggle .bi-moon-stars {
    display: none;
}

[data-bs-theme="dark"] .theme-toggle .bi-sun {
    display: none;
}

[data-bs-theme="dark"] .theme-toggle .bi-moon-stars {
    display: inline-block;
}

.site-footer {
    position: relative;
    background: #0b1120;
    color: #cbd5e1;
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: -40% 50% auto auto;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(91, 91, 214, .35), transparent 65%);
    pointer-events: none;
}

.site-footer a {
    color: #cbd5e1;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer .footer-title {
    color: #fff;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
    margin-bottom: 1rem;
}

.site-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .6rem;
    font-size: .93rem;
}

.social-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .16);
    color: #e2e8f0;
}

.social-circle:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5.5rem);
    overflow: hidden;
    background: radial-gradient(1200px 600px at 15% -10%, rgba(91, 91, 214, .16), transparent 60%),
                radial-gradient(1000px 500px at 90% 10%, rgba(34, 211, 238, .14), transparent 60%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(91, 91, 214, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(91, 91, 214, .06) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
    pointer-events: none;
}

.hero > .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.6rem, 5.6vw, 4.6rem);
    line-height: 1.02;
    margin-bottom: 1.25rem;
}

.hero-lead {
    font-size: clamp(1.02rem, 1.4vw, 1.18rem);
    color: var(--ink-soft);
    max-width: 34rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 1.9rem;
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.4rem;
    margin-top: 2.4rem;
    color: var(--muted);
    font-size: .88rem;
}

.hero-proof strong {
    display: block;
    font-size: 1.4rem;
    color: var(--ink);
    font-family: var(--font-display);
    letter-spacing: -.03em;
}

.avatar-stack {
    display: flex;
    align-items: center;
}

.avatar-stack .avatar-stack-item {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 3px solid var(--surface);
    margin-left: -12px;
    background: linear-gradient(135deg, #c7d2fe, #67e8f9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 700;
    color: #1e1b4b;
}

.avatar-stack .avatar-stack-item:first-child {
    margin-left: 0;
}

/* floating card mockup */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 1rem;
}

.hero-glow {
    position: absolute;
    width: 85%;
    height: 85%;
    border-radius: 50%;
    background: conic-gradient(from 200deg, rgba(91, 91, 214, .45), rgba(34, 211, 238, .4), rgba(139, 92, 246, .45), rgba(91, 91, 214, .45));
    filter: blur(80px);
    opacity: .55;
    top: 8%;
}

.phone-frame {
    position: relative;
    width: min(330px, 84vw);
    border-radius: 40px;
    padding: 12px;
    background: linear-gradient(160deg, #0f172a, #1e293b);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .08) inset;
    transform: rotate(-2.5deg);
    transition: transform .4s ease;
}

.phone-frame:hover {
    transform: rotate(0deg) translateY(-4px);
}

.phone-screen {
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(160deg, #6d5efc, #8b5cf6 45%, #22d3ee);
    color: #fff;
    padding: 2rem 1.2rem 1.4rem;
    min-height: 540px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.phone-screen::before {
    content: "";
    position: absolute;
    top: 10px;
    width: 88px;
    height: 18px;
    background: rgba(15, 23, 42, .8);
    border-radius: 999px;
}

.phone-avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .7);
    background: url("../img/hero-avatar.svg") center/cover, linear-gradient(135deg, #fff, #c7d2fe);
    box-shadow: 0 18px 30px -16px rgba(0, 0, 0, .5);
    margin-top: 1.6rem;
}

.phone-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.3rem;
    margin-top: .9rem;
    letter-spacing: -.02em;
}

.phone-role {
    font-size: .78rem;
    opacity: .82;
    text-align: center;
}

.phone-chips {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .45rem;
    width: 100%;
    margin-top: 1.3rem;
}

.phone-chip {
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    padding: .55rem .3rem;
    font-size: .62rem;
    text-align: center;
    backdrop-filter: blur(6px);
}

.phone-chip i {
    display: block;
    font-size: 1rem;
    margin-bottom: .15rem;
}

.phone-links {
    width: 100%;
    margin-top: 1rem;
    display: grid;
    gap: .4rem;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: .55rem;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    padding: .5rem .7rem;
    font-size: .7rem;
}

.phone-link i {
    font-size: .95rem;
}

.phone-link span:last-child {
    margin-left: auto;
    opacity: .7;
}

.phone-cta {
    margin-top: auto;
    width: 100%;
    text-align: center;
    background: #fff;
    color: #4338ca;
    border-radius: 14px;
    padding: .7rem;
    font-size: .78rem;
    font-weight: 800;
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .5);
}

.floating-pill {
    position: absolute;
    display: flex;
    align-items: center;
    gap: .55rem;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: 14px;
    padding: .6rem .85rem;
    font-size: .78rem;
    font-weight: 600;
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}

.floating-pill i {
    color: var(--success);
    font-size: 1.1rem;
}

.floating-pill.pill-one {
    top: 12%;
    left: -2%;
}

.floating-pill.pill-two {
    bottom: 14%;
    right: -3%;
    animation-delay: -3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section {
    padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section-sm {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section-title {
    font-size: clamp(1.9rem, 3.4vw, 2.8rem);
    line-height: 1.1;
}

.section-lead {
    color: var(--ink-soft);
    font-size: 1.02rem;
    max-width: 40rem;
    margin-inline: auto;
}

.logo-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(1.4rem, 4vw, 3.4rem);
    color: var(--muted);
    font-weight: 700;
    letter-spacing: .04em;
    font-size: .95rem;
    opacity: .8;
}

.logo-row i {
    font-size: 1.2rem;
    margin-right: .35rem;
}

.feature-card {
    height: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 1.6rem;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(91, 91, 214, .35);
}

.feature-card h3 {
    font-size: 1.08rem;
    margin: 1.1rem 0 .45rem;
}

.feature-card p {
    font-size: .92rem;
    margin: 0;
}

.step-card {
    position: relative;
    padding: 1.6rem;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    height: 100%;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), #8b5cf6);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: var(--font-display);
    box-shadow: 0 10px 20px -10px rgba(91, 91, 214, .8);
}

.testimonial-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem;
    height: 100%;
}

.testimonial-card .stars {
    color: #f59e0b;
    font-size: .9rem;
    letter-spacing: .1em;
}

.testimonial-card blockquote {
    font-size: 1rem;
    color: var(--ink);
    line-height: 1.6;
    margin: 1rem 0 1.4rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: .7rem;
}

.testimonial-author .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c7d2fe, #a5f3fc);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #3730a3;
}

.cta-band {
    position: relative;
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 5vw, 3.6rem);
    overflow: hidden;
    color: #fff;
    background: linear-gradient(120deg, #4c1d95, #5b5bd6 55%, #0891b2);
    box-shadow: var(--shadow-lg);
}

.cta-band::before {
    content: "";
    position: absolute;
    inset: -30% -10% auto auto;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    filter: blur(10px);
}

.cta-band::after {
    content: "";
    position: absolute;
    bottom: -120px;
    left: 20%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(34, 211, 238, .35);
    filter: blur(70px);
}

.cta-band h2 {
    color: #fff;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.cta-band p {
    color: rgba(255, 255, 255, .82);
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */
.plan-card {
    position: relative;
    height: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.plan-card.featured {
    border: 2px solid transparent;
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        linear-gradient(135deg, var(--brand), #8b5cf6, var(--accent)) border-box;
    box-shadow: var(--shadow);
}

.plan-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(120deg, var(--brand), #8b5cf6);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .32rem .8rem;
    border-radius: 999px;
    white-space: nowrap;
}

.plan-price {
    font-family: var(--font-display);
    font-size: 2.7rem;
    font-weight: 800;
    letter-spacing: -.05em;
    line-height: 1;
    color: var(--ink);
}

.plan-price small {
    font-size: .9rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 1.4rem 0 1.8rem;
    display: grid;
    gap: .65rem;
    font-size: .92rem;
    color: var(--ink-soft);
}

.plan-features li {
    display: flex;
    gap: .55rem;
    align-items: flex-start;
}

.plan-features i {
    color: var(--success);
    margin-top: .12rem;
}

/* --------------------------------------------------------------------------
   Auth
   -------------------------------------------------------------------------- */
.auth-page {
    min-height: 100vh;
    background: var(--surface-2);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
}

.auth-aside {
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 4vw, 3.5rem);
    color: #fff;
    background: linear-gradient(150deg, #312e81, #5b5bd6 50%, #0891b2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-aside::before {
    content: "";
    position: absolute;
    inset: auto -15% -25% auto;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    filter: blur(6px);
}

.auth-aside::after {
    content: "";
    position: absolute;
    top: -20%;
    left: -10%;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(34, 211, 238, .35);
    filter: blur(60px);
}

.auth-aside > * {
    position: relative;
    z-index: 1;
}

.auth-aside h1 {
    color: #fff;
    font-size: clamp(2rem, 3.6vw, 3rem);
    line-height: 1.08;
    max-width: 26rem;
}

.auth-aside p {
    color: rgba(255, 255, 255, .8);
}

.auth-aside .brand {
    color: #fff;
}

.auth-quote {
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 1.2rem;
    max-width: 30rem;
}

.auth-main {
    display: flex;
    flex-direction: column;
    padding: 1.4rem clamp(1.2rem, 4vw, 4rem);
}

.auth-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
}

.auth-form-wrap {
    width: min(440px, 100%);
    margin: auto;
    padding: 2rem 0;
}

.auth-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2.2rem);
    box-shadow: var(--shadow);
}

.auth-card h2 {
    font-size: 1.7rem;
}

.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
}

.form-control,
.form-select {
    border-radius: 12px;
    border-color: var(--line);
    padding: .68rem .9rem;
    background-color: var(--surface);
    color: var(--ink);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand);
    box-shadow: var(--ring);
    background-color: var(--surface);
    color: var(--ink);
}

.form-label {
    font-weight: 650;
    font-size: .87rem;
    color: var(--ink);
    margin-bottom: .4rem;
}

.form-text {
    color: var(--muted);
}

.input-group-text {
    border-radius: 12px;
    background: var(--surface-3);
    border-color: var(--line);
    color: var(--muted);
}

.form-check-input:checked {
    background-color: var(--brand);
    border-color: var(--brand);
}

.form-switch .form-check-input {
    width: 2.4em;
    height: 1.3em;
}

/* --------------------------------------------------------------------------
   Dashboard shell
   -------------------------------------------------------------------------- */
.dashboard-page {
    background: var(--surface-2);
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: 268px;
    flex: 0 0 268px;
    background: var(--surface);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    padding: 1.1rem 1rem;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 1040;
    transition: transform .25s ease;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .35rem .5rem 1.2rem;
}

.sidebar-nav {
    display: grid;
    gap: .18rem;
    overflow-y: auto;
    padding-bottom: 1rem;
}

.sidebar-label {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 1rem .75rem .35rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .63rem .75rem;
    border-radius: 11px;
    color: var(--ink-soft);
    font-weight: 600;
    font-size: .9rem;
    position: relative;
}

.sidebar-link i {
    font-size: 1.08rem;
    color: var(--muted);
    width: 1.3rem;
    text-align: center;
}

.sidebar-link:hover {
    background: var(--surface-3);
    color: var(--ink);
}

.sidebar-link:hover i {
    color: var(--ink-soft);
}

.sidebar-link.active {
    background: linear-gradient(90deg, rgba(91, 91, 214, .13), rgba(34, 211, 238, .08));
    color: var(--brand-600);
}

.sidebar-link.active i {
    color: var(--brand);
}

.sidebar-link.active::before {
    content: "";
    position: absolute;
    left: -1rem;
    top: 22%;
    height: 56%;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(var(--brand), var(--accent));
}

.sidebar-link .badge {
    margin-left: auto;
    font-size: .66rem;
    padding: .28em .5em;
}

.sidebar-footer {
    margin-top: auto;
    border-top: 1px solid var(--line);
    padding-top: .9rem;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem .5rem;
    border-radius: 12px;
}

.sidebar-user:hover {
    background: var(--surface-3);
}

.sidebar-user .avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--surface-3);
    flex: 0 0 auto;
}

.sidebar-user .name {
    font-size: .85rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
}

.sidebar-user .plan {
    font-size: .72rem;
    color: var(--muted);
}

.app-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .8rem clamp(1rem, 2.5vw, 1.8rem);
    background: color-mix(in srgb, var(--surface) 84%, transparent);
    backdrop-filter: saturate(150%) blur(14px);
    border-bottom: 1px solid var(--line);
    min-height: 68px;
}

.app-topbar .page-heading {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.02rem;
    letter-spacing: -.02em;
    color: var(--ink);
    margin: 0;
}

.topbar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: .35rem;
}

.topbar-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--ink-soft);
}

.topbar-btn:hover,
.topbar-btn[aria-expanded="true"] {
    background: var(--surface-3);
    color: var(--ink);
}

.topbar-btn .dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--danger);
    border: 2px solid var(--surface);
}

.app-content {
    padding: clamp(1.1rem, 2.6vw, 2rem) clamp(1rem, 2.5vw, 1.8rem) 3rem;
    flex: 1 1 auto;
}

.sidebar-backdrop {
    display: none;
}

@media (max-width: 991.98px) {
    .app-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        transform: translateX(-100%);
        box-shadow: var(--shadow-lg);
    }

    .sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, .5);
        z-index: 1035;
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
    }

    .sidebar-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }
}

/* --------------------------------------------------------------------------
   App components
   -------------------------------------------------------------------------- */
.page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.page-header h1 {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    margin: 0;
}

.page-header p {
    margin: .3rem 0 0;
    color: var(--muted);
    font-size: .92rem;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.stat-card .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: rgba(91, 91, 214, .1);
    color: var(--brand);
    margin-bottom: .9rem;
}

.stat-card .stat-icon.green {
    background: rgba(16, 185, 129, .12);
    color: #059669;
}

.stat-card .stat-icon.amber {
    background: rgba(245, 158, 11, .14);
    color: #d97706;
}

.stat-card .stat-icon.rose {
    background: rgba(244, 63, 94, .12);
    color: #e11d48;
}

.stat-card .stat-value {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1;
    color: var(--ink);
}

.stat-card .stat-label {
    color: var(--muted);
    font-size: .82rem;
    margin-top: .35rem;
    font-weight: 600;
}

.stat-card .stat-trend {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    font-size: .75rem;
    font-weight: 700;
    color: var(--success);
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.panel-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--line);
}

.panel-header h2,
.panel-header h3 {
    font-size: 1rem;
    margin: 0;
    letter-spacing: -.02em;
}

.panel-body {
    padding: 1.15rem;
}

.panel-body.p-0 {
    padding: 0;
}

.empty-state {
    text-align: center;
    padding: clamp(2rem, 5vw, 3.5rem) 1.5rem;
}

.empty-state .empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(91, 91, 214, .12), rgba(34, 211, 238, .12));
    color: var(--brand);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.1rem;
}

.empty-state p {
    max-width: 28rem;
    margin: 0 auto 1.2rem;
    font-size: .92rem;
}

.card-tile {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(91, 91, 214, .3);
}

.card-tile-cover {
    height: 96px;
    background: linear-gradient(135deg, var(--brand), #8b5cf6 55%, var(--accent));
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-tile-avatar {
    position: absolute;
    left: 1.1rem;
    bottom: -24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 4px solid var(--surface);
    object-fit: cover;
    background: var(--surface-3);
}

.card-tile-body {
    padding: 2rem 1.1rem 1.1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-tile-body h3 {
    font-size: 1rem;
    margin: 0 0 .15rem;
}

.card-tile-body .slug {
    font-size: .8rem;
    color: var(--muted);
}

.card-tile-body .meta {
    display: flex;
    gap: 1rem;
    font-size: .78rem;
    color: var(--muted);
    margin: .8rem 0 1rem;
}

.card-tile-actions {
    margin-top: auto;
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .3rem .55rem;
    border-radius: 8px;
    font-size: .72rem;
    font-weight: 700;
    background: var(--surface-3);
    color: var(--ink-soft);
}

.badge-soft.success {
    background: rgba(16, 185, 129, .12);
    color: #047857;
}

.badge-soft.warning {
    background: rgba(245, 158, 11, .14);
    color: #b45309;
}

.badge-soft.danger {
    background: rgba(239, 68, 68, .12);
    color: #b91c1c;
}

.badge-soft.brand {
    background: rgba(91, 91, 214, .12);
    color: var(--brand-600);
}

.table-app {
    --bs-table-bg: transparent;
    margin: 0;
    font-size: .9rem;
}

.table-app th {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    font-weight: 800;
    border-bottom: 1px solid var(--line);
    background: var(--surface-2);
    padding: .8rem 1rem;
    white-space: nowrap;
}

.table-app td {
    padding: .85rem 1rem;
    vertical-align: middle;
    border-color: var(--line);
    color: var(--ink-soft);
}

.table-app td strong {
    color: var(--ink);
}

.table-app tbody tr:hover {
    background: color-mix(in srgb, var(--surface-3) 55%, transparent);
}

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--surface-3);
    font-size: .8rem;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}

.avatar-sm {
    width: 30px;
    height: 30px;
    font-size: .7rem;
}

.avatar-lg {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--surface-3);
}

.dropdown-menu {
    border-radius: 14px;
    border-color: var(--line);
    box-shadow: var(--shadow);
    padding: .45rem;
    background: var(--surface);
}

.dropdown-item {
    border-radius: 9px;
    padding: .55rem .7rem;
    font-size: .88rem;
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    gap: .55rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--surface-3);
    color: var(--ink);
}

.notif-menu {
    width: min(340px, calc(100vw - 2rem));
    padding: 0;
    overflow: hidden;
}

.notif-menu .notif-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .8rem 1rem;
    border-bottom: 1px solid var(--line);
    font-weight: 700;
    font-size: .87rem;
}

.notif-list {
    max-height: 360px;
    overflow-y: auto;
}

.notif-item {
    display: flex;
    gap: .65rem;
    padding: .8rem 1rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: .84rem;
    align-items: flex-start;
}

.notif-item:hover {
    background: var(--surface-3);
}

.notif-item.unread {
    background: rgba(91, 91, 214, .05);
}

.notif-item .notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    margin-top: .4rem;
    flex: 0 0 auto;
}

.notif-item .time {
    display: block;
    color: var(--muted);
    font-size: .72rem;
    margin-top: .15rem;
}

/* flash */
.flash-stack {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1090;
    display: grid;
    gap: .5rem;
    width: min(370px, calc(100vw - 2rem));
    pointer-events: none;
}

.flash-alert {
    pointer-events: auto;
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: .8rem 1rem;
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    font-size: .88rem;
    color: var(--ink);
    animation: flash-in .25s ease both;
}

.flash-alert.success { border-left-color: var(--success); }
.flash-alert.error,
.flash-alert.danger { border-left-color: var(--danger); }
.flash-alert.warning { border-left-color: var(--warning); }

.flash-alert .btn-close {
    font-size: .6rem;
    margin-left: auto;
    margin-top: .2rem;
}

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

/* editor */
.editor-tabs {
    display: flex;
    gap: .25rem;
    padding: .35rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 1.2rem;
}

.editor-tabs::-webkit-scrollbar { display: none; }

.editor-tabs .nav-link {
    border: 0;
    border-radius: 10px;
    color: var(--ink-soft);
    font-weight: 650;
    font-size: .85rem;
    padding: .52rem .8rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.editor-tabs .nav-link:hover {
    background: var(--surface-3);
    color: var(--ink);
}

.editor-tabs .nav-link.active {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 8px 18px -10px rgba(91, 91, 214, .9);
}

.editor-tabs .nav-link .lock {
    font-size: .72rem;
    opacity: .6;
}

.form-section-title {
    font-size: 1.02rem;
    margin-bottom: .2rem;
}

.form-section-help {
    color: var(--muted);
    font-size: .85rem;
    margin-bottom: 1.2rem;
}

.upload-preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px dashed var(--line);
    border-radius: 14px;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--muted);
    font-size: .82rem;
    position: relative;
}

.upload-preview.round {
    width: 110px;
    height: 110px;
    aspect-ratio: 1;
    border-radius: 50%;
}

.upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-row {
    display: flex;
    gap: .9rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    align-items: flex-start;
}

.item-row + .item-row {
    margin-top: .75rem;
}

.item-row .item-thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 10px;
    background: var(--surface-3);
    flex: 0 0 auto;
    overflow: hidden;
    line-height: 1;
}

.item-row .item-thumb i {
    font-size: 1.1rem;
}

.item-row .item-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-row .item-body {
    flex: 1 1 auto;
    min-width: 0;
}

.item-row h4 {
    font-size: .95rem;
    margin: 0 0 .15rem;
}

.item-row p {
    font-size: .83rem;
    margin: 0;
    color: var(--muted);
}

.item-row .item-actions {
    display: flex;
    gap: .3rem;
}

.section-order-list {
    display: grid;
    gap: .5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.section-order-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .7rem .85rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--ink-soft);
    cursor: grab;
}

.section-order-item:active {
    cursor: grabbing;
}

.section-order-item i.bi-grip-vertical {
    color: var(--muted);
}

.section-order-item.sortable-ghost {
    opacity: .45;
    border-style: dashed;
    border-color: var(--brand);
}

.section-order-item .form-check {
    margin-left: auto;
    margin-bottom: 0;
}

.editor-preview-frame {
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: #0f172a;
}

.lang-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .6rem;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--surface);
    font-size: .78rem;
    font-weight: 600;
    color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Public vCard
   -------------------------------------------------------------------------- */
.public-card-body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--card-font, var(--font));
    color: var(--card-text, #fff);
    background: var(--card-bg, linear-gradient(135deg, #6d5efc, #22d3ee));
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    -webkit-font-smoothing: antialiased;
}

.public-card-body.is-preview {
    padding-top: 46px;
}

.preview-banner {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1050;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    background: #0f172a;
    color: #e2e8f0;
    font-size: .82rem;
    font-weight: 600;
    font-family: var(--font);
}

.preview-banner a {
    color: #a5b4fc;
}

.card-canvas {
    position: relative;
    min-height: 100vh;
    padding: clamp(1rem, 3vw, 2rem) 1rem clamp(2rem, 5vw, 3.5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-canvas::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(700px 400px at 20% 0%, rgba(255, 255, 255, .18), transparent 60%),
                radial-gradient(600px 500px at 90% 100%, rgba(0, 0, 0, .25), transparent 60%);
    pointer-events: none;
}

.card-shell {
    position: relative;
    z-index: 1;
    width: min(640px, 100%);
    display: grid;
    gap: 1rem;
    margin-top: clamp(0rem, 3vw, 2rem);
}

.card-surface {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 24px;
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .55);
    overflow: hidden;
}

.card-surface-solid {
    background: rgba(255, 255, 255, .96);
    color: #0f172a;
    border: 1px solid rgba(255, 255, 255, .5);
}

.card-cover {
    height: clamp(150px, 30vw, 220px);
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px -28px rgba(0, 0, 0, .55);
}

.card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, .28));
}

.card-hero {
    padding: 0 clamp(1.1rem, 4vw, 2rem) clamp(1.4rem, 4vw, 2rem);
    text-align: center;
    margin-top: -64px;
    position: relative;
    z-index: 2;
}

.card-avatar {
    width: clamp(110px, 26vw, 140px);
    height: clamp(110px, 26vw, 140px);
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, .9);
    box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .5);
    background: #e2e8f0;
    margin-bottom: .9rem;
}

.card-name {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 6vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.05;
    margin: 0;
    color: inherit;
}

.card-subtitle {
    font-size: .95rem;
    opacity: .88;
    margin: .45rem 0 0;
    font-weight: 500;
}

.card-company {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: .7rem;
    font-size: .8rem;
    padding: .3rem .7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .2);
}

.card-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1.3rem;
}

.card-action {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .65rem 1rem;
    border-radius: 12px;
    font-size: .84rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .14);
    color: inherit;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease;
    font-family: inherit;
}

.card-action:hover {
    background: rgba(255, 255, 255, .24);
    color: inherit;
    transform: translateY(-1px);
}

.card-action.primary {
    background: #fff;
    color: #312e81;
    border-color: #fff;
}

.card-action.primary:hover {
    color: #312e81;
    background: #f5f3ff;
}

.card-meta {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1.1rem;
    font-size: .74rem;
    opacity: .8;
    flex-wrap: wrap;
}

.card-section {
    padding: clamp(1.1rem, 3.5vw, 1.6rem);
}

.card-section-title {
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    opacity: .72;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .55rem;
}

.card-section-title::after {
    content: "";
    height: 1px;
    flex: 1;
    background: currentColor;
    opacity: .18;
}

.card-bio {
    font-size: .95rem;
    line-height: 1.65;
    opacity: .92;
    margin: 0;
}

.contact-list {
    display: grid;
    gap: .5rem;
    margin-top: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem .85rem;
    border-radius: 13px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .14);
    color: inherit;
    font-size: .86rem;
    transition: background .15s ease, transform .15s ease;
}

.contact-link:hover {
    background: rgba(255, 255, 255, .18);
    color: inherit;
    transform: translateX(2px);
}

.contact-link .ci {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .16);
    flex: 0 0 auto;
    font-size: .95rem;
}

.contact-link .cv {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-link .cv small {
    display: block;
    opacity: .65;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.contact-link .arrow {
    margin-left: auto;
    opacity: .5;
    font-size: .8rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: .75rem;
}

.product-card,
.project-card {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    color: inherit;
    height: 100%;
}

.product-card:hover,
.project-card:hover {
    color: inherit;
    background: rgba(255, 255, 255, .16);
}

.product-card .pc-body,
.project-card .pc-body {
    padding: .85rem;
}

.product-card h4,
.project-card h4 {
    font-size: .9rem;
    margin: 0 0 .2rem;
    color: inherit;
}

.product-card p,
.project-card p {
    font-size: .76rem;
    margin: 0;
    opacity: .78;
    color: inherit;
}

.product-price {
    display: inline-block;
    margin-top: .55rem;
    font-size: .8rem;
    font-weight: 800;
    padding: .18rem .5rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, .18);
}

.project-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .45rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, .12);
    display: block;
    border: 0;
    padding: 0;
    cursor: zoom-in;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .play-badge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    background: rgba(15, 23, 42, .25);
}

.testimonial-item {
    padding: 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .14);
}

.testimonial-item + .testimonial-item {
    margin-top: .65rem;
}

.testimonial-item .stars {
    font-size: .72rem;
    color: #fbbf24;
    letter-spacing: .08em;
}

.testimonial-item blockquote {
    font-size: .85rem;
    line-height: 1.55;
    margin: .45rem 0 .65rem;
    color: inherit;
    opacity: .92;
}

.testimonial-item .who {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .76rem;
}

.testimonial-item .who img,
.testimonial-item .who .ini {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, .2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .68rem;
    font-weight: 800;
}

.testimonial-item .who small {
    display: block;
    opacity: .65;
}

.card-custom-section + .card-custom-section {
    margin-top: 1rem;
}

.card-custom-section h4 {
    font-size: .95rem;
    margin: 0 0 .35rem;
    color: inherit;
}

.card-custom-section p {
    font-size: .86rem;
    line-height: 1.65;
    opacity: .88;
    color: inherit;
    margin: 0;
    white-space: pre-line;
}

.qr-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.qr-box .qr-canvas {
    background: #fff;
    padding: 10px;
    border-radius: 14px;
    line-height: 0;
}

.qr-box .qr-canvas img,
.qr-box .qr-canvas canvas {
    width: 140px;
    height: 140px;
}

.enquiry-form .form-control {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .22);
    color: inherit;
}

.enquiry-form .form-control::placeholder {
    color: currentColor;
    opacity: .5;
}

.enquiry-form .form-control:focus {
    background: rgba(255, 255, 255, .2);
    color: inherit;
    border-color: rgba(255, 255, 255, .55);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .12);
}

.enquiry-form .btn-light {
    font-weight: 700;
}

.card-footer-brand {
    text-align: center;
    font-size: .72rem;
    opacity: .72;
    padding: .2rem 0 1rem;
}

.card-footer-brand a {
    color: inherit;
    text-decoration: underline;
}

.card-toolbar {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.card-toolbar .tool {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(15, 23, 42, .45);
    color: #fff;
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.card-toolbar .tool:hover {
    background: rgba(15, 23, 42, .7);
    color: #fff;
}

/* Themes */
.public-card-body.theme-minimal {
    color: #0f172a;
    background: #f1f5f9;
}

.public-card-body.theme-minimal .card-surface {
    background: rgba(255, 255, 255, .92);
    border-color: rgba(15, 23, 42, .08);
    box-shadow: 0 20px 50px -32px rgba(15, 23, 42, .35);
    color: #0f172a;
}

.public-card-body.theme-minimal .contact-link,
.public-card-body.theme-minimal .product-card,
.public-card-body.theme-minimal .project-card,
.public-card-body.theme-minimal .testimonial-item {
    background: rgba(15, 23, 42, .04);
    border-color: rgba(15, 23, 42, .08);
}

.public-card-body.theme-minimal .contact-link:hover {
    background: rgba(15, 23, 42, .08);
}

.public-card-body.theme-minimal .card-company {
    background: rgba(15, 23, 42, .06);
    border-color: rgba(15, 23, 42, .08);
}

.public-card-body.theme-minimal .card-action {
    background: rgba(15, 23, 42, .05);
    border-color: rgba(15, 23, 42, .1);
}

.public-card-body.theme-minimal .card-action.primary {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}

.public-card-body.theme-minimal .card-subtitle,
.public-card-body.theme-minimal .card-bio,
.public-card-body.theme-minimal .contact-link .cv small {
    opacity: .78;
}

.public-card-body.theme-midnight {
    background: #060913;
}

.public-card-body.theme-midnight .card-surface {
    background: rgba(15, 23, 42, .55);
    border-color: rgba(148, 163, 184, .16);
}

.public-card-body.theme-midnight .card-canvas::before {
    background: radial-gradient(600px 400px at 15% 0%, rgba(91, 91, 214, .35), transparent 60%),
                radial-gradient(600px 400px at 90% 100%, rgba(34, 211, 238, .22), transparent 60%);
}

.public-card-body.theme-sunset {
    background: linear-gradient(140deg, #7c2d12, #db2777 50%, #7c3aed);
}

.public-card-body.theme-ocean {
    background: linear-gradient(140deg, #082f49, #0369a1 50%, #0891b2);
}

.public-card-body.theme-aurora {
    background: var(--card-bg);
}

/* QR / invoice utility pages */
.qr-page,
.invoice-page {
    background: var(--surface-2);
    min-height: 100vh;
}

.qr-print-card {
    width: min(460px, 100%);
    margin: 2rem auto;
    background: #fff;
    color: #0f172a;
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.qr-print-card .qr-holder {
    background: #fff;
    padding: 1rem;
    display: inline-block;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.invoice-sheet {
    width: min(820px, 100%);
    margin: 2rem auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: clamp(1.4rem, 4vw, 2.6rem);
    box-shadow: var(--shadow);
}

/* Pagination */
.pagination-app {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    list-style: none;
    padding: 0;
    margin: 1.2rem 0 0;
    justify-content: center;
}

.pagination-app .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 .65rem;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-soft);
    font-size: .84rem;
    font-weight: 650;
}

.pagination-app .page-link:hover {
    background: var(--surface-3);
    color: var(--ink);
}

.pagination-app .active .page-link {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

/* Print */
@media print {
    .no-print,
    .site-header,
    .site-footer,
    .app-sidebar,
    .app-topbar,
    .card-toolbar,
    .preview-banner {
        display: none !important;
    }

    body,
    .invoice-page {
        background: #fff !important;
    }

    .invoice-sheet {
        box-shadow: none;
        border: 0;
        margin: 0;
        width: 100%;
    }
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero-visual {
        margin-top: 2.5rem;
    }

    .floating-pill.pill-one {
        left: 0;
    }

    .floating-pill.pill-two {
        right: 0;
    }

    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-aside {
        display: none;
    }

    .auth-main {
        min-height: 100vh;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .card-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .card-action.primary {
        grid-column: 1 / -1;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .brand span.brand-text {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
