@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'JetBrains Mono', monospace;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 3vh, 20px);
    overflow-x: hidden;
    position: relative;
    background: #060606;
    font-size: 14px;
    line-height: 1.5;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0;
}

body.page-preload .main-wrapper {
    opacity: 0;
}

body.page-loaded .main-wrapper {
    animation: page-enter 0.42s var(--ease-spring) forwards;
}

.main-wrapper {
    isolation: isolate;
}

.main-wrapper::before {
    content: "";
    position: absolute;
    inset: 6% 8% auto 8%;
    height: 180px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.22), transparent 70%);
    filter: blur(28px);
    pointer-events: none;
    z-index: -1;
}

:root {
    --scrollbar-track: rgba(0, 0, 0, 0);
    --scrollbar-thumb: rgba(120, 130, 150, 0.55);
    --scrollbar-thumb-hover: rgba(160, 170, 190, 0.75);
    --scrollbar-border: rgba(10, 10, 10, 0.6);
    --ui-accent: #5865f2;
    --ui-accent-glow: rgba(88, 101, 242, 0.35);
    --ui-surface: rgba(30, 41, 59, 0.48);
    --ui-surface-border: rgba(148, 163, 184, 0.2);
    /* 120FPS ProMotion Physics Easing & Motion Tokens */
    --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --motion-snap: 110ms var(--ease-spring);
    --motion-fast: 160ms var(--ease-spring);
    --motion-normal: 260ms var(--ease-spring);
    --motion-smooth: 340ms var(--ease-spring);
}

@keyframes page-enter {
    0% {
        opacity: 0;
        transform: translate3d(0, 10px, 0);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes dashboard-modal-enter {
    0% {
        opacity: 0;
        transform: translate3d(0, 14px, 0) scale(0.976);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(160, 170, 190, 0.8), rgba(120, 130, 150, 0.6));
}

::-webkit-scrollbar-corner {
    background: transparent;
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

button,
input,
select,
textarea {
    touch-action: manipulation;
}

button {
    transition: transform var(--motion-snap), filter var(--motion-snap), box-shadow var(--motion-fast), border-color var(--motion-fast);
}

button:hover {
    filter: brightness(1.05);
}

button:active {
    filter: brightness(0.98);
    transform: scale(0.98) translate3d(0, 0, 0);
}

button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--ui-accent-glow);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--ui-accent) !important;
    box-shadow: 0 0 0 2px var(--ui-accent-glow);
}

#particles-js {
    display: none;
}

#flowButtons {
    transition: opacity 0.16s var(--ease-smooth), transform 0.16s var(--ease-smooth), filter 0.2s var(--ease-smooth);
    will-change: opacity, transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

#flowButtons.is-transitioning-out {
    opacity: 0.35;
    transform: translate3d(0, 4px, 0);
    filter: saturate(0.86);
}

#flowButtons.is-transitioning-in {
    opacity: 0;
    transform: translate3d(0, -2px, 0);
}

.content-container {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 18px;
    padding: clamp(20px, 4vw, 32px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform var(--motion-normal), border-color var(--motion-normal), box-shadow var(--motion-normal);
}

.content-container:hover {
    transform: translate3d(0, -2px, 0);
    border-color: rgba(125, 211, 252, 0.3);
}

.content-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), rgba(180, 180, 180, 0.2), transparent);
    border-radius: 1px;
    pointer-events: none;
}


.modal-panel {
    animation: dashboard-modal-enter 0.28s var(--ease-spring);
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform, opacity;
}

#clientsSection {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(20px);
}

#clientSearchInput {
    transition: border-color 0.22s var(--ease-smooth), box-shadow 0.22s var(--ease-smooth), background-color 0.22s var(--ease-smooth);
}

#clientSearchInput:hover {
    border-color: rgba(96, 165, 250, 0.45);
    background: rgba(15, 23, 42, 0.92);
}

#refreshClientsBtn {
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform var(--motion-fast), border-color var(--motion-fast), background-color var(--motion-fast);
}

#refreshClientsBtn:hover {
    transform: translate3d(0, -1.5px, 0);
    border-color: rgba(96, 165, 250, 0.6);
    background: rgba(30, 41, 59, 0.9);
}

#refreshClientsBtn:active {
    transform: translate3d(0, 0.5px, 0) scale(0.97);
}

#upgradePremiumBtn,
#bypassDeltaBtn,
button[onclick="logout()"] {
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform var(--motion-fast), box-shadow var(--motion-normal), border-color var(--motion-fast), filter var(--motion-fast);
}

#upgradePremiumBtn:hover,
#bypassDeltaBtn:hover,
button[onclick="logout()"]:hover {
    transform: translate3d(0, -1.5px, 0);
}

#upgradePremiumBtn:active,
#bypassDeltaBtn:active,
button[onclick="logout()"]:active {
    transform: translate3d(0, 0.5px, 0) scale(0.98);
}

.client-insights-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.42), rgba(15, 23, 42, 0.26));
    backdrop-filter: blur(8px);
}

.client-insights-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.client-insight-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(30, 41, 59, 0.72);
    color: #d1d5db;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    touch-action: manipulation;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform var(--motion-fast), border-color var(--motion-fast), background-color var(--motion-fast), box-shadow var(--motion-fast);
}

.client-insight-chip:hover {
    transform: translate3d(0, -1px, 0);
    border-color: rgba(96, 165, 250, 0.55);
    background: rgba(30, 41, 59, 0.9);
}

.client-insight-chip:active {
    transform: translate3d(0, 0, 0) scale(0.96);
}

.client-insight-chip:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.32);
    border-color: rgba(96, 165, 250, 0.9);
}

.client-insight-chip.is-selected {
    border-color: rgba(125, 211, 252, 0.72);
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.58), rgba(30, 41, 59, 0.92));
    color: #eff6ff;
    box-shadow: 0 10px 20px -14px rgba(59, 130, 246, 0.88);
}

.client-insight-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.75);
}

.client-insight-chip.is-live .client-insight-dot {
    animation: none;
}

.client-insight-count {
    min-width: 20px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.65);
}

@keyframes client-live-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(0.8);
        opacity: 0.68;
    }
}

.flow-state {
    position: relative;
    padding: 24px 20px;
    min-height: 180px;
    border-radius: 16px;
    border: 1px solid var(--ui-surface-border);
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 45%), var(--ui-surface);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: state-enter 0.26s ease-out;
}

.modal-safe-overlay,
#announcementPopup .popSc {
    padding-top: max(16px, env(safe-area-inset-top));
    padding-right: max(16px, env(safe-area-inset-right));
    padding-bottom: max(20px, calc(env(safe-area-inset-bottom) + 20px));
    padding-left: max(16px, env(safe-area-inset-left));
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-safe-overlay:not(.hidden),
#announcementPopup .popSc {
    display: grid;
    place-items: center;
}

.modal-safe-card,
#announcementPopup .popBo {
    width: min(100%, 420px);
    max-height: calc(100vh - 36px);
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 36px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

#paymentMethodModal .modal-safe-card {
    width: min(100%, 560px);
}

#cardPaymentModal .modal-safe-card,
#vietqrPaymentModal .modal-safe-card,
#paymentNoticeCard.modal-safe-card {
    width: min(100%, 460px);
}

.premium-upgrade-panel {
    position: relative;
    isolation: isolate;
    max-height: calc(100vh - 36px);
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 36px);
    border-color: rgba(125, 211, 252, 0.25);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 70px -40px rgba(14, 116, 144, 0.75), 0 18px 38px -26px rgba(15, 23, 42, 0.95);
}

.premium-upgrade-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(125, 211, 252, 0.56), rgba(148, 163, 184, 0.25), rgba(56, 189, 248, 0.38));
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.premium-upgrade-panel::after {
    content: "";
    position: absolute;
    inset: -28% -45%;
    background: linear-gradient(112deg, transparent 30%, rgba(125, 211, 252, 0.22) 50%, transparent 70%);
    transform: translateX(-45%) rotate(8deg);
    animation: premium-panel-sweep 6.2s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.premium-upgrade-panel>* {
    position: relative;
    z-index: 1;
}

.premium-upgrade-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.premium-upgrade-hero-left {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 0;
    width: 100%;
}

.premium-upgrade-hero-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(250, 204, 21, 0.15);
    border: 1px solid rgba(250, 204, 21, 0.35);
    font-size: 20px;
    flex-shrink: 0;
}

.premium-upgrade-title {
    color: #f8fafc;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.premium-benefits-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.premium-benefits-top {
    margin-top: 2px;
}

.premium-benefit-chip {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    user-select: none;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(30, 41, 59, 0.72);
    padding: 6px 8px;
    text-align: center;
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 600;
    touch-action: manipulation;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform var(--motion-fast), border-color var(--motion-fast), box-shadow var(--motion-fast), background var(--motion-fast);
}

.premium-benefit-chip:hover {
    transform: translate3d(0, -1px, 0);
    border-color: rgba(125, 211, 252, 0.5);
    background: rgba(30, 41, 59, 0.9);
}

.premium-benefit-chip:active {
    transform: translate3d(0, 0, 0) scale(0.96);
}

.premium-benefit-chip:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.28);
    border-color: rgba(125, 211, 252, 0.8);
}

.premium-benefit-chip.is-active {
    border-color: rgba(250, 204, 21, 0.68);
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.22), rgba(217, 119, 6, 0.22));
    color: #fde68a;
    box-shadow: 0 8px 18px -12px rgba(250, 204, 21, 0.85);
}

.premium-payment-showcase {
    margin-top: 4px;
}

.premium-showcase-note {
    margin-bottom: 10px;
    color: #bfdbfe;
    font-size: 12px;
    line-height: 1.45;
}

.premium-method-stack {
    display: grid;
    gap: 10px;
}

.premium-method-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(30, 41, 59, 0.72));
    color: #e2e8f0;
    text-align: left;
    padding: 12px 14px;
    touch-action: manipulation;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform var(--motion-fast), border-color var(--motion-fast), box-shadow var(--motion-normal), background var(--motion-fast);
}

.premium-method-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 25%, rgba(255, 255, 255, 0.08) 50%, transparent 75%);
    opacity: 0;
    transition: opacity 0.22s var(--ease-smooth);
    pointer-events: none;
}

.premium-method-btn:hover {
    transform: translate3d(0, -1.5px, 0);
    border-color: rgba(125, 211, 252, 0.45);
    box-shadow: 0 14px 24px -20px rgba(59, 130, 246, 0.8);
}

.premium-method-btn:active {
    transform: translate3d(0, 0.5px, 0) scale(0.985);
}

.premium-method-btn:hover::before {
    opacity: 1;
}

.premium-method-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.34), 0 14px 26px -18px rgba(14, 165, 233, 0.75);
}

.premium-method-btn.is-selected {
    border-color: rgba(125, 211, 252, 0.8);
    box-shadow: 0 16px 28px -18px rgba(56, 189, 248, 0.85);
    transform: translate3d(0, -1px, 0);
}

.premium-method-btn.is-selected-burst {
    animation: premium-method-pop 0.26s var(--ease-spring);
}

.premium-method-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #dbeafe;
}

.premium-method-content {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.premium-method-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    color: #f8fafc;
}

.premium-method-sub {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.35;
}

.premium-method-tag {
    flex-shrink: 0;
    align-self: center;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(51, 65, 85, 0.75);
    color: #cbd5e1;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 4px 8px;
}

.premium-method-btn-vietqr {
    border-color: rgba(99, 102, 241, 0.5);
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.55), rgba(15, 23, 42, 0.85));
}

.premium-method-btn-vietqr .premium-method-tag {
    border-color: rgba(129, 140, 248, 0.6);
    background: rgba(79, 70, 229, 0.35);
    color: #e0e7ff;
}

.premium-method-btn-payos {
    border-color: rgba(59, 130, 246, 0.36);
}

.premium-method-btn-payos .premium-method-tag {
    border-color: rgba(96, 165, 250, 0.5);
    background: rgba(37, 99, 235, 0.26);
    color: #dbeafe;
}

.premium-method-btn-card {
    border-color: rgba(16, 185, 129, 0.34);
}

.premium-method-btn-card .premium-method-tag {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(5, 150, 105, 0.22);
    color: #a7f3d0;
}

.premium-method-btn-balance {
    border-color: rgba(250, 204, 21, 0.35);
    background: linear-gradient(135deg, rgba(120, 53, 15, 0.52), rgba(55, 48, 163, 0.28));
}

.premium-method-btn-balance .premium-method-title {
    color: #fef3c7;
}

.premium-method-btn-balance .premium-method-sub {
    color: rgba(254, 243, 199, 0.82);
}

.premium-method-btn-balance .premium-method-tag {
    border-color: rgba(250, 204, 21, 0.45);
    background: rgba(234, 179, 8, 0.2);
    color: #fde68a;
}

.premium-method-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
    box-shadow: none;
}

.premium-method-btn:disabled:hover {
    transform: none;
    border-color: rgba(148, 163, 184, 0.3);
    box-shadow: none;
}

@keyframes premium-panel-sweep {
    0% {
        transform: translateX(-48%) rotate(8deg);
        opacity: 0.12;
    }

    50% {
        transform: translateX(30%) rotate(8deg);
        opacity: 0.35;
    }

    100% {
        transform: translateX(85%) rotate(8deg);
        opacity: 0.12;
    }
}

@keyframes premium-method-pop {
    0% {
        transform: scale(0.985);
    }

    60% {
        transform: scale(1.014);
    }

    100% {
        transform: scale(1);
    }
}

.notice-overlay {
    background: radial-gradient(circle at 20% 10%, rgba(59, 130, 246, 0.2), transparent 45%), rgba(2, 6, 23, 0.84);
    backdrop-filter: blur(10px);
}

.notice-card {
    width: min(100%, 520px);
    max-height: calc(100vh - 36px);
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 36px);
    overflow-y: auto;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.24), transparent 42%),
        radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.2), transparent 38%),
        rgba(15, 23, 42, 0.95);
    box-shadow: 0 26px 60px -28px rgba(15, 23, 42, 0.95);
    text-align: left;
    position: relative;
    isolation: isolate;
}

.notice-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.55), rgba(148, 163, 184, 0.25), rgba(14, 165, 233, 0.45));
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.notice-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.notice-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.28), rgba(14, 165, 233, 0.28));
    border: 1px solid rgba(125, 211, 252, 0.38);
    color: #dbeafe;
    font-size: 24px;
    flex-shrink: 0;
}

.notice-title {
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 800;
    line-height: 1.18;
    color: #f8fafc;
    letter-spacing: 0.02em;
}

.notice-body {
    font-size: clamp(14px, 1.35vw, 18px);
    line-height: 1.55;
    color: #cbd5e1;
    margin-bottom: 16px;
    word-break: break-word;
}

.notice-actions {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
}

.notice-btn {
    border-radius: 14px;
    padding: 11px 14px;
    font-size: clamp(13px, 1.05vw, 16px);
    font-weight: 700;
    line-height: 1.2;
    border: 1px solid transparent;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.notice-btn:hover {
    transform: translateY(-1px);
}

.notice-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.35);
}

.notice-btn-primary {
    color: #eff6ff;
    border-color: rgba(147, 197, 253, 0.6);
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.notice-btn-muted {
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.24);
    background: rgba(51, 65, 85, 0.72);
}

@media (min-width: 1024px) {
    .notice-card {
        width: min(100%, 470px);
    }

    .notice-head {
        gap: 10px;
        margin-bottom: 10px;
    }

    .notice-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 20px;
    }
}

@media (max-width: 640px) {
    #paymentMethodModal .modal-safe-card {
        width: min(100%, 480px);
    }

    .premium-upgrade-hero {
        gap: 10px;
    }

    .premium-upgrade-hero-left {
        align-items: center;
    }

    .premium-upgrade-title {
        font-size: 16px;
    }

    .premium-benefits-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .premium-benefit-chip {
        font-size: 10px;
        padding: 6px 6px;
    }

    .premium-showcase-note {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .premium-method-btn {
        gap: 10px;
        padding: 10px 11px;
        border-radius: 12px;
    }

    .premium-method-title {
        font-size: 13px;
    }

    .premium-method-sub {
        font-size: 10px;
    }

    .premium-method-tag {
        font-size: 9px;
        padding: 3px 7px;
    }

    .premium-method-icon {
        width: 18px;
        height: 18px;
    }

    .notice-card {
        border-radius: 18px;
    }

    .notice-head {
        margin-bottom: 10px;
    }

    .notice-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .notice-btn {
        min-height: 44px;
    }

    .client-insights-bar {
        padding: 8px;
        gap: 8px;
    }

    .client-insights-filters {
        gap: 6px;
    }

    .client-insight-chip {
        flex: 1 1 calc(50% - 6px);
        justify-content: center;
        min-height: 34px;
    }
}

.flow-state-box {
    max-width: 460px;
    text-align: center;
}

.flow-state-icon {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    margin: 0 auto 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(15, 23, 42, 0.8);
    color: #dbeafe;
    box-shadow: 0 10px 24px -14px rgba(59, 130, 246, 0.65);
}

.flow-state-icon.is-error {
    color: #fecaca;
    box-shadow: 0 10px 24px -14px rgba(239, 68, 68, 0.8);
}

.flow-state-title {
    font-size: 16px;
    color: #e2e8f0;
    font-weight: 700;
    margin-bottom: 6px;
}

.flow-state-message {
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 14px;
}

.flow-state-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.flow-state-btn {
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    padding: 9px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.78);
    touch-action: manipulation;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform var(--motion-fast), border-color var(--motion-fast), background var(--motion-fast), box-shadow var(--motion-fast);
}

.flow-state-btn:hover {
    transform: translate3d(0, -1.5px, 0);
    border-color: rgba(59, 130, 246, 0.65);
    background: rgba(30, 41, 59, 0.85);
}

.flow-state-btn:active {
    transform: translate3d(0, 0.5px, 0) scale(0.975);
}

.flow-state-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
}

.flow-state-btn.is-primary {
    color: #0b1220;
    border-color: rgba(59, 130, 246, 0.7);
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

.flow-state-btn.is-primary:hover {
    border-color: rgba(96, 165, 250, 1);
    box-shadow: 0 12px 24px -16px rgba(59, 130, 246, 0.9);
}

@keyframes state-enter {
    0% {
        opacity: 0;
        transform: translate3d(0, 12px, 0) scale(0.985);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

.client-card {
    --card-tilt-x: 0deg;
    --card-tilt-y: 0deg;
    --card-shine-x: 50%;
    --card-lift: 0px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 48%),
        rgba(30, 41, 59, 0.46);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    padding: 16px;
    transition: transform 140ms var(--ease-smooth), border-color 200ms var(--ease-smooth), box-shadow 200ms var(--ease-smooth), background-color 200ms var(--ease-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: left;
    min-height: 84px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transform: perspective(920px) translate3d(0, var(--card-lift), 0) rotateX(var(--card-tilt-x)) rotateY(var(--card-tilt-y));
    transform-style: preserve-3d;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.client-card:hover,
.client-card:focus-visible {
    --card-lift: -2.5px;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.22), transparent 52%),
        rgba(30, 41, 59, 0.8);
    border-color: rgba(96, 165, 250, 0.62);
    box-shadow: 0 14px 30px -16px rgba(59, 130, 246, 0.62);
    will-change: transform;
}

.client-card:active {
    --card-lift: 0px;
    transform: perspective(920px) translate3d(0, 0, 0) scale(0.978);
    transition: transform 90ms var(--ease-spring);
}

.client-card:focus-visible {
    outline: none;
    border-color: rgba(96, 165, 250, 0.9);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3), 0 10px 30px -10px rgba(59, 130, 246, 0.4);
}

.client-card::before {
    content: "";
    position: absolute;
    inset: -40% -25%;
    background: radial-gradient(circle at var(--card-shine-x) 10%, rgba(96, 165, 250, 0.22), transparent 35%);
    opacity: 0.85;
    pointer-events: none;
}

.client-thumb-wrap,
.client-card-content {
    position: relative;
    z-index: 1;
}

.client-thumb-wrap {
    width: 48px;
    height: 48px;
    margin-right: 16px;
    border-radius: 13px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.client-thumb-img,
.client-thumb-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.28);
    position: relative;
    z-index: 2;
}

.client-thumb-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #94a3b8;
    background: rgba(51, 65, 85, 0.9);
}

.client-thumb-glow {
    position: absolute;
    inset: -8px;
    border-radius: 16px;
    filter: blur(10px);
    opacity: 0.58;
    pointer-events: none;
    z-index: 1;
    background: rgba(59, 130, 246, 0.25);
}

.client-thumb-wrap.is-active .client-thumb-glow {
    background: rgba(34, 197, 94, 0.34);
}

.client-thumb-wrap.is-maintenance .client-thumb-glow {
    background: rgba(245, 158, 11, 0.3);
}

.client-thumb-wrap.is-inactive .client-thumb-glow {
    background: rgba(239, 68, 68, 0.28);
}

.client-thumb-indicator {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 2px solid rgba(15, 23, 42, 0.96);
    z-index: 3;
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
}

.client-thumb-indicator.is-active {
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
    animation: none;
}

.client-thumb-indicator.is-maintenance {
    background: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.75);
    animation: status-chip-pulse-maintenance 2.2s ease-in-out infinite;
}

.client-thumb-indicator.is-inactive {
    background: #ef4444;
    box-shadow: 0 0 9px rgba(239, 68, 68, 0.68);
}

.client-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.client-name {
    font-weight: 700;
    font-size: 16px;
    color: #f1f5f9;
    margin-bottom: 4px;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.client-status-chip {
    position: relative;
    width: fit-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.62);
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
    padding: 4px 10px 4px 6px;
    letter-spacing: 0.01em;
}

.client-status-chip-icon {
    width: 18px;
    height: 18px;
    aspect-ratio: 1 / 1;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
    background: rgba(51, 65, 85, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.client-status-chip-icon svg {
    width: 11px;
    height: 11px;
    display: block;
}

.client-status-chip-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-status-chip.is-active,
.client-status-chip[data-status="active"] {
    color: #bbf7d0;
    border-color: rgba(74, 222, 128, 0.45);
    background: rgba(6, 78, 59, 0.4);
}

.client-status-chip.is-active .client-status-chip-icon,
.client-status-chip[data-status="active"] .client-status-chip-icon {
    color: #86efac;
    border-color: rgba(74, 222, 128, 0.5);
    background: rgba(22, 163, 74, 0.26);
}

.client-status-chip.is-maintenance,
.client-status-chip[data-status="maintenance"] {
    color: #fde68a;
    border-color: rgba(251, 191, 36, 0.48);
    background: rgba(120, 53, 15, 0.45);
}

.client-status-chip.is-maintenance .client-status-chip-icon,
.client-status-chip[data-status="maintenance"] .client-status-chip-icon {
    color: #fcd34d;
    border-color: rgba(251, 191, 36, 0.52);
    background: rgba(245, 158, 11, 0.24);
}

.client-status-chip.is-inactive,
.client-status-chip[data-status="inactive"] {
    color: #fecaca;
    border-color: rgba(248, 113, 113, 0.42);
    background: rgba(127, 29, 29, 0.4);
}

.client-status-chip.is-inactive .client-status-chip-icon,
.client-status-chip[data-status="inactive"] .client-status-chip-icon {
    color: #fca5a5;
    border-color: rgba(248, 113, 113, 0.46);
    background: rgba(220, 38, 38, 0.2);
}

.client-card.is-disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.client-card.is-disabled:hover,
.client-card.is-disabled:active {
    --card-lift: 0px;
    --card-tilt-x: 0deg;
    --card-tilt-y: 0deg;
    background: rgba(30, 41, 59, 0.4);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    transform: none;
}

.client-card.is-disabled::before,
.client-card.is-disabled::after {
    display: none;
}

@keyframes status-chip-pulse-active {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 6px rgba(34, 197, 94, 0.74);
    }

    50% {
        opacity: 0.7;
        transform: scale(0.82);
        box-shadow: 0 0 2px rgba(34, 197, 94, 0.46);
    }
}

@keyframes status-chip-pulse-maintenance {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 6px rgba(245, 158, 11, 0.74);
    }

    50% {
        opacity: 0.72;
        transform: scale(0.85);
        box-shadow: 0 0 2px rgba(245, 158, 11, 0.46);
    }
}

.client-touch-ripple {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    background: radial-gradient(circle, rgba(125, 211, 252, 0.32) 0%, rgba(125, 211, 252, 0.18) 45%, transparent 70%);
    animation: client-touch-ripple 0.62s ease-out forwards;
    z-index: 0;
}

@keyframes client-touch-ripple {
    0% {
        opacity: 0.64;
        transform: translate(-50%, -50%) scale(0);
    }

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

.client-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
    transform: skewX(-20deg);
}

.client-card:hover::after {
    left: 150%;
}

#flowButtons.is-loading {
    contain: layout paint;
}

.skeleton-card {
    pointer-events: none;
    border-color: rgba(255, 255, 255, 0.05);
    cursor: default;
}

.skeleton-card::after {
    display: none;
}

.skeleton-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.08) 45%, transparent 100%);
    transform: translate3d(-130%, 0, 0) skewX(-20deg);
    animation: skeleton-sweep 1.6s var(--ease-smooth) infinite;
    pointer-events: none;
    will-change: transform;
}

.skeleton-pulse {
    background: rgba(255, 255, 255, 0.08);
    animation: loading-pulse 1.25s var(--ease-smooth) infinite;
    border-radius: 8px;
    will-change: opacity;
}

.skeleton-img-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-right: 16px;
    flex-shrink: 0;
}

.skeleton-line-title {
    height: 16px;
    width: 60%;
    margin-bottom: 8px;
}

.skeleton-line-subtitle {
    height: 12px;
    width: 40%;
    opacity: 0.75;
}

@keyframes loading-pulse {

    0%,
    100% {
        opacity: 0.45;
    }

    50% {
        opacity: 0.95;
    }
}

@keyframes skeleton-sweep {
    0% {
        transform: translate3d(-130%, 0, 0) skewX(-20deg);
    }

    100% {
        transform: translate3d(130%, 0, 0) skewX(-20deg);
    }
}

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

    body.page-preload .main-wrapper,
    body.page-loaded .main-wrapper {
        opacity: 1;
        animation: none;
    }

    #flowButtons {
        transition: none;
    }

    .client-thumb-indicator,
    .client-touch-ripple {
        animation: none !important;
        transform: none !important;
    }

    .skeleton-card::before,
    .skeleton-pulse {
        animation: none;
    }

    .flow-state,
    .flow-state-btn {
        animation: none;
        transition: none;
    }

    .content-container,
    .modal-panel,
    #upgradePremiumBtn,
    #bypassDeltaBtn,
    button[onclick="logout()"] {
        animation: none;
        transition: none;
        transform: none;
    }

    .hune-toast-progress {
        animation: none;
    }
}

.history-skeleton {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 8px;
    gap: 12px;
}

.history-skeleton-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.history-skeleton-line {
    height: 12px;
    width: 100%;
    border-radius: 8px;
}

.history-skeleton-line.small {
    height: 10px;
    width: 70%;
}

.history-skeleton-line.amount {
    width: 60%;
    align-self: flex-end;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 8px;
    gap: 12px;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.history-item:hover {
    border-color: rgba(96, 165, 250, 0.45);
    background: rgba(15, 23, 42, 0.9);
    transform: translateY(-1px);
}

.history-item-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.history-type-icon {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(30, 41, 59, 0.72);
    color: #cbd5e1;
}

.history-type-icon-svg {
    width: 14px;
    height: 14px;
}

.history-type-icon.is-upgrade {
    border-color: rgba(96, 165, 250, 0.45);
    background: rgba(37, 99, 235, 0.18);
    color: #93c5fd;
}

.history-type-icon.is-bank {
    border-color: rgba(148, 163, 184, 0.42);
    background: rgba(51, 65, 85, 0.55);
    color: #e2e8f0;
}

.history-type-icon.is-card {
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(5, 150, 105, 0.18);
    color: #a7f3d0;
}

.history-type-label {
    font-size: 14px;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.history-date {
    font-size: 12px;
    color: #64748b;
    line-height: 1.2;
}

.toastify.hune-toast {
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 16px;
    overflow: visible;
}

.toastify.hune-toast .toast-close {
    right: 10px;
    top: 8px;
    color: #94a3b8;
    opacity: 0.92;
    font-size: 15px;
    line-height: 1;
}

.toastify.hune-toast .toast-close:hover {
    color: #e2e8f0;
}

.hune-toast-shell {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.24), transparent 44%),
        rgba(15, 23, 42, 0.95);
    box-shadow: 0 22px 38px -24px rgba(2, 6, 23, 0.95), 0 10px 22px -16px rgba(30, 64, 175, 0.5);
    backdrop-filter: blur(10px);
}

.hune-toast-body {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px 14px;
}

.hune-toast-icon {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    border: 1px solid rgba(148, 163, 184, 0.34);
    background: rgba(51, 65, 85, 0.62);
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hune-toast-icon-svg {
    width: 15px;
    height: 15px;
}

.hune-toast-content {
    min-width: 0;
    flex: 1;
}

.hune-toast-title {
    margin: 0;
    color: #f8fafc;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.hune-toast-message {
    margin: 3px 0 0;
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.45;
    word-break: break-word;
}

.hune-toast-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    transform-origin: left;
    animation-name: hune-toast-progress;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.9), rgba(148, 163, 184, 0.36));
}

.toastify.hune-toast--success .hune-toast-shell {
    border-color: rgba(74, 222, 128, 0.45);
    background:
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.28), transparent 46%),
        rgba(5, 46, 22, 0.95);
}

.toastify.hune-toast--success .hune-toast-icon {
    border-color: rgba(74, 222, 128, 0.48);
    background: rgba(16, 185, 129, 0.24);
    color: #86efac;
}

.toastify.hune-toast--success .hune-toast-progress {
    background: linear-gradient(90deg, rgba(74, 222, 128, 0.96), rgba(34, 197, 94, 0.45));
}

.toastify.hune-toast--error .hune-toast-shell {
    border-color: rgba(248, 113, 113, 0.44);
    background:
        radial-gradient(circle at top right, rgba(220, 38, 38, 0.28), transparent 44%),
        rgba(69, 10, 10, 0.95);
}

.toastify.hune-toast--error .hune-toast-icon {
    border-color: rgba(248, 113, 113, 0.45);
    background: rgba(220, 38, 38, 0.22);
    color: #fca5a5;
}

.toastify.hune-toast--error .hune-toast-progress {
    background: linear-gradient(90deg, rgba(248, 113, 113, 0.98), rgba(239, 68, 68, 0.45));
}

.toastify.hune-toast--warning .hune-toast-shell {
    border-color: rgba(250, 204, 21, 0.44);
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.24), transparent 46%),
        rgba(69, 26, 3, 0.95);
}

.toastify.hune-toast--warning .hune-toast-icon {
    border-color: rgba(250, 204, 21, 0.45);
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

.toastify.hune-toast--warning .hune-toast-progress {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.98), rgba(234, 179, 8, 0.45));
}

.toastify.hune-toast--info .hune-toast-shell {
    border-color: rgba(125, 211, 252, 0.44);
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.26), transparent 46%),
        rgba(12, 31, 61, 0.95);
}

.toastify.hune-toast--info .hune-toast-icon {
    border-color: rgba(125, 211, 252, 0.46);
    background: rgba(37, 99, 235, 0.2);
    color: #93c5fd;
}

.toastify.hune-toast--info .hune-toast-progress {
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.96), rgba(59, 130, 246, 0.45));
}

@keyframes hune-toast-progress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.animate-fadeIn {
    animation: fadeIn 0.4s ease-out forwards;
}

.premium-badge {
    position: relative;
    display: inline-block;
    padding: 8px 24px;
    background: radial-gradient(ellipse at center, #ffd700 0%, #b8860b 100%);
    border-radius: 50px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.4);
    cursor: default;
    user-select: none;
}

.premium-badge-inner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.premium-text {
    font-size: 14px;
    font-weight: 900;
    color: #3e2723;
    letter-spacing: 1.5px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.premium-subtitle {
    display: block;
    font-size: 9px;
    color: #3e2723;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.8;
    margin-top: -2px;
}

.premium-star {
    font-size: 14px;
    color: #fff;
    animation: spinStar 4s linear infinite;
}

@keyframes spinStar {
    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 640px) {
    #clientsSection {
        padding: 10px;
        border-radius: 14px;
    }

    .content-container {
        padding: 1.25rem;
    }

    #flowButtons {
        grid-template-columns: 1fr;
    }

    .client-card {
        min-height: 78px;
        padding: 12px;
    }

    .client-thumb-wrap {
        width: 42px;
        height: 42px;
        margin-right: 12px;
    }

    .client-name {
        font-size: 14px;
        margin-bottom: 3px;
    }

    .client-status-chip {
        padding: 3px 8px 3px 5px;
        font-size: 10px;
    }

    .client-status-chip-icon {
        width: 15px;
        height: 15px;
    }

    .client-status-chip-icon svg {
        width: 9.5px;
        height: 9.5px;
    }

    .main-wrapper {
        margin-top: 0.5rem;
        margin-bottom: 2rem;
    }

    .language-select-container {
        margin-bottom: 0.5rem;
    }

    .toastify.hune-toast {
        max-width: min(100vw - 16px, 420px) !important;
        width: min(100vw - 16px, 420px) !important;
    }

    .hune-toast-shell {
        border-radius: 14px;
    }

    .hune-toast-body {
        padding: 11px 12px 13px;
        gap: 8px;
    }

    .hune-toast-icon {
        width: 26px;
        height: 26px;
        border-radius: 8px;
    }

    .hune-toast-title {
        font-size: 12px;
    }

    .hune-toast-message {
        font-size: 11px;
    }
}