  * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary: #2563eb;
            --primary-dark: #1d4ed8;
            --secondary: #06b6d4;
            --accent: #7c3aed;
            --success: #10b981;
            --text-dark: #0f172a;
            --text-light: #475569;
            --white: #ffffff;
            --border: rgba(255,255,255,0.18);
            --shadow-lg: 0 25px 60px rgba(15, 23, 42, 0.18);
            --shadow-md: 0 10px 30px rgba(37, 99, 235, 0.12);
            --radius-xl: 24px;
            --radius-lg: 18px;
        }

        body {
            font-family: 'Poppins', sans-serif;
            min-height: 100vh;
            background:
                radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 30%),
                radial-gradient(circle at top right, rgba(6, 182, 212, 0.18), transparent 28%),
                radial-gradient(circle at bottom left, rgba(124, 58, 237, 0.16), transparent 30%),
                linear-gradient(135deg, #eff6ff 0%, #f8fafc 45%, #eef2ff 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 30px 15px;
            color: var(--text-dark);
            overflow-x: hidden;
        }

        .bg-shape {
            position: fixed;
            border-radius: 50%;
            filter: blur(80px);
            opacity: 0.45;
            z-index: 0;
            pointer-events: none;
        }

        .shape1 {
            width: 260px;
            height: 260px;
            background: #60a5fa;
            top: 5%;
            left: 2%;
        }

        .shape2 {
            width: 320px;
            height: 320px;
            background: #22d3ee;
            bottom: 8%;
            right: 4%;
        }

        .shape3 {
            width: 240px;
            height: 240px;
            background: #a78bfa;
            top: 45%;
            left: 50%;
            transform: translateX(-50%);
        }

        .terms-wrapper {
            width: 100%;
            max-width: 980px;
            position: relative;
            z-index: 2;
        }

        .terms-card {
            background: rgba(255, 255, 255, 0.72);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid var(--border);
            border-radius: var(--radius-xl);
            box-shadow: var(--shadow-lg);
            overflow: hidden;
            position: relative;
        }

        .top-bar {
            height: 6px;
            background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
        }

        .terms-header {
            padding: 34px 34px 20px;
            text-align: center;
            background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.15));
            border-bottom: 1px solid rgba(15, 23, 42, 0.06);
        }

        .logo-wrap {
            width: 82px;
            height: 82px;
            border-radius: 22px;
            margin: 0 auto 18px;
            background: linear-gradient(135deg, rgba(37,99,235,0.10), rgba(124,58,237,0.12));
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
            overflow: hidden;
        }

        .logo-wrap img {
            width: 58px;
            height: 58px;
            object-fit: contain;
        }

        .terms-header h1 {
            font-size: 2rem;
            font-weight: 800;
            margin-bottom: 8px;
            color: var(--text-dark);
            letter-spacing: -0.4px;
        }

        .terms-header p {
            margin: 0;
            font-size: 0.98rem;
            color: var(--text-light);
            max-width: 680px;
            margin-inline: auto;
            line-height: 1.7;
        }

        .terms-content {
            padding: 28px 34px 10px;
        }

        .scroll-box {
            max-height: 430px;
            overflow-y: auto;
            padding-right: 10px;
        }

        .scroll-box::-webkit-scrollbar {
            width: 8px;
        }

        .scroll-box::-webkit-scrollbar-track {
            background: rgba(148, 163, 184, 0.12);
            border-radius: 10px;
        }

        .scroll-box::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, var(--primary), var(--secondary));
            border-radius: 10px;
        }

        .term-item {
            background: rgba(255,255,255,0.72);
            border: 1px solid rgba(148, 163, 184, 0.14);
            border-radius: var(--radius-lg);
            padding: 20px 22px;
            margin-bottom: 18px;
            box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
            transition: all 0.25s ease;
        }

        .term-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 14px 26px rgba(37, 99, 235, 0.08);
        }

        .term-item h6 {
            font-size: 1.04rem;
            font-weight: 700;
            margin-bottom: 10px;
            color: var(--primary-dark);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .term-item h6 span {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 0.84rem;
            font-weight: 700;
            flex-shrink: 0;
        }

        .term-item p {
            margin: 0;
            font-size: 0.95rem;
            line-height: 1.8;
            color: var(--text-light);
        }

        .term-item a {
            color: var(--primary);
            font-weight: 600;
            text-decoration: none;
        }

        .term-item a:hover {
            text-decoration: underline;
        }

        .terms-footer {
            padding: 18px 34px 34px;
        }

        .agree-box {
            display: flex;
            align-items: flex-start;
            gap: 14px;
            background: linear-gradient(135deg, rgba(37,99,235,0.07), rgba(6,182,212,0.06));
            border: 1px solid rgba(37, 99, 235, 0.10);
            padding: 18px 18px;
            border-radius: 18px;
            margin-bottom: 18px;
        }

        .custom-checkbox {
            appearance: none;
            -webkit-appearance: none;
            width: 22px;
            height: 22px;
            border-radius: 7px;
            border: 2px solid #94a3b8;
            background: #fff;
            cursor: pointer;
            margin-top: 2px;
            position: relative;
            transition: all 0.25s ease;
            flex-shrink: 0;
        }

        .custom-checkbox:checked {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            border-color: transparent;
            box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
        }

        .custom-checkbox:checked::after {
            content: "✓";
            position: absolute;
            color: #fff;
            font-size: 14px;
            font-weight: 700;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -55%);
        }

        .agree-label {
            font-size: 0.96rem;
            color: var(--text-dark);
            font-weight: 500;
            line-height: 1.7;
            margin: 0;
        }

        .agree-label a {
            color: var(--primary);
            font-weight: 700;
            text-decoration: none;
        }

        .agree-label a:hover {
            text-decoration: underline;
        }

        .login-btn {
            width: 100%;
            border: none;
            border-radius: 16px;
            padding: 15px 20px;
            font-size: 1rem;
            font-weight: 700;
            letter-spacing: 0.3px;
            color: #fff;
            background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
            background-size: 200% 200%;
            box-shadow: 0 18px 35px rgba(37, 99, 235, 0.22);
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .login-btn:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 22px 40px rgba(37, 99, 235, 0.28);
            background-position: right center;
        }

        .login-btn:disabled {
            background: #cbd5e1;
            box-shadow: none;
            cursor: not-allowed;
            transform: none;
        }

        .bottom-note {
            margin-top: 14px;
            text-align: center;
            font-size: 0.88rem;
            color: #64748b;
        }

        @media (max-width: 768px) {
            body {
                padding: 20px 12px;
            }

            .terms-header,
            .terms-content,
            .terms-footer {
                padding-left: 20px;
                padding-right: 20px;
            }

            .terms-header {
                padding-top: 26px;
            }

            .terms-header h1 {
                font-size: 1.55rem;
            }

            .terms-header p {
                font-size: 0.92rem;
            }

            .scroll-box {
                max-height: 380px;
            }

            .term-item {
                padding: 16px;
            }

            .term-item h6 {
                font-size: 0.98rem;
            }

            .agree-box {
                gap: 12px;
                padding: 16px;
            }
        }