/* ---------- Theme ---------- */
:root {
    --brand-1: #6366f1;
    --brand-2: #8b5cf6;
    --brand-3: #06b6d4;
    --ink: #0b1020;
    --ink-2: #121a33;
    --grad: linear-gradient(135deg, var(--brand-1), var(--brand-2) 50%, var(--brand-3));
    --bs-primary: #6366f1;
    --bs-primary-rgb: 99, 102, 241;
    --bs-link-color: #6366f1;
    --bs-link-color-rgb: 99, 102, 241;
    --bs-link-hover-color: #4f46e5;
    --bs-link-hover-color-rgb: 79, 70, 229;
    --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: var(--bs-body-font-family);
    background: #f6f7fb;
}

.section-title {
    font-weight: 800;
    letter-spacing: 0;
}

.section-eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-dark {
    background: var(--ink);
    color: #fff;
}

.section-dark::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 0%, rgba(99, 102, 241, .25), transparent 55%),
                radial-gradient(ellipse at 80% 100%, rgba(6, 182, 212, .2), transparent 55%);
}

/* ---------- Buttons ---------- */
.btn {
    border-radius: .75rem;
    font-weight: 500;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active,
.btn-link:hover,
.nav-link.btn:hover {
    transform: none;
}

.btn-primary {
    --bs-btn-bg: var(--brand-1);
    --bs-btn-border-color: var(--brand-1);
    --bs-btn-hover-bg: #4f46e5;
    --bs-btn-hover-border-color: #4f46e5;
    --bs-btn-active-bg: #4338ca;
    --bs-btn-active-border-color: #4338ca;
    --bs-btn-disabled-bg: var(--brand-1);
    --bs-btn-disabled-border-color: var(--brand-1);
}

.btn-primary:hover {
    box-shadow: 0 10px 24px -10px rgba(99, 102, 241, .8);
}

.btn-outline-primary {
    --bs-btn-color: var(--brand-1);
    --bs-btn-border-color: var(--brand-1);
    --bs-btn-hover-bg: var(--brand-1);
    --bs-btn-hover-border-color: var(--brand-1);
    --bs-btn-active-bg: #4f46e5;
    --bs-btn-active-border-color: #4f46e5;
}

/* Animated gradient button with a moving shine */
.btn-glow,
.btn-shine {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn-glow {
    color: #fff;
    border: 0;
    background: linear-gradient(120deg, var(--brand-1), var(--brand-2), var(--brand-3), var(--brand-1));
    background-size: 300% 100%;
    animation: gradient-shift 6s ease infinite;
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, .7);
}

.btn-glow:hover,
.btn-glow:focus-visible {
    color: #fff;
    box-shadow: 0 16px 40px -10px rgba(139, 92, 246, .9);
}

.btn-glow::after,
.btn-shine::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .45), transparent);
    transform: skewX(-20deg);
    animation: shine 3.5s ease-in-out infinite;
    z-index: -1;
}

.btn-shine::after {
    background: linear-gradient(120deg, transparent, rgba(99, 102, 241, .25), transparent);
}

.btn-glow i,
.btn-ghost i {
    display: inline-block;
    transition: transform .2s ease;
}

.btn-glow:hover .bi-arrow-right {
    transform: translateX(4px);
}

.btn-ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(6px);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, .15);
    border-color: rgba(255, 255, 255, .6);
}

@keyframes shine {
    0% { left: -75%; }
    40%, 100% { left: 125%; }
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ---------- Navbar ---------- */
.navbar-premium {
    background: rgba(11, 16, 32, .92);
    backdrop-filter: blur(12px);
    padding: .9rem 0;
    transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
}

.page-home .navbar-premium {
    background: transparent;
}

.page-home .navbar-premium.scrolled {
    background: rgba(11, 16, 32, .9);
    padding: .5rem 0;
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, .5);
}

@media (max-width: 991.98px) {
    .page-home .navbar-premium {
        background: rgba(11, 16, 32, .92);
    }
}

.brand-logo {
    transition: transform .5s ease;
}

.navbar-brand:hover .brand-logo {
    transform: rotate(-12deg) scale(1.08);
}

.brand-text {
    background: linear-gradient(90deg, #fff, #c7d2fe);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 0;
}

.navbar-premium .nav-link {
    position: relative;
}

.navbar-premium .nav-link:not(.dropdown-toggle):not(.btn)::after {
    content: "";
    position: absolute;
    left: .5rem;
    right: .5rem;
    bottom: .2rem;
    height: 2px;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

.navbar-premium .nav-link:hover::after {
    transform: scaleX(1);
}

.flash-overlay {
    position: fixed;
    top: 84px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    width: min(600px, 92vw);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 130px 0 90px;
    color: #fff;
    background: var(--ink);
    overflow: hidden;
}

.hero > .container {
    z-index: 3;
}

.hero-video,
.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-canvas {
    z-index: 1;
}

.hero-mesh {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video + .hero-mesh {
    opacity: .5;
}

.hero-mesh span {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .55;
    animation: float 18s ease-in-out infinite;
}

.hero-mesh span:nth-child(1) { width: 520px; height: 520px; background: var(--brand-1); top: -140px; left: -120px; }
.hero-mesh span:nth-child(2) { width: 460px; height: 460px; background: var(--brand-3); bottom: -160px; right: -100px; animation-delay: -6s; }
.hero-mesh span:nth-child(3) { width: 380px; height: 380px; background: var(--brand-2); top: 30%; left: 45%; animation-delay: -12s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(60px, -40px) scale(1.1); }
    66% { transform: translate(-40px, 50px) scale(.95); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(11, 16, 32, .55) 0%, rgba(11, 16, 32, .85) 100%);
}

/* Subtle grid lines */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0;
    margin-bottom: 1.25rem;
}

.hero-lead {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, .75);
    max-width: 560px;
    margin-bottom: 2rem;
}

.text-gradient {
    background: linear-gradient(90deg, #a5b4fc, #c4b5fd, #67e8f9, #a5b4fc);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-shift 6s linear infinite;
}

.eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: 999px;
    font-size: .85rem;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    backdrop-filter: blur(6px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .7); }
    70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 2rem;
    font-size: .9rem;
    color: rgba(255, 255, 255, .65);
}

.hero-trust i {
    color: var(--brand-3);
    margin-right: .25rem;
}

.glass-card {
    color: #fff;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 1.25rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
}

.glass-card .form-control,
.glass-card .form-select {
    color: #fff;
    background-color: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .2);
}

.glass-card .form-select {
    --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

.glass-card .form-control::placeholder {
    color: rgba(255, 255, 255, .5);
}

.glass-card .form-control:focus,
.glass-card .form-select:focus {
    color: #fff;
    background-color: rgba(255, 255, 255, .12);
    border-color: var(--brand-3);
    box-shadow: 0 0 0 .25rem rgba(6, 182, 212, .25);
}

.glass-card option {
    color: #111;
}

.scroll-cue {
    position: absolute;
    bottom: 24px;
    left: 50%;
    z-index: 3;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, .6);
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-cue:hover {
    color: #fff;
}

@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 8px); }
}

/* ---------- Industries marquee ---------- */
.industry-strip {
    overflow: hidden;
    padding: 1.1rem 0;
    color: rgba(255, 255, 255, .7);
    background: var(--ink-2);
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.marquee-track {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.industry-strip:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-track span {
    white-space: nowrap;
    font-weight: 600;
}

.marquee-track i {
    color: var(--brand-3);
    margin-right: .5rem;
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

/* ---------- Stats ---------- */
.stats-bar {
    background: #fff;
    border-bottom: 1px solid #eef0f6;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Cards ---------- */
.feature-card,
.software-card,
.pricing-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    transition: transform .3s ease, box-shadow .3s ease;
}

.feature-card:hover,
.software-card:hover,
.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -20px rgba(79, 70, 229, .35) !important;
}

.feature-card::before,
.software-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s ease;
}

.feature-card:hover::before,
.software-card:hover::before {
    transform: scaleX(1);
}

.icon-circle {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    border-radius: 14px;
    background: var(--grad);
    box-shadow: 0 10px 20px -8px rgba(99, 102, 241, .6);
    transition: transform .3s ease;
}

.feature-card:hover .icon-circle,
.software-card:hover .icon-circle {
    transform: rotate(-8deg) scale(1.08);
}

.icon-circle-lg { width: 60px; height: 60px; font-size: 1.6rem; }
.icon-circle-xl { width: 76px; height: 76px; font-size: 2rem; border-radius: 20px; }

.pricing-featured {
    border: 2px solid transparent !important;
    background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box;
}

.step-number {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    border-radius: 50%;
    background: var(--grad);
    box-shadow: 0 0 0 8px rgba(99, 102, 241, .15);
}

.cta-box {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, var(--brand-1), var(--brand-2), var(--brand-3), var(--brand-1));
    background-size: 300% 300%;
    animation: gradient-shift 10s ease infinite;
}

.info-tile {
    padding: 1rem;
    text-align: center;
    font-weight: 500;
    background: #fff;
    border: 1px solid #eef0f6;
    border-radius: 1rem;
}

.info-tile i {
    display: block;
    margin-bottom: .25rem;
    font-size: 1.5rem;
    color: var(--brand-1);
}

.name-card {
    border-radius: 1rem;
    transition: transform .2s ease, box-shadow .2s ease;
}

.name-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1rem 2rem -1rem rgba(79, 70, 229, .4) !important;
}

.cart-footer > a {
    align-self: flex-start;
}

.cart-footer-total {
    justify-content: flex-end;
}

.cart-footer-total > .btn {
    white-space: nowrap;
}

.domain-result > div {
    min-width: 0;
}

.domain-result-action {
    flex-wrap: wrap;
}

.software-title {
    font-size: 2rem;
    overflow-wrap: anywhere;
}

.order-line > span {
    flex: 0 0 auto;
    white-space: nowrap;
}

.admin-user-order {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: .5rem;
}

.admin-user-order > a {
    min-width: 0;
}

.payment-methods > span {
    white-space: nowrap;
}

.stat {
    padding: .75rem;
    background: #f8f9fa;
    border-radius: .5rem;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ink);
}

/* ---------- WhatsApp button ---------- */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1060;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    text-decoration: none;
    border-radius: 50%;
    background: #25d366;
    box-shadow: 0 10px 25px -5px rgba(37, 211, 102, .6);
    transition: transform .2s ease;
}

.whatsapp-float::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 50%;
    background: #25d366;
    animation: wa-ping 2s cubic-bezier(0, 0, .2, 1) infinite;
}

.whatsapp-float:hover {
    color: #fff;
    transform: scale(1.08);
}

.whatsapp-tooltip {
    position: absolute;
    right: 72px;
    padding: .4rem .75rem;
    font-size: .85rem;
    white-space: nowrap;
    color: #fff;
    background: #111827;
    border-radius: .5rem;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: none;
}

@keyframes wa-ping {
    75%, 100% { transform: scale(1.6); opacity: 0; }
}

/* ---------- Global polish ---------- */
.min-w-0 { min-width: 0; }

.card {
    border-color: #eef0f6;
    border-radius: 1rem;
}

.shadow-sm {
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px -4px rgba(16, 24, 40, .08) !important;
}

.form-control,
.form-select,
.input-group-text {
    border-color: #e2e5ee;
    border-radius: .65rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-1);
    box-shadow: 0 0 0 .25rem rgba(99, 102, 241, .15);
}

.form-label {
    font-weight: 500;
    font-size: .9rem;
}

.alert {
    border: 0;
    border-radius: .85rem;
}

.table > thead th {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #6b7280;
}

.dropdown-menu {
    border: 0;
    border-radius: .85rem;
    padding: .5rem;
    box-shadow: 0 20px 40px -12px rgba(16, 24, 40, .25);
}

.dropdown-item {
    border-radius: .5rem;
}

.accordion {
    --bs-accordion-border-radius: 1rem;
    --bs-accordion-inner-border-radius: 1rem;
    --bs-accordion-active-bg: #eef2ff;
    --bs-accordion-active-color: #3730a3;
}

/* ---------- Inner page header ---------- */
.page-header {
    position: relative;
    overflow: hidden;
    padding: 3.25rem 0 3rem;
    color: #fff;
    background: var(--ink);
}

.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 10% 0%, rgba(99, 102, 241, .45), transparent 55%),
                radial-gradient(ellipse at 90% 100%, rgba(6, 182, 212, .3), transparent 55%);
}

.page-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 40px 40px;
}

.page-header .container {
    z-index: 1;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: .35rem;
}

.page-subtitle {
    color: rgba(255, 255, 255, .7);
    margin-bottom: 0;
    max-width: 680px;
}

.page-body {
    padding-top: 2.5rem;
    padding-bottom: 3.5rem;
}

/* ---------- Auth ---------- */
.auth-wrap {
    display: grid;
    grid-template-columns: 1fr;
    min-height: calc(100vh - 72px);
}

@media (min-width: 992px) {
    .auth-wrap {
        grid-template-columns: 5fr 6fr;
    }
}

.auth-panel {
    position: relative;
    overflow: hidden;
    display: none;
    align-items: center;
    padding: 4rem;
    color: #fff;
    background: var(--ink);
}

@media (min-width: 992px) {
    .auth-panel {
        display: flex;
    }
}

.auth-panel-inner {
    position: relative;
    z-index: 1;
    max-width: 440px;
}

.auth-panel-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 0;
}

.auth-points {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-points li {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .6rem 0;
    color: rgba(255, 255, 255, .85);
}

.auth-points i {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, .1);
    color: #a5b4fc;
}

.auth-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.25rem;
    background: radial-gradient(ellipse at top right, rgba(99, 102, 241, .08), transparent 60%), #f6f7fb;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 2.5rem;
    background: #fff;
    border: 1px solid #eef0f6;
    border-radius: 1.5rem;
    box-shadow: 0 30px 60px -30px rgba(16, 24, 40, .25);
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: .25rem;
}

.input-icon {
    position: relative;
}

.input-icon > i {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.input-icon > .form-control {
    padding-left: 2.75rem;
}

.input-icon > .form-control:focus ~ i,
.input-icon:focus-within > i {
    color: var(--brand-1);
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: .5rem;
    transform: translateY(-50%);
    padding: .35rem .6rem;
    border: 0;
    background: transparent;
    color: #6b7280;
    border-radius: .5rem;
}

.password-toggle:hover {
    color: var(--brand-1);
    background: #eef2ff;
}

.strength-meter {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: .5rem;
}

.strength-bar {
    flex-grow: 1;
    height: 6px;
    overflow: hidden;
    background: #eef0f6;
    border-radius: 99px;
}

.strength-bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 99px;
    transition: width .3s ease, background .3s ease;
}

/* ---------- File tools ---------- */
.tool-panel {
    padding: 1.75rem;
    background: #fff;
    border: 1px solid #eef0f6;
    border-radius: 1.25rem;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px -12px rgba(16, 24, 40, .12);
}

.dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    padding: 2.5rem 1rem;
    text-align: center;
    cursor: pointer;
    border: 2px dashed #c7d2fe;
    border-radius: 1rem;
    background: linear-gradient(180deg, #f8f9ff, #fff);
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.dropzone i {
    font-size: 2.5rem;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dropzone:hover,
.dropzone.dragging {
    border-color: var(--brand-1);
    background: #eef2ff;
    transform: scale(1.01);
}

.format-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: .6rem;
}

.format-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: .85rem;
    cursor: pointer;
    border: 1.5px solid #e2e5ee;
    border-radius: .85rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.format-option i {
    font-size: 1.4rem;
    color: var(--brand-1);
}

.btn-check:checked + .format-option {
    border-color: var(--brand-1);
    background: #eef2ff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .15);
}

.tool-results {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    max-height: 560px;
    overflow-y: auto;
}

.tool-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: 4rem 1rem;
    color: #9ca3af;
    text-align: center;
}

.tool-empty i {
    font-size: 2.5rem;
}

.result-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .75rem;
    border: 1px solid #eef0f6;
    border-radius: .85rem;
}

.result-final {
    border-color: #c7d2fe;
    background: #f5f7ff;
}

.result-thumb {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: .6rem;
    background: #f3f4f6;
}

/* ---------- Admin ---------- */
.admin-body {
    background: #f4f6fb;
    overflow-x: hidden;
}

.admin-shell {
    display: grid;
    grid-template-columns: 272px minmax(0, 1fr);
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
}

.admin-sidebar {
    --bs-offcanvas-width: 272px;
    --bs-offcanvas-bg: var(--ink);
    --bs-offcanvas-color: #fff;
    width: 100%;
    color: #fff !important;
    background: var(--ink) !important;
}

.admin-sidebar.offcanvas-lg {
    color: #fff !important;
    background-color: var(--ink) !important;
}

@media (min-width: 992px) {
    .admin-sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        height: 100dvh;
        overflow-y: auto;
    }
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding: 1rem .75rem;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem .85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
    border-radius: .65rem;
    transition: background .2s ease, color .2s ease;
}

.admin-sidebar .admin-nav a {
    color: rgba(255, 255, 255, .78) !important;
}

.admin-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .06);
}

.admin-nav a.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(99, 102, 241, .45), rgba(139, 92, 246, .15));
    box-shadow: inset 3px 0 0 #a5b4fc;
}

.admin-sidebar .admin-nav a:hover,
.admin-sidebar .admin-nav a.active {
    color: #fff !important;
}

.admin-nav i {
    font-size: 1.1rem;
}

.admin-nav-divider {
    height: 1px;
    margin: .75rem .5rem;
    background: rgba(255, 255, 255, .08);
}

.admin-main {
    width: 100%;
    min-width: 0;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    padding: 1rem clamp(1rem, 2vw, 1.75rem);
    background: rgba(244, 246, 251, .85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e7eaf3;
}

.admin-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0;
}

.admin-user {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .5rem;
    background: #fff;
    border: 1px solid #e7eaf3;
}

.admin-content {
    min-width: 0;
    padding: clamp(1rem, 2vw, 1.75rem);
}

.admin-content > .row {
    min-width: 0;
}

.admin-content .col-xl-4,
.admin-content .col-xl-8,
.admin-content .col-xxl-2 {
    min-width: 0;
}

.admin-content .panel,
.admin-content .kpi-card {
    min-width: 0;
}

.avatar {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    color: #fff;
    border-radius: 50%;
    background: var(--grad);
}

.avatar-lg {
    display: flex;
    width: 72px;
    height: 72px;
    font-size: 1.6rem;
}

.panel {
    min-width: 0;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e7eaf3;
    border-radius: .75rem;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    margin-bottom: 1rem;
}

.panel-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.kpi-card {
    min-width: 0;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e7eaf3;
    border-radius: .75rem;
    transition: transform .2s ease, box-shadow .2s ease;
}

.admin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 156px), 1fr));
    gap: 1rem;
}

.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px -18px rgba(79, 70, 229, .45);
}

.kpi-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .85rem;
    font-size: 1.1rem;
    border-radius: 12px;
    --bs-bg-opacity: .15;
}

.kpi-icon.text-bg-primary { color: #4f46e5 !important; background: rgba(99, 102, 241, .12) !important; }
.kpi-icon.text-bg-success { color: #16a34a !important; background: rgba(34, 197, 94, .12) !important; }
.kpi-icon.text-bg-info { color: #0891b2 !important; background: rgba(6, 182, 212, .12) !important; }
.kpi-icon.text-bg-warning { color: #d97706 !important; background: rgba(245, 158, 11, .14) !important; }

.kpi-label {
    font-size: .8rem;
    font-weight: 500;
    color: #6b7280;
    overflow-wrap: anywhere;
}

.kpi-value {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0;
}

.kpi-hint {
    font-size: .78rem;
    color: #667085;
    overflow-wrap: anywhere;
}

.admin-content .table-responsive {
    max-width: 100%;
    border-radius: .75rem;
}

.admin-page-actions {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    align-items: center;
    gap: .75rem;
    max-width: 100%;
}

.admin-page-actions > * {
    min-width: 0;
    margin: 0;
}

.admin-page-actions .btn {
    white-space: nowrap;
}

.admin-page-note {
    max-width: 100%;
    margin-bottom: 1rem;
}

.admin-ai-tools-table {
    min-width: 900px;
}

.admin-table > :not(caption) > * > * {
    padding: .85rem 1rem;
}

.admin-table td,
.admin-table th {
    vertical-align: middle;
}

.admin-table {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: #f9fafb;
    margin-bottom: 0;
}

.traffic-chart {
    display: block;
    height: auto;
    min-height: 150px;
    overflow: visible;
}

.panel-header > * {
    min-width: 0;
}

.admin-table tbody tr:hover {
    background: #f9fafb;
}

.traffic-chart .chart-axis {
    font-size: 10px;
    fill: #667085;
}

.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: .35rem;
    border-radius: 3px;
}

.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-list li {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem 0;
    border-bottom: 1px solid #f1f3f8;
}

.activity-list li:last-child {
    border-bottom: 0;
}

.activity-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: .9rem;
}

.icon-circle-sm {
    width: 38px;
    height: 38px;
    font-size: 1rem;
    border-radius: 10px;
}

.icon-picker {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: .4rem;
}

.icon-picker .btn {
    padding: .5rem 0;
    font-size: 1.1rem;
}

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

    .page-title {
        font-size: 2rem;
    }

    .panel-header .small {
        flex-wrap: wrap;
    }
}

@media (max-width: 991.98px) {
    .admin-shell {
        display: block;
    }

    .admin-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 1055;
        width: var(--bs-offcanvas-width);
        height: 100vh;
        height: 100dvh;
        overflow-y: auto;
    }

    .admin-main {
        width: 100%;
    }
}

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

    .page-title {
        font-size: 1.75rem;
    }

    .hero {
        min-height: auto;
        padding: 112px 0 72px;
    }

    .hero-trust {
        gap: .75rem 1rem;
        font-size: .82rem;
    }

    .admin-topbar {
        gap: .65rem;
        padding: .75rem 1rem;
    }

    .admin-title {
        font-size: 1.1rem;
    }

    .admin-content {
        padding: 1rem;
    }

    .admin-page-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-page-actions .btn {
        justify-self: start;
    }

    .panel {
        padding: 1rem;
    }

    .cart-footer > a {
        align-self: stretch;
    }

    .cart-footer-total > .btn {
        width: 100%;
    }

    .software-title {
        font-size: 1.5rem;
    }

    .prompt-header {
        align-items: flex-start !important;
    }

    .prompt-header .btn {
        flex: 0 0 auto;
    }

    .panel-header .d-flex {
        gap: .5rem !important;
    }

    .panel-header {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .kpi-card {
        padding: 1rem;
    }
}

.nav-pills {
    --bs-nav-pills-link-active-bg: var(--brand-1);
}

/* ---------- AI tool finder ---------- */
.example-chip {
    padding: .4rem .85rem;
    font-size: .85rem;
    color: #4338ca;
    text-decoration: none;
    background: #eef2ff;
    border: 1px solid #e0e7ff;
    border-radius: 999px;
    transition: background .2s ease, transform .2s ease;
}

.example-chip:hover {
    color: #3730a3;
    background: #e0e7ff;
    transform: translateY(-1px);
}

.ai-card {
    height: 100%;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #eef0f6;
    border-radius: 1.25rem;
    transition: transform .25s ease, box-shadow .25s ease;
}

.ai-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -24px rgba(79, 70, 229, .45);
}

.ai-card-best {
    border: 2px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box;
    box-shadow: 0 24px 48px -28px rgba(99, 102, 241, .6);
}

.ai-rank {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--brand-1);
    background: #eef2ff;
    border-radius: 12px;
}

.ai-card-best .ai-rank {
    color: #fff;
    background: var(--grad);
}

.model-pill {
    display: inline-flex;
    align-items: center;
    padding: .25rem .7rem;
    font-size: .8rem;
    font-weight: 600;
    color: #0e7490;
    background: #ecfeff;
    border: 1px solid #cffafe;
    border-radius: 999px;
}

.match-score {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.prompt-box {
    padding: 1.25rem;
    background: var(--ink);
    color: #e5e7eb;
    border-radius: 1rem;
}

.prompt-box pre {
    margin: 0;
    white-space: pre-wrap;
    font-size: .875rem;
    color: #c7d2fe;
}

.prompt-header > span {
    min-width: 0;
}

/* ---------- Scroll reveal ---------- */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s ease;
    transition-delay: var(--delay, 0ms);
}

.js [data-reveal].revealed {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }

    .js [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
