:root {
    --bg-main: #070710;
    --bg-sidebar: #0b0b16;
    --bg-card: #121225;
    --bg-card-hover: #191933;
    --primary: #8b5cf6;
    --primary-hover: #7c3aed;
    --secondary: #ec4899;
    --accent: #22d3ee;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --border: #27273f;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg: var(--bg-main);
    --panel: var(--bg-card);
    --panel-2: var(--bg-card-hover);
    --line: var(--border);
    --text: var(--text-main);
    --muted: var(--text-muted);
    --blue: var(--accent);
    --amber: var(--warning);
    --red: var(--danger);
    --green: var(--success);
    --premium-gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --action-gradient: linear-gradient(135deg, var(--accent), var(--primary));
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1rem, 4vw, 3rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 11, 15, 0.9);
    backdrop-filter: blur(18px);
}

.brand,
.admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 900;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 8px;
    background: var(--action-gradient);
    color: white;
    box-shadow: 0 12px 28px rgba(34, 211, 238, 0.22);
}

.top-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: var(--muted);
    font-weight: 700;
}

.top-nav a:hover {
    color: white;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.65fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    min-height: calc(100vh - 72px);
    padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 5vw, 5rem);
    background: radial-gradient(circle at 20% 20%, rgba(20, 184, 166, 0.18), transparent 34rem);
}

.eyebrow {
    color: var(--amber);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 820px;
    margin: 0.5rem 0 1rem;
    font-size: clamp(2.8rem, 7vw, 6.5rem);
    line-height: 0.96;
    letter-spacing: 0;
}

.hero p {
    max-width: 660px;
    color: var(--muted);
    font-size: 1.12rem;
    line-height: 1.75;
}

.hero-actions,
.product-foot,
.form-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn,
.form button,
.filters button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.7rem 1rem;
    border: 0;
    border-radius: 8px;
    background: var(--premium-gradient);
    color: white;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(139, 92, 246, 0.24);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, border-color 0.18s ease;
}

.btn:not(.disabled):not(:disabled):hover,
.form button:not(:disabled):hover,
.filters button:not(:disabled):hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 18px 42px rgba(236, 72, 153, 0.24);
}

.btn.ghost {
    border: 1px solid rgba(139, 92, 246, 0.28);
    background: rgba(18, 18, 37, 0.78);
    color: white;
    box-shadow: none;
}

.btn.ghost:hover {
    border-color: rgba(34, 211, 238, 0.46);
    background: rgba(25, 25, 51, 0.92);
}

.btn.small {
    min-height: 34px;
    padding: 0.45rem 0.7rem;
    font-size: 0.88rem;
}

.btn.disabled,
.btn:disabled {
    background: rgba(148, 163, 184, 0.45);
    color: rgba(255, 255, 255, 0.72);
    cursor: not-allowed;
}

.hero-card,
.auth-box,
.product-card,
.list-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(17, 24, 32, 0.92);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.hero-card {
    display: grid;
    gap: 1rem;
    padding: 1rem;
}

.hero-card-top {
    height: 180px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(20, 184, 166, 0.88), rgba(59, 130, 246, 0.78)),
        #0f172a;
}

.hero-service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
}

.hero-service-grid span,
.hero-balance {
    padding: 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
}

.hero-balance {
    display: flex;
    justify-content: space-between;
}

.hero-balance strong {
    color: white;
}

.auth-grid,
.section {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto 4rem;
}

.auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.auth-box {
    padding: 1.25rem;
}

.auth-box h2,
.section-title h1,
.section-title h2 {
    margin: 0.3rem 0 1rem;
    font-size: clamp(1.7rem, 4vw, 3rem);
    letter-spacing: 0;
}

.form {
    display: grid;
    gap: 0.75rem;
}

.form input,
.form select,
.form textarea,
.filters input,
.filters select {
    width: 100%;
    min-height: 44px;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    outline: none;
    background: rgba(255, 255, 255, 0.06);
    color: white;
}

.form textarea {
    min-height: 110px;
    resize: vertical;
}

.filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px auto;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hidden {
    display: none !important;
}

.icon-sprite {
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 320px));
    gap: 1.05rem;
    justify-content: center;
    width: min(100%, calc((320px * 4) + (1.05rem * 3)));
    margin-inline: auto;
}

.product-grid > .empty {
    grid-column: 1 / -1;
}

.product-card {
    overflow: hidden;
}

.product-card.combo-card {
    border-color: rgba(34, 211, 238, 0.28);
    background:
        linear-gradient(180deg, rgba(8, 27, 38, 0.98), rgba(8, 12, 24, 0.98)),
        var(--panel);
}

.product-card.combo-card .product-image {
    background:
        linear-gradient(135deg, rgba(20, 184, 166, 0.26), rgba(59, 130, 246, 0.18)),
        #020617;
}

.combo-includes {
    display: -webkit-box;
    overflow: hidden;
    color: #a5f3fc;
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.square-product-card {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 320px;
    min-width: 0;
    min-height: 365px;
    flex-direction: column;
    border-color: rgba(139, 92, 246, 0.22);
    background:
        linear-gradient(180deg, rgba(18, 18, 37, 0.98), rgba(9, 9, 22, 0.98)),
        var(--panel);
    box-shadow: 0 18px 54px rgba(4, 4, 12, 0.28);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.square-product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(34, 211, 238, 0.52);
    background:
        linear-gradient(180deg, rgba(25, 25, 51, 0.98), rgba(12, 12, 30, 0.98)),
        var(--panel-2);
    box-shadow: 0 28px 74px rgba(139, 92, 246, 0.22), 0 0 0 1px rgba(236, 72, 153, 0.08);
}

.product-image {
    position: relative;
    display: grid;
    flex: 0 0 165px;
    min-height: 0;
    place-items: center;
    background: #000;
    overflow: hidden;
}

.product-image.has-product-image::before {
    content: "";
    position: absolute;
    inset: 0.55rem;
    background-image: var(--product-image);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.product-image img {
    display: none;
}

.product-image strong {
    font-size: 3rem;
}

.product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.42rem;
    min-height: 0;
    padding: 0.82rem;
}

.product-body h3,
.product-body p {
    margin: 0;
}

.product-body h3 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.96rem;
    line-height: 1.22;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-body p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.82rem;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.product-body p,
.list-card span,
.empty {
    color: var(--muted);
}

.product-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
}

.product-foot strong {
    font-size: 0.98rem;
    white-space: nowrap;
}

.product-foot .btn.small {
    min-height: 34px;
    padding: 0.42rem 0.72rem;
    font-size: 0.84rem;
}

.product-foot .btn.small:not(.disabled):not(:disabled) {
    background: var(--action-gradient);
    color: white;
    box-shadow: 0 12px 28px rgba(34, 211, 238, 0.18);
}

.favorite-button {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    z-index: 2;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 999px;
    background: rgba(7, 7, 16, 0.72);
    color: #cbd5e1;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.favorite-button svg {
    width: 1.05rem;
    height: 1.05rem;
}

.favorite-button:hover {
    transform: translateY(-1px) scale(1.03);
    border-color: rgba(34, 211, 238, 0.52);
    background: rgba(25, 25, 51, 0.9);
    color: white;
}

.favorite-button.is-favorite {
    --favorite-fill: currentColor;
    border-color: rgba(236, 72, 153, 0.55);
    background: rgba(236, 72, 153, 0.18);
    color: #f472b6;
}

.favorite-button:disabled {
    opacity: 0.72;
    cursor: wait;
}

.favorites-empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid rgba(139, 92, 246, 0.22);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(18, 18, 37, 0.96), rgba(10, 10, 24, 0.96));
}

.favorites-empty h2,
.favorites-empty p {
    margin: 0.25rem 0 0;
}

.product-foot .inline-form {
    margin-left: auto;
}

.product-limit-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(100%, calc((320px * 4) + (1.05rem * 3)));
    margin: 1rem auto 5rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    background: rgba(18, 18, 37, 0.92);
}

.product-limit-bar label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--muted);
    font-weight: 850;
}

.product-limit-bar select {
    min-width: 90px;
    min-height: 40px;
    padding: 0 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.product-limit-bar strong {
    color: #67e8f9;
}

.pill,
.badge {
    display: inline-flex;
    width: fit-content;
    min-height: 25px;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(34, 211, 238, 0.22);
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(139, 92, 246, 0.2));
    color: #a5f3fc;
    font-size: 0.78rem;
    font-weight: 900;
}

.list-grid {
    display: grid;
    gap: 0.8rem;
}

.list-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
}

.list-card strong {
    display: block;
}

.empty,
.flash {
    padding: 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.access-note {
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(17, 24, 32, 0.9);
}

.access-note h2 {
    margin: 0.4rem 0 0.6rem;
}

.access-note p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.flash.success {
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #86efac;
}

.flash.error {
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.footer {
    padding: 2rem 1rem;
    color: var(--muted);
    text-align: center;
}

.narrow {
    max-width: 850px;
}

.inline-form {
    margin: 0;
}

.auth-landing {
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 0%, color-mix(in srgb, var(--primary) 20%, transparent), transparent 28rem),
        radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--blue) 20%, transparent), transparent 28rem),
        var(--bg);
}

.auth-landing-shell {
    width: min(1080px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.25rem 0 2rem;
}

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

.auth-logo {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 0.8rem;
    align-items: center;
    min-width: 0;
}

.auth-logo img,
.auth-logo .brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.auth-logo strong,
.auth-logo small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-logo strong {
    font-size: 1.08rem;
}

.auth-logo small {
    color: var(--muted);
    font-weight: 800;
}

.auth-cover-card {
    position: relative;
    min-height: clamp(270px, 34vw, 390px);
    overflow: hidden;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--soft-shadow);
}

.auth-cover-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-cover-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.34) 58%, rgba(2, 6, 23, 0.12)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.5), transparent 56%);
}

.auth-cover-content {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: inherit;
    align-content: center;
    max-width: 610px;
    padding: clamp(1.35rem, 3vw, 2.4rem);
}

.auth-cover-content h1 {
    margin: 0.45rem 0 0.75rem;
    font-size: clamp(2.15rem, 4.7vw, 4rem);
    line-height: 1.02;
}

.auth-cover-content p {
    max-width: 620px;
    margin: 0;
    color: #dbeafe;
    font-size: 1.04rem;
    font-weight: 700;
    line-height: 1.7;
}

.auth-access-card {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-areas:
        "copy tabs"
        "copy forms";
    grid-template-columns: minmax(280px, 0.64fr) minmax(360px, 1fr);
    gap: 0.9rem 1.25rem;
    margin: 1rem auto 0;
    padding: clamp(1rem, 2.4vw, 1.4rem);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: var(--glass);
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(18px);
}

.auth-access-copy {
    grid-area: copy;
    align-self: start;
    padding: 0.4rem 0.7rem 0.4rem 0;
}

.auth-access-copy h2 {
    margin: 0.35rem 0 0.65rem;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.auth-access-copy p {
    margin: 0;
    color: var(--muted);
    font-weight: 750;
    line-height: 1.65;
}

.auth-tabs {
    grid-area: tabs;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-self: start;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: color-mix(in srgb, var(--panel) 84%, var(--text) 5%);
}

.auth-tabs button {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-weight: 950;
    cursor: pointer;
}

.auth-tabs button.active {
    background: linear-gradient(135deg, var(--primary), var(--blue));
    color: white;
}

.auth-forms {
    grid-area: forms;
}

.forgot-password-box {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.forgot-toggle,
.auth-secondary-link {
    display: inline-flex;
    width: fit-content;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0 0.75rem;
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 8px;
    background: rgba(34, 211, 238, 0.08);
    color: #a5f3fc;
    font-weight: 900;
    cursor: pointer;
}

.forgot-password-form {
    padding: 0.8rem;
    border: 1px solid rgba(139, 92, 246, 0.22);
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.08);
}

.forgot-password-form[hidden] {
    display: none;
}

.reset-shell {
    max-width: 920px;
}

.reset-card {
    grid-template-areas: "copy forms";
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: grid;
}

.auth-form label {
    display: grid;
    gap: 0.4rem;
}

.auth-form label span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 950;
    text-transform: uppercase;
}

.auth-two-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.auth-premium-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 10%, rgba(139, 92, 246, 0.32), transparent 30%),
        radial-gradient(circle at 84% 18%, rgba(34, 211, 238, 0.22), transparent 31%),
        radial-gradient(circle at 52% 96%, rgba(236, 72, 153, 0.18), transparent 34%),
        linear-gradient(180deg, #070716 0%, #050511 100%);
    overflow-x: hidden;
}

.auth-premium-body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(circle at center, black, transparent 72%);
    pointer-events: none;
}

.auth-premium-body::after {
    content: "";
    position: fixed;
    right: -190px;
    bottom: -150px;
    z-index: -1;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: rgba(34, 211, 238, 0.14);
    filter: blur(28px);
    pointer-events: none;
    animation: authpGlowMove 13s ease-in-out infinite alternate;
}

@keyframes authpGlowMove {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-32px, -38px, 0) scale(1.08); }
}

.authp-page {
    display: grid;
    width: min(1180px, calc(100% - 32px));
    min-height: 100vh;
    place-items: center;
    margin: 0 auto;
    padding: 38px 0;
}

.authp-shell {
    position: relative;
    isolation: isolate;
    display: grid;
    width: 100%;
    min-height: 720px;
    grid-template-columns: 0.88fr 1.12fr;
    overflow: hidden;
    border: 1px solid rgba(153, 132, 255, 0.22);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(18, 18, 39, 0.82), rgba(8, 8, 20, 0.94)),
        rgba(255, 255, 255, 0.03);
    box-shadow: 0 34px 110px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
}

.authp-shell::before {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: -1;
    border-radius: 7px;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.12), transparent 25%, rgba(34, 211, 238, 0.11) 58%, transparent),
        radial-gradient(circle at 42% 0%, rgba(139, 92, 246, 0.16), transparent 30%);
    pointer-events: none;
}

.authp-brand-side {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    overflow: hidden;
    padding: clamp(2rem, 4vw, 3.4rem);
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    background:
        linear-gradient(145deg, rgba(6, 6, 18, 0.88), rgba(26, 21, 58, 0.6)),
        radial-gradient(circle at 24% 23%, rgba(139, 92, 246, 0.36), transparent 34%);
}

.authp-brand-side::before,
.authp-brand-side::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.authp-brand-side::before {
    top: 80px;
    right: -170px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.24), transparent 65%);
    filter: blur(6px);
}

.authp-brand-side::after {
    right: -190px;
    bottom: -120px;
    width: 410px;
    height: 410px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent),
        radial-gradient(circle, rgba(236, 72, 153, 0.18), transparent 62%);
}

.authp-brand-content,
.authp-feature-grid {
    position: relative;
    z-index: 1;
}

.authp-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    color: white;
    text-decoration: none;
    font-weight: 950;
}

.authp-logo img,
.authp-logo .brand-mark {
    width: 46px;
    height: 46px;
}

.authp-badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(251, 191, 36, 0.32);
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.09);
    color: #fbbf24;
    font-size: 0.7rem;
    font-weight: 950;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.authp-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fbbf24;
    box-shadow: 0 0 18px #fbbf24;
}

.authp-brand-content h1 {
    max-width: 450px;
    margin: 1.5rem 0 0;
    font-size: clamp(2.7rem, 5vw, 4.25rem);
    line-height: 0.94;
    font-weight: 1000;
}

.authp-brand-content h1 span {
    display: block;
    background: linear-gradient(90deg, #fff 0%, #c7f6ff 47%, #dccbff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.authp-brand-content p {
    max-width: 405px;
    margin: 1.5rem 0 0;
    color: #aaa6bc;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.78;
}

.authp-status-card {
    width: min(360px, 100%);
    margin-top: 2.1rem;
    padding: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
}

.authp-status-card > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
    color: #aaa6bc;
    font-size: 0.8rem;
    font-weight: 850;
}

.authp-status-card span {
    padding: 0.45rem 0.65rem;
    border: 1px solid rgba(52, 211, 153, 0.22);
    border-radius: 999px;
    background: rgba(52, 211, 153, 0.1);
    color: #b9ffe3;
    font-size: 0.72rem;
    font-weight: 950;
}

.authp-status-line {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.authp-status-line span {
    display: block;
    width: 78%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #8b5cf6, #22d3ee);
    box-shadow: 0 0 28px rgba(34, 211, 238, 0.36);
}

.authp-feature-grid {
    display: grid;
    gap: 0.8rem;
}

.authp-feature-grid span {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
    color: #e5e2f0;
    font-size: 0.88rem;
    font-weight: 820;
}

.authp-feature-grid strong {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.28), rgba(34, 211, 238, 0.14));
    color: #a5f3fc;
}

.authp-form-side {
    display: grid;
    place-items: center;
    padding: clamp(1.3rem, 4vw, 2.9rem);
}

.authp-card {
    width: 100%;
    max-width: 650px;
    min-height: 660px;
    padding: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.028));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 20px 70px rgba(0, 0, 0, 0.22);
}

.authp-tabs {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1.1rem;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
}

.authp-tab-indicator {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 0;
    width: calc(50% - 0.75rem);
    height: calc(100% - 1rem);
    border-radius: 8px;
    background: linear-gradient(92deg, #7c5cff, #32d5f2);
    box-shadow: 0 14px 36px rgba(34, 211, 238, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.32);
    transition: transform 0.34s cubic-bezier(.2, .8, .2, 1);
}

.authp-tabs[data-active="register"] .authp-tab-indicator {
    transform: translateX(calc(100% + 1rem));
}

.authp-tabs button {
    position: relative;
    z-index: 1;
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.56);
    font: inherit;
    font-weight: 950;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.authp-tabs button:hover,
.authp-tabs button.active {
    color: #fff;
}

.authp-tabs button:hover {
    transform: translateY(-1px);
}

.authp-stage {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    border-radius: 8px;
}

.authp-form {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px) scale(0.985);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.authp-form.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.authp-form-head {
    margin-bottom: 1.1rem;
}

.authp-form-head span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
    color: #22d3ee;
    font-size: 0.7rem;
    font-weight: 950;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.authp-form-head span::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 15px #22d3ee;
}

.authp-form-head h2 {
    margin: 0;
    font-size: clamp(1.9rem, 4vw, 2.5rem);
    line-height: 1.03;
    font-weight: 1000;
}

.authp-form-head p {
    max-width: 520px;
    margin: 0.55rem 0 0;
    color: #aaa6bc;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.55;
}

.authp-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.authp-field {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
}

.authp-field > span:first-child {
    color: #c2bdce;
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.authp-control {
    position: relative;
    display: block;
}

.authp-control input,
.authp-control textarea {
    width: 100%;
    min-height: 49px;
    padding: 0 3rem 0 0.95rem;
    border: 1px solid rgba(153, 132, 255, 0.25);
    border-radius: 8px;
    outline: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
        rgba(5, 5, 17, 0.54);
    color: #fbfbff;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.authp-control input::placeholder {
    color: rgba(194, 189, 206, 0.47);
}

.authp-control input:focus {
    border-color: rgba(98, 225, 255, 0.48);
    background: rgba(10, 10, 25, 0.84);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.08), 0 16px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.authp-control i {
    position: absolute;
    top: 50%;
    right: 0.95rem;
    color: rgba(255, 255, 255, 0.4);
    font-style: normal;
    font-weight: 950;
    transform: translateY(-50%);
    pointer-events: none;
}

.authp-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.45rem;
    width: 42px;
    height: 35px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.58);
    font: inherit;
    font-size: 0.74rem;
    font-weight: 950;
    cursor: pointer;
    transform: translateY(-50%);
}

.authp-password-toggle:hover {
    background: rgba(255, 255, 255, 0.075);
    color: #fff;
}

.authp-helper-row {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 1rem;
}

.authp-link-button {
    width: fit-content;
    min-height: 36px;
    padding: 0 0.8rem;
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 8px;
    background: rgba(34, 211, 238, 0.08);
    color: #a5f3fc;
    font: inherit;
    font-weight: 950;
    cursor: pointer;
}

.authp-link-button:hover {
    color: #fff;
}

.authp-forgot-panel {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.85rem;
    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: 8px;
    background: rgba(34, 211, 238, 0.08);
    animation: authpPanelIn 0.22s ease both;
}

.authp-forgot-panel[hidden] {
    display: none;
}

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

.authp-submit,
.authp-secondary-submit {
    position: relative;
    width: 100%;
    min-height: 54px;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(92deg, #8b5cf6, #ec4899);
    color: #fff;
    font: inherit;
    font-weight: 1000;
    cursor: pointer;
    box-shadow: 0 18px 48px rgba(236, 72, 153, 0.18), 0 14px 42px rgba(139, 92, 246, 0.22);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.authp-submit::before,
.authp-secondary-submit::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
    transform: translateX(-120%);
    transition: transform 0.72s ease;
}

.authp-submit:hover,
.authp-secondary-submit:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
}

.authp-submit:hover::before,
.authp-secondary-submit:hover::before {
    transform: translateX(120%);
}

.authp-secondary-submit {
    min-height: 44px;
}

.authp-strength {
    display: grid;
    height: 5px;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
    margin: -0.2rem 0 0.7rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.authp-strength.active {
    opacity: 1;
}

.authp-strength span {
    height: 5px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.08);
}

.authp-strength span.on {
    background: linear-gradient(90deg, #8b5cf6, #22d3ee);
    box-shadow: 0 0 16px rgba(34, 211, 238, 0.24);
}

.authp-policy {
    margin: 0 0 0.8rem;
    color: #aaa6bc;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.5;
}

.index-auth-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 5% 0%, rgba(139, 92, 246, 0.24), transparent 28rem),
        radial-gradient(circle at 92% 5%, rgba(34, 211, 238, 0.2), transparent 30rem),
        linear-gradient(180deg, #070710 0%, #05050d 100%);
}

.index-auth-shell {
    width: min(1440px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.55rem 0 2.4rem;
}

.index-auth-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 64px;
    margin-bottom: 1.15rem;
    padding: 0 0.8rem;
    border: 1px solid rgba(139, 92, 246, 0.18);
    border-radius: 8px;
    background: rgba(18, 18, 37, 0.5);
    backdrop-filter: blur(16px);
}

.index-auth-logo {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.index-auth-logo img,
.index-auth-logo .brand-mark {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
}

.index-auth-logo strong,
.index-auth-logo small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.index-auth-logo strong {
    color: white;
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    font-weight: 1000;
}

.index-auth-logo small {
    color: #c8c4d8;
    font-size: 1rem;
    font-weight: 900;
}

.index-auth-nav {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.index-auth-nav a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 0.9rem;
    border: 1px solid rgba(139, 92, 246, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
    color: #ded8ff;
    font-size: 0.9rem;
    font-weight: 950;
}

.index-auth-nav a:hover {
    border-color: rgba(34, 211, 238, 0.42);
    background: rgba(34, 211, 238, 0.09);
    color: #fff;
}

.index-theme-toggle {
    flex: 0 0 auto;
    border-color: rgba(139, 92, 246, 0.45);
    background: rgba(18, 18, 37, 0.88);
    box-shadow: 0 14px 36px rgba(139, 92, 246, 0.2);
}

.index-hero-card {
    position: relative;
    min-height: clamp(360px, 33vw, 520px);
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.36);
    border-radius: 8px;
    background: #070710;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
}

.index-hero-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.86;
}

.index-hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 7, 16, 0.94), rgba(7, 7, 16, 0.58) 45%, rgba(7, 7, 16, 0.12)),
        linear-gradient(0deg, rgba(7, 7, 16, 0.52), transparent 54%);
}

.index-hero-copy {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: inherit;
    align-content: center;
    max-width: 800px;
    padding: clamp(1.65rem, 4vw, 3.1rem);
}

.index-hero-copy h1 {
    margin: 0.8rem 0 1.2rem;
    color: white;
    font-size: clamp(3.1rem, 6vw, 5.4rem);
    font-weight: 1000;
    line-height: 1.04;
}

.index-hero-copy p {
    max-width: 690px;
    margin: 0;
    color: #d8e4ff;
    font-size: clamp(1.05rem, 1.5vw, 1.35rem);
    font-weight: 850;
    line-height: 1.65;
}

.index-access-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1fr);
    gap: clamp(1.15rem, 3vw, 2.4rem);
    margin-top: 1.25rem;
    padding: clamp(1.15rem, 2.5vw, 1.8rem);
    border: 1px solid rgba(139, 92, 246, 0.36);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(18, 18, 37, 0.95), rgba(10, 10, 25, 0.98)),
        var(--bg-card);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.36);
}

.index-access-copy {
    align-self: start;
    padding: 0.55rem 0;
}

.index-access-copy h2 {
    margin: 0.8rem 0 0.9rem;
    color: white;
    font-size: clamp(2.1rem, 3.5vw, 3rem);
    font-weight: 1000;
    line-height: 1.08;
}

.index-access-copy p {
    max-width: 430px;
    margin: 0;
    color: #b9b4c8;
    font-size: 1.05rem;
    font-weight: 850;
    line-height: 1.75;
}

.index-form-panel {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.index-showcase-card {
    margin-top: 1.25rem;
    padding: clamp(1rem, 2vw, 1.4rem);
    border: 1px solid rgba(139, 92, 246, 0.36);
    border-radius: 8px;
    background:
        radial-gradient(circle at 82% 6%, rgba(236, 72, 153, 0.12), transparent 24rem),
        linear-gradient(145deg, rgba(18, 18, 37, 0.95), rgba(9, 9, 22, 0.98));
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.3);
}

.index-showcase-card .section-head p {
    margin: 0.35rem 0 0;
    color: #b9b4c8;
    font-weight: 760;
}

.public-showcase-grid {
    margin-top: 1rem;
}

.public-showcase-product .product-foot .btn.small {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: white;
}

.publicidad-modal {
    position: fixed;
    inset: 0;
    z-index: 250;
    display: grid;
    place-items: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.publicidad-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.publicidad-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(9px);
}

.publicidad-modal-card {
    position: relative;
    display: grid;
    width: min(560px, 100%);
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.34);
    border-radius: 8px;
    background:
        radial-gradient(circle at 82% 0%, rgba(34, 211, 238, 0.22), transparent 13rem),
        linear-gradient(160deg, rgba(18, 18, 37, 0.98), rgba(7, 7, 16, 0.99));
    color: var(--text);
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(236, 72, 153, 0.08);
    transform: translateY(10px) scale(0.98);
    transition: transform 180ms ease;
}

.publicidad-modal.is-open .publicidad-modal-card {
    transform: translateY(0) scale(1);
}

.publicidad-modal-card.promo {
    border-color: rgba(236, 72, 153, 0.48);
}

.publicidad-modal-card.success {
    border-color: rgba(34, 197, 94, 0.42);
}

.publicidad-modal-card.warning {
    border-color: rgba(245, 158, 11, 0.48);
}

.publicidad-modal-card > img {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    background: #05050d;
}

.publicidad-content {
    display: grid;
    gap: 0.75rem;
    padding: clamp(1rem, 2.5vw, 1.35rem);
}

.publicidad-content span {
    width: fit-content;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 1000;
    text-transform: uppercase;
}

.publicidad-content h2,
.publicidad-content p {
    margin: 0;
}

.publicidad-content h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    line-height: 1.08;
}

.publicidad-content p {
    color: #d5d1e4;
    font-size: 1rem;
    font-weight: 760;
    line-height: 1.6;
}

.publicidad-action,
.publicidad-close {
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 950;
}

.publicidad-action {
    min-height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 14px 40px rgba(139, 92, 246, 0.22);
}

.publicidad-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(7, 7, 16, 0.72);
    color: white;
}

.index-tabs {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0.5rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
}

.index-tab-indicator {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    width: calc(50% - 0.75rem);
    height: calc(100% - 1rem);
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 14px 32px rgba(139, 92, 246, 0.28);
    transition: transform 0.22s ease;
}

.index-tabs[data-active="register"] .index-tab-indicator {
    transform: translateX(calc(100% + 0.5rem));
}

.index-tabs button {
    position: relative;
    z-index: 1;
    min-height: 56px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #aaa6bc;
    font-size: 1rem;
    font-weight: 1000;
    cursor: pointer;
    transition: color 0.18s ease;
}

.index-tabs button.active,
.index-tabs button:hover {
    color: white;
}

.index-auth-forms {
    min-width: 0;
}

.index-auth-form {
    display: none;
    gap: 0.85rem;
}

.index-auth-form.active {
    display: grid;
}

.index-form-head {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 0.1rem;
}

.index-form-head span,
.index-field > span:first-child {
    color: #aaa6bc;
    font-size: 0.78rem;
    font-weight: 1000;
    text-transform: uppercase;
}

.index-form-head h3 {
    margin: 0;
    color: white;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    line-height: 1.08;
}

.index-form-head p {
    max-width: 700px;
    margin: 0;
    color: #b9b4c8;
    font-weight: 760;
    line-height: 1.55;
}

.index-form-grid,
.index-phone-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.index-phone-grid {
    grid-template-columns: minmax(190px, 0.34fr) minmax(0, 1fr);
}

.index-field {
    display: grid;
    gap: 0.42rem;
    min-width: 0;
}

.index-field input,
.index-field select {
    width: 100%;
    min-height: 58px;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 8px;
    outline: none;
    background: rgba(11, 11, 28, 0.96);
    color: white;
    font-weight: 760;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.index-field select {
    color-scheme: dark;
}

.index-field input::placeholder {
    color: #8f8aa0;
}

.index-field input:focus,
.index-field select:focus {
    border-color: rgba(34, 211, 238, 0.78);
    background: rgba(18, 18, 37, 0.98);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.18);
}

.index-password-field {
    position: relative;
    display: block;
}

.index-password-field input {
    padding-right: 4.8rem;
}

.index-password-field button {
    position: absolute;
    top: 50%;
    right: 0.55rem;
    transform: translateY(-50%);
    min-height: 38px;
    padding: 0 0.75rem;
    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: 8px;
    background: rgba(34, 211, 238, 0.08);
    color: #a5f3fc;
    font-size: 0.82rem;
    font-weight: 1000;
    cursor: pointer;
}

.index-forgot-button {
    width: fit-content;
    min-height: 40px;
    padding: 0 0.85rem;
    border: 1px solid rgba(34, 211, 238, 0.35);
    border-radius: 8px;
    background: rgba(34, 211, 238, 0.1);
    color: #a5f3fc;
    font-size: 0.92rem;
    font-weight: 1000;
    cursor: pointer;
}

.index-forgot-panel {
    display: grid;
    gap: 0.75rem;
    padding: 0.85rem;
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.08);
}

.index-forgot-panel[hidden] {
    display: none;
}

.index-submit,
.index-secondary-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 0.9rem 1.15rem;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 1rem;
    font-weight: 1000;
    cursor: pointer;
    box-shadow: 0 18px 42px rgba(236, 72, 153, 0.24);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.index-submit:hover,
.index-secondary-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 22px 54px rgba(139, 92, 246, 0.3);
}

.index-secondary-submit {
    min-height: 46px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: white;
}

@media (max-width: 980px) {
    .hero,
    .auth-grid,
    .filters,
    .auth-access-card,
    .auth-two-fields,
    .index-access-card {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 320px));
    }

    .auth-access-card {
        width: 100%;
        margin-top: 1rem;
        grid-template-areas:
            "copy"
            "tabs"
            "forms";
    }

    .auth-access-copy {
        padding-right: 0;
    }

    .authp-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .authp-brand-side {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .authp-feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .authp-status-card {
        display: none;
    }

    .index-auth-shell {
        width: min(100% - 1.25rem, 760px);
    }

    .index-auth-top {
        height: auto;
        align-items: stretch;
        flex-direction: column;
        padding: 0.75rem;
    }

    .index-auth-nav {
        flex-wrap: wrap;
    }

    .index-auth-nav a {
        flex: 1 1 110px;
    }

    .index-hero-card {
        min-height: 390px;
    }

    .index-hero-card::after {
        background:
            linear-gradient(90deg, rgba(7, 7, 16, 0.92), rgba(7, 7, 16, 0.55)),
            linear-gradient(0deg, rgba(7, 7, 16, 0.56), transparent 56%);
    }
}

@media (max-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
        justify-content: stretch;
        width: 100%;
    }

    .square-product-card {
        max-width: none;
        min-height: 236px;
    }

    .product-image {
        flex-basis: 92px;
    }

    .product-image.has-product-image::before {
        inset: 0.38rem;
    }

    .product-body {
        gap: 0.34rem;
        padding: 0.58rem;
    }

    .product-body h3 {
        font-size: 0.8rem;
    }

    .product-body p {
        display: none;
    }

    .combo-includes,
    .stock-line,
    .pill {
        font-size: 0.68rem;
    }

    .stock-line,
    .pill {
        min-height: 21px;
        padding-inline: 0.4rem;
    }

    .product-foot {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 0.38rem;
    }

    .product-foot strong {
        overflow: hidden;
        font-size: 0.82rem;
        text-overflow: ellipsis;
    }

    .product-foot .btn.small {
        width: 100%;
        min-height: 30px;
        padding: 0.34rem 0.4rem;
        font-size: 0.74rem;
    }

    .favorite-button {
        top: 0.42rem;
        right: 0.42rem;
        width: 30px;
        height: 30px;
    }

    .filters button {
        width: 100%;
    }

    .product-limit-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .product-limit-bar label {
        justify-content: space-between;
    }

    .favorites-empty {
        align-items: stretch;
        flex-direction: column;
    }

    .auth-landing-shell {
        width: min(100% - 1rem, 540px);
        padding-top: 0.75rem;
    }

    .auth-logo {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .auth-logo img,
    .auth-logo .brand-mark {
        width: 42px;
        height: 42px;
    }

    .auth-logo strong {
        font-size: 0.98rem;
    }

    .auth-cover-card {
        min-height: 310px;
    }

    .auth-cover-content h1 {
        font-size: clamp(2rem, 11vw, 3rem);
        line-height: 1.03;
    }

    .auth-cover-content p {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .auth-access-card {
        padding: 0.8rem;
    }

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

    .auth-tabs button {
        min-height: 40px;
        font-size: 0.9rem;
    }

    .auth-landing-top {
        align-items: center;
    }

    .authp-page {
        width: min(100% - 18px, 1180px);
        padding: 18px 0;
    }

    .authp-brand-side,
    .authp-form-side {
        padding: 1.35rem;
    }

    .authp-card {
        min-height: 720px;
        padding: 0.75rem;
    }

    .authp-stage {
        min-height: 640px;
    }

    .authp-brand-content h1 {
        font-size: 2.5rem;
    }

    .authp-feature-grid,
    .authp-grid-2 {
        grid-template-columns: 1fr;
    }

    .authp-tabs button {
        min-height: 44px;
        font-size: 0.88rem;
    }

    .index-auth-shell {
        width: min(100% - 0.8rem, 540px);
        padding-top: 0.75rem;
    }

    .index-auth-top {
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .index-auth-logo {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 0.65rem;
    }

    .index-auth-logo img,
    .index-auth-logo .brand-mark {
        width: 46px;
        height: 46px;
    }

    .index-auth-logo strong {
        font-size: 1rem;
    }

    .index-auth-logo small {
        font-size: 0.78rem;
    }

    .index-hero-card {
        min-height: 325px;
    }

    .index-hero-copy {
        padding: 1rem;
    }

    .index-hero-copy h1 {
        font-size: clamp(2.35rem, 11vw, 3.25rem);
        line-height: 1.04;
    }

    .index-hero-copy p {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .index-access-card {
        gap: 1rem;
        padding: 0.9rem;
    }

    .index-access-copy {
        padding: 0;
    }

    .index-access-copy h2 {
        font-size: 1.9rem;
    }

    .index-access-copy p {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .index-form-grid,
    .index-phone-grid {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .index-tabs button {
        min-height: 48px;
        font-size: 0.9rem;
    }

    .index-field input,
    .index-field select,
    .index-submit {
        min-height: 52px;
    }
}

@media (max-width: 430px) {
    .auth-cover-card {
        min-height: 285px;
    }

    .auth-cover-content {
        padding: 1rem;
    }

    .auth-cover-content h1 {
        font-size: 2rem;
    }

    .auth-access-copy {
        padding: 0;
    }

    .index-auth-shell {
        width: calc(100% - 0.6rem);
    }

    .index-hero-card {
        min-height: 300px;
    }

    .index-hero-copy h1 {
        font-size: 2.25rem;
    }

    .index-form-head h3 {
        font-size: 1.35rem;
    }
}

@media (min-width: 420px) and (max-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .square-product-card {
        min-height: 220px;
    }

    .product-image {
        flex-basis: 78px;
    }

    .product-body {
        padding: 0.5rem;
    }
}

@media (max-width: 720px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }
}
