:root {
            --primary: #E31837;
            --secondary: #ffffff;
            --dark: #1a1a1a;
            --glass: rgba(255, 255, 255, 0.1);
            --glass-border: rgba(255, 255, 255, 0.2);
        }

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

        html {
            -webkit-overflow-scrolling: touch;
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Montserrat', sans-serif;
            background: url('bg-portal.png') no-repeat center center fixed;
            background-size: cover;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: var(--secondary);
            overflow-x: hidden;
            overflow-y: auto;
            position: relative;
        }

        body::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(227, 24, 55, 0.5) 0%, rgba(0, 0, 0, 0.8) 100%);
            z-index: 0;
        }

        .container {
            position: relative;
            z-index: 1;
            text-align: center;
            width: 100%;
            max-width: 1500px;
            min-height: 100vh;
            padding: 2vh 1.5rem 4vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        header {
            margin-bottom: 4vh;
            animation: fadeInDown 1.2s ease-out;
        }

        .logo-placeholder {
            font-size: 1.67rem;
            font-weight: 800;
            letter-spacing: 5px;
            margin-bottom: 0.8rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .logo-placeholder span {
            background: var(--primary);
            padding: 5px 15px;
            border-radius: 4px;
        }

        h1 {
            font-size: clamp(1.97rem, 3.8vh, 2.97rem);
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 3px;
            margin-bottom: 0.4rem;
            text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            line-height: 1.1;
        }

        .subtitle {
            font-size: 1.12rem;
            font-weight: 300;
            opacity: 0.9;
            letter-spacing: 5px;
            text-transform: uppercase;
            position: relative;
            display: inline-block;
        }

        .subtitle::after {
            content: '';
            position: absolute;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 3px;
            background: var(--primary);
        }

        .grid {
            display: grid;
            grid-template-columns: minmax(420px, 520px);
            gap: 2rem;
            width: 100%;
            max-width: 640px;
            justify-content: center;
            justify-items: center;
            place-content: center;
            flex: 0 1 auto;
        }

        .hero-stage {
            width: 100%;
            max-width: 1260px;
            display: grid;
            grid-template-columns: minmax(220px, 1fr) minmax(420px, 520px) minmax(220px, 1fr);
            align-items: center;
            gap: 2rem;
            margin-top: 1vh;
        }

        .card {
            background:
                radial-gradient(circle at top, rgba(255, 255, 255, 0.22), transparent 48%),
                linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.08) 100%);
            backdrop-filter: blur(28px);
            -webkit-backdrop-filter: blur(28px);
            border: 1px solid rgba(255, 255, 255, 0.26);
            border-radius: 30px;
            padding: 2rem 1.75rem 1.9rem;
            transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
            text-decoration: none;
            color: white;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 420px;
            height: min(48vh, 520px);
            max-height: 520px;
            cursor: pointer;
            box-shadow:
                0 30px 80px rgba(0, 0, 0, 0.42),
                inset 0 1px 0 rgba(255, 255, 255, 0.24),
                0 0 0 1px rgba(255, 255, 255, 0.05);
            animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1) both;
            position: relative;
            overflow: hidden;
            width: min(100%, 520px);
        }

        .card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, transparent, rgba(227, 24, 55, 0.2), transparent);
            transform: translateX(-100%);
            transition: 0.8s;
        }

        .card::after {
            content: '';
            position: absolute;
            inset: 14px;
            border-radius: 24px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            pointer-events: none;
        }

        .card:hover::before {
            transform: translateX(100%);
        }

        .card:nth-child(1) { animation-delay: 0.3s; }
        .card:nth-child(2) { animation-delay: 0.45s; }
        .card:nth-child(3) { animation-delay: 0.6s; }

        .card:hover {
            transform: translateY(-16px) scale(1.02);
            border-color: rgba(227, 24, 55, 0.55);
            box-shadow:
                0 36px 90px rgba(0, 0, 0, 0.5),
                0 0 50px rgba(227, 24, 55, 0.22);
        }

        .icon-container {
            width: 92px;
            height: 92px;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
            border: 1px solid rgba(255, 255, 255, 0.25);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1.4rem;
            position: relative;
            transition: all 0.5s ease;
            box-shadow:
                inset 0 0 24px rgba(255, 255, 255, 0.08),
                0 18px 45px rgba(0, 0, 0, 0.24);
        }

        .icon-container svg {
            width: 42px;
            height: 42px;
            stroke-width: 1.5;
            color: white;
            filter: drop-shadow(0 0 14px rgba(227, 24, 55, 0.55));
        }

        .icon-container-logo {
            background: transparent;
            border: none;
            box-shadow: none;
            width: 120px;
            height: 120px;
        }

        .card-logo-img {
            width: 120px;
            height: 120px;
            object-fit: contain;
            border-radius: 50%;
            filter: drop-shadow(0 8px 24px rgba(0,0,0,0.45));
            transition: transform 0.5s ease, filter 0.5s ease;
        }

        .card:hover .icon-container-logo {
            background: transparent;
            transform: none;
            box-shadow: none;
        }

        .card:hover .card-logo-img {
            transform: scale(1.08) rotate(4deg);
            filter: drop-shadow(0 12px 32px rgba(227, 24, 55, 0.55));
        }

        .card:hover .icon-container {
            background: var(--primary);
            transform: scale(1.08) rotate(4deg);
            box-shadow: 0 0 50px rgba(227, 24, 55, 0.62);
        }

        .card h2 {
            font-size: 1.75rem;
            font-weight: 800;
            margin-bottom: 0.95rem;
            text-align: center;
            letter-spacing: 1.5px;
            text-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
        }

        .card p {
            font-size: 1rem;
            opacity: 0.92;
            text-align: center;
            line-height: 1.7;
            font-weight: 400;
            max-width: 30ch;
            margin-bottom: 1.8rem;
        }

        .card-crm {
            cursor: default;
        }

        .crm-menu-side {
            display: flex;
            flex-direction: column;
            gap: 0.72rem;
            position: relative;
            z-index: 4;
        }

        .crm-menu-side-left {
            align-items: flex-end;
        }

        .crm-menu-side-right {
            align-items: flex-start;
        }

        .crm-menu-chip {
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            appearance: none;
            border: 1px solid rgba(255, 255, 255, 0.16);
            background: rgba(8, 8, 8, 0.28);
            color: white;
            border-radius: 18px;
            padding: 0.9rem 1.05rem;
            font: inherit;
            font-size: 0.8rem;
            font-weight: 700;
            letter-spacing: 0.04em;
            cursor: pointer;
            transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
            min-width: 200px;
            max-width: 240px;
            text-align: center;
            line-height: 1.35;
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
            isolation: isolate;
        }

        .crm-menu-chip:hover,
        .crm-menu-chip:focus-visible {
            transform: translateY(-2px);
            border-color: rgba(255, 255, 255, 0.28);
            outline: none;
        }

        .crm-menu-chip-dashboard { background: rgba(59, 130, 246, 0.26); }
        .crm-menu-chip-portfolio { background: rgba(239, 68, 68, 0.24); }
        .crm-menu-chip-request { background: rgba(16, 185, 129, 0.24); }
        .crm-menu-chip-match { background: rgba(245, 158, 11, 0.24); }
        .crm-menu-chip-accounting { background: rgba(168, 85, 247, 0.24); }
        .crm-menu-chip-calendar { background: rgba(14, 165, 233, 0.24); }
        .crm-menu-chip-team { background: rgba(236, 72, 153, 0.24); }
        .crm-menu-chip-fsbo { background: rgba(249, 115, 22, 0.24); }
        .crm-menu-chip-rent { background: rgba(20, 184, 166, 0.24); }
        .crm-menu-chip-links { background: rgba(99, 102, 241, 0.24); }
        .crm-menu-chip-performance { background: rgba(234, 88, 12, 0.24); }
        .crm-menu-chip-contract { background: rgba(132, 204, 22, 0.24); }

        .crm-menu-chip-dashboard:hover,
        .crm-menu-chip-dashboard:focus-visible { background: rgba(59, 130, 246, 0.4); }
        .crm-menu-chip-portfolio:hover,
        .crm-menu-chip-portfolio:focus-visible { background: rgba(239, 68, 68, 0.38); }
        .crm-menu-chip-request:hover,
        .crm-menu-chip-request:focus-visible { background: rgba(16, 185, 129, 0.38); }
        .crm-menu-chip-match:hover,
        .crm-menu-chip-match:focus-visible { background: rgba(245, 158, 11, 0.38); }
        .crm-menu-chip-accounting:hover,
        .crm-menu-chip-accounting:focus-visible { background: rgba(168, 85, 247, 0.38); }
        .crm-menu-chip-calendar:hover,
        .crm-menu-chip-calendar:focus-visible { background: rgba(14, 165, 233, 0.38); }
        .crm-menu-chip-team:hover,
        .crm-menu-chip-team:focus-visible { background: rgba(236, 72, 153, 0.38); }
        .crm-menu-chip-fsbo:hover,
        .crm-menu-chip-fsbo:focus-visible { background: rgba(249, 115, 22, 0.38); }
        .crm-menu-chip-rent:hover,
        .crm-menu-chip-rent:focus-visible { background: rgba(20, 184, 166, 0.38); }
        .crm-menu-chip-links:hover,
        .crm-menu-chip-links:focus-visible { background: rgba(99, 102, 241, 0.38); }
        .crm-menu-chip-performance:hover,
        .crm-menu-chip-performance:focus-visible { background: rgba(234, 88, 12, 0.38); }
        .crm-menu-chip-contract:hover,
        .crm-menu-chip-contract:focus-visible { background: rgba(132, 204, 22, 0.38); }

        .crm-menu-chip::after {
            content: attr(data-tooltip);
            position: absolute;
            top: 50%;
            width: 250px;
            max-width: min(250px, calc(100vw - 48px));
            padding: 0.85rem 0.95rem;
            border-radius: 16px;
            background: rgba(15, 15, 15, 0.95);
            border: 1px solid rgba(255, 255, 255, 0.12);
            box-shadow: 0 24px 45px rgba(0, 0, 0, 0.35);
            color: rgba(255, 255, 255, 0.92);
            font-size: 0.73rem;
            font-weight: 500;
            line-height: 1.55;
            letter-spacing: 0.01em;
            text-align: left;
            white-space: normal;
            overflow-wrap: anywhere;
            word-break: normal;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.22s ease, transform 0.22s ease;
            z-index: 6;
        }

        .crm-menu-chip::before {
            content: '';
            position: absolute;
            width: 12px;
            height: 12px;
            background: rgba(15, 15, 15, 0.95);
            border-left: 1px solid rgba(255, 255, 255, 0.12);
            border-top: 1px solid rgba(255, 255, 255, 0.12);
            opacity: 0;
            transition: opacity 0.22s ease, transform 0.22s ease;
            z-index: 5;
        }

        .crm-menu-side-left .crm-menu-chip::after {
            right: calc(100% + 18px);
            left: auto;
            transform: translateY(-50%) translateX(8px);
        }

        .crm-menu-side-left .crm-menu-chip::before {
            right: calc(100% + 10px);
            top: 50%;
            transform: translateY(-50%) rotate(135deg);
        }

        .crm-menu-side-right .crm-menu-chip::after {
            left: calc(100% + 18px);
            right: auto;
            transform: translateY(-50%) translateX(-8px);
        }

        .crm-menu-side-right .crm-menu-chip::before {
            left: calc(100% + 10px);
            top: 50%;
            transform: translateY(-50%) rotate(-45deg);
        }

        .crm-menu-chip:hover::after,
        .crm-menu-chip:hover::before,
        .crm-menu-chip:focus-visible::after,
        .crm-menu-chip:focus-visible::before {
            opacity: 1;
        }

        .crm-menu-side-left .crm-menu-chip:hover::after,
        .crm-menu-side-left .crm-menu-chip:focus-visible::after {
            transform: translateY(-50%) translateX(0);
        }

        .crm-menu-side-right .crm-menu-chip:hover::after,
        .crm-menu-side-right .crm-menu-chip:focus-visible::after {
            transform: translateY(-50%) translateX(0);
        }

        .btn-enter {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 1rem 2.9rem;
            background: linear-gradient(135deg, #ff284d 0%, #e31837 55%, #a80d24 100%);
            color: white;
            border-radius: 14px;
            font-weight: 800;
            font-size: 0.92rem;
            text-transform: uppercase;
            letter-spacing: 0.22em;
            transition: all 0.4s ease;
            border: 1px solid rgba(255, 255, 255, 0.28);
            box-shadow: 0 18px 38px rgba(227, 24, 55, 0.34);
            text-decoration: none;
        }

        .card:hover .btn-enter {
            background: rgba(255, 255, 255, 0.08);
            color: white;
            box-shadow: 0 0 24px rgba(227, 24, 55, 0.34);
            letter-spacing: 0.26em;
        }

        .portal-links {
            display: grid;
            grid-template-columns: repeat(4, minmax(200px, 280px));
            gap: 1rem;
            width: 100%;
            max-width: 1200px;
            margin-top: 1.25rem;
            justify-content: center;
        }

        .portal-link {
            position: relative;
            overflow: hidden;
            text-decoration: none;
            color: white;
            padding: 1.15rem 1.2rem;
            border-radius: 22px;
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
            border: 1px solid rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
            box-shadow:
                0 18px 48px rgba(0, 0, 0, 0.22),
                inset 0 1px 0 rgba(255, 255, 255, 0.16);
            transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
        }

        .portal-link::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.12), transparent);
            transform: translateX(-100%);
            transition: transform 0.7s ease;
        }

        .portal-link:hover {
            transform: translateY(-6px);
            border-color: rgba(255, 255, 255, 0.32);
            box-shadow:
                0 24px 56px rgba(0, 0, 0, 0.3),
                0 0 28px rgba(227, 24, 55, 0.16);
        }

        .portal-link:hover::before {
            transform: translateX(100%);
        }

        .portal-link-label {
            position: relative;
            z-index: 1;
            font-size: 0.68rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.22em;
            color: rgba(255, 255, 255, 0.68);
            margin-bottom: 0.55rem;
        }

        .portal-link-title {
            position: relative;
            z-index: 1;
            font-size: 1.12rem;
            font-weight: 800;
            letter-spacing: 0.03em;
            margin-bottom: 0.45rem;
        }

        .portal-link-apex .portal-link-title {
            color: #ff5a6f;
        }

        .portal-link-recruiter .portal-link-title {
            color: #f6c453;
        }

        .portal-link-arsa .portal-link-title {
            color: #39d98a;
        }

        .portal-link-sahakocu .portal-link-title {
            color: #7dd3fc;
        }

        .portal-link-note {
            display: inline-block;
            margin-top: 0.35rem;
            font-size: 0.72rem;
            font-style: normal;
            font-weight: 600;
            color: rgba(125, 211, 252, 0.65);
            letter-spacing: 0.02em;
        }

        .portal-link-quote {
            position: relative;
            z-index: 1;
            font-size: 0.84rem;
            color: rgba(255, 255, 255, 0.82);
            font-style: italic;
        }

        footer {
            position: relative;
            z-index: 1;
            margin-top: 2.5vh;
            opacity: 0.6;
            font-size: 0.85rem;
            font-weight: 300;
            letter-spacing: 1px;
        }

        @keyframes fadeInDown {
            from { opacity: 0; transform: translateY(-50px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(50px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @media (max-width: 768px) {
            html, body {
                height: auto;
                min-height: 100%;
                overflow-x: hidden;
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
            }
            .container { padding: 4rem 1.5rem 5rem; min-height: auto; }
            h1 { font-size: 2.5rem; }
            .hero-stage {
                grid-template-columns: 1fr;
                gap: 1.2rem;
                margin-top: 1.2rem;
            }
            .grid { grid-template-columns: 1fr; gap: 2rem; }
            .card { min-height: 380px; height: auto; padding: 3.5rem 2rem 2.5rem; width: min(100%, 460px); }
            .crm-menu-side,
            .crm-menu-side-left,
            .crm-menu-side-right {
                align-items: center;
            }
            .portal-links { grid-template-columns: repeat(2, 1fr); max-width: 520px; }
            .crm-menu-chip { width: 100%; max-width: 100%; }
            .crm-menu-chip::after { width: min(220px, calc(100vw - 80px)); }
        }
