:root {
    --bg: #090c14;
    --panel: rgba(13, 20, 38, 0.72);
    --soft: rgba(255, 255, 255, 0.08);
    --text: #f6f1ea;
    --muted: #c0c4d6;
    --accent: #f3b36b;
    --accent-2: #8fe0d0;
    --danger: #f17b7b;
    --success: #87d7a2;
    --border: rgba(255, 255, 255, 0.12);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(243, 179, 107, 0.14), transparent 28%),
        radial-gradient(circle at 90% 10%, rgba(143, 224, 208, 0.18), transparent 22%),
        linear-gradient(135deg, #080b13 0%, #131a2f 55%, #0a0e17 100%);
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, textarea, select, button {
    width: 100%;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    padding: 0.95rem 1rem;
    border-radius: 16px;
    font: inherit;
}
input::placeholder,
textarea::placeholder {
    color: rgba(192, 196, 214, 0.82);
}
select,
option {
    color: #f6f1ea;
    background: #11182a;
}
button { cursor: pointer; }

.site-header, .site-footer, .section, .page-hero, .hero, .admin-main {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 0;
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(9, 12, 20, 0.32);
}

.brand {
    display: inline-flex;
    gap: 14px;
    align-items: center;
}
.brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(243, 179, 107, 0.92), rgba(143, 224, 208, 0.84));
    color: #10131a;
    font-weight: 700;
    box-shadow: var(--shadow);
}
.brand small { display: block; color: var(--muted); margin-top: 4px; }

.site-nav, .admin-nav {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.site-nav a, .admin-nav a {
    padding: 10px 16px;
    border: 1px solid transparent;
    transition: 200ms ease;
}
.site-nav a:hover, .admin-nav a:hover, .pill-link {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
}

.hero, .product-page, .contact-grid, .checkout-grid, .admin-section.split {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero {
    padding: 56px 0 32px;
    align-items: center;
    min-height: 78vh;
}
.hero h1, .page-hero h1, .product-detail h1 {
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 0.95;
    margin: 0 0 18px;
}
.hero p, .page-hero p, .lead {
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.8;
}
.eyebrow {
    display: inline-block;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--accent-2);
    margin-bottom: 16px;
}

.hero-actions, .hero-stats, .price-row, .checkout-bar, .summary-row, .form-split {
    display: flex;
    gap: 14px;
    align-items: center;
}
.hero-stats { margin-top: 26px; flex-wrap: wrap; }
.hero-stats article, .info-panel, .glass-card, .metric-card, .table-card, .product-card {
    background: var(--panel);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
}
.hero-stats article, .metric-card {
    padding: 18px;
    border-radius: 24px;
    min-width: 180px;
}
.hero-stats span, .metric-card span { display: block; color: var(--muted); margin-top: 8px; }

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 22px;
    border-radius: 999px;
    border: 1px solid var(--border);
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent), #ffd7a0);
    color: #11131a;
    font-weight: 700;
}
.btn-ghost { background: rgba(255, 255, 255, 0.04); }
.btn-small { padding: 10px 16px; width: auto; }

.hero-visual {
    position: relative;
    min-height: 520px;
    perspective: 1200px;
}
.floating-card, .glass-sphere, .planet-ring {
    position: absolute;
    animation: floaty 8s ease-in-out infinite;
}
.floating-card {
    top: 8%;
    right: 8%;
    width: 290px;
    padding: 28px;
    border-radius: 28px;
    transform: rotateY(-18deg) rotateX(8deg);
}
.planet-ring {
    inset: 15% 16%;
    border-radius: 50%;
    border: 1px solid rgba(243, 179, 107, 0.42);
    box-shadow: inset 0 0 40px rgba(143, 224, 208, 0.2);
}
.glass-sphere {
    inset: auto auto 8% 12%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.45), rgba(143, 224, 208, 0.22), rgba(243, 179, 107, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.section, .page-hero { padding: 36px 0; }
.compact { padding-top: 54px; }
.section-heading { max-width: 760px; margin-bottom: 24px; }
.section-heading h2 { font-size: clamp(2rem, 4vw, 3.3rem); margin: 0; }

.product-grid, .panel-grid, .metric-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card, .info-panel, .glass-card, .table-card, .metric-card {
    border-radius: 30px;
    overflow: hidden;
}
.product-card img { height: 260px; width: 100%; object-fit: cover; }
.product-media img { width: 100%; border-radius: 30px; object-fit: cover; }
.product-content, .info-panel, .glass-card, .table-card, .metric-card {
    padding: 24px;
}
.tag {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(143, 224, 208, 0.12);
    border: 1px solid rgba(143, 224, 208, 0.22);
    color: var(--accent-2);
    margin-bottom: 14px;
}
.price-row { justify-content: space-between; }
.price-row small { color: var(--muted); text-decoration: line-through; }
.large strong { font-size: 2rem; }

.filter-bar, .contact-form, .mini-form {
    display: grid;
    gap: 14px;
}
.inline-form { display: flex; gap: 12px; align-items: center; margin: 22px 0; }
.inline-form input { width: 110px; }
.seo-chip-box { display: flex; gap: 10px; flex-wrap: wrap; }
.social-proof {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 14px 0 16px;
}
.social-proof span {
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
    font-size: 0.92rem;
}
.social-proof.big span {
    font-size: 1rem;
    padding: 10px 14px;
}
.seo-chip-box span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    color: var(--muted);
}

table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    text-align: left;
    padding: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: top;
}
.checkout-bar, .summary-row { justify-content: space-between; padding-top: 18px; }
.payment-panel { margin-top: 22px; color: var(--muted); line-height: 1.8; }
.hint { color: var(--muted); }
.check-line { display: flex; gap: 12px; align-items: center; }
.check-line input { width: auto; }

.flash {
    width: min(1180px, calc(100% - 32px));
    margin: 12px auto 0;
    padding: 14px 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
}
.flash.success { background: rgba(135, 215, 162, 0.15); border-color: rgba(135, 215, 162, 0.35); }
.flash.error { background: rgba(241, 123, 123, 0.12); border-color: rgba(241, 123, 123, 0.35); }

.assistant-shell {
    position: fixed;
    right: 18px;
    bottom: 92px;
    z-index: 40;
    width: 78px;
}
.assistant-toggle {
    width: 78px;
    height: 78px;
    margin-left: auto;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.5), transparent 35%),
        linear-gradient(135deg, var(--accent), #ffd7a0);
    color: #12151b;
    font-weight: 700;
    box-shadow: var(--shadow);
    animation: floatBubble 3.8s ease-in-out infinite;
    position: relative;
}
.assistant-toggle::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    opacity: 0.7;
}
.assistant-toggle-text {
    width: 54px;
    text-align: center;
    font-size: 0.78rem;
    line-height: 1.15;
}
.assistant-panel {
    margin-top: 12px;
    margin-left: auto;
    background: rgba(10, 16, 28, 0.94);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 16px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    width: min(360px, calc(100vw - 24px));
}
.assistant-head,
.assistant-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.assistant-messages {
    max-height: 260px;
    overflow: auto;
    display: grid;
    gap: 10px;
    margin: 14px 0;
}
.assistant-bubble {
    padding: 12px 14px;
    border-radius: 18px;
    line-height: 1.5;
}
.assistant-bubble-bot {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}
.assistant-bubble-user {
    background: rgba(143, 224, 208, 0.14);
    color: var(--text);
    justify-self: end;
}
.assistant-chip {
    width: auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
}
.assistant-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}
.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 40;
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), transparent 32%),
        linear-gradient(135deg, #24d366, #159c57);
    color: #fff;
    box-shadow: var(--shadow);
    animation: floatBubble 4.2s ease-in-out infinite;
}
.whatsapp-float-text {
    width: 54px;
    text-align: center;
    font-size: 0.82rem;
    line-height: 1.15;
    font-weight: 700;
}

.site-footer {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 42px 0 70px;
    color: var(--muted);
}

.login-body, .admin-body { background: linear-gradient(135deg, #081018, #11182a 60%, #070a12); }
.login-card {
    width: min(520px, calc(100% - 32px));
    margin: 10vh auto;
    padding: 32px;
    border-radius: 34px;
}
.admin-body {
    display: grid;
    grid-template-columns: 280px 1fr;
}
.admin-sidebar {
    min-height: 100vh;
    border-right: 1px solid var(--border);
    padding: 28px;
    background: rgba(8, 12, 20, 0.94);
    position: sticky;
    top: 0;
}
.admin-brand { margin-bottom: 26px; }
.admin-nav { flex-direction: column; }
.admin-main { padding: 28px 0 60px; }
.admin-header h1 { font-size: 2.7rem; margin-bottom: 8px; }
.admin-section, .metric-grid, .admin-header { margin-bottom: 24px; }
.split.wide-left { grid-template-columns: 1.1fr 1fr; }

.bg-orb {
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(90px);
    z-index: -1;
}
.orb-a { top: -140px; left: -120px; background: rgba(243, 179, 107, 0.16); }
.orb-b { right: -120px; bottom: -160px; background: rgba(143, 224, 208, 0.12); }

@keyframes floaty {
    0%, 100% { transform: translateY(0) rotateY(-18deg) rotateX(8deg); }
    50% { transform: translateY(-18px) rotateY(-10deg) rotateX(2deg); }
}

@keyframes floatBubble {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.03); }
}

@media (max-width: 980px) {
    .hero, .product-page, .contact-grid, .checkout-grid, .admin-section.split, .site-footer, .product-grid, .panel-grid, .metric-grid, .admin-body {
        grid-template-columns: 1fr;
    }
    .site-header { position: static; flex-direction: column; gap: 18px; }
    .admin-sidebar { position: static; min-height: auto; }
    .hero h1, .page-hero h1, .product-detail h1 { font-size: clamp(2.5rem, 12vw, 4rem); }
    .floating-card, .planet-ring, .glass-sphere { animation: none; }
    .hero-visual { min-height: 360px; }
    .product-card img { height: 220px; }
    .site-header, .site-footer, .section, .page-hero, .hero, .admin-main {
        width: min(1180px, calc(100% - 24px));
    }
    .assistant-shell {
        right: 12px;
        bottom: 86px;
        width: 74px;
    }
    .whatsapp-float {
        right: 12px;
        bottom: 12px;
        width: 74px;
        height: 74px;
    }
}

@media (hover: none) {
    .hero-stats article, .info-panel, .glass-card, .metric-card, .table-card, .product-card {
        backdrop-filter: blur(14px);
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .floating-card, .glass-sphere, .planet-ring {
        animation: none !important;
    }
    .assistant-toggle,
    .whatsapp-float {
        animation: none !important;
    }
}
