/* All design tokens, palette colors and light/dark semantic overrides
   are defined in public/css/theme.css (single source of truth). */
html {
    scroll-behavior: smooth
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

[data-theme="dark"] body {
    background:
        radial-gradient(900px 480px at 85% -5%, rgba(var(--primary-500-rgb), 0.08), transparent 60%),
        radial-gradient(700px 400px at -10% 110%, rgba(var(--secondary-rgb), 0.05), transparent 60%),
        var(--bg)
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em
}

p {
    color: var(--text-muted);
    line-height: 1.8
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast)
}

a:hover {
    color: var(--accent-light)
}

::selection {
    background: rgba(var(--accent-rgb), 0.3);
    color: var(--text)
}

::-webkit-scrollbar {
    width: 8px
}

::-webkit-scrollbar-track {
    background: var(--bg)
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent)
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px
}

@media(max-width: 768px) {
    .container {
        padding: 0 16px
    }
}

.text-center {
    text-align: center
}

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

@media(prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-20px)
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: .4
    }

    50% {
        opacity: .8
    }
}

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

@keyframes shimmer {
    0% {
        background-position: -200% 0
    }

    100% {
        background-position: 200% 0
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: .6
    }

    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 1
    }
}

@keyframes orbitSpin {
    to {
        transform: rotate(360deg)
    }
}

@keyframes orbitPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: .6
    }

    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all .8s cubic-bezier(0.4, 0, 0.2, 1)
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0)
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all .8s cubic-bezier(0.4, 0, 0.2, 1)
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0)
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all .8s cubic-bezier(0.4, 0, 0.2, 1)
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0)
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all .8s cubic-bezier(0.4, 0, 0.2, 1)
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1)
}

[data-delay="100"] {
    transition-delay: .1s
}

[data-delay="200"] {
    transition-delay: .2s
}

[data-delay="300"] {
    transition-delay: .3s
}

[data-delay="400"] {
    transition-delay: .4s
}

[data-delay="500"] {
    transition-delay: .5s
}

[data-delay="600"] {
    transition-delay: .6s
}

.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity .5s ease, visibility .5s ease
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden
}

.preloader .loader {
    width: 48px;
    height: 48px;
    border: 3px solid var(--card-border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin .8s linear infinite
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--gradient-accent);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 999;
    box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.4)
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(var(--accent-rgb), 0.5)
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0)
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    font-size: .85rem;
    font-weight: 600;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 16px
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 48px;
    text-align: center
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: .95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    letter-spacing: .01em;
    font-family: var(--font-sans)
}

.btn-primary {
    color: var(--white);
    background: var(--primary);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.35)
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.45);
    color: var(--white)
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(var(--secondary-rgb), 0.3)
}

.btn-secondary:hover {
    background: var(--secondary-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(var(--secondary-rgb), 0.4)
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent)
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px)
}

.btn-light {
    background: rgba(var(--white-rgb), 0.1);
    color: var(--white);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--white-rgb), 0.2)
}

.btn-light:hover {
    background: rgba(var(--white-rgb), 0.2);
    color: var(--white)
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base)
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent
}

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.glass-card {
    background: rgba(var(--white-rgb), 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(var(--white-rgb), 0.08);
    border-radius: var(--radius-lg)
}

.glass-card:hover {
    background: rgba(var(--white-rgb), 0.06);
    border-color: rgba(var(--accent-rgb), 0.3)
}

.social-links {
    display: flex;
    gap: 12px
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: all var(--transition-base)
}

.social-links a:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    transform: translateY(-3px)
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    font-size: .8rem;
    font-weight: 500;
    border-radius: 100px
}

.rating {
    display: flex;
    gap: 2px;
    color: var(--warning-400);
    font-size: .9rem
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--card-border);
    border-radius: 4px;
    overflow: hidden
}

.progress-bar .progress-fill {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 4px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0
}

.page-header {
    position: relative;
    padding: 160px 0 80px;
    text-align: center;
    background: var(--bg-section);
    overflow: hidden
}

.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(var(--accent-rgb), 0.08) 0%, transparent 70%)
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 16px;
    position: relative
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    position: relative
}

.page-header .breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: .9rem;
    color: var(--text-muted);
    position: relative
}

.page-header .breadcrumb a {
    color: var(--text-muted)
}

.page-header .breadcrumb a:hover {
    color: var(--accent)
}

.page-header .breadcrumb .separator {
    color: var(--text-muted)
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    height: var(--header-height);
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition-base);
    display: flex;
    align-items: center
}

.navbar.scrolled {
    border-bottom-color: var(--navbar-border);
    box-shadow: 0 4px 30px var(--shadow-color)
}

.navbar .navbar-inner {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto
}

.navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0
}

.navbar .navbar-brand img {
    height: 42px;
    width: auto;
    border-radius: 10px;
    transition: all var(--transition-base)
}

.navbar .navbar-brand .brand-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--text);
    letter-spacing: -0.03em
}

.navbar .navbar-brand .brand-text span {
    color: var(--accent)
}

.navbar .navbar-collapse {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 8px;
    justify-content: flex-end
}

.navbar .navbar-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
    order: 0
}

.navbar .navbar-nav .nav-item {
    position: relative
}

.navbar .navbar-nav .nav-item .nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 18px;
    font-size: .92rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative
}

.navbar .navbar-nav .nav-item .nav-link::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transition: all var(--transition-fast);
    transform: translateX(-50%)
}

.navbar .navbar-nav .nav-item .nav-link:hover {
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.06)
}

.navbar .navbar-nav .nav-item .nav-link:hover::after {
    width: 20px
}

.navbar .navbar-nav .nav-item .nav-link.active {
    color: var(--accent);
    background: transparent
}

.navbar .navbar-nav .nav-item .nav-link.active::after {
    width: 24px
}

.navbar .navbar-nav .nav-item .nav-link .chevron {
    font-size: .7rem;
    transition: transform var(--transition-fast)
}

.navbar .navbar-nav .nav-item:hover .chevron {
    transform: rotate(180deg)
}

.navbar .navbar-nav .nav-item .dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
    z-index: 100
}

.navbar .navbar-nav .nav-item .dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    transition: all var(--transition-fast)
}

.navbar .navbar-nav .nav-item .dropdown-menu a i {
    width: 20px;
    color: var(--accent);
    font-size: .95rem
}

.navbar .navbar-nav .nav-item .dropdown-menu a:hover {
    background: rgba(var(--accent-rgb), 0.08);
    color: var(--accent);
    transform: translateX(4px)
}

.navbar .navbar-nav .nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0)
}

.navbar .navbar-links {
    display: flex;
    align-items: center;
    gap: 2px
}

.navbar .navbar-links .nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    font-size: .92rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative
}

.navbar .navbar-links .nav-link::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transition: all var(--transition-fast);
    transform: translateX(-50%)
}

.navbar .navbar-links .nav-link:hover {
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.06)
}

.navbar .navbar-links .nav-link:hover::after {
    width: 20px
}

.navbar .navbar-links .nav-link.active {
    color: var(--accent)
}

.navbar .navbar-links .nav-link.active::after {
    width: 24px
}

.navbar .cart-link {
    position: relative;
    padding: 0 14px !important
}

.navbar .cart-count-badge {
    position: absolute;
    top: -4px;
    right: -2px;
    min-width: 20px;
    height: 20px;
    border-radius: 20px;
    background: var(--accent);
    color: var(--white);
    font-size: .65rem;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    line-height: 1;
    border: 2px solid var(--navbar-bg)
}

.navbar .navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    order: 1
}

.navbar .navbar-actions .theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.05rem;
    transition: all var(--transition-fast)
}

.navbar .navbar-actions .theme-toggle:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent)
}

.navbar .navbar-actions .btn-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 40px;
    padding: 0 18px;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .01em;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap
}

.navbar .navbar-actions .btn-action i {
    font-size: .9rem
}

.navbar .navbar-actions .btn-action:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    text-decoration: none
}

.navbar .navbar-actions .btn-action.btn-primary {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent)
}

.navbar .navbar-actions .btn-action.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark)
}

.navbar .navbar-actions .btn-action.btn-secondary:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent)
}

.navbar .navbar-actions .btn-action.btn-dashboard {
    border-radius: 5px;
    padding: 4px;
    background: linear-gradient(135deg, var(--brand-600) 0%, var(--accent) 100%);
    color: var(--white);
    border: none
}

.navbar .navbar-actions .btn-action.btn-dashboard:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.35)
}

.navbar .navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 10px;
    margin-left: auto;
    transition: all var(--transition-fast)
}

.navbar .navbar-toggle:hover {
    border-color: var(--accent)
}

.navbar .navbar-toggle:hover span {
    background: var(--accent)
}

.navbar .navbar-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 3px;
    transition: all var(--transition-fast)
}

.navbar .navbar-toggle.active {
    border-color: var(--accent)
}

.navbar .navbar-toggle.active span {
    background: var(--accent)
}

.navbar .navbar-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    width: 80%
}

.navbar .navbar-toggle.active span:nth-child(2) {
    opacity: 0
}

.navbar .navbar-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    width: 80%
}

@media(max-width: 992px) {
    .navbar {
        padding: 0 16px
    }

    .navbar .navbar-toggle {
        display: flex
    }

    .navbar .navbar-collapse {
        position: fixed;
        top: var(--header-height);
        right: 0;
        left: auto;
        width: min(380px, 85vw);
        bottom: 0;
        flex-direction: column;
        background: var(--bg);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        padding: 32px 28px;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateX(20px);
        transition: all var(--transition-base);
        z-index: 999;
        margin-left: 0;
        border-left: 1px solid var(--card-border);
        box-shadow: -10px 0 40px var(--shadow-color)
    }

    .navbar .navbar-collapse.open {
        opacity: 1;
        visibility: visible;
        transform: translateX(0)
    }

    .navbar .navbar-collapse .navbar-links {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 4px;
        order: 1;
        padding-top: 24px;
        margin-top: 24px;
        border-top: 1px solid var(--card-border)
    }

    .navbar .navbar-collapse .navbar-links .nav-link {
        padding: 14px 18px;
        width: 100%;
        justify-content: flex-start;
        font-size: 1rem;
        border-radius: var(--radius-sm)
    }

    .navbar .navbar-collapse .navbar-links .nav-link::after {
        display: none
    }

    .navbar .navbar-collapse .navbar-links .nav-link.active,
    .navbar .navbar-collapse .navbar-links .nav-link:hover {
        background: rgba(var(--accent-rgb), 0.08);
        color: var(--accent)
    }

    .navbar .navbar-collapse .navbar-actions {
        margin-left: 0 !important;
        flex-direction: column !important;
        align-items: stretch;
        width: 100%;
        gap: 8px;
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        order: 0
    }

    .navbar .navbar-collapse .navbar-actions .btn-action {
        width: 100%;
        justify-content: center;
        height: 44px
    }

    .navbar .navbar-collapse .navbar-actions .theme-toggle {
        align-self: center;
        margin-bottom: 2px
    }

    .navbar .navbar-collapse .navbar-nav .nav-item {
        width: 100%
    }

    .navbar .navbar-collapse .navbar-nav .nav-item .nav-link {
        padding: 14px 18px;
        width: 100%;
        justify-content: flex-start;
        font-size: 1rem;
        border-radius: var(--radius-sm)
    }

    .navbar .navbar-collapse .navbar-nav .nav-item .nav-link::after {
        display: none
    }

    .navbar .navbar-collapse .navbar-nav .nav-item .nav-link.active,
    .navbar .navbar-collapse .navbar-nav .nav-item .nav-link:hover {
        background: rgba(var(--accent-rgb), 0.08);
        color: var(--accent)
    }

    .navbar .navbar-collapse .navbar-nav .nav-item .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 16px;
        display: none;
        background: transparent
    }

    .navbar .navbar-collapse .navbar-nav .nav-item .dropdown-menu.open {
        display: block
    }
}

.auth-section {
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-height) + 24px) 20px 40px;
    background:
        repeating-linear-gradient(0deg, rgba(var(--primary-rgb), 0.028) 0 1px, transparent 1px 32px),
        repeating-linear-gradient(90deg, rgba(var(--primary-rgb), 0.028) 0 1px, transparent 1px 32px),
        radial-gradient(700px 420px at 50% 42%, rgba(var(--accent-rgb), 0.05) 0%, transparent 65%),
        linear-gradient(180deg, rgba(var(--accent-rgb), 0.04) 0%, transparent 38%),
        var(--bg);
    position: relative
}

.auth-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, transparent 39%, rgba(var(--primary-rgb), 0.06) 40%, rgba(var(--primary-rgb), 0.06) 46%, transparent 47%),
        radial-gradient(circle, transparent 39%, rgba(var(--primary-rgb), 0.04) 40%, rgba(var(--primary-rgb), 0.04) 47%, transparent 48%),
        radial-gradient(circle, transparent 39%, rgba(var(--primary-rgb), 0.055) 40%, rgba(var(--primary-rgb), 0.055) 46%, transparent 47%),
        radial-gradient(circle, transparent 39%, rgba(var(--primary-rgb), 0.04) 40%, rgba(var(--primary-rgb), 0.04) 47%, transparent 48%);
    background-size: 480px 480px, 340px 340px, 560px 560px, 320px 320px;
    background-position:
        -370px -120px,
        -260px -40px,
        calc(100% + 60px) calc(100% - 420px),
        calc(100% - 30px) -160px;
    background-repeat: no-repeat;
    pointer-events: none
}

.auth-section .auth-card {
    --auth-panel: 38%;
    width: 100%;
    max-width: 720px;
    padding: 0;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
    overflow: hidden
}

.auth-section .auth-card .auth-header {
    margin: 0 0 0 var(--auth-panel);
    padding: 10px 32px 26px;
    text-align: center;
    position: relative;
    z-index: 1
}

.auth-section .auth-card .auth-header .auth-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--gradient-accent);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.25);
    font-size: 1.3rem
}

.auth-section .auth-card .auth-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px
}

.auth-section .auth-card .auth-header p {
    font-size: .85rem;
    color: var(--text-muted);
    margin: 0
}

.auth-section .auth-card form {
    margin: 0 0 0 var(--auth-panel);
    padding: 0 32px;
    position: relative;
    z-index: 1
}

.auth-section .auth-card .form-floating {
    margin-bottom: 12px;
    position: relative
}

.auth-section .auth-card .form-floating input,
.auth-section .auth-card .form-floating textarea,
.auth-section .auth-card .form-floating select {
    width: 100%;
    padding: 12px 16px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: .95rem;
    font-family: var(--font-sans);
    transition: all var(--transition-fast)
}

.auth-section .auth-card .form-floating input:focus,
.auth-section .auth-card .form-floating textarea:focus,
.auth-section .auth-card .form-floating select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15)
}

.auth-section .auth-card .form-floating input::placeholder,
.auth-section .auth-card .form-floating textarea::placeholder,
.auth-section .auth-card .form-floating select::placeholder {
    color: var(--text-muted)
}

.auth-section .auth-card .form-floating label {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    font-size: .9rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: all var(--transition-fast);
    background: var(--input-bg);
    padding: 0 4px
}

.auth-section .auth-card .form-floating input:focus~label,
.auth-section .auth-card .form-floating input:not(:placeholder-shown)~label {
    top: 0;
    transform: translateY(-50%) scale(0.85);
    color: var(--accent)
}

.auth-section .auth-card .password-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1rem;
    transition: color var(--transition-fast)
}

.auth-section .auth-card .password-toggle:hover {
    color: var(--accent)
}

.auth-section .auth-card .form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px
}

.auth-section .auth-card .form-options .form-check {
    display: flex;
    align-items: center;
    gap: 8px
}

.auth-section .auth-card .form-options .form-check input[type=checkbox] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer
}

.auth-section .auth-card .form-options .form-check label {
    font-size: .9rem;
    color: var(--text);
    cursor: pointer
}

.auth-section .auth-card .form-options a {
    font-size: .9rem;
    color: var(--accent)
}

.auth-section .auth-card .form-options a:hover {
    text-decoration: underline
}

.auth-section .auth-card .btn-primary {
    width: 100%;
    padding: 12px;
    font-size: 1rem
}

.auth-section .auth-card .auth-footer {
    text-align: center;
    margin: 16px 0 0 var(--auth-panel);
    padding: 18px 32px 26px;
    border-top: 1px solid var(--card-border);
    position: relative;
    z-index: 1
}

.auth-section .auth-card .auth-footer p {
    font-size: .9rem;
    color: var(--text-muted);
    margin: 0
}

.auth-section .auth-card .auth-footer p a {
    color: var(--accent);
    font-weight: 600
}

.auth-section .auth-card .auth-footer p a:hover {
    text-decoration: underline
}

.auth-section .auth-card .form-alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: .9rem;
    text-align: center;
    transition: all var(--transition-base)
}

.auth-section .auth-card .form-alert.alert-danger {
    background: rgba(var(--danger-rgb), 0.1);
    color: var(--danger);
    border: 1px solid rgba(var(--danger-rgb), 0.2)
}

.auth-section .auth-card .form-alert.alert-success {
    background: rgba(var(--emerald-rgb), 0.1);
    color: var(--emerald);
    border: 1px solid rgba(var(--emerald-rgb), 0.2)
}

.auth-section .auth-card .form-alert.alert-info {
    background: rgba(var(--blue-rgb), 0.1);
    color: var(--blue-500);
    border: 1px solid rgba(var(--blue-rgb), 0.2)
}

.auth-section .auth-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--auth-panel);
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    background-image:
        radial-gradient(200px 200px at 88% 12%, rgba(255, 255, 255, 0.14), transparent 70%),
        radial-gradient(120px 120px at 10% 20%, rgba(255, 255, 255, 0.22), transparent 70%),
        radial-gradient(circle, transparent 39%, rgba(255, 255, 255, 0.2) 40%, rgba(255, 255, 255, 0.2) 46%, transparent 47%),
        radial-gradient(circle, transparent 39%, rgba(255, 255, 255, 0.13) 40%, rgba(255, 255, 255, 0.13) 47%, transparent 48%),
        linear-gradient(115deg, rgba(255, 255, 255, 0.1) 0%, transparent 34%),
        radial-gradient(ellipse at 50% 130%, rgba(10, 9, 40, 0.28), transparent 60%),
        linear-gradient(165deg, #4F46E5 0%, #4338CA 100%);
    background-size: auto, auto, 340px 340px, 220px 220px, auto, auto, auto;
    background-position:
        0 0,
        0 0,
        -200px calc(100% - 210px),
        -130px calc(100% - 140px),
        0 0,
        0 0,
        0 0;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none
}

.auth-section .auth-card::after {
    content: "";
    position: absolute;
    left: calc(var(--auth-panel) / 2);
    top: 50%;
    width: 92px;
    height: 92px;
    transform: translate(-50%, -50%);
    background-color: var(--white);
    background-image: url("../images/logo_512x512.png");
    background-size: 64%;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    box-shadow: 0 18px 40px rgba(30, 27, 75, 0.35), 0 0 0 10px rgba(255, 255, 255, 0.18), 0 0 0 22px rgba(255, 255, 255, 0.08);
    z-index: 0;
    pointer-events: none
}

.auth-section .auth-card .auth-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 0 var(--auth-panel);
    padding: 28px 32px 20px;
    position: relative;
    z-index: 1
}

.auth-section .auth-card .auth-brand .auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem
}

.auth-section .auth-card .auth-brand .auth-logo img {
    height: 34px;
    width: auto;
    border-radius: 8px
}

.auth-section .auth-card .auth-brand .auth-logo span span {
    color: var(--accent)
}

.auth-section .auth-card .auth-brand .auth-back {
    font-size: .85rem;
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition-fast)
}

.auth-section .auth-card .auth-brand .auth-back:hover {
    color: var(--accent)
}

.auth-section .auth-card .auth-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    font-size: .78rem;
    color: var(--text-muted)
}

.auth-section .auth-card .auth-security i {
    color: var(--secondary)
}

@media(max-width: 768px) {
    .auth-section {
        padding: calc(var(--header-height) + 16px) 16px 32px
    }

    .auth-section .auth-card {
        max-width: 440px
    }

    .auth-section .auth-card::before,
    .auth-section .auth-card::after {
        display: none
    }

    .auth-section .auth-card .auth-brand {
        margin-left: 0;
        padding: 24px 24px 16px
    }

    .auth-section .auth-card .auth-header {
        margin-left: 0;
        padding: 4px 24px 22px
    }

    .auth-section .auth-card form {
        margin-left: 0;
        padding: 0 24px
    }

    .auth-section .auth-card .auth-footer {
        margin-left: 0;
        padding: 16px 24px 22px
    }
}

.error-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--bg);
    text-align: center;
    position: relative
}

.error-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(var(--accent-rgb), 0.06) 0%, transparent 70%);
    pointer-events: none
}

.error-section .error-code {
    font-family: var(--font-display);
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 800;
    line-height: 1;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    position: relative;
    z-index: 1
}

.error-section h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 12px;
    position: relative;
    z-index: 1
}

.error-section p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 32px;
    position: relative;
    z-index: 1
}

.error-section .error-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 1
}

.error-section .error-illustration {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none
}

.error-section .error-illustration .circle {
    position: absolute;
    border-radius: 50%;
    opacity: .08
}

.error-section .error-illustration .circle:nth-child(1) {
    width: 400px;
    height: 400px;
    background: var(--accent);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite
}

.error-section .error-illustration .circle:nth-child(2) {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: -50px;
    left: -50px;
    animation: float 10s ease-in-out infinite reverse
}

.card,
.card-hover {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base)
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent
}

.section {
    padding: 40px 0;
    position: relative
}

.section-dark {
    background: var(--bg-section)
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 16px
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    font-family: var(--font-display)
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 48px
}

.hero-section {
    position: relative;
    min-height: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: calc(var(--header-height) + 40px) 0 48px;
    background: var(--bg-section)
}

.hero-section .hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none
}

.hero-section .hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .15
}

.hero-section .hero-bg-shapes .shape:nth-child(1) {
    width: 500px;
    height: 500px;
    background: var(--accent);
    top: -10%;
    left: 10%;
    animation: float 12s ease-in-out infinite
}

.hero-section .hero-bg-shapes .shape:nth-child(2) {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -10%;
    right: 15%;
    animation: float 15s ease-in-out infinite reverse
}

.hero-section .hero-bg-shapes .shape:nth-child(3) {
    width: 300px;
    height: 300px;
    background: var(--tertiary);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 8s ease-in-out infinite
}

.hero-section .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%
}

.hero-section .hero-text {
    animation: fadeInLeft .8s ease .1s both
}

.hero-section .hero-text .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--accent-rgb), 0.12);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    color: var(--accent);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 16px
}

.hero-section .hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 14px;
    font-family: var(--font-display);
    color: var(--text)
}

.hero-section .hero-text h1 span {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.hero-section .hero-text>p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 520px
}

.hero-section .hero-text .hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px
}

.hero-section .hero-stats {
    display: flex;
    gap: 24px
}

.hero-section .hero-stats .stat-item .stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    font-family: var(--font-display)
}

.hero-section .hero-stats .stat-item .stat-label {
    font-size: .85rem;
    color: var(--text-muted);
    margin-top: 4px
}

.hero-section .hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInRight .8s ease .3s both
}

.hero-section .hero-visual .hero-orbit {
    position: relative;
    width: 460px;
    height: 460px;
    display: flex;
    align-items: center;
    justify-content: center
}

.hero-section .hero-visual .orbit-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.1) 0%, rgba(var(--secondary-rgb), 0.05) 40%, transparent 70%);
    animation: pulseGlow 4s ease-in-out infinite;
    pointer-events: none
}

.hero-section .hero-visual .orbit-center {
    position: relative;
    z-index: 2
}

.hero-section .hero-visual .orbit-center .orbit-center-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--accent);
    box-shadow: 0 0 40px rgba(var(--accent-rgb), 0.2);
    animation: pulse 3s ease-in-out infinite;
    position: relative;
    z-index: 2
}

.hero-section .hero-visual .orbit-center .orbit-center-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(var(--accent-rgb), 0.15);
    animation: orbitPulse 3s ease-out infinite;
    pointer-events: none
}

.hero-section .hero-visual .orbit-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px dashed rgba(var(--accent-rgb), 0.15);
    animation: orbitSpin 20s linear infinite
}

.hero-section .hero-visual .orbit-ring.ring-1 {
    animation-duration: 25s
}

.hero-section .hero-visual .orbit-ring.ring-2 {
    width: 76%;
    height: 76%;
    margin: auto;
    animation-duration: 15s;
    border-color: rgba(var(--secondary-rgb), 0.18)
}

.hero-section .hero-visual .orbit-item {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent);
    box-shadow: var(--shadow-md);
    top: 50%;
    left: 50%;
    margin-top: -24px;
    margin-left: -24px;
    --angle: calc(var(--i) * 60deg);
    transform: rotate(var(--angle)) translateY(-230px) rotate(calc(-1 * var(--angle)));
    transition: all var(--transition-base)
}

.hero-section .hero-visual .orbit-item:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--white)
}

.hero-section .hero-visual .orbit-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: .82rem;
    font-weight: 500;
    color: var(--text);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    animation: float 4s ease-in-out infinite;
    z-index: 3
}

.hero-section .hero-visual .orbit-badge i {
    font-size: .85rem;
    color: var(--accent)
}

.hero-section .hero-visual .orbit-badge.badge-top {
    top: 4%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s
}

.hero-section .hero-visual .orbit-badge.badge-right {
    right: -4%;
    top: 50%;
    transform: translateY(-50%);
    animation-delay: -1s
}

.hero-section .hero-visual .orbit-badge.badge-bottom {
    bottom: 4%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: -2s
}

.hero-section .hero-visual .orbit-badge.badge-left {
    left: -4%;
    top: 50%;
    transform: translateY(-50%);
    animation-delay: -3s
}

.hero-section .hero-visual .orbit-save {
    position: absolute;
    bottom: 12%;
    right: 4%;
    text-align: center;
    z-index: 3;
    animation: float 5s ease-in-out infinite;
    animation-delay: -1.5s
}

.hero-section .hero-visual .orbit-save .save-label {
    display: block;
    font-size: .75rem;
    color: var(--text-muted);
    margin-bottom: 2px
}

.hero-section .hero-visual .orbit-save .save-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    font-family: var(--font-display);
    line-height: 1
}

/* ---------------- Hero (ledger preview variant) ---------------- */
.hero-content.hero-content--center {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 0
}

.hero-content--center .hero-text {
    text-align: center;
    max-width: 760px
}

.hero-content--center .hero-text>p {
    margin-left: auto;
    margin-right: auto
}

.hero-content--center .hero-buttons,
.hero-content--center .hero-stats {
    justify-content: center
}

.hero-preview {
    position: relative;
    width: 100%;
    max-width: 880px;
    margin: 56px auto 0;
    animation: fadeInUp .9s ease .4s both
}

.ledger-card {
    position: relative;
    border-radius: var(--radius-xl);
    border: 1px solid var(--card-border);
    background:
        linear-gradient(180deg, rgba(var(--accent-rgb), 0.05) 0%, transparent 40%),
        var(--card-bg);
    box-shadow: var(--shadow-xl);
    padding: 28px 32px;
    overflow: hidden
}

.ledger-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent)
}

.ledger-card .ledger-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap
}

.ledger-card .ledger-top .ledger-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: .95rem;
    color: var(--text)
}

.ledger-card .ledger-top .ledger-title i {
    color: var(--accent)
}

.ledger-card .ledger-top .ledger-date {
    font-size: .8rem;
    color: var(--text-muted);
    background: var(--hover-bg);
    padding: 6px 12px;
    border-radius: 100px;
    border: 1px solid var(--card-border)
}

.ledger-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 22px
}

.ledger-stats .lstat {
    background: var(--bg-section);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    text-align: left
}

.ledger-stats .lstat .lstat-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 4px
}

.ledger-stats .lstat .lstat-label i {
    color: var(--accent);
    font-size: .8rem
}

.ledger-stats .lstat .lstat-value {
    font-size: 1.3rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--text)
}

.ledger-stats .lstat .lstat-value.pos {
    color: var(--secondary)
}

.ledger-stats .lstat .lstat-value.neg {
    color: var(--danger)
}

.ledger-rows .lrow {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 4px;
    border-bottom: 1px solid var(--card-border)
}

.ledger-rows .lrow:last-child {
    border-bottom: none
}

.ledger-rows .lrow .lrow-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    flex-shrink: 0;
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent)
}

.ledger-rows .lrow .lrow-icon.expense {
    background: rgba(var(--secondary-rgb), 0.12);
    color: var(--secondary)
}

.ledger-rows .lrow .lrow-icon.invest {
    background: rgba(var(--blue-rgb), 0.12);
    color: var(--blue-500)
}

.ledger-rows .lrow .lrow-main {
    flex: 1;
    min-width: 0
}

.ledger-rows .lrow .lrow-main .lrow-name {
    font-size: .92rem;
    font-weight: 600;
    color: var(--text)
}

.ledger-rows .lrow .lrow-main .lrow-sub {
    font-size: .78rem;
    color: var(--text-muted)
}

.ledger-rows .lrow .lrow-amount {
    font-size: .92rem;
    font-weight: 700;
    font-family: var(--font-display)
}

.ledger-rows .lrow .lrow-amount.plus {
    color: var(--secondary)
}

.ledger-rows .lrow .lrow-amount.minus {
    color: var(--danger)
}

.ledger-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 10px 16px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text);
    box-shadow: var(--shadow-md);
    animation: float 5s ease-in-out infinite;
    z-index: 3
}

.ledger-chip i {
    color: var(--accent)
}

.ledger-chip .chip-value {
    color: var(--secondary);
    font-weight: 700
}

.ledger-chip.chip-1 {
    top: -18px;
    right: -12px
}

.ledger-chip.chip-2 {
    bottom: -18px;
    left: -12px;
    animation-delay: -2s
}

@media(max-width: 768px) {
    .hero-content--center .hero-text h1 {
        font-size: 2.2rem
    }

    .hero-preview {
        margin-top: 40px
    }

    .ledger-card {
        padding: 20px 18px
    }

    .ledger-stats {
        grid-template-columns: 1fr;
        gap: 10px
    }

    .ledger-chip {
        display: none
    }
}

/* ---------------- Hero (widget cluster variant) ---------------- */
.hero-content.hero-content--widgets {
    align-items: center
}

.hero-widgets {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    animation: fadeInRight .9s ease .3s both
}

.hw-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-md);
    z-index: 1
}

.hw-card.hw-balance {
    grid-column: 1 / -1;
    background:
        linear-gradient(135deg, rgba(var(--primary-rgb), 0.16) 0%, rgba(var(--secondary-rgb), 0.1) 100%),
        var(--card-bg);
    border-color: rgba(var(--accent-rgb), 0.25)
}

.hw-card .hw-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 8px
}

.hw-card .hw-label i {
    color: var(--accent)
}

.hw-card .hw-value {
    font-size: 1.9rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--text);
    line-height: 1.1
}

.hw-card .hw-trend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--secondary);
    background: rgba(var(--secondary-rgb), 0.12)
}

.hw-balance .hw-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px
}

.hw-balance .hw-bars {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 52px;
    padding-bottom: 2px
}

.hw-balance .hw-bars .mini-bar {
    width: 8px;
    border-radius: 3px;
    background: var(--gradient-accent);
    opacity: .85;
    transform-origin: bottom;
    height: var(--h);
    animation: growBar .6s cubic-bezier(0.4, 0, 0.2, 1) both
}

.hw-card.hw-split .hw-split-label {
    font-size: .78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 14px
}

.hw-split-row {
    display: flex;
    align-items: center;
    gap: 12px
}

.hw-split-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px
}

.hw-split-item i {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    margin-bottom: 8px
}

.hw-split-item.income i {
    background: rgba(var(--secondary-rgb), 0.12);
    color: var(--secondary)
}

.hw-split-item.expense i {
    background: rgba(var(--danger-rgb), 0.12);
    color: var(--danger)
}

.hw-split-item .hw-split-name {
    font-size: .78rem;
    color: var(--text-muted)
}

.hw-split-item .hw-split-value {
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--text)
}

.hw-split-divider {
    width: 1px;
    height: 44px;
    background: var(--card-border)
}

.hw-split-bar {
    height: 8px;
    border-radius: 4px;
    background: var(--bg-section);
    overflow: hidden;
    margin-top: 14px
}

.hw-split-bar .hw-split-bar-fill {
    display: block;
    height: 100%;
    width: 62%;
    border-radius: 4px;
    background: var(--gradient-accent)
}

.hw-card.hw-donut {
    display: flex;
    align-items: center;
    gap: 16px
}

.hw-donut-ring {
    position: relative;
    width: 92px;
    height: 92px;
    flex-shrink: 0
}

.hw-donut-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg)
}

.hw-donut-ring .hw-donut-track {
    fill: none;
    stroke: var(--bg-section);
    stroke-width: 5
}

.hw-donut-ring .hw-donut-fill {
    fill: none;
    stroke: var(--secondary);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 68;
    animation: donutFill 1.2s ease .5s both
}

.hw-donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center
}

.hw-donut-center .hw-donut-pct {
    font-size: 1.05rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--secondary);
    line-height: 1
}

.hw-donut-center .hw-donut-sub {
    font-size: .6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-top: 3px
}

.hw-donut-info .hw-donut-title {
    font-size: .78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 4px
}

.hw-donut-info .hw-donut-value {
    font-size: 1.15rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--text)
}

.hw-donut-info .hw-donut-note {
    font-size: .72rem;
    color: var(--text-muted);
    margin-top: 2px
}

@keyframes growBar {
    from {
        transform: scaleY(0)
    }
}

@keyframes donutFill {
    from {
        stroke-dashoffset: 100
    }
}

.hero-float-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 16px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-md);
    font-size: .82rem;
    font-weight: 600;
    color: var(--text);
    animation: float 5s ease-in-out infinite;
    z-index: 3
}

.hero-float-chip i {
    color: var(--accent)
}

.hero-float-chip.fc-1 {
    top: -16px;
    right: -10px
}

.hero-float-chip.fc-2 {
    bottom: -16px;
    left: 24px;
    animation-delay: -2s
}

@media(max-width: 768px) {
    .hero-widgets {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 40px auto 0
    }

    .hero-float-chip {
        display: none
    }
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px
}

.category-card {
    display: block;
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 32px 20px;
    text-decoration: none;
    transition: all var(--transition-base)
}

.category-card .category-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 16px;
    transition: all var(--transition-base)
}

.category-card h4 {
    color: var(--text);
    font-size: 1.05rem;
    margin-bottom: 8px;
    font-weight: 600
}

.category-card p {
    color: var(--text-muted);
    font-size: .85rem;
    margin: 0
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent
}

.category-card:hover .category-icon {
    background: var(--accent);
    color: var(--white)
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    position: relative
}

.product-card .product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: var(--accent);
    color: var(--white);
    font-size: .75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    text-transform: uppercase
}

.product-card .product-badge.sale {
    background: var(--danger)
}

.product-card .product-image {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--text-muted);
    background: var(--bg-section);
    transition: all var(--transition-base)
}

.product-card .product-body {
    padding: 20px
}

.product-card .product-body h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px
}

.product-card .product-body p {
    font-size: .85rem;
    color: var(--text-muted);
    margin-bottom: 12px
}

.product-card .product-body .product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-display);
    margin-bottom: 16px
}

.product-card .product-body .btn-sm {
    padding: 8px 18px;
    font-size: .85rem
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent
}

.product-card:hover .product-image {
    transform: scale(1.05)
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px
}

.feature-card {
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 36px 24px;
    transition: all var(--transition-base)
}

.feature-card .feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(var(--secondary-rgb), 0.1);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
    transition: all var(--transition-base)
}

.feature-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px
}

.feature-card p {
    font-size: .9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent
}

.feature-card:hover .feature-icon {
    background: var(--secondary);
    color: var(--white)
}

.cta-box {
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 64px 40px
}

.cta-box h2 {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-display);
    margin-bottom: 16px
}

.cta-box p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 32px;
    line-height: 1.7
}

.newsletter-form {
    max-width: 480px;
    margin: 0 auto
}

.newsletter-input-group {
    display: flex;
    gap: 0;
    background: var(--bg-section);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--card-border)
}

.newsletter-input-group input {
    flex: 1;
    border: none;
    padding: 14px 20px;
    font-size: .95rem;
    background: transparent;
    color: var(--text);
    outline: none
}

.newsletter-input-group .btn {
    border-radius: 0;
    padding: 14px 28px
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-base)
}

.faq-item .faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    user-select: none
}

.faq-item .faq-question i {
    transition: transform var(--transition-base);
    color: var(--accent)
}

.faq-item .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease, padding .4s ease
}

.faq-item .faq-answer p {
    padding: 0 24px 18px;
    color: var(--text-muted);
    font-size: .95rem;
    line-height: 1.7;
    margin: 0
}

.faq-item.active .faq-question i {
    transform: rotate(180deg)
}

.faq-item.active .faq-answer {
    max-height: 300px
}

.faq-item:hover {
    border-color: rgba(var(--accent-rgb), 0.2)
}

.contact-section .contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto
}

.contact-section .contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px
}

.contact-section .info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 20px
}

.contact-section .info-card .info-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: rgba(var(--secondary-rgb), 0.1);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem
}

.contact-section .info-card .info-text h5 {
    font-size: .9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px
}

.contact-section .info-card .info-text p {
    font-size: .85rem;
    color: var(--text-muted);
    margin: 0
}

.contact-section .info-card .info-text a {
    color: var(--accent);
    text-decoration: none
}

.contact-section .info-card .info-text a:hover {
    text-decoration: underline
}

.contact-section .contact-form {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 32px
}

.contact-section .contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
}

.contact-section .contact-form .form-group {
    margin-bottom: 16px
}

.contact-section .contact-form .form-group label {
    display: block;
    font-size: .9rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px
}

.contact-section .contact-form .form-group input,
.contact-section .contact-form .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: .95rem;
    background: var(--bg-section);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    color: var(--text);
    transition: all var(--transition-fast);
    outline: none
}

.contact-section .contact-form .form-group input:focus,
.contact-section .contact-form .form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12)
}

.contact-section .contact-form .form-group textarea {
    min-height: 120px;
    resize: vertical
}

.contact-section .contact-form .btn {
    width: 100%;
    justify-content: center
}

.page-header {
    position: relative;
    text-align: center;
    padding: 88px 24px 20px;
    background: var(--bg-section);
    overflow: hidden
}

.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px 300px at 18% -5%, rgba(var(--accent-rgb), 0.1) 0%, transparent 60%),
        radial-gradient(520px 280px at 85% 0%, rgba(var(--secondary-rgb), 0.08) 0%, transparent 60%);
    pointer-events: none
}

.page-header h1 {
    position: relative;
    font-size: clamp(1.55rem, 3.6vw, 2rem);
    font-weight: 700;
    font-family: var(--font-display);
    margin-bottom: 2px
}

.page-header h1::after {
    content: "";
    display: block;
    width: 36px;
    height: 3px;
    margin: 4px auto 0;
    border-radius: 4px;
    background: var(--gradient-accent)
}

.page-header p {
    position: relative;
    color: var(--text-muted);
    font-size: .9rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.5
}

.page-header .breadcrumb {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 3px 12px;
    border-radius: 100px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    font-size: .78rem;
    box-shadow: var(--shadow-sm)
}

.page-header .breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast)
}

.page-header .breadcrumb a:hover {
    color: var(--accent)
}

.page-header .breadcrumb .separator {
    color: var(--text-muted);
    opacity: .6
}

.page-header .breadcrumb span:last-child {
    color: var(--accent);
    font-weight: 600
}

/* ---------------- Legal / account-deletion content ---------------- */
.services-section {
    position: relative;
    padding: 0 24px 110px;
    background: var(--bg);
    margin-top: 18px
}

.services-section .container {
    max-width: 860px
}

.services-section .card {
    position: relative;
    /* padding: 56px 52px; */
    padding: 20px 52px;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(var(--accent-rgb), 0.03) 0%, transparent 30%),
        var(--card-bg)
}

.services-section .card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent)
}

.services-section .card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--text);
    margin-bottom: 16px
}

.services-section .card p {
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 20px
}

.services-section .card p strong {
    color: var(--text)
}

.services-section .card h5 {
    position: relative;
    padding-left: 22px;
    margin: 34px 0 12px;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text)
}

.services-section .card h5::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    border-radius: 4px;
    background: var(--gradient-accent)
}

.services-section .card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 8px
}

.services-section .card ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--text-muted);
    line-height: 1.6
}

.services-section .card ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .6rem;
    color: var(--secondary);
    background: rgba(var(--secondary-rgb), 0.12);
    border-radius: 50%
}

.services-section .card ul li strong {
    color: var(--text)
}

.services-section .card a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-fast)
}

.services-section .card a:hover {
    text-decoration: underline
}

@media(max-width: 768px) {
    .services-section .card {
        padding: 40px 26px
    }
}

.form-alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 500
}

.alert-success {
    background: rgba(var(--emerald-rgb), 0.1);
    color: var(--emerald);
    border: 1px solid rgba(var(--emerald-rgb), 0.2)
}

.alert-danger {
    background: rgba(var(--danger-rgb), 0.1);
    color: var(--danger);
    border: 1px solid rgba(var(--danger-rgb), 0.2)
}

.site-footer {
    background: var(--footer-bg);
    padding: 80px 0 0;
    position: relative;
    border-top: 1px solid var(--card-border)
}

.site-footer .footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 48px
}

.site-footer .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px
}

.site-footer .footer-logo img {
    height: 52px;
    width: auto;
    border-radius: 10px
}

.site-footer .footer-logo .brand-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text)
}

.site-footer .footer-logo .brand-text span {
    color: var(--accent)
}

.site-footer .footer-brand p {
    font-size: .88rem;
    color: var(--footer-text);
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 320px
}

.site-footer .footer-brand .social-links {
    display: flex;
    gap: 10px
}

.site-footer .footer-brand .social-links a {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: .95rem;
    text-decoration: none;
    transition: all var(--transition-fast)
}

.site-footer .footer-brand .social-links a:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    transform: translateY(-2px)
}

.site-footer .footer-col h5 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .95rem;
    color: var(--text);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: .04em
}

.site-footer .footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.site-footer .footer-col ul li a {
    color: var(--footer-text);
    text-decoration: none;
    font-size: .88rem;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px
}

.site-footer .footer-col ul li a:hover {
    color: var(--accent);
    transform: translateX(4px)
}

.site-footer .footer-newsletter p {
    font-size: .85rem;
    color: var(--footer-text);
    line-height: 1.6;
    margin-bottom: 16px
}

.site-footer .footer-newsletter .newsletter-input-wrap {
    display: flex;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: all var(--transition-fast)
}

.site-footer .footer-newsletter .newsletter-input-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1)
}

.site-footer .footer-newsletter .newsletter-input-wrap input {
    flex: 1;
    border: none;
    padding: 10px 14px;
    font-size: .85rem;
    background: transparent;
    color: var(--text);
    outline: none
}

.site-footer .footer-newsletter .newsletter-input-wrap input::placeholder {
    color: var(--text-muted)
}

.site-footer .footer-newsletter .newsletter-input-wrap button {
    width: 42px;
    border: none;
    background: var(--accent);
    color: var(--white);
    cursor: pointer;
    font-size: .95rem;
    transition: all var(--transition-fast)
}

.site-footer .footer-newsletter .newsletter-input-wrap button:hover {
    background: var(--accent-dark)
}

.site-footer .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    border-top: 1px solid var(--card-border);
    flex-wrap: wrap;
    gap: 12px
}

.site-footer .footer-bottom p {
    font-size: .82rem;
    color: var(--text-muted);
    margin: 0
}

.site-footer .footer-bottom .footer-bottom-links {
    display: flex;
    gap: 20px
}

.site-footer .footer-bottom .footer-bottom-links a {
    font-size: .82rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast)
}

.site-footer .footer-bottom .footer-bottom-links a:hover {
    color: var(--accent)
}

@media(max-width: 992px) {
    .site-footer .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px
    }
}

@media(max-width: 576px) {
    .site-footer {
        padding: 60px 0 0
    }

    .site-footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px
    }

    .site-footer .footer-bottom {
        flex-direction: column;
        text-align: center
    }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent
}

.product-card .product-image {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-section);
    padding: 20px;
    overflow: hidden
}

.product-card .product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform var(--transition-base)
}

.product-card:hover .product-image img {
    transform: scale(1.06)
}

.product-card .product-image i {
    font-size: 3.5rem;
    color: var(--text-muted);
    opacity: .25
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    background: rgba(var(--blue-600-rgb), 0.9);
    color: var(--white);
    z-index: 2
}

.product-badge.sale {
    background: var(--accent)
}

.product-card .product-body {
    padding: 16px 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column
}

.product-card .product-body h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.35
}

.product-card .product-body h4 a {
    color: var(--text);
    text-decoration: none
}

.product-card .product-body h4 a:hover {
    color: var(--accent)
}

.product-card .product-body .product-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: auto;
    padding-top: 10px
}

.product-card .product-body .product-price .price-old {
    font-size: .9rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 500
}

.products-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px
}

.products-sidebar {
    position: sticky;
    top: 100px;
    align-self: start
}

.filter-group {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--card-border)
}

.filter-label {
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 12px;
    color: var(--text)
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 240px;
    overflow-y: auto
}

.filter-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: .9rem;
    color: var(--text-muted);
    transition: color var(--transition-fast)
}

.filter-radio:hover {
    color: var(--text)
}

.filter-radio input[type=radio] {
    accent-color: var(--accent);
    width: 16px;
    height: 16px
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 8px
}

.price-inputs input {
    width: 100%;
    padding: 8px 10px;
    border: 1.5px solid var(--card-border);
    border-radius: var(--radius-sm);
    background: var(--input-bg);
    color: var(--text);
    font-size: .85rem
}

.price-inputs input:focus {
    outline: none;
    border-color: var(--accent)
}

.price-inputs span {
    color: var(--text-muted);
    flex-shrink: 0
}

.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px
}

.products-count {
    font-size: .9rem;
    color: var(--text-muted)
}

.sort-select select {
    padding: 8px 14px;
    border: 1.5px solid var(--card-border);
    border-radius: var(--radius-sm);
    background: var(--input-bg);
    color: var(--text);
    font-size: .85rem;
    cursor: pointer
}

.sort-select select:focus {
    outline: none;
    border-color: var(--accent)
}

.pagination-wrap ul {
    display: flex;
    justify-content: center;
    gap: 6px;
    list-style: none;
    padding: 0
}

.pagination-wrap li {
    display: flex
}

.pagination-wrap li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--card-border);
    color: var(--text);
    font-size: .9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast)
}

.pagination-wrap li a:hover {
    border-color: var(--accent);
    color: var(--accent)
}

.pagination-wrap li.active a {
    background: var(--gradient-accent);
    color: var(--white);
    border-color: transparent
}

.empty-state {
    text-align: center;
    padding: 80px 20px
}

.empty-state h3 {
    margin-top: 16px;
    font-size: 1.3rem
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start
}

.cart-header {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr 40px;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 2px solid var(--card-border);
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-muted)
}

.cart-item {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr 40px;
    gap: 12px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--card-border)
}

.cart-item-product {
    display: flex;
    align-items: center;
    gap: 16px
}

.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--card-bg);
    border: 1px solid var(--card-border)
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.cart-item-info h4 {
    font-size: 1rem;
    margin: 0
}

.cart-item-info h4 a {
    color: var(--text);
    text-decoration: none
}

.cart-item-info h4 a:hover {
    color: var(--accent)
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0
}

.qty-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--card-border);
    background: var(--input-bg);
    color: var(--text);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    user-select: none
}

.qty-btn:first-child {
    border-radius: 6px 0 0 6px
}

.qty-btn:last-child {
    border-radius: 0 6px 6px 0
}

.qty-btn:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent)
}

.qty-input {
    width: 48px;
    height: 32px;
    text-align: center;
    border: 1.5px solid var(--card-border);
    border-left: none;
    border-right: none;
    background: var(--input-bg);
    color: var(--text);
    font-size: .9rem;
    font-weight: 600
}

.cart-item-total {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--accent)
}

.remove-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast)
}

.remove-btn:hover {
    background: rgba(var(--danger-rgb), 0.1);
    color: var(--danger)
}

.cart-actions-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    flex-wrap: wrap;
    gap: 12px
}

.cart-summary {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: 100px
}

.cart-summary h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--card-border)
}

.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: .9rem;
    color: var(--text-muted)
}

.summary-total {
    border-top: 2px solid var(--card-border);
    margin-top: 8px;
    padding-top: 16px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text)
}

.coupon-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--card-border)
}

.coupon-input-wrap {
    display: flex;
    gap: 8px
}

.coupon-input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid var(--card-border);
    border-radius: var(--radius-sm);
    background: var(--input-bg);
    color: var(--text);
    font-size: .85rem;
    text-transform: uppercase
}

.coupon-input:focus {
    outline: none;
    border-color: var(--accent)
}

.coupon-message {
    font-size: .8rem
}

.coupon-message.success {
    color: var(--emerald)
}

.coupon-message.error {
    color: var(--danger)
}

.coupon-discount {
    display: flex;
    justify-content: space-between;
    font-size: .9rem;
    padding: 8px 0;
    color: var(--emerald);
    font-weight: 600
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start
}

.checkout-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--card-border)
}

.checkout-section {
    margin-bottom: 24px
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
}

.form-group {
    margin-bottom: 16px
}

.form-group label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text)
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--card-border);
    border-radius: var(--radius-sm);
    background: var(--input-bg);
    color: var(--text);
    font-size: .9rem;
    transition: border-color var(--transition-fast)
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent)
}

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

.saved-addresses {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px
}

.address-radio {
    cursor: pointer
}

.address-radio input[type=radio] {
    display: none
}

.address-radio input[type=radio]:checked+.address-card {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.05)
}

.address-card {
    display: flex;
    flex-direction: column;
    padding: 14px 16px;
    border: 2px solid var(--card-border);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    gap: 2px;
    font-size: .85rem
}

.address-card .address-label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: .5px;
    margin-bottom: 2px
}

.address-add-new {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-weight: 600
}

.delivery-card,
.payment-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 2px solid var(--card-border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    transition: all var(--transition-fast);
    cursor: pointer
}

.delivery-radio input,
.payment-radio input {
    display: none
}

.delivery-radio input:checked+.delivery-card,
.payment-radio input:checked+.payment-card {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.05)
}

.delivery-icon,
.payment-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    font-size: 1.1rem;
    flex-shrink: 0
}

.delivery-info,
.payment-info {
    display: flex;
    flex-direction: column;
    gap: 2px
}

.delivery-info strong,
.payment-info strong {
    font-size: .9rem
}

.delivery-info span,
.payment-info span {
    font-size: .8rem;
    color: var(--text-muted)
}

.checkout-summary {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: 100px
}

.checkout-summary h4 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--card-border)
}

.checkout-items {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--card-border)
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: .85rem
}

.checkout-item-name {
    color: var(--text)
}

.checkout-item-qty {
    color: var(--text-muted)
}

.order-success-wrap {
    max-width: 700px;
    margin: 0 auto;
    text-align: center
}

.order-success-icon {
    font-size: 4.5rem;
    color: var(--emerald);
    margin-bottom: 16px
}

.order-success-wrap h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px
}

.order-success-msg {
    color: var(--text-muted);
    margin-bottom: 32px
}

.order-success-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: left;
    margin-bottom: 24px
}

.order-success-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--card-border);
    margin-bottom: 20px
}

.order-success-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--card-border)
}

.oss-item {
    display: flex;
    flex-direction: column;
    gap: 4px
}

.oss-item span:first-child {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-muted);
    font-weight: 600
}

.order-success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap
}

.orders-table-wrap {
    overflow-x: auto
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem
}

.orders-table th {
    text-align: left;
    padding: 14px 16px;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-muted);
    border-bottom: 2px solid var(--card-border);
    font-weight: 700
}

.orders-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--card-border);
    vertical-align: middle
}

.order-no-cell a {
    font-weight: 600;
    color: var(--accent);
    text-decoration: none
}

.order-no-cell a:hover {
    text-decoration: underline
}

.order-total-cell {
    font-weight: 700
}

.order-detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start
}

.order-tracking {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px
}

.order-tracking h3 {
    font-size: 1.1rem;
    margin-bottom: 20px
}

.timeline-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative
}

.timeline-steps::before {
    content: "";
    position: absolute;
    top: 16px;
    left: 24px;
    right: 24px;
    height: 3px;
    background: var(--card-border);
    z-index: 0
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
    flex: 1
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    background: var(--card-border);
    color: var(--text-muted);
    transition: all var(--transition-base)
}

.timeline-step.reached .step-dot {
    background: var(--accent);
    color: var(--white)
}

.timeline-step.current .step-dot {
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.3)
}

.step-label {
    font-size: .65rem;
    text-align: center;
    color: var(--text-muted);
    font-weight: 500;
    max-width: 70px;
    line-height: 1.2
}

.timeline-step.reached .step-label {
    color: var(--text);
    font-weight: 600
}

.tracking-entry {
    display: flex;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--card-border)
}

.tracking-entry:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0
}

.tracking-entry-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    margin-top: 4px
}

.tracking-entry-content strong {
    display: block;
    font-size: .9rem;
    margin-bottom: 2px
}

.tracking-entry-content p {
    font-size: .8rem;
    color: var(--text-muted);
    margin: 0
}

.tracking-entry-date {
    font-size: .75rem;
    color: var(--text-muted)
}

.order-items-detail {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 24px
}

.order-items-detail h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--card-border)
}

.order-item-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--card-border)
}

.order-item-row:last-child {
    border-bottom: none
}

.order-item-img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--card-bg);
    border: 1px solid var(--card-border)
}

.order-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.order-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px
}

.order-item-info a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600
}

.order-item-info a:hover {
    color: var(--accent)
}

.order-item-meta {
    font-size: .8rem;
    color: var(--text-muted)
}

.order-item-total {
    font-weight: 700;
    font-size: 1rem
}

.order-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px
}

.order-info-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 20px
}

.order-info-card h4 {
    font-size: .95rem;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--card-border)
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: .85rem;
    color: var(--text-muted)
}

.info-row.total-row {
    border-top: 2px solid var(--card-border);
    margin-top: 8px;
    padding-top: 12px;
    font-size: 1rem;
    color: var(--text)
}

.info-address {
    font-size: .85rem;
    color: var(--text-muted);
    line-height: 1.6
}

.badge.bg-ib {
    background: var(--blue-600);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: .75rem
}

.product-detail-section {
    padding: 40px 0 80px
}

.pd-breadcrumb {
    margin-bottom: 32px;
    font-size: .9rem;
    color: var(--text-muted)
}

.pd-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none
}

.pd-breadcrumb a:hover {
    color: var(--accent)
}

.pd-breadcrumb .sep {
    margin: 0 8px;
    color: var(--text-muted)
}

.pd-breadcrumb span:last-child {
    color: var(--accent);
    font-weight: 500
}

.pd-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start
}

.pd-gallery {
    position: sticky;
    top: 100px
}

.pd-main-image {
    position: relative;
    background: var(--bg-section);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    max-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    margin-bottom: 12px
}

.pd-main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain
}

.pd-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center
}

.pd-thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto
}

.pd-thumb {
    width: 72px;
    height: 72px;
    border: 2px solid var(--card-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-section);
    transition: border-color var(--transition-fast)
}

.pd-thumb:hover,
.pd-thumb.active {
    border-color: var(--accent)
}

.pd-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain
}

.pd-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(var(--white-rgb), 0.92);
    color: var(--gray-900);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all .25s ease;
    z-index: 5;
    box-shadow: 0 2px 12px var(--shadow-color);
    backdrop-filter: blur(4px)
}

.pd-arrow:hover {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 16px var(--shadow-color);
    transform: translateY(-50%) scale(1.08)
}

.pd-arrow:active {
    transform: translateY(-50%) scale(.95)
}

.pd-arrow-prev {
    left: 14px
}

.pd-arrow-next {
    right: 14px
}

#mainProductImage {
    transition: opacity .35s ease
}

.pd-fade-out {
    opacity: 0
}

.pd-fade-in {
    opacity: 1
}

.pd-brand {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--accent);
    margin-bottom: 8px
}

.pd-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.25
}

.pd-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px
}

.pd-price-old {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 500;
    margin-right: 12px
}

.pd-stock {
    margin-bottom: 20px
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: .85rem;
    font-weight: 600;
    background: var(--card-border);
    color: var(--text-muted)
}

.stock-badge.in-stock {
    background: rgba(var(--emerald-rgb), 0.12);
    color: var(--emerald)
}

.stock-badge.out-of-stock {
    background: rgba(var(--warning-rgb), 0.12);
    color: var(--warning)
}

.pd-cart-area {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--card-border)
}

.pd-qty-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap
}

.pd-qty {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--card-border);
    border-radius: var(--radius-sm);
    overflow: hidden
}

.pd-qty-btn {
    width: 40px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--input-bg);
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    user-select: none
}

.pd-qty-btn:hover {
    background: var(--accent);
    color: var(--white)
}

.pd-qty-input {
    width: 56px;
    height: 44px;
    text-align: center;
    border: none;
    border-left: 1.5px solid var(--card-border);
    border-right: 1.5px solid var(--card-border);
    background: var(--input-bg);
    color: var(--text);
    font-size: 1rem;
    font-weight: 600
}

.pd-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--gradient-accent);
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast)
}

.pd-add-btn:hover {
    opacity: .9;
    transform: translateY(-1px)
}

.pd-add-btn.disabled,
.pd-add-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none
}

.pd-cart-msg {
    margin-top: 10px;
    font-size: .9rem;
    font-weight: 600
}

.pd-meta-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 6px;
    margin-bottom: 24px
}

.pd-meta-item {
    padding: 8px 6px;
    background: var(--bg-section);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    font-size: .85rem;
    display: flex;
    flex-direction: column;
    gap: 2px
}

.pd-meta-item span {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--text-muted);
    font-weight: 600
}

.pd-meta-item strong,
.pd-meta-item code {
    font-size: .9rem
}

.pd-desc,
.pd-detail {
    margin-bottom: 20px
}

.pd-desc h5,
.pd-detail h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px
}

.pd-desc p,
.pd-detail div {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: .95rem
}

.pd-detail div h3,
.pd-detail div h4,
.pd-detail div h5 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
    margin: 12px 0 6px
}

.pd-detail div ul,
.pd-detail div ol {
    padding-left: 20px;
    margin: 8px 0
}

.pd-detail div li {
    margin-bottom: 4px
}

.pd-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap
}

.pd-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .9rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast)
}

.pd-link:hover {
    color: var(--accent)
}

@media(max-width: 992px) {
    .products-layout {
        grid-template-columns: 1fr
    }

    .products-sidebar {
        position: static
    }

    .cart-layout {
        grid-template-columns: 1fr
    }

    .checkout-layout {
        grid-template-columns: 1fr
    }

    .order-detail-layout,
    .pd-layout {
        grid-template-columns: 1fr
    }

    .pd-gallery {
        position: static
    }

    .timeline-steps {
        overflow-x: auto
    }

    .form-row {
        grid-template-columns: 1fr
    }

    .order-success-summary {
        grid-template-columns: 1fr
    }

    .cart-header {
        display: none
    }

    .cart-item {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px 0;
        position: relative
    }

    .cart-item-product {
        grid-column: 1
    }

    .cart-item-price,
    .cart-item-qty,
    .cart-item-total {
        display: flex;
        align-items: center;
        gap: 8px
    }

    .cart-item-price::before {
        content: "Price: ";
        font-weight: 600;
        color: var(--text-muted)
    }

    .cart-item-qty::before {
        content: "Qty: ";
        font-weight: 600;
        color: var(--text-muted)
    }

    .cart-item-total::before {
        content: "Total: ";
        font-weight: 600;
        color: var(--text-muted)
    }

    .cart-item-remove {
        position: absolute;
        top: 12px;
        right: 0
    }
}

@media(max-width: 576px) {
    .products-toolbar {
        flex-direction: column;
        align-items: flex-start
    }

    .order-item-row {
        flex-wrap: wrap
    }

    .order-item-total {
        width: 100%;
        text-align: right
    }
}

@media(max-width: 992px) {
    .hero-section .hero-content {
        grid-template-columns: 1fr;
        text-align: center
    }

    .hero-section .hero-content .hero-text p {
        margin: 0 auto 32px
    }

    .hero-section .hero-content .hero-text .hero-buttons {
        justify-content: center
    }

    .hero-section .hero-content .hero-text .hero-stats {
        justify-content: center
    }

    .hero-section .hero-content .hero-visual {
        display: none
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .contact-section .contact-wrapper {
        grid-template-columns: 1fr
    }
}

@media(max-width: 576px) {
    .section {
        padding: 60px 0
    }

    .section-title {
        font-size: 1.8rem
    }

    .categories-grid {
        grid-template-columns: 1fr
    }

    .products-grid {
        grid-template-columns: 1fr
    }

    .features-grid {
        grid-template-columns: 1fr
    }

    .contact-section .contact-form .form-row {
        grid-template-columns: 1fr
    }

    .hero-section .hero-text h1 {
        font-size: 2.2rem
    }

    .hero-section .hero-stats {
        flex-wrap: wrap;
        gap: 20px
    }

    .cta-box {
        padding: 40px 24px
    }

    .newsletter-input-group {
        flex-direction: column
    }

    .newsletter-input-group .btn {
        border-radius: 0
    }
}

@media(max-width: 1200px) {
    .container {
        max-width: 1140px
    }
}

@media(max-width: 992px) {
    :root {
        --header-height: 64px
    }
}

@media(max-width: 768px) {
    .section-title br {
        display: none
    }
}

@media(max-width: 576px) {
    .btn {
        padding: 12px 24px;
        font-size: .9rem
    }

    .hero-section .hero-content .hero-text .hero-stats {
        flex-direction: column;
        gap: 20px
    }
}

/*# sourceMappingURL=custom_css.css.map */