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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #004A8D;
}

.site-theme {
    background: var(--day-bg);
    color: var(--day-text);
    transition: background-color 0.25s ease, color 0.25s ease;
}

.site-theme.theme-night {
    background: var(--night-bg);
    color: var(--night-text);
}

.site-shell,
.site-nav {
    background: var(--day-surface);
    color: var(--day-text);
    transition: background-color 0.25s ease, color 0.25s ease;
}

.theme-night .site-shell,
.theme-night .site-nav {
    background: var(--night-surface);
    color: var(--night-text);
}

.site-nav-link {
    color: var(--day-text);
}

.theme-night .site-nav-link {
    color: var(--night-text);
}

.site-nav-link:hover {
    color: #004A8D;
}

.theme-night .site-nav-link:hover {
    color: #60a5fa;
}

.admin-card {
    transition: all 0.3s ease;
}

.admin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.admin-nav-link {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 12px;
    color: #cbd5e1;
    font-weight: 700;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.admin-nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: translateX(2px);
}

.admin-label {
    display: block;
    margin-bottom: 6px;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

.admin-input {
    width: 100%;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    padding: 12px 14px;
    background: #ffffff;
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-input:focus {
    border-color: #005A9C;
    box-shadow: 0 0 0 3px rgba(0, 90, 156, 0.12);
}

.admin-color {
    width: 100%;
    height: 48px;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    padding: 4px;
    background: #ffffff;
}

.admin-file {
    width: 100%;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    padding: 10px;
    background: #ffffff;
    color: #475569;
    font-size: 14px;
}

.flowing-public {
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.96), rgba(210, 232, 244, 0.72) 34%, rgba(179, 215, 232, 0.72) 100%);
}

.public-frame {
    position: relative;
}

.brand-tab {
    position: relative;
    min-width: 260px;
    border-bottom-right-radius: 26px;
}

.brand-tab::after {
    content: "";
    position: absolute;
    right: -38px;
    bottom: 0;
    width: 40px;
    height: 38px;
    background: radial-gradient(circle at right top, transparent 38px, #ffffff 39px);
}

.public-nav-link,
.public-nav-active {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 12px;
    color: #111827;
    white-space: nowrap;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.public-nav-link:hover {
    color: #004A8D;
}

.public-nav-active {
    background: #004A8D;
    color: #ffffff;
}

.flowing-hero {
    margin-top: -1px;
}

.product-card {
    min-height: 158px;
    padding: 22px 18px 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    color: #004A8D;
    text-align: center;
    box-shadow: 0 18px 40px rgba(15, 35, 55, 0.18);
    border: 1px solid rgba(0, 74, 141, 0.12);
    backdrop-filter: blur(8px);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(15, 35, 55, 0.24);
}

.product-card strong {
    display: block;
    margin-top: 14px;
    color: #102337;
    font-size: 18px;
    font-weight: 900;
}

.product-card small {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 14px;
    font-weight: 800;
}

.feature-pill {
    display: block;
    min-height: 210px;
    padding: 24px 20px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #004A8D;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-pill:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(15, 35, 55, 0.12);
}

.feature-pill h3 {
    margin-top: 16px;
    color: #102337;
    font-size: 18px;
    font-weight: 900;
}

.feature-pill p {
    margin-top: 8px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.social-link {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    background: #005A9C;
}

.social-link svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 1023px) {
    .brand-tab {
        min-width: auto;
        border-bottom-right-radius: 20px;
    }

    .brand-tab::after {
        display: none;
    }

    .flowing-hero {
        min-height: 640px;
    }
}

@media (max-width: 639px) {
    .product-card {
        min-height: 160px;
    }
}
