/* ---------- Toast notifications ---------- */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 1001;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    width: 100%;
    max-width: 420px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(30, 30, 35, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border, #3a3a3a);
    border-radius: 12px;
    color: #e5e5e5;
    padding: 16px 18px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(-20px) scale(0.95);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    touch-action: none;
}

.toast a, .toast a:hover, .toast a:visited {
    color: var(--accent);
    font-weight: 600;
}

.toast--visible {
    transform: translateY(0) scale(1);
    opacity: 1;
}

@media (max-width: 640px) {
    .toast-container {
        top: auto;
        bottom: calc(36px + env(safe-area-inset-bottom, 0px));
        right: 16px;
        left: 16px;
        align-items: stretch;
    }

    .toast {
        transform: translateY(20px) scale(0.95);
        max-width: none;
    }
}

.toast__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    font-weight: 800;
    border-radius: 50%;
    font-size: 1.1rem;
}

.toast--success .toast__icon {
    background-color: rgba(22, 163, 74, 0.15);
    color: #3AD15FFF;
}
.toast--error .toast__icon {
    background-color: rgba(239, 68, 68, 0.15);
    color: #EF4444FF;
}
.toast--warning .toast__icon {
    background-color: rgba(234, 179, 8, 0.15);
    color: #F59E0BFF;
}
.toast--info .toast__icon {
    background-color: rgba(59, 130, 246, 0.15);
    color: #2d81ea;
}

.toast__body {
    flex: 1;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: -2px;
}

.toast__title {
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text, #fff);
}

.toast__message {
    color: var(--text-muted, #9ca3af);
    font-size: 0.85rem;
    line-height: 1.5;
}

.toast__close {
    background: none;
    border: none;
    color: var(--text-faint, #6b7280);
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition, 0.2s);
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin-top: 2px;
}

.toast__close:hover {
    color: var(--text, #fff);
    background-color: var(--border, #3a3a3a);
}
.language-picker{position:relative;display:inline-flex;color:inherit;z-index:50}.language-picker__native,.language-picker__legacy-flag{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important}
.language-picker__trigger{display:flex;align-items:center;gap:8px;min-height:38px;padding:7px 10px;border:1px solid rgba(255,255,255,.18);border-radius:10px;color:#f5f5f6;background:#202022;font:700 .78rem Arial,sans-serif;letter-spacing:.06em;cursor:pointer;transition:.18s}.language-picker__trigger:hover,.language-picker.is-open .language-picker__trigger{border-color:rgba(229,70,70,.62);background:#29292c}.language-picker__trigger:focus-visible{outline:3px solid rgba(229,70,70,.22);outline-offset:2px}
.language-picker__trigger-flag{width:21px;height:15px;border-radius:3px;box-shadow:0 0 0 1px rgba(255,255,255,.2)}.language-picker__trigger i{font-size:.8rem;color:#929298;transition:transform .18s}.language-picker.is-open .language-picker__trigger i{transform:rotate(180deg)}
.language-picker__menu{position:fixed;top:calc(100% + 9px);right:0;width:220px;padding:7px;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:#171719;box-shadow:0 18px 45px rgba(0,0,0,.48);opacity:0;visibility:hidden;transform:translateY(-7px) scale(.98);transform-origin:top right;transition:opacity .16s ease,transform .16s ease,visibility .16s;overflow:hidden;z-index:500}.language-picker__menu.is-open{opacity:1;visibility:visible;transform:none}
.language-picker--action .language-picker__menu{display:flex;flex-direction:column;gap:7px;padding:8px}
.language-picker--action .language-picker__option{border:1px solid rgba(229,70,70,.34);background:rgba(229,70,70,.1)}
.language-picker--action .language-picker__option:hover,.language-picker--action .language-picker__option:focus-visible{border-color:rgba(229,70,70,.64);background:rgba(229,70,70,.2)}
.language-picker--action .language-picker__option.is-active{border-color:rgba(229,70,70,.76);background:rgba(229,70,70,.26)}
.language-picker__option{width:100%;display:flex;align-items:center;gap:12px;padding:11px 10px;border:0;border-radius:10px;color:#d5d5d8;background:transparent;text-align:left;cursor:pointer;transition:.15s}.language-picker__option:hover,.language-picker__option:focus-visible{outline:0;color:#fff;background:rgba(255,255,255,.07)}.language-picker__option.is-active{color:#fff;background:rgba(229,70,70,.14)}
.language-picker__option-flag{width:29px;height:21px;flex:none;border-radius:4px;box-shadow:0 0 0 1px rgba(255,255,255,.2),0 4px 10px rgba(0,0,0,.3)}.language-picker__option-copy{display:flex;flex:1;flex-direction:column;gap:2px}.language-picker__option-copy strong{font-size:.86rem}.language-picker__option-copy small{color:#85858b;font-size:.67rem;letter-spacing:.12em}.language-picker__check{font-size:.85rem;color:#e54646;opacity:0;transform:scale(.7);transition:.15s}.language-picker__option.is-active .language-picker__check{opacity:1;transform:none}
.language-picker--action .language-picker__trigger{min-height:42px;padding:7px 12px;border-radius:10px;background:rgba(229,70,70,.16);border-color:rgba(229,70,70,.48);box-shadow:0 6px 18px rgba(0,0,0,.2)}
.language-picker--action .language-picker__trigger:hover,.language-picker--action.is-open .language-picker__trigger{background:rgba(229,70,70,.26);border-color:rgba(229,70,70,.72)}
.language-picker--action .language-picker__trigger-flag{width:23px;height:17px}
.language-picker--login{position:absolute;right:18px;top:18px}
@media(max-width:600px){.language-picker__trigger-code{display:none}.language-picker--login{right:12px;top:12px}}
/* ==========================================
   Antigravity Visual Enhancements (Ecosystem)
   ========================================== */
::selection {
    background: rgba(220, 38, 38, 0.3);
    color: #fff;
}

/* Glassmorphism for floating/sticky elements */
.modal, .dropdown, .toast, .topbar {
    background: rgba(18, 18, 20, 0.75) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Micro-interactions */
a, button, .btn, .card, .link-card, .login-btn {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

/* Lift on hover for common clickable items */
a.link-card:hover, a.action-card:hover, .btn:hover, button.primary:hover, .login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.15) !important;
}

/* Refined Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(220, 38, 38, 0.5);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(220, 38, 38, 0.8);
}


