@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

        :root {
            --primary: #df3c30;
            --primary-hover: #b62921;
            --primary-soft: rgba(223, 60, 48, 0.08);
            --primary-border: rgba(223, 60, 48, 0.15);

            --bg-dark: #fffaf8;
            --surface-dark: rgba(255, 255, 255, 0.76);
            --border-dark: rgba(223, 60, 48, 0.15);

            --bg-light: #fffaf8;
            --surface-light: #ffffff;
            --border-light: rgba(20, 20, 20, 0.08);
            --text-main: #171717;
            --text-muted: #666666;

            --success: #10755b;
            --success-soft: rgba(16, 117, 91, 0.08);
            --warning: #f59e0b;
            --warning-soft: rgba(245, 158, 11, 0.08);

            --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -4px rgba(0, 0, 0, 0.06);
            --shadow-xl: 0 20px 25px -5px rgba(223, 60, 48, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
        }

        * {
            box-sizing: border-box;
            font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
        }

        body {
            margin: 0;
            padding: 0;
            background:
                radial-gradient(circle at 0% 0%, rgba(223, 60, 48, 0.10), transparent 28%),
                radial-gradient(circle at 100% 12%, rgba(255, 192, 140, 0.18), transparent 20%),
                linear-gradient(180deg, #fff9f7 0%, #ffffff 36%, #fffaf8 100%);
            color: var(--text-main);
            overflow-x: hidden;
            min-height: 100vh;
        }

        /* Screen state toggles */
        .screen {
            display: none;
            min-height: 100vh;
        }

        .screen.active {
            display: flex;
        }

        /* ========================================================
           1. LOGIN / LOOKUP SCREEN (Bright Startup Theme)
           ======================================================== */
        #login-screen {
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 40px 20px;
            background: transparent;
            position: relative;
            min-height: 100vh;
            overflow: hidden;
        }

        .login-container {
            width: 100%;
            max-width: 460px;
            background: rgba(255, 255, 255, 0.88);
            border: 1.5px solid rgba(223, 60, 48, 0.16);
            border-radius: 28px;
            padding: 46px 36px;
            box-shadow:
                0 30px 80px rgba(223, 60, 48, 0.08),
                0 12px 32px rgba(0, 0, 0, 0.03),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
            position: relative;
            z-index: 2;
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .login-header {
            text-align: center;
            margin-bottom: 34px;
        }

        .login-header h1 {
            font-size: 1.7rem;
            font-weight: 900;
            margin: 0 0 12px 0;
            letter-spacing: -0.04em;
            background: linear-gradient(135deg, #171717 30%, #df3c30 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .login-header p {
            font-size: 0.88rem;
            color: #4b5563;
            margin: 0;
            line-height: 1.6;
            font-weight: 500;
        }

        .form-group {
            margin-bottom: 24px;
            position: relative;
        }

        .form-group label {
            display: block;
            font-size: 0.84rem;
            font-weight: 800;
            color: #1f2937;
            margin-bottom: 10px;
            letter-spacing: -0.02em;
        }

        .form-input-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }

        .form-input {
            width: 100%;
            background: #ffffff;
            border: 1.5px solid rgba(223, 60, 48, 0.12);
            border-radius: 14px;
            padding: 15px 18px;
            color: var(--text-main);
            font-size: 0.95rem;
            font-weight: 600;
            outline: none;
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01);
        }

        .form-input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(223, 60, 48, 0.12), inset 0 2px 4px rgba(0, 0, 0, 0.01);
            background: #ffffff;
        }

        .form-helper {
            font-size: 0.78rem;
            color: #52525b;
            margin-top: 10px;
            font-weight: 600;
            line-height: 1.5;
            text-align: left;
            padding: 10px 14px;
            background: #fff8f6;
            border-radius: 10px;
            border: 1px dashed rgba(223, 60, 48, 0.15);
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .login-btn {
            width: 100%;
            background: linear-gradient(135deg, #ff3c30 0%, #d82015 100%);
            border: none;
            border-radius: 14px;
            color: #ffffff;
            font-size: 1.02rem;
            font-weight: 800;
            padding: 15px;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            box-shadow: 0 10px 25px rgba(223, 60, 48, 0.22);
        }

        .login-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 14px 32px rgba(223, 60, 48, 0.32);
            opacity: 1;
        }

        .login-btn:active {
            transform: translateY(0);
            box-shadow: 0 6px 16px rgba(223, 60, 48, 0.2);
        }

        .login-error {
            color: #df3c30;
            font-size: 0.8rem;
            font-weight: 700;
            margin-top: 10px;
            display: none;
            align-items: center;
            gap: 6px;
            padding: 10px 14px;
            background: rgba(220, 38, 38, 0.05);
            border-radius: 10px;
            border: 1px solid rgba(220, 38, 38, 0.1);
        }

        .demo-guide {
            margin-top: 36px;
            border-top: 1.5px dashed rgba(223, 60, 48, 0.15);
            padding-top: 26px;
        }

        .demo-guide-title {
            font-size: 0.78rem;
            font-weight: 800;
            color: #ff3c30;
            margin-bottom: 12px;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            text-align: center;
        }

        .demo-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding: 0;
            margin: 0;
            list-style: none;
        }

        .demo-item {
            font-size: 0.8rem;
            color: #4b5563;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: #fff8f6;
            padding: 10px 14px;
            border-radius: 10px;
            border: 1px solid rgba(223, 60, 48, 0.08);
            font-weight: 600;
        }

        .demo-click-copy {
            cursor: pointer;
            font-family: inherit;
            font-weight: 800;
            color: #df3c30;
            text-decoration: underline;
            transition: color 0.2s;
        }

        .demo-click-copy:hover {
            color: #b62921;
        }

        /* ========================================================
           2. PENDING SCREEN (Bright Theme)
           ======================================================== */
        #pending-screen {
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 20px;
            background: transparent;
        }

        .pending-card {
            width: 100%;
            max-width: 500px;
            background: var(--surface-dark);
            border: 1px solid var(--border-dark);
            border-radius: 24px;
            padding: 48px 40px;
            text-align: center;
            box-shadow: var(--shadow-xl);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
        }

        .pending-icon {
            width: 64px;
            height: 64px;
            background: var(--warning-soft);
            border: 1px solid rgba(245, 158, 11, 0.2);
            color: var(--warning);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            margin: 0 auto 24px auto;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
            }

            70% {
                transform: scale(1.05);
                box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
            }

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

        .pending-title {
            font-size: 1.4rem;
            font-weight: 800;
            margin: 0 0 12px 0;
            color: var(--text-main);
        }

        .pending-text {
            font-size: 0.9rem;
            color: var(--text-muted);
            line-height: 1.6;
            margin: 0 0 32px 0;
        }

        .pending-info-box {
            background: #fff2ee;
            border: 1px solid rgba(223, 60, 48, 0.08);
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 32px;
            text-align: left;
        }

        .pending-info-row {
            display: flex;
            justify-content: space-between;
            font-size: 0.85rem;
            padding: 8px 0;
            border-bottom: 1px solid rgba(223, 60, 48, 0.05);
        }

        .pending-info-row:last-child {
            border-bottom: none;
        }

        .pending-info-label {
            color: #666666;
            font-weight: 600;
        }

        .pending-info-val {
            color: var(--text-main);
            font-weight: 700;
        }

        .btn-back-login {
            background: #fff2ee;
            color: var(--primary);
            border: 1px solid rgba(223, 60, 48, 0.12);
            border-radius: 10px;
            padding: 12px 24px;
            font-size: 0.88rem;
            font-weight: 700;
            cursor: pointer;
            transition: background 0.2s;
        }

        .btn-back-login:hover {
            background: var(--primary-soft);
        }

        /* ========================================================
           3. MAIN DASHBOARD (Light Theme - Premium Visuals)
           ======================================================== */
        #dashboard-screen {
            background-color: var(--bg-light);
            color: var(--text-main);
            flex-direction: column;
            width: 100%;
        }

        .dashboard-layout {
            display: flex;
            min-height: 100vh;
            width: 100%;
            overflow-x: hidden;
        }

        /* Sidebar */
        .sidebar {
            width: 280px;
            background: #ffffff;
            color: var(--text-main);
            display: flex;
            flex-direction: column;
            flex-shrink: 0;
            border-right: 1px solid var(--border-light);
            padding: 24px;
            position: relative;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .sidebar.collapsed {
            margin-left: -280px;
        }

        .sidebar-toggle-btn {
            position: absolute;
            right: -32px;
            top: 24px;
            width: 32px;
            height: 48px;
            background: #ffffff;
            border: 1px solid var(--border-light);
            border-left: none;
            border-radius: 0 8px 8px 0;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 4px 0 10px rgba(0, 0, 0, 0.06);
            transition: all 0.2s ease;
            color: var(--text-muted);
            padding: 0;
            z-index: 100;
        }

        .sidebar-toggle-btn:hover {
            color: var(--primary);
            background: #fff9f7;
        }

        .sidebar-toggle-btn svg {
            transition: transform 0.3s ease;
        }

        .sidebar.collapsed .sidebar-toggle-btn svg {
            transform: rotate(180deg);
        }

        .sidebar-brand {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 10px;
            padding-bottom: 24px;
            border-bottom: 1px solid var(--border-light);
            margin-bottom: 24px;
            width: 100%;
        }

        .sidebar-brand img {
            width: 100%;
            max-width: 210px;
            height: auto;
            object-fit: contain;
        }

        .sidebar-profile {
            display: flex;
            flex-direction: column;
            background: #ffffff;
            border-radius: 16px;
            padding: 16px 18px;
            margin-bottom: 24px;
            border: 1px solid #e2e8f0;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
        }

        .profile-name {
            font-size: 1.12rem;
            font-weight: 800;
            color: #0f172a;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .status-dot {
            width: 8px;
            height: 8px;
            background-color: var(--success);
            border-radius: 50%;
            display: inline-block;
            box-shadow: 0 0 0 4px rgba(16, 117, 91, 0.2);
            animation: dotGlow 2s infinite;
        }

        @keyframes dotGlow {
            0% {
                box-shadow: 0 0 0 0 rgba(16, 117, 91, 0.4);
            }

            70% {
                box-shadow: 0 0 0 6px rgba(16, 117, 91, 0);
            }

            100% {
                box-shadow: 0 0 0 0 rgba(16, 117, 91, 0);
            }
        }

        .profile-code {
            font-size: 0.72rem;
            color: #df3c30;
            font-weight: 700;
            margin-top: 0;
            font-family: inherit;
            background: rgba(223, 60, 48, 0.08);
            border: 1px solid rgba(223, 60, 48, 0.15);
            padding: 2.5px 7px;
            border-radius: 6px;
            align-self: auto;
        }

        .profile-type {
            font-size: 0.72rem;
            font-weight: 700;
            padding: 2.5px 7px;
            border-radius: 6px;
            font-family: inherit;
            display: inline-block;
            box-sizing: border-box;
            border: 1px solid transparent;
        }

        .sidebar-menu {
            display: flex;
            flex-direction: column;
            gap: 8px;
            flex-grow: 1;
        }

        .menu-item {
            display: flex;
            align-items: center;
            gap: 12px;
            color: #4b5563;
            font-size: 0.9rem;
            font-weight: 700;
            padding: 12px 16px;
            border-radius: 10px;
            text-decoration: none;
            cursor: pointer;
            transition: all 0.2s;
        }

        .menu-item:hover {
            color: var(--primary);
            background: #fff2ee;
        }

        .menu-item.active {
            color: #ffffff;
            background: var(--primary);
        }

        .menu-item svg {
            width: 18px;
            height: 18px;
        }

        .sidebar-footer {
            border-top: 1px solid var(--border-light);
            padding-top: 20px;
        }

        .logout-btn {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            background: #fff2ee;
            border: 1px solid rgba(223, 60, 48, 0.12);
            color: var(--primary);
            border-radius: 8px;
            padding: 8px 12px;
            font-size: 0.8rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s;
        }

        .logout-btn:hover {
            background: var(--primary-soft);
        }

        .logout-btn svg {
            width: 14px;
            height: 14px;
        }

        /* Main Content Container */
        .main-content {
            flex-grow: 1;
            padding: 40px;
            overflow-y: auto;
            max-width: 100%;
            margin: 0;
            width: 100%;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .header-section {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 32px;
        }

        .header-title h2 {
            font-size: 1.6rem;
            font-weight: 800;
            margin: 0 0 6px 0;
            letter-spacing: -0.035em;
        }

        .header-title p {
            font-size: 0.88rem;
            color: var(--text-muted);
            margin: 0;
        }

        .update-badge {
            background: #ffffff;
            border: 1px solid var(--border-light);
            border-radius: 10px;
            padding: 10px 16px;
            font-size: 0.82rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 8px;
            box-shadow: var(--shadow-sm);
        }

        /* Stats Grid */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            margin-bottom: 32px;
        }

        .stat-card {
            background: var(--surface-light);
            border: 1px solid var(--border-light);
            border-radius: 20px;
            padding: 24px;
            display: flex;
            align-items: center;
            gap: 18px;
            box-shadow: var(--shadow-md);
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .stat-card:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }

        .stat-icon {
            width: 52px;
            height: 52px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .stat-icon.clicks {
            background: rgba(56, 189, 248, 0.08);
            color: #0284c7;
        }

        .stat-icon.sales {
            background: rgba(245, 158, 11, 0.08);
            color: #d97706;
        }

        .stat-icon.commission {
            background: rgba(16, 185, 129, 0.08);
            color: #059669;
        }

        .stat-icon svg {
            width: 24px;
            height: 24px;
        }

        .stat-info {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .stat-title {
            font-size: 0.92rem;
            font-weight: 700;
            color: var(--text-muted);
        }

        .stat-value {
            font-size: 1.85rem;
            font-weight: 800;
            color: var(--text-main);
        }

        /* UTM & Code Promo Card */
        .promo-card {
            background: #ffffff;
            color: var(--text-main);
            border-radius: 20px;
            padding: 28px;
            margin-bottom: 32px;
            box-shadow: var(--shadow-md);
            border: 1px solid rgba(223, 60, 48, 0.1);
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .promo-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .promo-title {
            font-size: 1.05rem;
            font-weight: 800;
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--text-main);
        }

        .promo-title svg {
            width: 20px;
            height: 20px;
            color: var(--primary);
        }

        .promo-tag {
            background: rgba(223, 60, 48, 0.08);
            color: var(--primary);
            border: 1.5px solid var(--primary-border);
            font-size: 0.72rem;
            font-weight: 800;
            padding: 4px 10px;
            border-radius: 6px;
            letter-spacing: 0.05em;
        }

        .promo-links-grid {
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: 20px;
        }

        .link-box {
            background: #fff9f7;
            border: 1px solid rgba(223, 60, 48, 0.08);
            border-radius: 12px;
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            position: relative;
        }

        .link-box-label {
            font-size: 0.78rem;
            font-weight: 700;
            color: var(--text-muted);
        }

        .link-box-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

        .link-val {
            font-family: inherit;
            font-size: 0.9rem;
            font-weight: 700;
            color: var(--text-main);
            word-break: break-all;
        }

        .btn-copy {
            background: #ffffff;
            border: 1px solid rgba(20, 20, 20, 0.08);
            color: var(--text-main);
            border-radius: 8px;
            padding: 8px 12px;
            font-size: 0.78rem;
            font-weight: 700;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: all 0.2s;
            white-space: nowrap;
        }

        .btn-copy:hover {
            background: #fff2ee;
            color: var(--primary);
            border-color: var(--primary-border);
        }

        .btn-copy svg {
            width: 14px;
            height: 14px;
        }

        /* Two columns details */
        .details-grid {
            display: grid;
            grid-template-columns: 1.4fr 1fr;
            gap: 24px;
            margin-bottom: 32px;
            align-items: start;
        }

        .panel-card {
            background: var(--surface-light);
            border: 1px solid var(--border-light);
            border-radius: 20px;
            padding: 28px;
            box-shadow: var(--shadow-md);
        }

        .month-btn {
            flex: 1;
            text-align: center;
            padding: 8px 4px;
            font-size: 0.8rem;
            font-weight: 800;
            color: #d84b3f;
            background: transparent;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.2s ease;
            min-width: 50px;
        }

        .month-btn:hover {
            color: #901c13;
            background: rgba(223, 60, 48, 0.08);
        }

        .month-btn.active {
            color: #ffffff !important;
            background: var(--primary) !important;
            box-shadow: 0 4px 10px rgba(223, 60, 48, 0.2);
        }

        .month-btn.future {
            color: #cca5a2;
            cursor: not-allowed;
        }

        .month-btn.future:hover {
            background: transparent;
            color: #cca5a2;
        }

        .settlement-horizontal {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            gap: 32px;
            border: 1.5px solid rgba(223, 60, 48, 0.22);
            box-shadow: 0 12px 30px rgba(223, 60, 48, 0.06);
            background: linear-gradient(180deg, #ffffff 0%, #fffbfa 100%);
            width: 100%;
        }

        @media (max-width: 768px) {
            .dashboard-layout {
                flex-direction: column;
            }
            .sidebar {
                width: 100% !important;
                border-right: none !important;
                border-bottom: 1px solid var(--border-light) !important;
                padding: 16px !important;
            }
            .sidebar.collapsed {
                margin-left: 0 !important;
                display: none !important;
            }
            .sidebar-toggle-btn {
                display: none !important;
            }
            .main-content {
                padding: 20px 16px !important;
            }
            .stats-grid {
                grid-template-columns: 1fr !important;
                gap: 12px !important;
            }
            .promo-links-grid {
                grid-template-columns: 1fr !important;
                gap: 16px !important;
            }
            .order-portal-grid {
                grid-template-columns: 1fr !important;
                gap: 20px !important;
            }
            .details-grid {
                grid-template-columns: 1fr !important;
                gap: 20px !important;
            }
            .settlement-horizontal {
                flex-direction: column !important;
                gap: 20px !important;
                padding: 20px !important;
            }
            .guidelines-flex-container {
                flex-direction: column !important;
                gap: 12px !important;
            }
            .header-section {
                flex-direction: column !important;
                align-items: flex-start !important;
                gap: 12px !important;
            }
            .update-badge {
                align-self: flex-start !important;
            }
            .login-container {
                padding: 30px 20px !important;
                border-radius: 20px !important;
            }
            .login-logo-top img {
                width: 240px !important;
            }
            .pending-card {
                padding: 32px 20px !important;
            }
        }

        .panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .panel-title {
            font-size: 1.05rem;
            font-weight: 800;
            margin: 0;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .panel-title svg {
            width: 18px;
            height: 18px;
        }

        /* Settlements Card Specifics */
        .settlement-summary {
            background: var(--bg-light);
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 20px;
            border: 1px solid var(--border-light);
        }

        .settlement-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 0;
            font-size: 0.88rem;
            border-bottom: 1px dashed var(--border-light);
        }

        .settlement-row:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }

        .settlement-row.total {
            border-top: 1px solid var(--border-light);
            padding-top: 14px;
            margin-top: 4px;
        }

        .settlement-row.total .val {
            font-size: 1.3rem;
            font-weight: 800;
            color: var(--primary);
        }

        .settlement-label {
            font-weight: 700;
            color: var(--text-muted);
        }

        .settlement-val {
            font-weight: 800;
            color: var(--text-main);
        }

        .btn-excel {
            width: 100%;
            background: #10b981;
            color: #ffffff;
            border: none;
            border-radius: 12px;
            padding: 14px;
            font-size: 0.92rem;
            font-weight: 800;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
            transition: all 0.2s;
        }

        .btn-excel:hover {
            background: #059669;
        }

        /* Leaderboard styling */
        .leaderboard-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .leader-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 16px;
            background: var(--bg-light);
            border: 1px solid var(--border-light);
            border-radius: 12px;
            transition: transform 0.2s;
        }

        .leader-item:hover {
            transform: translateX(4px);
        }

        .leader-item.current-user {
            background: var(--primary-soft);
            border-color: var(--primary-border);
        }

        .leader-left {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .leader-rank {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: var(--border-light);
            color: var(--text-muted);
            font-size: 0.78rem;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .leader-item:nth-child(1) .leader-rank {
            background: #fef08a;
            color: #854d0e;
        }

        .leader-item:nth-child(2) .leader-rank {
            background: #e2e8f0;
            color: #475569;
        }

        .leader-item:nth-child(3) .leader-rank {
            background: #ffedd5;
            color: #c2410c;
        }

        .leader-name {
            font-size: 0.88rem;
            font-weight: 700;
            color: var(--text-main);
        }

        .leader-sales {
            font-size: 0.88rem;
            font-weight: 800;
            color: var(--text-main);
        }

        .ranking-footer {
            margin-top: 14px;
            font-size: 0.82rem;
            font-weight: 700;
            color: var(--primary);
            background: var(--primary-soft);
            padding: 8px 12px;
            border-radius: 8px;
            text-align: center;
        }

        /* Tooltip notification toast */
        .toast {
            position: fixed;
            bottom: 24px;
            right: 24px;
            background: #1e293b;
            color: #ffffff;
            padding: 12px 24px;
            border-radius: 10px;
            font-size: 0.88rem;
            font-weight: 700;
            box-shadow: var(--shadow-xl);
            display: flex;
            align-items: center;
            gap: 8px;
            z-index: 10000;
            transform: translateY(100px);
            opacity: 0;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .toast.active {
            transform: translateY(0);
            opacity: 1;
        }

        .btn-channel {
            background: #ffffff;
            border: 1px solid rgba(223, 60, 48, 0.15);
            color: var(--text-main);
            border-radius: 20px;
            padding: 8px 16px;
            font-size: 0.82rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 6px;
            box-shadow: var(--shadow-sm);
        }

        .btn-channel:hover {
            background: #fff2ee;
            border-color: var(--primary);
            color: var(--primary);
            transform: translateY(-1px);
        }

        @keyframes pulse-highlight {
            0% {
                transform: scale(1);
                border-color: rgba(223, 60, 48, 0.08);
                background: #fff9f7;
            }

            50% {
                transform: scale(1.02);
                border-color: var(--primary);
                background: #fff2ee;
            }

            100% {
                transform: scale(1);
                border-color: rgba(223, 60, 48, 0.08);
                background: #fff9f7;
            }
        }