@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Sora:wght@600;700;800&display=swap');

:root {
    --bg-dark: #0a1220;
    --card-dark: #111d2f;
    --accent-gold: #d9ad63;
    --accent-gold-hover: #c48a2e;
    --accent-blue: #4a6fa6;
    --accent-blue-soft: rgba(74, 111, 166, 0.14);
    --text-white: #f5f7fb;
    --muted-gray: #a6b5c8;
    --header-bg: rgba(10, 18, 32, 0.86);
    --nav-text: #c8d2e0;
    --nav-active-bg: rgba(217, 173, 99, 0.12);
    --nav-active-text: #f7d79b;
    --border-rgba: rgba(255, 255, 255, 0.08);
    --button-bg: var(--accent-gold);
    --button-text: #0b1220;
    --button-hover-bg: var(--accent-gold-hover);
    --button-border: rgba(217, 173, 99, 0.36);
    --button-shadow: rgba(217, 173, 99, 0.24);
    --button-shimmer-color: rgba(255, 255, 255, 0.32);
    --menu-highlight: var(--accent-gold);
    --menu-active-bg: var(--accent-blue-soft);
    --chip-color: var(--accent-gold);
    --surface-color: var(--card-dark);
    --panel-border: rgba(255, 255, 255, 0.08);
    --panel-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
    --soft-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    --radius-md: 12px;
    --radius-lg: 22px;
    --transition-smooth: all 0.24s ease;
    --brand-name-size: 22px;
    --brand-logo-height: 36px;
    --media-fit-mode: cover;
    --media-focus-x: 50%;
    --media-focus-y: 50%;
    --media-zoom-scale: 1;
    --media-thumb-size: 56px;
    --media-product-height: 220px;
    --media-service-height: 170px;
    --media-work-height: 110px;
    --media-about-height: 360px;
    --media-hero-height: 420px;
    --media-partner-logo-width: 106px;
    --media-partner-logo-height: 34px;
    --work-title-size: 18px;
    --work-meta-size: 13px;
    --work-summary-size: 14px;
    --service-title-size: 18px;
    --service-subtitle-size: 13px;
    --service-summary-size: 14px;
    --service-animation-height: 170px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
    font-family: 'Manrope', sans-serif;
    background:
        radial-gradient(circle at 12% 18%, rgba(177, 248, 221, 0.7), transparent 18%),
        radial-gradient(circle at 78% 15%, rgba(255, 215, 193, 0.6), transparent 18%),
        radial-gradient(circle at 62% 72%, rgba(197, 216, 255, 0.52), transparent 20%),
        linear-gradient(180deg, #f8fbff 0%, #f3f5f9 100%);
    color: var(--text-white);
    min-height: 100vh;
}

.main-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    padding: 10px 18px;
    background: rgba(9, 17, 29, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(16px);
}

.logo-slot {
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
    flex-wrap: nowrap;
    min-width: 0;
    flex: 1 1 auto;
}

.logo-container {
    font-size: var(--brand-name-size);
    font-weight: 800;
    letter-spacing: 0.8px;
}

#header-text-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.12em;
    color: #D7263D;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
}

#header-text-brand .brand-red,
#header-text-brand .brand-blue {
    display: inline-block;
    white-space: nowrap;
    -webkit-text-fill-color: currentColor;
}

#header-text-brand .brand-red {
    color: #D7263D !important;
    text-shadow: -0.7px -0.7px 0 #ffffff, 0.7px -0.7px 0 #ffffff, -0.7px 0.7px 0 #ffffff, 0.7px 0.7px 0 #ffffff;
}

#header-text-brand .brand-blue {
    color: #1D4ED8 !important;
    text-shadow: -0.7px -0.7px 0 #ffffff, 0.7px -0.7px 0 #ffffff, -0.7px 0.7px 0 #ffffff, 0.7px 0.7px 0 #ffffff;
}

.home-page-header-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-blue);
    letter-spacing: 0.2px;
    white-space: nowrap;
    margin-left: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-animated-star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    color: var(--accent-blue);
    font-size: 16px;
    animation: headerStarPulse 1.2s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(246, 196, 83, 0.55);
}

.project-nav-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    z-index: 1300;
}

.project-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: min(280px, 92vw);
    max-width: min(280px, calc(100vw - 20px));
    min-width: 220px;
    max-height: min(70vh, 360px);
    display: grid;
    gap: 8px;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(246, 196, 83, 0.22);
    background: linear-gradient(145deg, rgba(16, 25, 44, 0.96), rgba(7, 12, 21, 0.96));
    box-shadow: var(--soft-shadow);
    z-index: 1401;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.project-menu .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: flex-start;
    padding: 10px 12px;
    border-radius: 10px;
    text-align: left;
    min-height: 42px;
    touch-action: manipulation;
    white-space: nowrap;
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(6, 10, 18, 0.42);
}

.project-menu .nav-link::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--menu-highlight), color-mix(in srgb, var(--menu-highlight) 80%, #fff 20%));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--menu-highlight) 16%, transparent);
    flex: 0 0 auto;
}

.project-menu .nav-link:hover,
.project-menu .nav-link:focus-visible {
    background: color-mix(in srgb, var(--menu-highlight) 14%, transparent);
    color: color-mix(in srgb, var(--text-white) 90%, var(--menu-highlight) 10%);
    border-color: color-mix(in srgb, var(--menu-highlight) 26%, transparent);
}

@media (max-width: 980px) {
    .main-header {
        overflow: visible;
    }

    .app-router {
        overflow: visible;
        z-index: 1100;
    }

    .project-nav-wrap {
        z-index: 1600;
    }

    .project-menu {
        position: fixed;
        top: 74px;
        left: 10px;
        right: 10px;
        width: auto;
        min-width: 0;
        max-width: none;
        max-height: min(74vh, 420px);
        overflow-y: auto;
        padding: 10px;
        border-radius: 16px;
        z-index: 1600;
    }

    .project-menu .nav-link {
        padding: 12px 13px;
        font-size: 15px;
        min-height: 46px;
    }
}

@keyframes headerStarPulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.85; }
    50% { transform: scale(1.22) rotate(12deg); opacity: 1; }
}

@keyframes heroSurfaceGlow {
    0% { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04); }
    100% { box-shadow: inset 0 0 0 1px rgba(255, 184, 0, 0.1); }
}

@keyframes softBackgroundDriftA {
    0% {
        transform: translate3d(-4%, -3%, 0) scale(1.04);
        opacity: 0.72;
    }
    25% {
        transform: translate3d(5%, 4%, 0) scale(1.18);
        opacity: 1;
    }
    50% {
        transform: translate3d(-3%, 7%, 0) scale(1.26);
        opacity: 1;
    }
    75% {
        transform: translate3d(6%, 2%, 0) scale(1.2);
        opacity: 0.92;
    }
    100% {
        transform: translate3d(-2%, 5%, 0) scale(1.28);
        opacity: 0.78;
    }
}

@keyframes softBackgroundDriftB {
    0% {
        transform: translate3d(4%, -2%, 0) scale(1.08);
        opacity: 0.7;
    }
    20% {
        transform: translate3d(-5%, 3%, 0) scale(1.2);
        opacity: 0.96;
    }
    50% {
        transform: translate3d(6%, -5%, 0) scale(1.28);
        opacity: 1;
    }
    75% {
        transform: translate3d(-4%, 5%, 0) scale(1.22);
        opacity: 0.95;
    }
    100% {
        transform: translate3d(3%, 6%, 0) scale(1.3);
        opacity: 0.82;
    }
}

@keyframes heroMatrixShimmer {
    0% {
        opacity: 0;
        transform: translate3d(-4%, -2%, 0) scale(1.02) rotate(0deg);
    }
    12% {
        opacity: 0.9;
    }
    28% {
        opacity: 0.35;
        transform: translate3d(5%, 2%, 0) scale(1.08) rotate(1.5deg);
    }
    42% {
        opacity: 0.95;
        transform: translate3d(-2%, 4%, 0) scale(1.12) rotate(-1deg);
    }
    58% {
        opacity: 0.2;
        transform: translate3d(8%, -3%, 0) scale(1.15) rotate(2deg);
    }
    74% {
        opacity: 0.9;
        transform: translate3d(-6%, 3%, 0) scale(1.09) rotate(-1.8deg);
    }
    100% {
        opacity: 0;
        transform: translate3d(4%, 0%, 0) scale(1.18) rotate(0deg);
    }
}

@keyframes heroMatrixShimmerReverse {
    0% {
        opacity: 0.2;
        transform: translate3d(0%, 0%, 0) scale(1.04) rotate(0deg);
    }
    18% {
        opacity: 1;
        transform: translate3d(-5%, 3%, 0) scale(1.09) rotate(-2deg);
    }
    35% {
        opacity: 0.3;
        transform: translate3d(4%, -2%, 0) scale(1.12) rotate(1.4deg);
    }
    56% {
        opacity: 0.9;
        transform: translate3d(-7%, 5%, 0) scale(1.16) rotate(-1.3deg);
    }
    80% {
        opacity: 0.25;
        transform: translate3d(6%, -4%, 0) scale(1.1) rotate(1.8deg);
    }
    100% {
        opacity: 0;
        transform: translate3d(-4%, 2%, 0) scale(1.18) rotate(0deg);
    }
}

@keyframes heroCardFloat {
    0% { transform: translateY(-50%) translateX(0); }
    100% { transform: translateY(-50%) translateX(6px); }
}

.animate-fade-in {
    animation: fadeInUp 0.55s ease both;
}

.animate-slide-in {
    animation: slideInRight 0.45s ease both;
}

.animate-rise-in {
    animation: riseIn 0.45s ease both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(14px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideTickerLeft {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@keyframes slideTickerRight {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes cartPulseGlow {
    0%,
    100% {
        box-shadow: 0 0 0 1px rgba(255, 184, 0, 0.16), 0 10px 22px rgba(0, 0, 0, 0.34);
    }
    50% {
        box-shadow: 0 0 0 1px rgba(255, 184, 0, 0.36), 0 0 20px rgba(255, 184, 0, 0.22), 0 12px 24px rgba(0, 0, 0, 0.34);
    }
}

@keyframes checkoutShine {
    from {
        transform: translateX(-115%);
    }
    to {
        transform: translateX(115%);
    }
}

@keyframes buttonPulseGlow {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 10px 18px var(--button-shadow);
    }
    50% {
        transform: translateY(-1px) scale(1.01);
        box-shadow: 0 14px 24px var(--button-shadow);
    }
}

@keyframes checkoutPanelBreathe {
    0%,
    100% {
        border-color: rgba(246, 196, 83, 0.22);
    }
    50% {
        border-color: rgba(246, 196, 83, 0.42);
    }
}

#view-home {
    position: relative;
    min-height: calc(100vh - 140px);
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 18% 18%, rgba(177, 247, 226, 0.72), transparent 18%),
        radial-gradient(circle at 74% 14%, rgba(214, 230, 255, 0.42), transparent 18%),
        radial-gradient(circle at 58% 72%, rgba(195, 220, 255, 0.42), transparent 20%),
        radial-gradient(circle at 86% 46%, rgba(220, 232, 255, 0.28), transparent 20%),
        radial-gradient(circle at 28% 62%, rgba(192, 237, 255, 0.2), transparent 18%),
        radial-gradient(circle at 64% 42%, rgba(203, 255, 240, 0.18), transparent 18%),
        radial-gradient(circle at 44% 14%, rgba(201, 255, 232, 0.22), transparent 16%),
        linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
}

#view-home::before,
#view-home::after {
    content: "";
    position: absolute;
    inset: -10% -8%;
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
}

#view-home::before {
    background:
        radial-gradient(circle at 10% 12%, rgba(255, 208, 224, 0.28), transparent 15%),
        radial-gradient(circle at 18% 22%, rgba(255, 214, 166, 0.24), transparent 18%),
        radial-gradient(circle at 8% 70%, rgba(255, 212, 160, 0.18), transparent 17%),
        radial-gradient(circle at 90% 12%, rgba(255, 214, 166, 0.22), transparent 16%),
        radial-gradient(circle at 92% 76%, rgba(255, 208, 224, 0.2), transparent 18%),
        radial-gradient(circle at 12% 30%, rgba(171, 235, 220, 0.74), transparent 18%),
        radial-gradient(circle at 34% 54%, rgba(201, 237, 255, 0.62), transparent 17%),
        radial-gradient(circle at 59% 38%, rgba(214, 230, 255, 0.36), transparent 18%),
        radial-gradient(circle at 76% 30%, rgba(214, 228, 255, 0.26), transparent 18%),
        radial-gradient(circle at 68% 76%, rgba(204, 231, 255, 0.2), transparent 20%),
        radial-gradient(circle at 46% 14%, rgba(201, 255, 232, 0.2), transparent 16%),
        radial-gradient(circle at 82% 62%, rgba(214, 240, 255, 0.18), transparent 15%);
    animation: softBackgroundDriftA 18s ease-in-out infinite alternate;
}

#view-home::after {
    background:
        radial-gradient(circle at 20% 84%, rgba(255, 210, 165, 0.18), transparent 15%),
        radial-gradient(circle at 78% 18%, rgba(255, 213, 200, 0.14), transparent 15%),
        radial-gradient(circle at 24% 82%, rgba(188, 255, 224, 0.44), transparent 16%),
        radial-gradient(circle at 64% 26%, rgba(206, 227, 255, 0.3), transparent 18%),
        radial-gradient(circle at 88% 68%, rgba(167, 210, 255, 0.34), transparent 20%),
        radial-gradient(circle at 44% 14%, rgba(220, 235, 255, 0.2), transparent 16%),
        radial-gradient(circle at 14% 74%, rgba(208, 233, 255, 0.18), transparent 15%),
        radial-gradient(circle at 80% 52%, rgba(191, 245, 255, 0.18), transparent 16%),
        radial-gradient(circle at 58% 60%, rgba(181, 244, 255, 0.24), transparent 18%);
    animation: softBackgroundDriftB 20s ease-in-out infinite alternate-reverse;
}

.home-fullpage-media-layer {
    position: absolute;
    inset: 0;
    min-height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    display: block;
    border-radius: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    background: transparent;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 1);
}

.home-fullpage-media-tile {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
    background: transparent;
    display: block;
    transform: translateY(0) scale(1);
    transition: transform 0.25s ease;
}

.home-fullpage-media-item {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    background: transparent;
    border-radius: inherit;
    transform: scale(1.02);
}

.home-hero-overlay {
    position: relative;
    z-index: 1;
}

.home-hero-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
    border-radius: inherit;
}

#view-home .hero-context {
    position: relative;
    z-index: 1;
}
.header-overflow-menu-wrap {
    display: flex;
    align-items: center;
    position: relative;
    margin-left: auto;
    z-index: 1400;
    flex-shrink: 0;
}

.header-overflow-toggle {
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
    font-size: 26px;
    line-height: 1;
    border-radius: 999px;
    background: transparent;
    color: #ffffff;
    border: none;
    box-shadow: none;
    opacity: 0.9;
}

.header-overflow-toggle:hover,
.header-overflow-toggle:focus,
.header-overflow-toggle:active {
    background: transparent;
    border: none;
    box-shadow: none;
    color: #ffffff;
    opacity: 1;
}

.header-overflow-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(320px, 92vw);
    max-width: min(320px, calc(100vw - 20px));
    min-width: 180px;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(246, 196, 83, 0.22);
    background: rgba(7, 12, 21, 0.98);
    box-shadow: var(--panel-shadow);
    display: grid;
    gap: 8px;
    z-index: 1401;
}

.header-overflow-menu .mobile-overflow-link {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
}
.logo-accent {
    color: var(--accent-gold);
}

.app-router {
    display: flex;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: wrap;
    position: relative;
    align-items: center;
}

.master-menu-search-wrap {
    display: flex;
    align-items: center;
    z-index: 1400;
    gap: 6px;
    min-width: 260px;
    flex: 0 0 320px;
    position: relative;
}

.master-menu-search {
    min-width: 230px;
    height: 36px;
}

.master-menu-suggestions {
    position: absolute;
    top: 40px;
    z-index: 1401;
    left: 0;
    right: 64px;
    background: #10192c;
    border: 1px solid rgba(255, 184, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1600;
    max-height: 260px;
    overflow-y: auto;
}

.master-suggestion-item {
    padding: 8px 10px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.master-suggestion-item:last-child {
    border-bottom: none;
}

.master-suggestion-item:hover,
.master-suggestion-item.active {
    background: rgba(255, 184, 0, 0.12);
}

.master-suggestion-item .hint {
    display: block;
    color: var(--muted-gray);
    font-size: 12px;
}

.nav-link {
    background: rgba(255, 255, 255, 0.02);
    color: var(--nav-text);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 9px 14px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    letter-spacing: 0.01em;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-white);
    background: linear-gradient(145deg, rgba(217, 173, 99, 0.14), rgba(255, 255, 255, 0.02));
    border-color: rgba(217, 173, 99, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-link:active {
    transform: translateY(1px) scale(0.98);
    background: color-mix(in srgb, var(--menu-highlight) 18%, transparent);
}

.nav-link.admin-trigger {
    border: 1px solid var(--accent-gold);
    color: #ffffff;
    margin-left: 0;
}

.nav-link.admin-trigger:hover {
    background: var(--accent-gold);
    color: #000;
}

.nav-link.login-highlight {
    border: 1px solid #ffffff;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.03);
}

.nav-link.login-highlight:hover,
.nav-link.login-highlight.active {
    background: #ffffff;
    color: #000000;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.status-badge.active {
    color: #0f5132;
    background: #d1e7dd;
}

.status-badge.expiring {
    color: #664d03;
    background: #fff3cd;
}

.status-badge.expired {
    color: #842029;
    background: #f8d7da;
}

.cart-pill {
    display: inline-flex;
    align-items: center;
    order: 6;
    flex: 0 0 auto;
    justify-content: flex-end;
    margin-left: 0;
    margin-top: 0;
    background: linear-gradient(145deg, rgba(20, 36, 59, 0.98), rgba(10, 17, 30, 0.98));
    border: 1px solid var(--accent-gold);
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    color: #ffe9b5;
    box-shadow: 0 0 0 1px rgba(255, 184, 0, 0.16), 0 10px 22px rgba(0, 0, 0, 0.34);
    animation: cartPulseGlow 2.5s ease-in-out infinite;
}

#checkout-btn {
    white-space: nowrap;
    border-color: var(--button-border);
    color: var(--button-text);
    background: linear-gradient(145deg, var(--button-bg) 0%, var(--button-hover-bg) 55%, var(--button-bg) 100%);
    box-shadow: 0 10px 20px var(--button-shadow);
    overflow: hidden;
    position: relative;
}

.action-btn::after,
#checkout-btn::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 38%;
    background: linear-gradient(105deg, transparent 0%, var(--button-shimmer-color) 50%, transparent 100%);
    transform: translateX(-135%);
    pointer-events: none;
    opacity: 0;
}

.theme-button-shimmer-enabled .action-btn::after,
.theme-button-shimmer-enabled #checkout-btn::after {
    opacity: 1;
    animation: checkoutShine 2.8s linear infinite;
}

#checkout-btn:hover,
#checkout-btn.active {
    color: var(--button-text);
    border-color: var(--button-border);
    background: linear-gradient(145deg, var(--button-hover-bg) 0%, var(--button-bg) 55%, var(--button-hover-bg) 100%);
    box-shadow: 0 12px 24px var(--button-shadow);
}

.viewport-manager {
    padding: 0;
    max-width: 100%;
    margin: 0 auto;
}

.app-view {
    display: none;
}

.app-view.active-view {
    display: block;
}

#view-works {
    padding-left: 24px;
    padding-right: 16px;
    box-sizing: border-box;
}

.hero-context {
    margin-bottom: 18px;
}

.home-hero-followup {
    padding: 24px 16px 32px;
    overflow-x: hidden;
}

.home-hero-followup-card {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.home-hero-followup-card h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.18;
    font-weight: 800;
    color: var(--text-white);
}

.home-hero-followup-card p {
    margin: 0;
    color: var(--muted-gray);
    font-size: 15px;
    line-height: 1.68;
    max-width: 760px;
}

.hero-context h1 {
    font-family: 'Sora', 'Manrope', sans-serif;
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: 0.2px;
    line-height: 1.15;
    color: var(--text-white);
}

.hero-context p {
    color: var(--muted-gray);
    font-size: 15px;
    max-width: 760px;
    line-height: 1.65;
}

.hero-copy-stack {
    max-width: 100%;
    width: 100%;
}

.product-node {
    background: linear-gradient(150deg, var(--card-dark), rgba(8, 13, 24, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    width: calc(33.333% - 14px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.product-node:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 184, 0, 0.32);
    box-shadow: var(--panel-shadow);
}

.action-btn {
    position: relative;
    background: linear-gradient(145deg, var(--button-bg), var(--button-hover-bg));
    color: var(--button-text);
    border: 1px solid var(--button-border);
    padding: 12px 14px;
    width: 100%;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 18px var(--button-shadow);
    overflow: hidden;
}

.theme-button-animations-enabled .action-btn,
.theme-button-animations-enabled #checkout-btn {
    animation: buttonPulseGlow 2.4s ease-in-out infinite alternate;
}

.action-btn:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.action-btn:active {
    transform: translateY(1px) scale(0.985);
    filter: brightness(0.95);
    box-shadow: inset 0 0 0 999px rgba(0, 0, 0, 0.08);
}

.checkout-sidebar {
    flex: 1;
    background: linear-gradient(145deg, var(--card-dark), rgba(8, 13, 24, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 25px;
    height: fit-content;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.divider {
    border: none;
    border-top: 1px dashed var(--border-rgba);
    margin: 15px 0;
}

.summary-line {
    margin-bottom: 12px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}

.summary-line.total {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-gold);
    margin: 20px 0;
}

.services-matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.tech-ribbon,
.work-ribbon {
    border: 1px solid rgba(255, 184, 0, 0.2);
    border-radius: 999px;
    background: linear-gradient(145deg, rgba(12, 19, 33, 0.92), rgba(7, 12, 21, 0.92));
    overflow: hidden;
    padding: 8px 0;
    margin: -12px 0 22px;
}

.tech-ribbon-track,
.work-ribbon-track {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    white-space: nowrap;
    min-width: 200%;
    animation: slideTickerLeft 26s linear infinite;
}

.work-ribbon-track {
    animation-duration: 30s;
}

.tech-ribbon:hover .tech-ribbon-track,
.work-ribbon:hover .work-ribbon-track {
    animation-play-state: paused;
}

.tech-ribbon-track span,
.work-ribbon-track span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 184, 0, 0.26);
    background: rgba(255, 184, 0, 0.08);
    color: #ffe8af;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.tech-ribbon-track span::before,
.work-ribbon-track span::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffcb4d, #ffb800);
    box-shadow: 0 0 10px rgba(255, 184, 0, 0.6);
}

.service-panel-card {
    background: linear-gradient(180deg, rgba(16, 23, 36, 0.96), rgba(10, 16, 28, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px 22px;
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.service-panel-card::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, rgba(217, 173, 99, 0.9), rgba(74, 111, 166, 0.85));
}

.service-panel-card:hover {
    transform: translateY(-5px);
    border-color: rgba(217, 173, 99, 0.28);
    box-shadow: 0 18px 42px rgba(2, 6, 12, 0.4);
}

.service-panel-card h3 {
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--accent-gold);
}

.service-panel-card p {
    color: var(--muted-gray);
    font-size: 13.5px;
    line-height: 1.5;
}

.service-media {
    width: 100%;
    height: var(--media-service-height);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #000;
    object-fit: cover;
    margin-bottom: 12px;
}

.summary-segments {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.summary-segment {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px 12px;
    background: linear-gradient(145deg, rgba(16, 25, 44, 0.95), rgba(7, 12, 21, 0.95));
}

.summary-segment .segment-label {
    font-size: 12px;
    color: rgba(226, 238, 255, 0.82);
    margin-bottom: 4px;
}

.summary-segment .segment-value {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.segment-pl {
    border-color: rgba(246, 196, 83, 0.38);
    background: linear-gradient(145deg, rgba(80, 56, 4, 0.55), rgba(28, 19, 3, 0.7));
}

.segment-payable {
    border-color: rgba(255, 107, 107, 0.38);
    background: linear-gradient(145deg, rgba(76, 14, 20, 0.58), rgba(36, 8, 10, 0.75));
}

.segment-receivable {
    border-color: rgba(72, 211, 145, 0.4);
    background: linear-gradient(145deg, rgba(12, 56, 44, 0.58), rgba(8, 28, 23, 0.75));
}

.segment-sales-total {
    border-color: rgba(246, 196, 83, 0.34);
}

.segment-sales-web {
    border-color: rgba(99, 179, 237, 0.38);
}

.segment-sales-external {
    border-color: rgba(56, 189, 179, 0.38);
}

.segment-sales-records {
    border-color: rgba(237, 137, 54, 0.4);
}

.segment-sales-period {
    border-color: rgba(160, 174, 192, 0.42);
}

.form-element {
    width: 100%;
    background: linear-gradient(160deg, rgba(6, 10, 18, 0.95), rgba(10, 16, 28, 0.95));
    border: 1px solid rgba(255, 184, 0, 0.14);
    padding: 11px;
    color: #FFF;
    border-radius: 8px;
    margin-top: 5px;
    outline: none;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.form-element:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.16);
    transform: translateY(-1px);
}
.product-card {
    background: linear-gradient(150deg, color-mix(in srgb, var(--surface-color) 95%, #000 5%), color-mix(in srgb, var(--surface-color) 90%, #111 10%));
    border: 1px solid color-mix(in srgb, var(--panel-border) 18%, rgba(255, 255, 255, 0.08));
    border-radius: 16px;
    padding: 0;
    width: calc(33.333% - 14px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--menu-highlight) 35%, transparent);
    box-shadow: var(--panel-shadow);
}

.product-card-content {
    padding: 16px;
    display: grid;
    gap: 8px;
}

.product-image {
    width: 100%;
    height: var(--media-product-height);
    object-fit: var(--media-fit-mode);
    object-position: var(--media-focus-x) var(--media-focus-y);
    transform: scale(var(--media-zoom-scale));
    transform-origin: center;
    background: #060a12;
    border-bottom: 1px solid var(--border-rgba);
}

.product-image-fallback {
    width: 100%;
    height: var(--media-product-height);
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #172239, #0b111f);
    color: #ffdd83;
    font-weight: 700;
    letter-spacing: 0.6px;
    border-bottom: 1px solid var(--border-rgba);
}

.product-card h3 {
    color: #fff;
    margin-bottom: 4px;
}

.product-meta {
    color: var(--muted-gray);
    font-size: 13px;
}

.admin-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 10px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    background: rgba(6, 10, 18, 0.44);
}

.admin-product-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-thumb {
    width: var(--media-thumb-size);
    height: var(--media-thumb-size);
    border-radius: 8px;
    object-fit: var(--media-fit-mode);
    object-position: var(--media-focus-x) var(--media-focus-y);
    transform: scale(var(--media-zoom-scale));
    transform-origin: center;
    border: 1px solid var(--border-rgba);
    background: #060a12;
}

.btn-secondary {
    background: color-mix(in srgb, var(--menu-highlight) 6%, transparent);
    color: var(--menu-highlight);
    border: 1px solid color-mix(in srgb, var(--menu-highlight) 70%, transparent);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: color-mix(in srgb, var(--menu-highlight) 14%, transparent);
    color: color-mix(in srgb, var(--text-white) 90%, var(--menu-highlight) 10%);
}

.btn-secondary:active {
    transform: translateY(1px) scale(0.985);
    box-shadow: inset 0 0 0 999px rgba(255, 184, 0, 0.08);
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mini-btn {
    margin-top: 6px;
    padding: 4px 10px;
    font-size: 12px;
}

.hidden {
    display: none !important;
}

.status-box {
    background: rgba(255,184,0,0.12);
    color: #ffd978;
    border: 1px solid rgba(255,184,0,0.25);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

#toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    transform: translateY(14px);
    opacity: 0;
    transition: all 0.25s ease;
    z-index: 2000;
    max-width: 320px;
}

#toast.show {
    opacity: 1;
    transform: translateY(0);
}
.app-footer {
    text-align: center;
    padding: 30px;
    color: var(--muted-gray);
    font-size: 12px;
    border-top: 1px solid var(--border-rgba);
    margin-top: 60px;
}

.brand-marquee-zone {
    margin: 24px auto 0;
    max-width: 1400px;
    padding: 0 40px 10px;
}

.brand-marquee-title-wrap {
    text-align: center;
    margin-bottom: 16px;
}

.brand-marquee-title-wrap h2 {
    font-family: 'Sora', 'Manrope', sans-serif;
    font-size: 23px;
    margin-bottom: 6px;
}

.brand-marquee-title-wrap p {
    color: var(--muted-gray);
    font-size: 14px;
}

.brand-marquee {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(255, 184, 0, 0.22);
    background: linear-gradient(145deg, rgba(16, 25, 44, 0.9), rgba(7, 12, 21, 0.92));
    margin-top: 12px;
}

.brand-marquee-track {
    display: inline-flex;
    gap: 10px;
    padding: 11px 0;
    min-width: 200%;
    white-space: nowrap;
}

.brand-marquee-left .brand-marquee-track {
    animation: slideTickerLeft 36s linear infinite;
}

.brand-marquee-right .brand-marquee-track {
    animation: slideTickerRight 36s linear infinite;
}

.brand-marquee-single .brand-marquee-track {
    animation: slideTickerLeft 78s linear infinite;
}

.brand-marquee:hover .brand-marquee-track {
    animation-play-state: paused;
}

.brand-marquee-track span {
    margin-left: 12px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--chip-color) 24%, transparent);
    background: color-mix(in srgb, var(--chip-color) 8%, transparent);
    color: color-mix(in srgb, var(--text-white) 90%, var(--chip-color) 10%);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.25px;
}

.brand-logo-chip {
    margin-left: 12px;
    width: 138px;
    height: 56px;
    border-radius: 12px;
    border: 1px solid rgba(255, 184, 0, 0.24);
    background: rgba(255, 255, 255, 0.98);
    display: grid;
    place-items: center;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.brand-logo-chip img {
    max-width: var(--media-partner-logo-width);
    max-height: var(--media-partner-logo-height);
    object-fit: contain;
}

.partner-logo-empty {
    margin-left: 12px;
    padding: 10px 14px;
    color: #ffe8ad;
    font-size: 13px;
}

.logo-slot img {
    height: var(--brand-logo-height);
    width: auto;
    object-fit: contain;
}

.logo-container {
    font-size: var(--brand-name-size);
    font-weight: 800;
    letter-spacing: 0.8px;
}

.hero-surface {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.9)),
        radial-gradient(circle at 72% 20%, rgba(82, 196, 255, 0.12), transparent 32%);
    padding: 0;
    border-radius: 0;
    min-height: min(58svh, 500px);
    height: min(58svh, 500px);
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    border: 0;
    box-shadow: none;
    overflow: hidden;
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    animation: heroSurfaceGlow 7s ease-in-out infinite alternate;
}

.hero-resize-controls {
    display: none !important;
}

.hero-media-stage {
    position: relative;
    z-index: 1;
    min-height: 100%;
    height: 100%;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
    display: block;
    gap: 4px;
    margin: 6px;
    box-shadow: inset 0 0 0 1px rgba(144, 200, 255, 0.13);
}

.hero-media-stage::before,
.hero-media-stage::after {
    content: "";
    position: absolute;
    inset: -10%;
    pointer-events: none;
    z-index: 0;
    opacity: 1;
}

.hero-media-stage::before {
    background:
        linear-gradient(120deg, transparent 0 10%, rgba(255, 255, 255, 0.98) 11%, rgba(182, 239, 255, 0.8) 12%, transparent 13.5%, transparent 26%, rgba(255, 255, 255, 0.9) 27%, rgba(118, 217, 255, 0.76) 28.5%, transparent 30%, transparent 46%, rgba(206, 255, 247, 0.72) 47%, rgba(255, 255, 255, 0.94) 49%, transparent 50.5%, transparent 62%, rgba(181, 230, 255, 0.76) 63%, transparent 64.5%, transparent 80%, rgba(255, 255, 255, 0.92) 81%, rgba(135, 224, 255, 0.68) 82.5%, transparent 84%, transparent 100%),
        linear-gradient(84deg, transparent 0 19%, rgba(255, 255, 255, 0.96) 20%, rgba(146, 222, 255, 0.76) 21%, transparent 22.5%, transparent 38%, rgba(207, 255, 248, 0.7) 39%, rgba(255, 255, 255, 0.9) 40.5%, transparent 42%, transparent 57%, rgba(170, 227, 255, 0.72) 58%, transparent 60%, transparent 75%, rgba(255, 255, 255, 0.96) 76%, rgba(136, 223, 255, 0.7) 77.5%, transparent 79%, transparent 100%),
        radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.9), transparent 16%),
        radial-gradient(circle at 81% 32%, rgba(206, 255, 246, 0.72), transparent 17%),
        radial-gradient(circle at 52% 70%, rgba(175, 231, 255, 0.76), transparent 20%),
        radial-gradient(circle at 68% 60%, rgba(255, 255, 255, 0.82), transparent 14%),
        radial-gradient(circle at 35% 58%, rgba(160, 245, 255, 0.42), transparent 12%),
        radial-gradient(circle at 72% 18%, rgba(224, 255, 250, 0.38), transparent 11%);
    filter: blur(24px) saturate(2.1);
    animation: heroMatrixShimmer 6.8s ease-in-out infinite;
}

.hero-media-stage::after {
    background:
        repeating-linear-gradient(
            122deg,
            rgba(255, 255, 255, 0.7) 0 2px,
            rgba(158, 232, 255, 0.42) 2px 6px,
            rgba(214, 255, 247, 0.38) 6px 10px,
            transparent 10px 15px,
            rgba(196, 237, 255, 0.34) 15px 18px,
            transparent 18px 28px
        ),
        repeating-linear-gradient(
            34deg,
            rgba(255, 255, 255, 0.4) 0 2px,
            rgba(165, 232, 255, 0.28) 2px 7px,
            transparent 7px 13px,
            rgba(202, 255, 240, 0.32) 13px 16px,
            transparent 16px 26px
        ),
        radial-gradient(circle at 14% 44%, rgba(255, 255, 255, 0.48), transparent 8%),
        radial-gradient(circle at 60% 24%, rgba(185, 242, 255, 0.42), transparent 10%),
        radial-gradient(circle at 78% 76%, rgba(218, 255, 246, 0.38), transparent 9%);
    filter: blur(16px) saturate(2.4);
    mix-blend-mode: screen;
    animation: heroMatrixShimmerReverse 9s ease-in-out infinite;
}

.hero-copy-stack {
    position: absolute;
    left: 8%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    width: min(46%, 520px);
    max-width: 520px;
    padding: 28px 30px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(9, 15, 26, 0.74), rgba(16, 25, 40, 0.42));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    animation: heroCardFloat 4.8s ease-in-out infinite alternate;
}

.hero-copy-stack p {
    margin: 0;
    color: rgba(233, 240, 250, 0.9);
    font-size: 15px;
    line-height: 1.72;
    max-width: 100%;
}

.home-hero-followup {
    padding: 34px 20px 44px;
    background: linear-gradient(180deg, rgba(8, 13, 22, 0.96), rgba(5, 9, 17, 1));
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.home-hero-followup-card {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    gap: 16px;
    padding: 18px 8px 0;
}

.home-hero-followup-card h2 {
    margin: 0;
    font-size: clamp(2.1rem, 4vw, 3.5rem);
    line-height: 1.08;
    font-weight: 800;
    color: #f5f8ff;
    letter-spacing: -0.04em;
}

.home-hero-followup-card p {
    margin: 0;
    color: #dfe7f5;
    font-size: 16px;
    line-height: 1.72;
    max-width: 760px;
}

.hero-chip {
    background: color-mix(in srgb, var(--chip-color) 14%, transparent);
    color: var(--chip-color);
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 0;
    border: 1px solid color-mix(in srgb, var(--chip-color) 18%, transparent);
}

.hero-actions {
    display: flex;
    gap: 12px;
    max-width: 280px;
    margin-top: 0;
}

.hero-actions .action-btn {
    width: auto;
    padding: 10px 14px;
    font-size: 14px;
}

.home-showcase-section {
    max-width: 1260px;
    margin: 0 auto;
    padding: 26px 22px 60px;
    background: transparent;
}

.home-showcase-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: #111111;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.home-showcase-header h3 {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 4.4rem);
    color: #000000;
    letter-spacing: -0.06em;
    font-weight: 900;
}

.inline-link {
    color: #6d8fd2;
    text-decoration: none;
    font-weight: 700;
}

.home-service-showcase {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    gap: 34px 52px;
    align-items: start;
    padding-top: 10px;
}

.home-service-card {
    position: relative;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(148, 163, 184, 0.15);
    backdrop-filter: blur(10px);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.home-service-card:hover {
    border-color: rgba(120, 151, 231, 0.36);
    box-shadow: 0 26px 52px rgba(148, 163, 184, 0.2);
}

.home-service-card-left {
    margin-top: 60px;
}

.home-service-card-right {
    margin-top: 0;
}

.home-service-visual {
    position: relative;
    height: 540px;
    overflow: hidden;
    background: linear-gradient(135deg, #edf2f7, #dfeaf8);
}

.home-service-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 12, 20, 0.08), rgba(7, 12, 20, 0.55));
}

.home-service-media {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.02);
    animation: visualFloat 7s ease-in-out infinite alternate;
}

.home-service-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 28px 28px 22px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.72) 40%, rgba(15, 23, 42, 0.82));
}

.home-service-kicker {
    display: inline-block;
    margin-bottom: 10px;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 800;
    color: #f8fbff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.home-service-overlay h4 {
    margin: 0 0 8px;
    font-size: clamp(2rem, 2.2vw, 2.6rem);
    color: #ffffff;
    letter-spacing: -0.04em;
    font-weight: 800;
    line-height: 1.05;
}

.home-service-overlay p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.98rem;
    line-height: 1.6;
    max-width: 38ch;
}

.home-service-media-fallback {
    display: grid;
    place-items: center;
    color: #0f172a;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #edf2f7, #dfeaf8);
}

@media (max-width: 980px) {
    .home-service-showcase {
        grid-template-columns: repeat(2, minmax(260px, 1fr));
        gap: 26px 20px;
    }

    .home-service-card-left {
        margin-top: 24px;
    }
}

@media (max-width: 640px) {
    .home-showcase-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-service-showcase {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .home-service-card-left,
    .home-service-card-right {
        margin-top: 0;
    }

    .home-service-visual {
        height: 430px;
    }
}

@keyframes visualFloat {
    0% { transform: scale(1.02) translateY(0px); }
    100% { transform: scale(1.08) translateY(-6px); }
}

.home-hero-followup {
    background: transparent;
}

.home-hero-followup-card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

#home-hero-followup-chip,
#home-hero-followup-title,
#home-hero-followup-description,
#home-hero-followup-cta {
    display: none !important;
}


@media (max-width: 980px) {
    .home-service-showcase {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 640px) {
    .home-showcase-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-service-showcase {
        grid-template-columns: 1fr;
    }
}

.home-contact-panel {
    margin-top: 12px;
    width: 100%;
    padding: 0 12px 10px;
}

.home-media-upload-card {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.home-contact-card {
    background: rgba(6, 16, 31, 0.7);
    border: 1px solid rgba(246, 196, 83, 0.22);
    border-radius: 16px;
    padding: 18px 20px;
    display: grid;
    gap: 10px;
    max-width: 460px;
}

.home-contact-card h3 {
    margin: 0;
    color: #ffe8ad;
}

.home-contact-list {
    display: grid;
    gap: 8px;
}

.home-contact-list a {
    color: #f5f8ff;
    text-decoration: none;
}

.work-category-nav {
    display: none;
}

.portfolio-grid,
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.work-category-panel {
    display: grid;
    gap: 12px;
}

.work-category-heading {
    display: grid;
    gap: 8px;
    padding-bottom: 2px;
}

.work-category-hero {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(6, 12, 20, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.work-category-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(255, 184, 0, 0.14);
    color: #ffe8ad;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.24px;
    text-transform: uppercase;
}

.work-category-hero h2 {
    margin: 0;
    color: #ffe8ad;
    font-size: 22px;
}

.work-category-subtitle,
.work-category-intro {
    margin: 0;
    color: var(--muted-gray);
    line-height: 1.6;
}

.work-category-section {
    background: rgba(8, 13, 24, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 14px 16px;
}

.work-category-section h3 {
    margin: 0 0 10px;
    color: #ffe8ad;
    font-size: 16px;
}

.work-category-services {
    list-style: disc;
    padding-left: 18px;
    margin: 0;
    display: grid;
    gap: 6px;
    color: var(--muted-gray);
    line-height: 1.55;
}

.portfolio-card,
.team-card {
    border-radius: 16px;
    overflow: hidden;
}

.portfolio-card,
.team-card {
    background: linear-gradient(180deg, rgba(17, 26, 39, 0.96), rgba(9, 14, 24, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.portfolio-card h3 {
    font-size: var(--work-title-size);
}

.portfolio-card .product-meta {
    font-size: var(--work-meta-size);
}

.portfolio-card .portfolio-summary,
.portfolio-card .portfolio-description {
    font-size: var(--work-summary-size);
    line-height: 1.6;
    margin: 0;
}

.portfolio-card .portfolio-bullets {
    list-style: disc;
    padding-left: 18px;
    margin: 0;
    display: grid;
    gap: 6px;
}

.portfolio-card .portfolio-bullets li {
    line-height: 1.5;
}

.portfolio-card-body {
    display: grid;
    gap: 8px;
}

.work-animation-box {
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, rgba(20, 36, 59, 0.9), rgba(7, 12, 21, 0.95));
    border: 1px solid rgba(255, 184, 0, 0.22);
    color: #ffe8ad;
    text-align: center;
    padding: 10px;
}

.portfolio-card p:not(.product-meta) {
    font-size: var(--work-summary-size);
}

.service-panel-card h3 {
    font-size: var(--service-title-size);
}

.service-panel-card .product-meta {
    font-size: var(--service-subtitle-size);
}

.service-panel-card p:not(.product-meta) {
    font-size: var(--service-summary-size);
}

.service-animation-box {
    height: var(--service-animation-height);
    border-radius: 10px;
    border: 1px solid rgba(255, 184, 0, 0.24);
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    background:
        linear-gradient(145deg, rgba(20, 36, 59, 0.86), rgba(7, 12, 21, 0.9)),
        radial-gradient(circle at 20% 20%, rgba(255, 184, 0, 0.18), transparent 38%);
    position: relative;
    overflow: hidden;
}

.service-animation-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 184, 0, 0.2) 45%, transparent 100%);
    transform: translateX(-110%);
    animation: serviceGlowSweep 2.6s linear infinite;
    pointer-events: none;
}

.service-animation-box a {
    position: relative;
    z-index: 1;
}

@keyframes serviceGlowSweep {
    from {
        transform: translateX(-110%);
    }
    to {
        transform: translateX(110%);
    }
}

.portfolio-card:hover,
.team-card:hover {
    transform: translateY(-4px);
    border-color: rgba(217, 173, 99, 0.28);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.26);
}

.work-media-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.work-media-item {
    width: 100%;
    height: var(--media-work-height);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    object-fit: var(--media-fit-mode);
    object-position: var(--media-focus-x) var(--media-focus-y);
    transform: scale(var(--media-zoom-scale));
    transform-origin: center;
    background: #000;
}

.admin-form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.checkout-panel {
    max-width: 760px;
}

.admin-tab-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 184, 0, 0.1);
    padding-bottom: 15px;
    flex-wrap: wrap;
}

.admin-tab-btn {
    background: linear-gradient(145deg, rgba(16, 25, 44, 0.92), rgba(11, 19, 33, 0.96));
    color: #fff;
    border: 1px solid rgba(255, 184, 0, 0.2);
    padding: 10px 16px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.admin-tab-btn:hover {
    border-color: rgba(255, 184, 0, 0.38);
    transform: translateY(-1px);
}

.admin-tab-btn:active {
    transform: translateY(1px) scale(0.985);
}

.admin-tab-btn.active {
    background: linear-gradient(145deg, #ffcc67, #f6c453);
    color: #041125;
    border-color: #f6c453;
}

.control-panel,
.live-preview-panel {
    background: linear-gradient(145deg, rgba(16, 25, 44, 0.94), rgba(8, 13, 24, 0.96));
    padding: 25px;
    border-radius: var(--radius-lg);
    color: #fff;
    border: 1px solid rgba(255, 184, 0, 0.1);
    box-shadow: var(--panel-shadow);
}

.admin-login-card {
    max-width: 480px;
    margin-bottom: 24px;
}

.admin-grid-view {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
}

.admin-form-stack {
    display: grid;
    gap: 10px;
}

.inline-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.inline-controls .form-element,
.inline-controls .action-btn,
.inline-controls .btn-secondary {
    width: auto;
    flex: 1;
    min-width: 160px;
}

.attendance-camera-wrap {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(6, 10, 18, 0.35);
}

.attendance-camera-video,
.attendance-camera-preview {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 184, 0, 0.2);
    background: #050a12;
}

.attendance-guide {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 8px 0 4px;
}

.attendance-guide span {
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 184, 0, 0.24);
    background: rgba(255, 184, 0, 0.08);
    color: #ffe6a8;
    font-size: 12px;
}

.attendance-status-ok {
    color: #a7f3d0;
}

.attendance-status-warning {
    color: #f9cd9f;
}

.deadline-critical {
    border-left: 4px solid #ef4444;
}

.deadline-high {
    border-left: 4px solid #f59e0b;
}

.deadline-normal {
    border-left: 4px solid #3b82f6;
}

.admin-list {
    margin-top: 14px;
    display: grid;
    gap: 8px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(6, 10, 18, 0.45);
}

.record-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(6, 10, 18, 0.45);
}

.home-preview-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.home-preview-badges span {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid rgba(255, 184, 0, 0.25);
    background: rgba(255, 184, 0, 0.08);
    color: #ffe6a8;
}

.home-preview-card {
    margin-top: 4px;
    border: 1px dashed rgba(255, 184, 0, 0.35);
    border-radius: 12px;
    padding: 16px;
    background: linear-gradient(145deg, rgba(20, 36, 59, 0.75), rgba(9, 18, 34, 0.75));
    display: grid;
    gap: 10px;
}

.home-preview-card h3 {
    font-family: 'Sora', 'Manrope', sans-serif;
}

.home-preview-card .action-btn {
    max-width: 260px;
}

.record-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

#finance-alert-watchlist .record-grid,
#finance-alert-modal-list .record-grid,
#finance-report-list .record-grid,
#finance-party-list .record-grid,
#finance-purchase-list .record-grid,
#finance-rp-list .record-grid,
#finance-reminder-list .record-grid,
#inventory-material-intake-list .record-grid {
    border-color: rgba(246, 196, 83, 0.16);
}

.line-items-wrap {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.line-item-row {
    display: grid;
    grid-template-columns: 1.2fr 0.7fr 1fr 1fr 1.4fr 0.9fr 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(6, 10, 18, 0.45);
}

.line-item-row .btn-secondary {
    min-width: 90px;
}

.line-item-row label {
    min-width: 0;
    font-size: 12px;
}

.line-item-row [hidden] {
    display: none;
}

.invoice-stock-field {
    display: grid;
    gap: 6px;
    margin-top: 12px;
}

#manual-invoice-stock-dialog .invoice-saved-box {
    min-width: 0;
    width: 480px;
    max-height: 85vh;
    overflow: auto;
}

.line-item-tax-wrap {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: center;
}

.line-item-tax-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.invoice-logo-preview {
    margin-top: 8px;
}

.invoice-logo-preview-img {
    max-height: 72px;
    max-width: 280px;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.03);
}

.invoice-totals-box {
    margin-top: 8px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 184, 0, 0.06);
    border: 1px solid rgba(255, 184, 0, 0.16);
    display: grid;
    gap: 4px;
}

.overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 184, 0, 0.12), rgba(0, 0, 0, 0.82));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2200;
    padding: 16px;
    backdrop-filter: blur(4px);
}

.modal-card {
    background: linear-gradient(150deg, rgba(16, 25, 44, 0.98), rgba(8, 13, 24, 0.98));
    border: 1px solid rgba(255, 184, 0, 0.2);
    border-radius: 14px;
    padding: 20px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.modal-large {
    max-width: 620px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.payment-choices {
    display: grid;
    gap: 8px;
    color: #d6d6d6;
    margin-top: 6px;
}

.payment-option-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.payment-option-card input {
    margin-top: 3px;
}

.payment-option-card span {
    display: grid;
    gap: 2px;
}

.payment-option-card strong {
    color: #f5f8ff;
}

.payment-option-card small {
    color: #8fa2bd;
    line-height: 1.5;
}

.payment-method-note {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 184, 0, 0.08);
    border: 1px solid rgba(255, 184, 0, 0.16);
    color: #dfe7f2;
    font-size: 13px;
}

.checkout-stepper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.checkout-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #dfe7f2;
}

.checkout-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 184, 0, 0.16);
    color: #ffd36a;
    font-weight: 700;
}

.checkout-step strong {
    display: block;
    color: #f5f8ff;
    font-size: 13px;
}

.checkout-step small {
    color: #8fa2bd;
    font-size: 11px;
}

.checkout-step.active {
    border-color: rgba(255, 184, 0, 0.34);
    background: rgba(255, 184, 0, 0.12);
}

.checkout-step.done span {
    background: rgba(126, 217, 87, 0.16);
    color: #9dee8b;
}

.checkout-summary-card {
    border-radius: 12px;
    padding: 12px;
    background: linear-gradient(145deg, rgba(255, 184, 0, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 184, 0, 0.16);
    margin-bottom: 10px;
}

.checkout-summary-title {
    font-size: 14px;
    font-weight: 700;
    color: #f6c453;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.billing-order-summary {
    display: grid;
    gap: 8px;
}

.billing-order-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #dfe7f2;
    font-size: 13px;
}

.billing-order-total {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    color: #f5f8ff;
    font-weight: 700;
}

.checkout-summary-note {
    margin-top: 8px;
    font-size: 12px;
    color: #9fb0c8;
}

.merchant-shell {
    display: grid;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 184, 0, 0.18);
    background: linear-gradient(145deg, rgba(9, 14, 24, 0.95), rgba(15, 24, 38, 0.95));
}

.merchant-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.merchant-eyebrow {
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #f6c453;
    margin-bottom: 4px;
}

.merchant-title {
    font-size: 16px;
    font-weight: 700;
    color: #f5f8ff;
}

.merchant-chip {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 184, 0, 0.14);
    color: #ffd36a;
    font-size: 12px;
    white-space: nowrap;
}

.merchant-body {
    display: grid;
    gap: 10px;
}

.merchant-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.merchant-card-block {
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.merchant-block-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #f6c453;
    margin-bottom: 6px;
}

.merchant-line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    color: #dfe7f2;
    margin-top: 4px;
}

.merchant-line-label {
    color: #8ba0bd;
}

.merchant-foot {
    display: grid;
    gap: 8px;
}

.merchant-note {
    color: #f4f7fb;
    display: block;
}

.merchant-whatsapp-link {
    color: #7ed957;
    font-weight: 600;
    text-decoration: none;
}

.success-stack {
    display: grid;
    gap: 10px;
}

.success-badge {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(126, 217, 87, 0.14);
    color: #93ee7d;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.success-title {
    font-size: 22px;
    font-weight: 800;
    color: #f5f8ff;
}

.success-subtitle {
    color: #dce6f2;
}

.success-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.success-pill {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(246, 196, 83, 0.12);
    color: #ffd36a;
    font-size: 12px;
}

.success-card {
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.success-card-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #f6c453;
    margin-bottom: 6px;
}

.success-list {
    margin: 0;
    padding-left: 18px;
    color: #dfe7f2;
    display: grid;
    gap: 4px;
}

.success-note {
    color: #dfe7f2;
}

.input-wrapper {
    margin-bottom: 12px;
}

.input-wrapper label {
    color: #718096;
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
}

.about-stats-panel {
    margin-top: 20px;
}

.about-media-panel {
    margin-top: 18px;
    padding: 14px;
    border: 1px solid rgba(246, 196, 83, 0.2);
    border-radius: 12px;
    background: rgba(8, 13, 24, 0.55);
}

.about-subpages-panel {
    margin-top: 20px;
}

.about-directory-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 18px;
    align-items: start;
}

.about-directory-panel,
.about-subpage-content {
    padding: 18px 16px;
    border-radius: 14px;
    border: 1px solid rgba(246, 196, 83, 0.22);
    background: linear-gradient(145deg, rgba(16, 25, 44, 0.92), rgba(7, 12, 21, 0.92));
    box-shadow: var(--soft-shadow);
}

.about-directory-panel h3,
.about-subpage-copy h3 {
    color: #f5f8ff;
    margin: 0 0 12px;
}

.about-subpages-tree {
    display: grid;
    gap: 10px;
}

.about-tree-btn {
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(246, 196, 83, 0.16);
    background: rgba(6, 10, 18, 0.5);
    color: #d5dfee;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.about-tree-btn:hover,
.about-tree-btn.active {
    color: #fff4cf;
    border-color: rgba(246, 196, 83, 0.36);
    background: rgba(246, 196, 83, 0.1);
}

.about-tree-node {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f6c453, #ffe8ad);
    box-shadow: 0 0 0 3px rgba(246, 196, 83, 0.15);
    flex: 0 0 auto;
}

.about-subpage-copy p {
    color: #d5dfee;
    margin: 0 0 14px;
}

.about-subpage-points {
    display: grid;
    gap: 10px;
}

.about-subpage-point {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(6, 10, 18, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f5f8ff;
}

.about-subpage-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 8px;
    flex: 0 0 auto;
    background: linear-gradient(135deg, #f6c453, #ffe8ad);
    box-shadow: 0 0 0 4px rgba(246, 196, 83, 0.16);
}

.about-media-holder {
    min-height: 10px;
}

.about-media-item {
    width: 100%;
    height: var(--media-about-height);
    object-fit: var(--media-fit-mode);
    object-position: var(--media-focus-x) var(--media-focus-y);
    transform: scale(var(--media-zoom-scale));
    transform-origin: center;
    border-radius: 10px;
    border: 1px solid rgba(246, 196, 83, 0.28);
    background: #0a101c;
}

.about-media-download {
    display: inline-block;
    color: #f6c453;
    text-decoration: underline;
}

.home-page .template-company-wordmark {
    display: inline-flex;
    gap: 0.12em;
}

.home-page .template-company-wordmark .brand-red {
    color: #D7263D;
}

.home-page .template-company-wordmark .brand-blue {
    color: #1D4ED8;
}

.stat-num {
    color: #ffb800;
    font-size: 24px;
    font-weight: bold;
}

.stat-lbl {
    color: #718096;
}

.team-studio-section {
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid rgba(255, 184, 0, 0.1);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 980px) {
    .viewport-manager {
        padding: 0 10px 24px;
        max-width: 100%;
    }

    .app-view {
        max-width: 100%;
        overflow-x: hidden;
    }

    .about-directory-layout {
        grid-template-columns: 1fr;
    }

    .main-header {
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px 10px;
        align-items: center;
        min-width: 0;
        max-width: 100%;
    }

    .logo-slot {
        flex-wrap: nowrap;
        align-items: center;
        min-width: 0;
        gap: 6px;
        flex: 1 1 auto;
    }

    .logo-container {
        font-size: 16px;
        letter-spacing: 0.4px;
    }

    .logo-slot img {
        height: 24px;
    }

    .home-page-header-title,
    #header-animated-star {
        display: none !important;
    }

    .app-router {
        display: flex !important;
        flex-wrap: wrap;
        gap: 6px;
        width: 100%;
        order: 4;
        margin-top: 4px;
    }

    .header-overflow-menu {
        position: fixed;
        top: 72px;
        right: 10px;
        left: auto;
        width: min(290px, calc(100vw - 20px));
        max-width: calc(100vw - 20px);
        max-height: min(78vh, 460px);
        overflow-y: auto;
        z-index: 1600;
    }

    .header-overflow-menu .mobile-overflow-link,
    .nav-link.hidden[data-target="employee"],
    .nav-link.hidden[data-target="dashboard"] {
        display: none !important;
    }

    .header-overflow-menu .mobile-overflow-link {
        display: flex !important;
    }

    .app-router .nav-link.hidden[data-target="employee"],
    .app-router .nav-link.hidden[data-target="dashboard"] {
        display: none !important;
    }

    .master-menu-search-wrap {
        display: none;
    }

    .header-overflow-menu-wrap {
        display: none !important;
    }

    .cart-pill,
    #checkout-btn {
        display: none !important;
    }

    .master-menu-search {
        min-width: 0;
        width: 100%;
    }

    .master-menu-suggestions {
        right: 0;
    }

    .hero-surface {
        min-height: min(42svh, 240px);
        height: min(42svh, 240px);
    }

    .hero-media-stage {
        border-radius: 10px;
        margin: 4px;
    }

    .home-fullpage-media-item {
        object-fit: contain;
        object-position: center center;
        transform: scale(1.01);
    }

    .home-contact-card,
    .work-category-section,
    .about-directory-panel,
    .about-subpage-content,
    .service-panel-card,
    .portfolio-card,
    .team-card,
    .control-panel,
    .live-preview-panel,
    .checkout-sidebar,
    .home-media-upload-card {
        padding: 14px 12px;
    }

    .hero-surface {
        min-height: min(100svh, calc(100vh - 64px));
        height: min(100svh, calc(100vh - 64px));
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        overflow: hidden;
    }

    .hero-actions {
        flex-direction: column;
        max-width: none;
        gap: 10px;
    }

    .hero-actions .action-btn {
        width: 100%;
        padding: 12px 14px;
        font-size: 14px;
    }

    .about-directory-layout {
        gap: 12px;
    }

    .about-subpage-point {
        padding: 10px 12px;
    }

    .work-category-nav {
        gap: 8px;
    }

    .work-category-btn {
        width: 100%;
        text-align: center;
    }

    .brand-marquee-zone {
        padding: 0 16px 10px;
    }

    .brand-marquee-title-wrap h2 {
        font-size: 20px;
    }

    .brand-logo-chip {
        width: 112px;
        height: 50px;
    }

    .brand-logo-chip img {
        max-width: 86px;
        max-height: 30px;
    }

    .tech-ribbon,
    .work-ribbon {
        margin: -8px 0 18px;
    }

    .hero-context h1 {
        font-size: 24px;
        line-height: 1.2;
        margin-bottom: 8px;
    }

    .hero-context p {
        font-size: 14px;
        line-height: 1.6;
    }

    .home-hero-followup {
        padding: 18px 10px 28px;
    }

    .home-hero-followup-card h2 {
        font-size: 22px;
        line-height: 1.24;
    }

    .home-hero-followup-card p {
        font-size: 14px;
        line-height: 1.65;
    }

    .hero-surface {
        min-height: min(100svh, calc(100vh - 64px));
        height: min(100svh, calc(100vh - 64px));
    }

    .commerce-hub {
        flex-direction: column;
        gap: 16px;
    }

    .catalog-grid {
        width: 100%;
    }

    .product-card,
    .product-node {
        width: 100%;
    }

    .portfolio-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .work-category-hero {
        padding: 16px 14px;
    }

    .work-category-hero h2 {
        font-size: 22px;
    }

    .work-category-metrics {
        grid-template-columns: 1fr;
    }

    .admin-grid-view {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .inline-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .inline-controls .form-element,
    .inline-controls .action-btn,
    .inline-controls .btn-secondary {
        width: 100%;
        min-width: 0;
        flex: 1 1 auto;
    }

    .summary-segments {
        grid-template-columns: 1fr;
    }

    .line-item-row {
        grid-template-columns: 1fr;
    }
}

.invoice-saved-overlay{position:fixed;inset:0;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center;z-index:10000}
.invoice-saved-box{background:#fff;color:#111;padding:24px;border-radius:10px;min-width:300px;max-width:90vw;box-shadow:0 10px 40px rgba(0,0,0,.4)}
.invoice-saved-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}

.login-close-host{position:relative}
.login-close-btn{position:absolute;top:14px;right:18px;width:36px;height:36px;line-height:34px;text-align:center;font-size:28px;color:#555;text-decoration:none;border-radius:50%;background:#f1f3f6;z-index:2}
.login-close-btn:hover{background:#e0160a;color:#fff}
