        .portal-card-container {
            width: 100%;
            margin-bottom: 16px;
            max-width: 420px;
            background: #0b0f1d;
            border: 1px solid rgba(255, 255, 255, 0.09);
            border-radius: 32px;
            box-shadow: 0 25px 70px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.04), 0 10px 30px rgba(0, 229, 255, 0.04);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            position: relative;
        }
       
        /* Locked */
        .locked-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 480px; }
        
        .shield-emblem-wrap { position: relative; margin-bottom: 24px; }
        .shield-glow-effect { position: absolute; inset: -12px; background: radial-gradient(circle, rgba(0, 229, 255, 0.35) 0%, transparent 70%); border-radius: 30px; filter: blur(14px); z-index: 0; animation: breathe 3s infinite alternate ease-in-out; }
        @keyframes breathe { 0% { transform: scale(0.95); opacity: 0.5; } 100% { transform: scale(1.08); opacity: 0.9; } }
        .shield-emblem-box { position: relative; z-index: 1; width: 82px; height: 82px; background: #0b1528; border: 1.5px solid rgba(0, 229, 255, 0.45); border-radius: 24px; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 229, 255, 0.15); }
        .shield-emblem-box svg { width: 40px; height: 40px; color: #00e5ff; filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.6)); }
        .locked-heading { font-size: 24px; font-weight: 900; color: #ffffff; letter-spacing: -0.3px; margin-bottom: 12px; }
        .locked-paragraph { font-size: 13.5px; color: #8792b0; line-height: 1.6; max-width: 320px; margin-bottom: 30px; }
        .btn-signin-glow { background: linear-gradient(90deg, #00e5ff 0%, #a855f7 100%); border: none; color: #040c17; font-weight: 900; font-size: 14.5px; padding: 14px 44px; border-radius: 16px; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 229, 255, 0.35); transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1); }

        /* Profile */
        .profile-stage { display: flex; flex-direction: column; gap: 16px; }
        .card-dark { background: transparent; position: relative; padding-bottom: 20px;}
        .profile-main-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
        .avatar-wrap { position: relative; width: 72px; height: 72px; flex-shrink: 0; }
        .avatar-img { width: 100%; height: 100%; border-radius: 20px; object-fit: cover; border: 2px solid rgba(0, 229, 255, 0.4); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4); }
        .avatar-online-dot { position: absolute; bottom: -2px; right: -2px; width: 13px; height: 13px; background: #22c55e; border-radius: 50%; border: 2px solid #0f1527; }
        .profile-meta-wrap { flex: 1; min-width: 0; }
        .meta-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
        .profile-gamer-name { font-size: 19px; font-weight: 900; color: #ffffff; letter-spacing: -0.3px; }
       
        .profile-bio { font-size: 12px; color: #94a3b8; margin-top: 4px; line-height: 1.4; }
        .profile-insta { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: #f472b6; margin-top: 6px; text-decoration: none; font-weight: 600; }
        .rank-stats-row { display:flex; gap:10px; border-top: 1px solid rgba(255, 255, 255, 0.06); padding-top: 14px; margin-top: 8px; }
        .rank-box { flex:1; background:#080c16; border:1px solid rgba(255,255,255,0.06); border-radius:14px; padding:10px 12px; display:flex; align-items:center; gap:10px; }
        .rank-box.rank { border-color: rgba(0,229,255,0.18); }
        .rank-box.streak-mini { border-color: rgba(249,115,22,0.18); }
        .rank-icon { width:32px;height:32px;border-radius:10px;display:flex;align-items:center;justify-content:center; flex-shrink:0; }
        .rank-icon.cyan { background:rgba(0,229,255,0.1); border:1px solid rgba(0,229,255,0.2); color:#00e5ff; }
        .rank-icon.orange { background:rgba(249,115,22,0.1); border:1px solid rgba(249,115,22,0.2); color:#f97316; }
        .rank-value { font-size:16px;font-weight:900;color:#fff;line-height:1; }
        .rank-label { font-size:9.5px;font-weight:800;letter-spacing:0.8px;text-transform:uppercase;color:#7d87a4;margin-top:2px; }
        .xp-status-block { margin-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.06); padding-top: 14px; }
        .xp-status-row { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 800; color: #ffffff; margin-bottom: 8px; }
        .xp-status-row span:last-child { color: #00e5ff; font-variant-numeric: tabular-nums; }
        .xp-track { height: 7px; background: #080c18; border-radius: 9999px; overflow: hidden; }
        .xp-fill { height: 100%; background: linear-gradient(90deg, #00e5ff 0%, #a855f7 100%); border-radius: 9999px; transition: width 0.6s ease; }

        /* NEW: Pencil Icon */
        .btn-edit-pencil {
            position: absolute;
            top: 14px; right: 14px;
            width: 36px; height: 36px;
            background: #11172b;
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 12px;
            display: flex; align-items: center; justify-content: center;
            color: #94a3b8;
            cursor: pointer;
            transition: all 0.2s ease;
            z-index: 2;
        }
        .btn-edit-pencil:hover { background: #1a2340; color: #00e5ff; border-color: rgba(0,229,255,0.3); transform: rotate(8deg) scale(1.05); }
        .btn-edit-pencil:active { transform: scale(0.95); }

        /* Edit Details - now for popup */
        .section-label { font-size: 11.5px; font-weight: 900; color: #ffffff; letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: 14px; }
        .field-group { margin-bottom: 12px; }
        .field-label { display: block; font-size: 11px; color: #8792b0; margin-bottom: 5px; font-weight: 600; }
        .input-dark { width: 100%; background: #080c16; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; color: #ffffff; font-size: 13px; padding: 11px 14px; outline: none; transition: all 0.2s; font-family: inherit; }
        .input-dark:focus { border-color: #00e5ff; background: #0a1020; box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.15); }
        .action-row { display: flex; gap: 10px; margin-top: 16px; }
        .btn-cyan-solid { flex: 1; background: #00e5ff; border: none; color: #07101e; font-weight: 800; font-size: 13px; padding: 12px; border-radius: 12px; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 229, 255, 0.25); transition: all 0.15s; }
        .btn-muted-outline { background: #14192d; border: 1px solid rgba(255, 255, 255, 0.08); color: #cbd5e1; font-weight: 700; font-size: 13px; padding: 12px 18px; border-radius: 12px; cursor: pointer; }

        /* Streak */
        .streak-row-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
        .streak-info-left { display: flex; align-items: center; gap: 8px; }
        .streak-flame-icon { font-size: 20px; color: #f97316; }
        .streak-metric-right { text-align: right; line-height: 1; }
        .streak-digits { font-size: 19px; font-weight: 900; color: #f97316; }
        .streak-unit { font-size: 9px; font-weight: 800; color: #7d87a4; letter-spacing: 0.5px; }
        .milestone-box { display: flex; align-items: center; justify-content: space-between; background: #080c16; border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 12px; padding: 10px 14px; margin-bottom: 8px; transition: all 0.2s; }
        .milestone-box.claimed { opacity: 0.6; border-color: rgba(34,197,94,0.15); }
        .milestone-box.ready { border-color: rgba(0,229,255,0.3); background: rgba(0,229,255,0.06); box-shadow: 0 0 12px rgba(0,229,255,0.08); }
        .milestone-badge-claimed { font-size: 11px; font-weight: 800; color: #22c55e; }
        .milestone-badge-pending { font-size: 11px; font-weight: 800; color: #7d87a4; }
        .btn-claim { background: linear-gradient(90deg,#00e5ff,#a855f7); border: none; color: #05101a; font-weight: 900; font-size: 11px; padding: 6px 12px; border-radius: 8px; cursor: pointer; }
        
        .daily-claim-wrap { display:flex; align-items:center; justify-content:space-between; background: linear-gradient(135deg, rgba(0,229,255,0.08) 0%, rgba(168,85,247,0.08) 100%); border:1px solid rgba(0,229,255,0.2); border-radius:16px; padding:14px 16px; margin-top:14px; }
        .daily-claim-left { display:flex; align-items:center; gap:10px; }
        .daily-icon-box { width:38px;height:38px;border-radius:12px;background:#0f1527;border:1px solid rgba(255,255,255,0.08);display:flex;align-items:center;justify-content:center;color:#facc15; }
        .btn-daily-claim { background: linear-gradient(90deg,#facc15 0%, #f97316 100%); border:none; color:#1a1000; font-weight:900; font-size:12px; padding:9px 16px; border-radius:10px; cursor:pointer; box-shadow:0 4px 12px rgba(250,204,21,0.25); transition:all 0.15s; display:flex; align-items:center; gap:6px; }
        .btn-daily-claim:disabled { opacity:0.45; cursor:not-allowed; background:#1e293b; color:#64748b; box-shadow:none; }
        .btn-daily-claim:active { transform:scale(0.96); }
        .photo-upload-wrap { display:flex; align-items:center; gap:14px; background:#080c16; border:1px dashed rgba(255,255,255,0.12); border-radius:14px; padding:12px; margin-bottom:14px; cursor:pointer; transition:all 0.2s; }
        .photo-upload-wrap:hover { border-color: rgba(0,229,255,0.3); background:#0a1020; }
        .photo-preview { width:52px;height:52px;border-radius:14px; object-fit:cover; border:2px solid rgba(0,229,255,0.3); flex-shrink:0; background:#11172b; }
        .photo-upload-text { flex:1; }
        .photo-upload-text b { font-size:12px;color:#fff;display:block; }
        .photo-upload-text span { font-size:10.5px;color:#7d87a4; }
        .btn-logout-full { width: 100%; background: #0f1527; border: 1px solid rgba(239, 68, 68, 0.25); color: #f87171; font-weight: 800; font-size: 13px; padding: 14px; border-radius: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.2s; }

        /* Auth Modal */
        .modal-overlay { position: fixed; inset: 0; background: rgba(3, 6, 14, 0.85); backdrop-filter: blur(12px); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
        .modal-overlay.open { opacity: 1; pointer-events: auto; }
        .modal-box { width: 100%; max-width: 390px; background: #0f1527; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 28px; padding: 26px 22px 24px; box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 229, 255, 0.08); position: relative; transform: scale(0.96) translateY(12px); transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
        .modal-overlay.open .modal-box { transform: scale(1) translateY(0); }
        .btn-modal-close { position: absolute; top: 18px; right: 18px; background: transparent; border: none; color: #8792b0; font-size: 18px; cursor: pointer; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all 0.15s; }
        .modal-emblem { width: 56px; height: 56px; background: rgba(0, 229, 255, 0.08); border: 1px solid rgba(0, 229, 255, 0.35); border-radius: 18px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; box-shadow: 0 0 24px rgba(0, 229, 255, 0.15); }
        .modal-emblem svg { width: 28px; height: 28px; color: #00e5ff; }
        .modal-headline { font-size: 21px; font-weight: 900; color: #ffffff; text-align: center; letter-spacing: -0.2px; }
        .modal-subtitle { font-size: 12px; color: #8792b0; text-align: center; line-height: 1.45; max-width: 290px; margin: 6px auto 18px; }
        .btn-google { width: 100%; background: #ffffff; border: none; color: #0f172a; font-weight: 700; font-size: 13.5px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25); transition: all 0.15s ease; }
        .google-icon { width: 18px; height: 18px; }
        .or-divider { display: flex; align-items: center; text-align: center; margin: 18px 0 16px; color: #5c6684; font-size: 10px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
        .or-divider::before, .or-divider::after { content: ''; flex: 1; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
        .or-divider::before { margin-right: 12px; } .or-divider::after { margin-left: 12px; }
        .tabs-switcher { background: #090d18; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 4px; display: flex; gap: 4px; margin-bottom: 16px; }
        .tab-btn { flex: 1; padding: 9px; text-align: center; border-radius: 9px; border: none; background: transparent; color: #7d87a4; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: all 0.2s ease; }
        .tab-btn.active { background: #0b2538; border: 1px solid rgba(0, 229, 255, 0.5); color: #00e5ff; box-shadow: 0 0 14px rgba(0, 229, 255, 0.15); }
        .input-box-wrap { margin-bottom: 12px; }
        .input-box-label { display: block; font-size: 11px; font-weight: 600; color: #8792b0; margin-bottom: 5px; }
        .input-icon-slot { position: relative; display: flex; align-items: center; }
        .input-icon-lead { position: absolute; left: 14px; width: 16px; height: 16px; color: #64748b; pointer-events: none; }
        .modal-input { width: 100%; height: 46px; background: #080c16; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 0 14px 0 40px; color: #ffffff; font-size: 13px; outline: none; transition: all 0.2s; font-family: inherit; }
        .modal-input:focus { border-color: #00e5ff; background: #0b1122; box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.15); }
        .btn-eye-toggle { position: absolute; right: 12px; background: transparent; border: none; color: #64748b; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 4px; }
        .btn-modal-submit { width: 100%; height: 46px; background: linear-gradient(90deg, #00e5ff 0%, #a855f7 100%); border: none; color: #05101a; font-size: 13.5px; font-weight: 900; border-radius: 12px; cursor: pointer; margin-top: 6px; box-shadow: 0 4px 18px rgba(0, 229, 255, 0.3); transition: all 0.15s ease; }
        .status-toast { font-size: 11.5px; font-weight: 700; text-align: center; min-height: 18px; margin-top: 10px; line-height: 1.3; }
        .status-toast.ok { color: #00e5ff; } .status-toast.err { color: #ff5c5c; } .status-toast.info { color: #a855f7; }
        .streak-calendar { display: flex; gap: 6px; margin-top: 12px; }
        .cal-dot { flex: 1; height: 38px; background: #080c16; border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 10px; }
        .cal-dot.active { background: rgba(249,115,22,0.15); border-color: rgba(249,115,22,0.35); color: #fb923c; }
        .cal-dot.today { border-color: #00e5ff; box-shadow: 0 0 8px rgba(0,229,255,0.2); }