:root {
    --primary: #ff9f1c;
    --primary-dark: #d87400;
    --ink: #16181d;
    --ink-soft: #3f4754;
    --surface: #fff8ef;
    --surface-strong: #fff1dd;
    --white: #ffffff;
    --line: rgba(22, 24, 29, 0.1);
    --shadow: 0 24px 60px rgba(20, 14, 6, 0.12);
    --radius-xl: 28px;
    --radius-lg: 20px;
}

body.site-body {
    font-family: "Manrope", sans-serif;
    background: linear-gradient(180deg, #fff9f3 0%, #fffdf9 40%, #f7f1e9 100%);
    color: var(--ink);
    min-height: 100vh;
    padding-bottom: env(safe-area-inset-bottom);
}

h1,
h2,
h3,
h4,
h5,
.navbar-brand strong {
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: -0.03em;
}

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

.main-content {
    padding-top: 98px;
    position: relative;
    z-index: 1;
}

.site-gradient {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 159, 28, 0.22), transparent 30%),
        radial-gradient(circle at 90% 20%, rgba(77, 42, 5, 0.16), transparent 32%),
        radial-gradient(circle at 50% 90%, rgba(255, 199, 120, 0.18), transparent 28%);
    z-index: 0;
    pointer-events: none;
}

.site-navbar {
    background: rgba(18, 20, 24, 0.62);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease;
}

.site-navbar.scrolled {
    background: rgba(18, 20, 24, 0.9);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

.navbar-brand small {
    display: block;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.72rem;
}

.brand-badge {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
    overflow: hidden;
    flex-shrink: 0;
}

.brand-badge-footer {
    background: #ffffff;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
}

.navbar-dark .navbar-nav .nav-link.active,
.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff;
}

.profile-link-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.profile-link-avatar {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-link-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-section,
.inner-hero {
    padding: 4.5rem 0 3rem;
}

.hero-section h1,
.inner-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.7rem);
    line-height: 1;
    max-width: 11ch;
    margin: 0.85rem 0 1rem;
}

.hero-copy {
    color: var(--ink-soft);
    font-size: 1.08rem;
    line-height: 1.8;
    max-width: 62ch;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.84rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--primary-dark);
}

.eyebrow::before {
    content: "";
    width: 36px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
}

.hero-actions {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.1rem;
}

.metric-card,
.stat-box {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 22px;
    padding: 1.15rem;
    box-shadow: var(--shadow);
}

.metric-card strong,
.stat-box strong {
    display: block;
    font-size: 1.9rem;
    font-family: "Space Grotesk", sans-serif;
}

.metric-card span,
.stat-box small {
    color: var(--ink-soft);
}

.hero-carousel {
    background: #241a0f;
    border-radius: 34px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-carousel img {
    min-height: 520px;
    object-fit: cover;
}

.carousel-caption {
    left: 8%;
    right: 8%;
    bottom: 2rem;
}

.carousel-caption h5 {
    font-size: 1.85rem;
    max-width: 12ch;
}

.chip,
.chip-alt,
.price-tag,
.status-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.chip {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    backdrop-filter: blur(8px);
}

.chip-alt {
    background: var(--surface-strong);
    color: #7b4300;
}

.price-tag {
    background: rgba(22, 24, 29, 0.08);
    color: var(--ink);
}

.section-space {
    padding: 5rem 0;
}

.section-heading {
    margin-bottom: 2.2rem;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    max-width: 14ch;
}

.glass-card,
.product-card,
.article-card,
.story-panel,
.filter-panel,
.calc-result-card,
.cta-panel,
.why-card,
.auth-card,
.auth-copy,
.empty-panel {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow);
    border-radius: var(--radius-xl);
}

.glass-card,
.story-panel,
.calc-result-card,
.auth-card,
.auth-copy,
.empty-panel {
    padding: 2rem;
}

.icon-circle {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1f2127, #4e3920);
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

.glass-card h3,
.product-card h3,
.article-card h3,
.why-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.glass-card p,
.product-card p,
.article-card p,
.story-panel p,
.why-card p,
.calc-note {
    color: var(--ink-soft);
    line-height: 1.8;
}

.section-dark {
    background: linear-gradient(135deg, #17110a, #2a1b0c);
    color: #fff;
}

.timeline-grid {
    display: grid;
    gap: 1rem;
}

.timeline-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 1.5rem;
    color: #fff;
}

.timeline-number {
    display: inline-flex;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 800;
}

.product-card,
.article-card,
.why-card {
    padding: 1.6rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-visual,
.product-hero-visual {
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(135deg, #f7e7cf, #fff8ef);
    margin-bottom: 1.2rem;
}

.product-visual img,
.product-hero-visual img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.product-visual img {
    height: 220px;
}

.product-hero-visual img {
    min-height: 360px;
    max-height: 560px;
}

.product-detail-title {
    font-size: clamp(2rem, 4vw, 3.4rem);
    margin: 0.9rem 0 1rem;
}

.product-card:hover,
.article-card:hover,
.why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px rgba(21, 16, 8, 0.16);
}

.product-card-top,
.article-meta,
.result-row,
.mini-summary-item,
.card-header-line,
.footer-bottom,
.contact-item,
.cart-item,
.product-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.product-card-top {
    margin-bottom: 1.1rem;
}

.product-actions {
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.product-meta {
    margin-top: 1rem;
    border-top: 1px dashed var(--line);
    padding-top: 1rem;
}

.product-meta span,
.spec-list span,
.article-meta span {
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.spec-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.spec-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px dashed var(--line);
    padding: 0.85rem 0;
}

.why-us-section {
    background: linear-gradient(180deg, rgba(255, 184, 76, 0.12), rgba(255, 255, 255, 0));
}

.cta-panel {
    background: linear-gradient(135deg, #1b1f27, #3e2a10);
    color: #fff;
    padding: 2.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.inner-hero {
    padding-bottom: 4rem;
}

.inner-hero-sm {
    padding-top: 3.4rem;
}

.story-highlight {
    font-size: 1.15rem;
    color: var(--ink);
    margin-bottom: 1.6rem;
}

.filter-panel {
    padding: 1.2rem;
}

.category-pills {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.pill {
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    background: rgba(22, 24, 29, 0.06);
    font-weight: 700;
}

.pill.active {
    background: var(--ink);
    color: #fff;
}

.calc-panel .form-control,
.calc-panel .form-select,
.auth-card .form-control,
.auth-card .form-select,
.glass-card .form-control,
.glass-card .form-select {
    border-radius: 18px;
    border-color: rgba(22, 24, 29, 0.12);
    padding: 0.95rem 1rem;
}

.calc-result-card {
    position: sticky;
    top: 115px;
}

.result-row {
    padding: 1rem 0;
    border-bottom: 1px dashed var(--line);
}

.result-row.total {
    border-bottom: 0;
    font-size: 1.15rem;
}

.article-meta {
    margin-top: 1.3rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--line);
}

.article-meta a {
    color: var(--primary-dark);
    font-weight: 700;
}

.auth-section {
    padding: 4rem 0 5rem;
}

.auth-shell {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1.5rem;
}

.auth-copy {
    background: linear-gradient(145deg, #1c1e24, #35210e);
    color: #fff;
}

.auth-copy p,
.demo-list {
    color: rgba(255, 255, 255, 0.72);
}

.notice-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    border-radius: 20px;
    padding: 1rem 1.2rem;
}

.auth-cart-prompt {
    display: grid;
    gap: 0.7rem;
    width: 100%;
}

.auth-cart-prompt small {
    color: var(--ink-soft);
    line-height: 1.6;
}

.auth-cart-prompt-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.demo-list {
    margin-top: 1.4rem;
    display: grid;
    gap: 0.45rem;
}

.cart-item {
    padding: 1.2rem 0;
    border-bottom: 1px dashed var(--line);
}

.cart-item:last-child {
    border-bottom: 0;
}

.cart-item-main {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.cart-thumb {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(135deg, #f6ebdb, #fff8ef);
    flex-shrink: 0;
}

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

.cart-item-actions {
    display: grid;
    gap: 0.6rem;
    justify-items: end;
}

.payment-history-item {
    padding: 1.2rem 0;
    border-top: 1px dashed var(--line);
}

.payment-history-item:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.payment-history-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.payment-history-head small {
    display: block;
    color: var(--ink-soft);
    margin-top: 0.25rem;
}

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

.payment-history-grid small {
    display: block;
    color: var(--ink-soft);
    margin-bottom: 0.3rem;
}

.mini-summary-item {
    padding: 0.8rem 0;
    border-bottom: 1px dashed var(--line);
}

.mini-summary-item small {
    display: block;
    color: var(--ink-soft);
}

.contact-item {
    align-items: flex-start;
    margin-bottom: 1.15rem;
}

.contact-item i {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--surface-strong);
    color: var(--primary-dark);
}

.contact-item small {
    display: block;
    color: var(--ink-soft);
}

.conversation-card {
    padding: 1.2rem 0;
    border-top: 1px dashed var(--line);
}

.conversation-card:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.conversation-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.conversation-header small {
    display: block;
    color: var(--ink-soft);
    margin-top: 0.3rem;
}

.conversation-bubble {
    border-radius: 22px;
    padding: 1rem 1.1rem;
    margin-bottom: 0.85rem;
}

.conversation-bubble small {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 700;
}

.conversation-bubble-user {
    background: rgba(22, 24, 29, 0.05);
}

.conversation-bubble-admin {
    background: linear-gradient(135deg, rgba(255, 159, 28, 0.18), rgba(255, 241, 221, 0.9));
}

.conversation-bubble-waiting {
    background: rgba(255, 255, 255, 0.8);
    border: 1px dashed rgba(22, 24, 29, 0.14);
}

.profile-summary-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.profile-avatar {
    width: 112px;
    height: 112px;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, #f6ebdb, #fff8ef);
    margin-bottom: 1.2rem;
}

.profile-avatar-lg {
    width: 164px;
    height: 164px;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-meta-list {
    width: 100%;
    display: grid;
    gap: 0.85rem;
}

.profile-meta-row,
.profile-detail-card {
    background: rgba(22, 24, 29, 0.04);
    border: 1px solid rgba(22, 24, 29, 0.06);
    border-radius: 18px;
    padding: 1rem 1.1rem;
}

.profile-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.profile-meta-row span,
.profile-detail-card small {
    color: var(--ink-soft);
}

.profile-meta-row strong,
.profile-detail-card strong {
    display: block;
}

.article-body {
    background: rgba(255, 255, 255, 0.84);
    border-radius: 28px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow);
    color: var(--ink-soft);
    line-height: 1.95;
    font-size: 1.05rem;
}

.narrow-container {
    max-width: 840px;
}

.site-footer {
    background: #15171b;
    color: #fff;
    padding: 4rem 0 2rem;
    position: relative;
    z-index: 1;
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

.site-footer h6 {
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.66);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.7rem;
    color: rgba(255, 255, 255, 0.85);
}

.social-links {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.social-links a,
.floating-wa {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    flex-wrap: wrap;
}

.floating-wa {
    position: fixed;
    right: 22px;
    bottom: 22px;
    background: linear-gradient(135deg, #1aa15a, #4ddf83);
    color: #fff;
    box-shadow: 0 18px 35px rgba(14, 80, 42, 0.22);
    z-index: 10;
}

.page-loader {
    position: fixed;
    inset: 0;
    background: rgba(17, 18, 22, 0.72);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.page-loader.is-visible {
    opacity: 1;
    visibility: visible;
}

.page-loader-card {
    width: min(100%, 320px);
    background: rgba(255, 255, 255, 0.96);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
    padding: 1.75rem;
    text-align: center;
}

.page-loader-logo {
    width: 96px;
    height: 96px;
    object-fit: contain;
    display: block;
    margin: 0 auto 1rem;
    border-radius: 24px;
    background: #fff;
}

.page-loader-spinner {
    width: 46px;
    height: 46px;
    border: 4px solid rgba(255, 159, 28, 0.22);
    border-top-color: var(--primary);
    border-radius: 999px;
    margin: 0 auto 1rem;
    animation: loader-spin 0.8s linear infinite;
}

.page-loader-card strong {
    display: block;
    font-size: 1.05rem;
}

.page-loader-card small {
    display: block;
    color: var(--ink-soft);
    margin-top: 0.35rem;
}

@keyframes loader-spin {
    to {
        transform: rotate(360deg);
    }
}

.pagination {
    gap: 0.35rem;
}

.page-link {
    border-radius: 14px !important;
    border: 0;
    color: var(--ink);
    padding: 0.7rem 0.95rem;
}

.page-item.active .page-link {
    background: var(--ink);
}

.empty-panel {
    text-align: center;
}

@media (max-width: 991.98px) {
    .hero-metrics,
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .cta-panel,
    .product-card-top,
    .article-meta,
    .product-actions,
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-carousel img {
        min-height: 360px;
    }

    .product-hero-visual img {
        min-height: 280px;
    }
}

@media (max-width: 767.98px) {
    .section-space {
        padding: 4rem 0;
    }

    .hero-section,
    .inner-hero {
        padding-top: 3rem;
    }

    .glass-card,
    .story-panel,
    .calc-result-card,
    .auth-card,
    .auth-copy,
    .empty-panel {
        padding: 1.4rem;
    }

    .hero-copy {
        font-size: 1rem;
    }

    .cart-item,
    .result-row,
    .mini-summary-item,
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item-main,
    .payment-history-head,
    .conversation-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .payment-history-grid {
        grid-template-columns: 1fr;
    }

    .brand-badge {
        width: 46px;
        height: 46px;
    }

    .product-visual img {
        height: 200px;
    }

    .page-loader-card {
        padding: 1.4rem;
    }

    .page-loader-logo {
        width: 78px;
        height: 78px;
    }

    .profile-meta-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
