@property --border-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

.glass-effect {
    background: rgba(12, 12, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(251, 251, 251, 0.08);
}

#launchersGrid {
    grid-auto-rows: 1fr;
}

.premium-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    background: #0c0c14;
    backdrop-filter: blur(12px);
    border-radius: 1.5rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.premium-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 2rem;
    padding: 2px;
    background: conic-gradient(from var(--border-angle), transparent 70%, white 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    animation: rotate-border 3s linear infinite paused;
}

.premium-card:hover::before {
    opacity: 1;
    animation-play-state: running;
}

@keyframes rotate-border {
    from { --border-angle: 0deg; }
    to { --border-angle: 360deg; }
}

.card-title {
    font-size: 1.25rem;
    font-weight: 900;
    font-family: 'Raleway', sans-serif;
    font-variant-numeric: lining-nums;
    color: white;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.premium-card:hover .card-title {
    color: #38bdf8;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-credits {
    color: #64748b;
    font-size: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.card-icon {
    width: 1rem;
    height: 1rem;
    color: #38bdf8;
    transition: transform 0.33s ease;
}

.premium-card:hover .card-icon {
    transform: translateX(4px);
}

.launcher-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.launcher-card .download-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #FBFBFB 0%, #f0f0f0 100%);
    color: #0f172a;
    font-family: 'Raleway', sans-serif;
    font-weight: 900;
    font-variant-numeric: lining-nums;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(251, 251, 251, 0.2), 0 0 20px rgba(251, 251, 251, 0.1);
    border: 2px solid rgba(251, 251, 251, 0.3);
}

.launcher-card .download-btn:hover {
    box-shadow: 0 8px 30px rgba(251, 251, 251, 0.4), 0 0 40px rgba(251, 251, 251, 0.2);
    background: linear-gradient(135deg, #FBFBFB 0%, #FBFBFB 100%);
}

.launcher-card .discord-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: #5865F2;
    color: #FBFBFB;
    font-family: 'Raleway', sans-serif;
    font-weight: 900;
    font-variant-numeric: lining-nums;
    text-decoration: none;
    border-radius: 1rem;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
    border: 2px solid rgba(88, 101, 242, 0.5);
}

.launcher-card .discord-btn:hover {
    background: #4752C4;
    box-shadow: 0 8px 30px rgba(88, 101, 242, 0.5);
}

.launcher-card .discord-btn-disabled {
    background: #4a4a4a;
    color: #888;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.6;
}

.modal-discord-btn {
    background: #5865F2 !important;
    color: white !important;
}

.modal-discord-btn:hover {
    background: #4752C4 !important;
}

.discord-btn-disabled {
    background: #4a4a4a !important;
    color: #888 !important;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.6;
}

.launcher-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 2rem;
    padding: 2px;
    background: conic-gradient(from var(--border-angle), transparent 70%, #FBFBFB 100%);
    -webkit-mask: linear-gradient(#FBFBFB 0 0) content-box, linear-gradient(#FBFBFB 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#FBFBFB 0 0) content-box, linear-gradient(#FBFBFB 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    animation: rotate-border 3s linear infinite paused;
}

.launcher-card:hover::before {
    opacity: 1;
    animation-play-state: running;
}

.suggestion-form {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 360px;
    background: rgba(12, 12, 20, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(251, 251, 251, 0.1);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 50;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.suggestion-form.is-hidden {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
}

.suggestion-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background: #ffd700;
    color: #000;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 49;
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.suggestion-toggle:hover {
    background: #ffed4e;
}

.suggestion-toggle:hover svg {
    animation: phoneRinging 0.8s ease-in-out 1;
}

@keyframes phoneRinging {
    0% { 
        transform: translateY(0) rotate(0deg); 
        filter: drop-shadow(0 -2px 0 transparent) drop-shadow(0 -4px 0 transparent) drop-shadow(0 -6px 0 transparent);
    }
    5% { 
        transform: translateY(-4px) rotate(0deg); 
        filter: drop-shadow(0 -2px 1px rgba(255, 215, 0, 0.4)) drop-shadow(0 -4px 1px rgba(255, 215, 0, 0.3)) drop-shadow(0 -6px 1px rgba(255, 215, 0, 0.2));
    }
    15% { 
        transform: translateY(-4px) rotate(-15deg); 
        filter: drop-shadow(0 -2px 2px rgba(255, 215, 0, 0.7)) drop-shadow(0 -4px 2px rgba(255, 215, 0, 0.5)) drop-shadow(0 -6px 2px rgba(255, 215, 0, 0.3));
    }
    25% { 
        transform: translateY(-4px) rotate(15deg); 
        filter: drop-shadow(0 -2px 2px rgba(255, 215, 0, 0.7)) drop-shadow(0 -4px 2px rgba(255, 215, 0, 0.5)) drop-shadow(0 -6px 2px rgba(255, 215, 0, 0.3));
    }
    35% { 
        transform: translateY(-4px) rotate(-15deg); 
        filter: drop-shadow(0 -2px 2px rgba(255, 215, 0, 0.6)) drop-shadow(0 -4px 2px rgba(255, 215, 0, 0.4)) drop-shadow(0 -6px 2px rgba(255, 215, 0, 0.2));
    }
    45% { 
        transform: translateY(-4px) rotate(15deg); 
        filter: drop-shadow(0 -2px 2px rgba(255, 215, 0, 0.6)) drop-shadow(0 -4px 2px rgba(255, 215, 0, 0.4)) drop-shadow(0 -6px 2px rgba(255, 215, 0, 0.2));
    }
    55% { 
        transform: translateY(-4px) rotate(-12deg); 
        filter: drop-shadow(0 -2px 1px rgba(255, 215, 0, 0.5)) drop-shadow(0 -4px 1px rgba(255, 215, 0, 0.3)) drop-shadow(0 -6px 1px rgba(255, 215, 0, 0.2));
    }
    65% { 
        transform: translateY(-4px) rotate(12deg); 
        filter: drop-shadow(0 -2px 1px rgba(255, 215, 0, 0.5)) drop-shadow(0 -4px 1px rgba(255, 215, 0, 0.3)) drop-shadow(0 -6px 1px rgba(255, 215, 0, 0.2));
    }
    75% { 
        transform: translateY(-4px) rotate(-8deg); 
        filter: drop-shadow(0 -2px 1px rgba(255, 215, 0, 0.4)) drop-shadow(0 -4px 1px rgba(255, 215, 0, 0.2)) drop-shadow(0 -6px 1px rgba(255, 215, 0, 0.1));
    }
    85% { 
        transform: translateY(-4px) rotate(8deg); 
        filter: drop-shadow(0 -2px 1px rgba(255, 215, 0, 0.3)) drop-shadow(0 -4px 1px rgba(255, 215, 0, 0.2)) drop-shadow(0 -6px 1px rgba(255, 215, 0, 0.1));
    }
    95% { 
        transform: translateY(-2px) rotate(0deg); 
        filter: drop-shadow(0 -2px 1px rgba(255, 215, 0, 0.2)) drop-shadow(0 -4px 1px rgba(255, 215, 0, 0.1)) drop-shadow(0 -6px 0 transparent);
    }
    100% { 
        transform: translateY(0) rotate(0deg); 
        filter: drop-shadow(0 -2px 0 transparent) drop-shadow(0 -4px 0 transparent) drop-shadow(0 -6px 0 transparent);
    }
}

.suggestion-toggle.is-hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.suggestion-form__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.suggestion-form__close:hover {
    color: #FBFBFB;
}

.suggestion-form__header h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.1rem;
    font-weight: 900;
    font-variant-numeric: lining-nums;
    color: #FBFBFB;
    margin: 0 0 0.25rem 0;
}

.suggestion-form__header p {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: #94a3b8;
    margin: 0 0 1.25rem 0;
}

.suggestion-form__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.suggestion-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.suggestion-form .form-group label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.suggestion-form .input-wrapper {
    position: relative;
    border-radius: 0.75rem;
}

.suggestion-form .form-group input {
    background: rgba(251, 251, 251, 0.05);
    border: 1px solid rgba(251, 251, 251, 0.1);
    border-radius: 0.75rem;
    padding: 0.75rem;
    color: #FBFBFB;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.3s ease;
    width: 100%;
}

.suggestion-form .form-group input:focus {
    outline: none;
    border-color: rgba(251, 251, 251, 0.3);
}

.suggestion-form .form-group input::placeholder {
    color: #64748b;
}

.suggestion-form__submit {
    background: #ffd700;
    color: #000000;
    border: none;
    border-radius: 0.75rem;
    padding: 0.875rem 1.25rem;
    font-family: 'Raleway', sans-serif;
    font-weight: 900;
    font-variant-numeric: lining-nums;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.suggestion-form__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
    background: #ffed4e;
}

.suggestion-form__submit:active {
    transform: translateY(0);
}

.suggestion-form__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    padding: 0.75rem;
    border-radius: 0.5rem;
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

@media (max-width: 768px) {
    .suggestion-form {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        width: auto;
    }
}

.launcher-image-container {
    height: 12rem;
    background: linear-gradient(to bottom right, rgba(14, 165, 233, 0.1), rgba(59, 130, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
}

.launcher-card:hover .launcher-image-container img {
    transform: scale(1.08);
}

.launcher-modal-content {
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

#launcherModal.flex {
    display: flex;
}
