:root {
    --blue: #2563EB;
    --blue-mid: #1d55d4;
    --blue-dk: #1e3a8a;
    --white: #FFFFFF;
    --zinc: #d7d7dd;
    --zinc-lt: #D4D4D8;
    --bg: #09090B;
    /* --panel: #111113; */
    --border: rgba(255, 255, 255, 0.08);
    --r12: 12px;
    --r24: 24px;
    --ease: cubic-bezier(.4, 0, .2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    font-family: 'Geist', 'Inter', sans-serif;
    color: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Background Video */
.bg-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 1;
    /* Keep it subtle so modal and particles stay visible */
}

/* WebGL canvas */
#webgl-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.55;
    background-image: radial-gradient(circle at 10% 100%, rgb(19 159 181 / 92%), transparent 50%), radial-gradient(circle at 80% 100%, rgb(226 43 178 / 90%), transparent 40%);
}

/* Entrance Animations */

@keyframes pageFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes framerSlideUp {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
    }

    100% {
        opacity: 1;
        transform: none;
    }
}

.framer-item {
    opacity: 0;
}

.themes-page.active .framer-item {
    animation: framerSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Particles CSS */
.floating-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: floatParticle 6s ease-in-out infinite alternate;
}

.floating-particle.p1 {
    width: 4px;
    height: 4px;
    background: #62F8FF;
    top: -10px;
    left: -20px;
    box-shadow: 0 0 6px #62F8FF;
    animation-duration: 4s;
}

.floating-particle.p2 {
    width: 3px;
    height: 3px;
    background: #E22BDC;
    bottom: 0;
    right: -30px;
    box-shadow: 0 0 4px #E22BDC;
    animation-duration: 5s;
    animation-delay: 1s;
}

.floating-particle.p3 {
    width: 5px;
    height: 5px;
    background: #FFFFFF;
    top: 40%;
    right: 10%;
    box-shadow: 0 0 8px #FFFFFF;
    animation-duration: 6s;
    animation-delay: 2s;
}

.floating-particle.p4 {
    width: 2px;
    height: 2px;
    background: #a39cc7;
    top: 10px;
    right: 40%;
    box-shadow: 0 0 3px #a39cc7;
    animation-duration: 4.5s;
    animation-delay: 0.5s;
}

.floating-particle.p5 {
    width: 4px;
    height: 4px;
    background: #62F8FF;
    bottom: -20px;
    left: 10%;
    box-shadow: 0 0 6px #62F8FF;
    animation-duration: 5.5s;
    animation-delay: 1.5s;
}

@keyframes floatParticle {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }

    33% {
        transform: translate(-5px, -10px) scale(1.2);
        opacity: 1;
    }

    66% {
        transform: translate(10px, -5px) scale(0.8);
        opacity: 0.6;
    }

    100% {
        transform: translate(5px, 10px) scale(1.1);
        opacity: 0.8;
    }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.animate-item {
    opacity: 0;
    animation: pageFadeIn 0.4s ease forwards;
}

.d-1 {
    animation-delay: 0.1s;
}

.d-2 {
    animation-delay: 0.2s;
}

.d-3 {
    animation-delay: 0.3s;
}

.d-4 {
    animation-delay: 0.4s;
}

.d-5 {
    animation-delay: 0.5s;}

/* Shell gradient border */
.shell {
    position: relative;
    z-index: 10;
    padding: 1px;
    border-radius: var(--r24);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    width: 100%;
    max-width: 1150px;
    animation: slideUpFade 0.8s var(--ease) forwards;
}

.card {
    border-radius: calc(var(--r24) - 1px);
    display: grid;
    grid-template-columns: 50% 50%;
    min-height: 560px;
    overflow: hidden;
    background: var(--panel);
    transition: grid-template-columns 0.6s var(--ease);
}

.card.full-width {
    grid-template-columns: 100% 0%;
}

/* ── LEFT PANEL ── */
.panel-form {
    padding: 52px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--border);
    background: rgb(9 4 39 / 65%);
    backdrop-filter: blur(30px);
}

.logo-wrap {
    margin-bottom: 40px;
}

.logo-wrap img {
    height: 76px;
    width: auto;
    display: block;
}

.pre-headline {
    font-size: 36px;
    font-weight: 300;
    line-height: 36px;
    letter-spacing: -0.02em;
    color: var(--zinc-lt);
    margin-bottom: 4px;
}

.main-headline {
    font-size: 36px;
    font-weight: 600;
    line-height: 42px;
    letter-spacing: -0.03em;
    color: var(--white);
    margin-bottom: 36px;
}

/* fields */
.field-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--zinc-lt);
    margin-bottom: 6px;
    display: block;
    letter-spacing: 0.02em;
}

.form-group {
    position: relative;
    margin-bottom: 16px;
}


.form-group.cols{
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 0 16px;
}

.form-group input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    font-family: 'Geist', 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--r12);
    outline: none;
    transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}

.form-group input[type=password] {
    padding: 0 44px 0 14px;
}
.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus {
    border-color: rgba(37, 99, 235, 0.7);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input.is-missing {
    border-color: #E5493A;
    box-shadow: 0 0 0 3px rgba(229, 73, 58, 0.22);
}

#linkRecupId {
    color: white;
    font-weight: 300;
    font-family: Inter;
    text-decoration: none;
    font-size: 0.7em;
    margin-top: -0.7rem;
    display: block;
    text-align: right;
    opacity: 0.7;
    transition: 0.2s opacity;
}

#linkRecupId:focus,
#linkRecupId:hover {
    opacity: 1;
}

.eye-btn {
    position: absolute;
    right: 14px;
    top: 64%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--zinc);
    display: flex;
    align-items: center;
    padding: 0;
    transition: color 150ms var(--ease);
}

.eye-btn:hover {
    color: var(--zinc-lt);
}

/* strength */
.strength-bar {
    display: flex;
    gap: 4px;
    margin-top: 8px;
    height: 2px;
}

.strength-bar span {
    flex: 1;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    transition: background 150ms var(--ease);
}

.strength-label {
    font-size: 11px;
    color: var(--zinc);
    margin-top: 5px;
    min-height: 15px;
    transition: color 150ms var(--ease);
}

/* primary button */
.btn-primary {
    width: 100%;
    height: 48px;
    margin-top: 24px;
    background: #FAFAFA;
    color: #000;
    font-family: 'Geist', 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: var(--r12);
    cursor: pointer;
    transition: background 150ms var(--ease), transform 150ms var(--ease), box-shadow 150ms var(--ease);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    background: #e4e4e4;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Views */
.view {
    display: none;
    animation: fadeIn 0.4s var(--ease) forwards;
}

.view.active {
    display: flex;
    flex-direction: column;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden-element {
    display: none !important;
}

/* Themes Page & Loading Page (Standalone) */
.themes-page,
.loading-page {
    display: none;
    position: absolute;
    inset: 0;
    padding: 0;
    z-index: 20;
    overflow: hidden;
    flex-direction: column;
    background: transparent;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.themes-scroll-content {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    padding: calc(8vh + 80px) 12vw 120px 12vw;
    z-index: 1;
}

.themes-page::before,
.loading-page::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(circle at 10% 100%, rgb(98 248 255 / 56%), transparent 50%), radial-gradient(circle at 80% 100%, rgb(226 43 220 / 73%), transparent 40%);
    background-color: #0a051e;
    opacity: 1;
    pointer-events: none;
}

.themes-page.active,
.loading-page.active {
    display: flex;
    animation: slideUpFade 0.6s var(--ease) forwards;
}

.themes-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    padding: 0 240px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 10, 10, 0);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s var(--ease);
}

.tt-logo {
    display: flex;
    align-items: center;
    color: #FFF;
    font-weight: 600;
    font-size: 16px;
}

.tt-logo img {
    height: 24px;
}

.tt-center {
    font-size: 14px;
    color: #FFFFFF;
    font-weight: 400;
    display: block;
    padding-left: 7%;
}

.themes-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 4vh;
    margin-bottom: 25px;
    text-align: center;
}

.hero-pill-wrap {
    display: inline-block;
    padding: 1px;
    border-radius: 40px;
    background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0));
    margin-bottom: 32px;
}

.hero-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 39px;
    background: #0A0A0C;
    font-size: 13px;
    color: #E5E7EB;
    font-weight: 500;
}

.hero-pill-dot {
    width: 6px;
    height: 6px;
    background: #6366F1;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}

.th-title {
    font-size: 64px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.05em;
    margin-bottom: 24px;
    background: linear-gradient(to right, #FFFFFF, #a39cc7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}


.th-desc {
    font-size: 18px;
    line-height: 1.6;
    color: #A1A1AA;
    font-weight: 400;
    max-width: 600px;
    margin-bottom: 40px;
}

/* ── LOGO MARQUEE BAND ── */
.logos-band {
    width: 100%;
    margin-bottom: 48px;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.logos-track {
    display: flex;
    align-items: center;
    gap: 0;
    width: max-content;
    animation: marqueeScroll 60s linear infinite;
}

.logos-track:hover {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.logo-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 48px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.logo-item img {
    height: 50px;
    width: auto;
    object-fit: contain;
    opacity: 0.45;
    filter: grayscale(100%) brightness(2);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.logo-item:hover img {
    opacity: 0.9;
    filter: grayscale(0%) brightness(1);
}

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    border-radius: 9999px;
    padding: 14px 32px;
    background: transparent;
    color: #D4D4D4;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s;
}

.hero-btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.05);
    color: #FFF;
}

.hero-btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    border-radius: 9999px;
    padding: 14px 32px;
    background: #4F46E5;
    color: #FFFFFF;
    border: 1px solid #4F46E5;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: rgba(99, 102, 241, 0.25) 0px 0px 30px 0px;
}

.hero-btn-primary:hover:not(:disabled) {
    background: #4338CA;
    border-color: #4338CA;
    transform: translateY(-1px);
    box-shadow: rgba(99, 102, 241, 0.4) 0px 0px 40px 0px;
}

.btn-auto {
    width: fit-content !important;
    padding: 0 24px;
    margin-top: 0 !important;
    height: 42px;
    font-size: 13px;
}

.themes-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-bottom: 60px;
}

@media(max-width: 1100px) {
    .themes-grid-new {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 768px) {
    .themes-grid-new {
        grid-template-columns: 1fr;
    }
}

.theme-card-new {
    background: rgb(0 0 19 / 41%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 0;
    cursor: pointer;
    transition: all 300ms var(--ease);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
}

.theme-card-new:hover {
    background: rgb(0 0 19 / 80%);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
}

.theme-card-new.selected {
    background: rgb(79 70 229 / 47%);
    border-color: rgba(79, 70, 229, 0.6);
    box-shadow: 0 8px 30px rgba(79, 70, 229, 0.25);
}

.tc-img {
    display: block;
    width: 100%;
    overflow: hidden;
    position: relative;
    aspect-ratio: 400 / 133;
}

.tc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms;
}

.theme-card-new:hover .tc-img img {
    transform: scale(1.05);
}

.tc-body {
    display: flex;
    flex-direction: column;
    padding: 36px 24px 24px 24px;
    gap: 12px;
    position: relative;
}

.tc-title {
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.3;
    display: block;
}

.tc-icon {
    position: absolute;
    top: -22px;
    left: 24px;
    display: inline-flex;
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #6366F1;
    background: #18181B;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.tc-desc {
    font-size: 14px;
    font-weight: 400;
    color: #A1A1AA;
    line-height: 1.5;
}

.selection-bar {
    display: none !important;
}

.loading-page {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 24px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

.loading-subtext {
    font-size: 13px;
    color: var(--zinc-lt);
}

.themes-page::-webkit-scrollbar {
    width: 6px;
}

.themes-page::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* footer */
.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}

.form-footer-text {
    font-size: 13px;
    font-weight: 300;
    color: var(--zinc);
}

.btn-login {
    height: 36px;
    padding: 0 16px;
    background: rgba(37, 99, 235, 0.15);
    color: #93C5FD;
    font-family: 'Geist', 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: var(--r12);
    cursor: pointer;
    transition: background 150ms var(--ease), border-color 150ms var(--ease);
}

.btn-login:hover {
    background: rgba(37, 99, 235, 0.28);
    border-color: rgba(37, 99, 235, 0.6);
}

/* ── RIGHT PANEL ── */
.panel-showcase {
    background: linear-gradient(145deg, #6425eb 0%, #ad16a1 60%, #792e11 100%);
    padding: 36px 32px 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.card.full-width .panel-showcase {
    opacity: 0;
    visibility: hidden;
}

/* subtle inner glow */
.panel-showcase::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 255, 255, 0.12), transparent 70%);
    pointer-events: none;
}

.panel-showcase::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 30%;
    width: 320px;
    height: 320px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

/* status pill */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    width: fit-content;
    position: relative;
    z-index: 1;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: #4ade80;
    box-shadow: 0 0 6px #4ade80;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.showcase-headline {
    font-size: 28px;
    font-weight: 700;
    line-height: 34px;
    letter-spacing: -0.025em;
    color: var(--white);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.showcase-desc {
    font-size: 13px;
    font-weight: 300;
    line-height: 20px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 36px;
    max-width: 280px;
    position: relative;
    z-index: 1;
}

/* Illustration image */
.illus-wrap {
    flex: 1;
    border-radius: var(--r12);
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.illus-wrap img,
.illus-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

/* stat cards */
.stat-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.scard {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--r12);
    padding: 14px 16px;
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 150ms var(--ease);
}

.scard:hover {
    background: rgba(0, 0, 0, 0.32);
}


.scard-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.scard-title svg {
    opacity: 0.7;
}

.scard-sub {
    font-size: 11px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
}


.badge {
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
}

.badge-green {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
}

.badge-blue {
    background: rgba(147, 197, 253, 0.15);
    color: #93C5FD;
}

.scard-metric {
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    text-align: right;
}

.scard-metric-label {
    font-size: 11px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    text-align: right;
}

/* chips */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
    position: relative;
    z-index: 1;
}

.chip {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    transition: background 150ms var(--ease);
}

.chip:hover {
    background: rgba(255, 255, 255, 0.18);
}

.chip-dot {
    width: 5px;
    height: 5px;
    border-radius: 9999px;
    background: #93C5FD;
    flex-shrink: 0;
}

/* ── RESPONSIVE DESIGN ── */
@media(max-width: 1300px) {
    .themes-topbar {
        padding: 0 120px;
    }

    .themes-scroll-content {
        padding: calc(8vh + 80px) 6vw 120px 6vw;
    }
}

@media(max-height: 800px) {
    body {
        align-items: flex-start;
        min-height: 100vh;
    }

    /* .shell {
        margin: 20px auto 56px auto;
    } */

    .card {
        min-height: auto;
    }

    .panel-form {
        padding-top: 36px;
        padding-bottom: 36px;
    }

    .logo-wrap {
        margin-bottom: 24px;
    }

    .main-headline {
        margin-bottom: 22px;
    }
}

@media(max-width: 1100px) {
    .themes-topbar {
        padding: 0 40px;
    }

    .th-title {
        font-size: 48px;
    }
}

@media(max-width: 768px) {

    /* Auth Card */
    html,
    body {
        height: auto;
        min-height: 100%;
    }

    body {
        padding: 12px;
        min-height: 100vh;
        min-height: 100dvh;
        align-items: flex-start;
        justify-content: center;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* .shell {
        margin: 12px auto 56px auto;
    } */

    .card {
        grid-template-columns: 1fr;
        min-height: auto;
        overflow: hidden;
    }

    .panel-showcase {
        display: none;
    }

    .panel-form {
        padding: 32px 24px;
        justify-content: flex-start;
        min-height: auto;
        border-right: 0;
    }

    .logo-wrap {
        margin-bottom: 24px;
    }

    .logo-wrap img {
        height: 52px;
    }

    .main-headline {
        font-size: 28px;
        line-height: 34px;
        margin-bottom: 24px;
    }

    .pre-headline {
        font-size: 20px;
        line-height: 24px;
    }

    .form-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    /* Themes Topbar */
    .themes-topbar {
        padding: 16px 20px;
        height: auto;
        min-height: 70px;
    }

    .tt-logo img {
        height: 32px !important;
    }

    .tt-center {
        display: none;
        /* Hide center text to leave room for button */
    }

    .hero-btn-secondary,
    .hero-btn-primary {
        padding: 10px 16px;
        font-size: 13px;
    }

    .hero-btn-secondary svg,
    .hero-btn-primary svg {
        width: 16px;
        height: 16px;
        margin-right: 4px !important;
    }

    /* Themes Content */
    .themes-scroll-content {
        padding: calc(4vh + 90px) 20px 80px 20px;
    }

    .th-title {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .th-desc {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .hero-pill-wrap {
        margin-bottom: 24px;
    }

    .hero-pill {
        font-size: 12px;
    }

    /* Mobile sparkles */
    .floating-particle.p1 {
        left: -5px;
        top: -5px;
    }

    .floating-particle.p2 {
        right: -5px;
        bottom: -5px;
    }

    .floating-particle.p3,
    .floating-particle.p4,
    .floating-particle.p5 {
        display: none;
    }
}

@media(max-width: 480px) {
    body {
        padding: 8px;
    }

    .form-group.cols {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        grid-template-areas: "labelSociete" "inputSociete" "labelTel" "inputTel";
        gap: 0;
    }

    label[for="societe"]{
        grid-area: labelSociete;
    }

    label[for="telephone"]{
        grid-area: labelTel;
    }

    
    input#societe{
        grid-area: inputSociete;
        margin-bottom: 12px;
    }

    input#telephone{
        grid-area: inputTel;
    }

        .form-footer {
            align-items: center;
        }

    .shell {
        margin: 8px auto 48px auto;
    }

    .panel-form {
        padding: 24px 18px;
    }

    .logo-wrap {
        margin-bottom: 18px;
    }

    .logo-wrap img {
        height: 44px;
    }

    .main-headline {
        font-size: 24px;
        line-height: 30px;
        margin-bottom: 18px;
    }

    .pre-headline {
        font-size: 17px;
        line-height: 22px;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .form-group input {
        height: 44px;
    }

    .themes-topbar {
        flex-direction: column;
        gap: 12px;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .themes-scroll-content {
        padding-top: 140px;
    }

    .th-title {
        font-size: 28px;
    }

    .tc-title {
        font-size: 16px;
    }

    .tc-body {
        padding: 32px 16px 20px 16px;
    }
}
