/* ============================================
   CROWDTALE: ANNAVERSE - UI POLISH & ENHANCEMENTS
   Visual improvements without affecting functionality
   ============================================ */

/* ============================================
   1. LOADING STATES & SKELETONS
   ============================================ */

/* Skeleton Loader Animation */
@keyframes skeletonPulse {
    0%, 100% {
        opacity: 1;
        background: rgba(255, 255, 255, 0.05);
    }
    50% {
        opacity: 0.5;
        background: rgba(255, 255, 255, 0.1);
    }
}

.skeleton {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    animation: skeletonPulse 1.5s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(0, 212, 255, 0.1),
        transparent);
    animation: skeletonShimmer 2s infinite;
}

@keyframes skeletonShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Message Skeleton */
.message-skeleton {
    height: 60px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.message-skeleton-short {
    height: 40px;
}

.message-skeleton-long {
    height: 80px;
}

/* Store Item Skeleton */
.store-item-skeleton {
    height: 200px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.bundle-card-skeleton {
    height: 150px;
    border-radius: 8px;
    margin-bottom: 25px;
}

/* ============================================
   2. EMPTY STATES
   ============================================ */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    min-height: 200px;
}

.empty-state-icon {
    font-size: 4rem;
    color: rgba(0, 212, 255, 0.3);
    margin-bottom: 20px;
    animation: emptyStateFloat 3s ease-in-out infinite;
}

@keyframes emptyStateFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.empty-state-message {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.4);
    max-width: 400px;
    line-height: 1.6;
}

/* Empty Chat */
.empty-chat .empty-state-icon::before {
    content: '\f075'; /* fa-comment */
    font-family: "Font Awesome 6 Free";
    font-weight: 400;
}

/* Empty Store */
.empty-store .empty-state-icon::before {
    content: '\f07a'; /* fa-shopping-bag */
    font-family: "Font Awesome 6 Free";
    font-weight: 400;
}

/* Empty Rewards */
.empty-rewards .empty-state-icon::before {
    content: '\f091'; /* fa-trophy */
    font-family: "Font Awesome 6 Free";
    font-weight: 400;
}

/* Empty Achievements */
.empty-achievements .empty-state-icon::before {
    content: '\f521'; /* fa-award */
    font-family: "Font Awesome 6 Free";
    font-weight: 400;
}

/* ============================================
   3. ENHANCED BUTTON ANIMATIONS
   ============================================ */

/* Button Press Effect */
.btn-header:active,
.volume-btn-inline:active,
.panel-icon:active,
.volume-btn:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* Button Ripple Effect */
@keyframes buttonRipple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}

/* ============================================
   4. SMOOTH SCROLL ANIMATIONS
   ============================================ */

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

/* Slide In Animation */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.4s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.4s ease-out;
}

/* View Transition */
.view-transition {
    animation: fadeIn 0.3s ease-out;
}

/* ============================================
   5. ENHANCED CARD HOVER EFFECTS
   ============================================ */

/* Card Elevation */
.bundle-card,
.achievement-card,
.store-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.bundle-card:hover,
.achievement-card:hover,
.store-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 212, 255, 0.3);
    z-index: 10;
}

/* Card Glow Effect */
.card-glow {
    position: relative;
}

.card-glow::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: inherit;
    background: linear-gradient(45deg,
        rgba(0, 212, 255, 0.4),
        rgba(0, 212, 255, 0.1),
        rgba(0, 212, 255, 0.4));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.card-glow:hover::before {
    opacity: 1;
}

/* ============================================
   6. TYPING INDICATOR
   ============================================ */

.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 12px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.6);
    animation: typingBounce 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* ============================================
   7. ENHANCED SCROLL BAR
   ============================================ */

/* Smooth Scrolling */
.chat-messages,
.user-account-view,
.settings-view,
.store-bundles-view-left {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to top,
        rgba(1, 30, 41, 0.95),
        transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scroll-indicator.visible {
    opacity: 1;
}

/* ============================================
   8. ENHANCED NOTIFICATION STYLES
   ============================================ */

.notification-enter {
    animation: notificationSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-exit {
    animation: notificationSlideOut 0.3s ease-in;
}

@keyframes notificationSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes notificationSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ============================================
   9. IMPROVED VISUAL HIERARCHY
   ============================================ */

/* Better Text Contrast */
.text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
}

.text-primary {
    color: #00d4ff !important;
}

.text-accent {
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Section Headers */
.section-header {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   10. FOCUS STATES FOR ACCESSIBILITY
   ============================================ */

.panel-icon:focus,
.volume-btn-inline:focus,
.btn-header:focus {
    outline: 2px solid rgba(0, 212, 255, 0.8);
    outline-offset: 2px;
    border-radius: 4px;
}

.chat-input:focus {
    outline: none;
}

/* ============================================
   11. LOADING SPINNER
   ============================================ */

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 212, 255, 0.2);
    border-top-color: #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner-small {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.spinner-large {
    width: 60px;
    height: 60px;
    border-width: 4px;
}

/* ============================================
   12. PROGRESS BARS
   ============================================ */

/* Custom progress bar styling - only for non-Bootstrap progress bars */
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg,
        #00d4ff,
        #00a8cc);
    border-radius: 3px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg,
        #00d4ff,
        #00a8cc);
    border-radius: 3px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ============================================
   13. TOOLTIP ENHANCEMENTS
   ============================================ */

[title] {
    position: relative;
    cursor: help;
}

/* ============================================
   14. PULSE ANIMATIONS
   ============================================ */

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

.pulse-slow {
    animation: pulse 3s ease-in-out infinite;
}

/* ============================================
   15. GRADIENT ANIMATIONS
   ============================================ */

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-animated {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

/* ============================================
   16. RESPONSIVE IMPROVEMENTS
   ============================================ */

/* Tablet and below (768px) */
@media (max-width: 768px) {
    /* Stack panels vertically on mobile */
    .main-content-wrapper {
        flex-direction: column !important;
        height: 100%;
    }
    
    /* Swap panel order on mobile: game panel (right-panel) on top, chat panel (left-panel) on bottom */
    .left-panel {
        order: 2 !important; /* Chat panel goes to bottom */
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: 35% !important; /* Reduced height for left panel */
        min-height: 35% !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        border-right: none !important;
        border-top: 2px solid rgba(0, 212, 255, 0.6) !important; /* Border on top instead of bottom */
        border-bottom: none !important;
    }
    
    .right-panel {
        order: 1 !important; /* Game panel goes to top */
        width: 100% !important;
        height: 65% !important; /* Increased height for right panel */
        min-height: 65% !important;
    }
    
    /* Ensure all views inside left panel show full content with scrolling */
    .chat-view,
    .user-account-view,
    .settings-view,
    .storefront-items-view,
    .store-bundles-view-left {
        overflow-y: visible !important; /* Let parent scroll */
        overflow-x: hidden !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        flex: 0 0 auto !important; /* Don't flex, use auto height */
    }
    
    /* Ensure storefront items list shows all content */
    .storefront-items-list {
        overflow-y: visible !important;
        overflow-x: hidden !important;
        max-height: none !important;
        height: auto !important;
        flex: 0 0 auto !important;
    }
    
    /* Ensure user account sections show all content */
    .player-info-section,
    .achievements-section {
        flex: 0 0 auto !important;
        min-height: auto !important;
    }
    
    .achievements-list {
        overflow-y: visible !important;
        overflow-x: hidden !important;
        max-height: none !important;
        height: auto !important;
        flex: 0 0 auto !important;
    }
    
    /* Chat messages section - allow full height, no max-height restriction */
    .chat-messages-section {
        overflow-y: visible !important;
        overflow-x: hidden !important;
        flex: 1 1 auto !important;
        min-height: auto !important;
        max-height: none !important;
    }
    
    .chat-messages {
        overflow-y: visible !important;
        overflow-x: hidden !important;
        max-height: none !important;
        height: auto !important;
    }
    
    /* Ensure panel sections don't restrict height */
    .panel-section {
        flex-shrink: 0;
    }
    
    .signal-stability-section,
    .chat-input-section,
    .panel-icons-section {
        flex-shrink: 0;
    }
    
    .empty-state {
        padding: 40px 15px;
    }
    
    .empty-state-icon {
        font-size: 3rem;
    }
    
    .empty-state-title {
        font-size: 1.2rem;
    }
    
    .message-skeleton {
        height: 50px;
    }
    
    /* Touch-friendly button sizes */
    .panel-icon {
        min-width: 44px;
        min-height: 44px;
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }
    
    .volume-btn-inline {
        min-width: 48px;
        min-height: 48px;
        width: 48px;
        height: 48px;
    }
    
    .volume-icon-inline {
        font-size: 1.6rem;
    }
    
    /* Better spacing for mobile */
    .panel-icons-left,
    .panel-icons-right {
        gap: 12px;
    }
    
    /* Chat input improvements */
    .chat-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Settings dropdown improvements */
    .settings-dropdown {
        padding: 14px 45px 14px 18px;
        font-size: 1rem;
        min-height: 48px;
    }
    
    /* Better spacing for cards */
    .bundle-card {
        padding: 15px;
    }
    
    .achievement-card {
        padding: 15px;
    }
    
    /* Mobile-specific adjustments for gem and account views */
    .storefront-items-view {
        padding: 12px !important;
    }
    
    .storefront-item {
        padding: 12px !important;
        margin-bottom: 12px !important;
    }
    
    .user-account-view {
        padding: 10px !important;
    }
    
    .player-avatar-placeholder {
        width: 90px !important;
        height: 90px !important;
    }
    
    .player-info-label {
        font-size: 1.1rem !important;
    }
}

/* Mobile phones (480px and below) */
@media (max-width: 480px) {
    /* Keep stacked layout */
    .main-content-wrapper {
        flex-direction: column !important;
    }
    
    /* Swap panel order on mobile: game panel (right-panel) on top, chat panel (left-panel) on bottom */
    .left-panel {
        order: 2 !important; /* Chat panel goes to bottom */
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: 35% !important; /* Reduced height for left panel */
        min-height: 35% !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        border-top: 2px solid rgba(0, 212, 255, 0.6) !important; /* Border on top instead of bottom */
        border-bottom: none !important;
    }
    
    .right-panel {
        order: 1 !important; /* Game panel goes to top */
        width: 100% !important;
        height: 65% !important; /* Increased height for right panel */
        min-height: 65% !important;
    }
    
    /* Icon sizes for small screens */
    .panel-icon {
        min-width: 40px;
        min-height: 40px;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .panel-icons-section {
        padding: 8px;
    }
    
    .panel-icons-left,
    .panel-icons-right {
        gap: 8px;
        flex-wrap: wrap;
    }
    
    /* Title section */
    .title-section {
        padding: 15px 20px;
    }
    
    .header-title {
        font-size: 1.5rem;
    }
    
    /* Panel sections */
    .panel-section {
        padding: 10px;
    }
    
    /* Chat messages */
    .chat-messages {
        padding: 10px 6px;
        gap: 10px;
    }
    
    .message {
        padding: 10px 12px;
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    /* Volume controls */
    .volume-controls-inline {
        gap: 8px;
    }
    
    .volume-btn-inline {
        min-width: 44px;
        min-height: 44px;
        width: 44px;
        height: 44px;
    }
    
    /* Settings */
    .settings-label {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }
    
    .audio-control-item {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    /* Empty states */
    .empty-state {
        padding: 30px 12px;
        min-height: 150px;
    }
    
    .empty-state-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .empty-state-title {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .empty-state-message {
        font-size: 0.85rem;
    }
    
    /* Cards and items */
    .bundle-card {
        padding: 12px;
        gap: 12px;
    }
    
    .bundle-image-placeholder {
        width: 100px;
        height: 100px;
        min-width: 100px;
        margin: 15px 0 15px 15px;
    }
    
    .bundle-title {
        font-size: 1rem;
    }
    
    .bundle-description {
        font-size: 0.85rem;
    }
    
    .achievement-card {
        padding: 12px;
        gap: 8px;
    }
    
    /* Buttons */
    .btn-header {
        padding: 8px 14px;
        font-size: 0.85rem;
        min-height: 44px;
    }
    
    /* Scrollbars - thinner on mobile */
    .chat-messages::-webkit-scrollbar,
    .settings-view::-webkit-scrollbar,
    .user-account-view::-webkit-scrollbar {
        width: 4px;
    }
    
    /* Input improvements */
    .chat-input-wrapper {
        padding: 10px 12px;
    }
    
    .chat-input {
        font-size: 16px;
        padding: 0;
    }
    
    .input-icon {
        font-size: 1rem;
    }
}

/* Very small phones (360px and below) */
@media (max-width: 360px) {
    body {
        padding: 5px;
    }
    
    .main-ui-frame {
        gap: 5px;
    }
    
    .title-section {
        padding: 12px 15px;
    }
    
    .header-title {
        font-size: 1.3rem;
    }
    
    .panel-icons-section {
        padding: 6px;
    }
    
    .panel-icon {
        min-width: 36px;
        min-height: 36px;
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .panel-icons-left,
    .panel-icons-right {
        gap: 6px;
    }
    
    .left-panel {
        padding: 10px 5px 10px 10px;
    }
    
    .panel-section {
        padding: 8px;
    }
    
    .message {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .bundle-card {
        padding: 10px;
        gap: 10px;
    }
    
    .bundle-image-placeholder {
        width: 80px;
        height: 80px;
        min-width: 80px;
        margin: 10px 0 10px 10px;
    }
    
    .volume-btn-inline {
        min-width: 40px;
        min-height: 40px;
        width: 40px;
        height: 40px;
    }
    
    .settings-dropdown {
        padding: 12px 40px 12px 15px;
        font-size: 0.9rem;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    /* Swap panel order on mobile: game panel (right-panel) on top, chat panel (left-panel) on bottom */
    .left-panel {
        order: 2; /* Chat panel goes to bottom */
        height: 35%; /* Reduced height for left panel */
        border-top: 2px solid rgba(0, 212, 255, 0.6); /* Border on top instead of bottom */
        border-bottom: none;
    }
    
    .right-panel {
        order: 1; /* Game panel goes to top */
        height: 65%; /* Increased height for right panel */
    }
    
    .panel-icon {
        min-width: 40px;
        min-height: 40px;
    }
    
    .title-section {
        padding: 10px 20px;
    }
    
    .header-title {
        font-size: 1.3rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .panel-icon,
    .volume-btn-inline,
    .btn-header,
    .bundle-card,
    .achievement-card {
        min-height: 44px;
    }
    
    /* Remove hover effects that don't work on touch */
    .panel-icon:hover,
    .volume-btn-inline:hover,
    .bundle-card:hover,
    .achievement-card:hover {
        transform: none;
    }
    
    /* Active states instead */
    .panel-icon:active,
    .volume-btn-inline:active {
        transform: scale(0.95);
    }
    
    .bundle-card:active,
    .achievement-card:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
    
    /* Prevent text selection on buttons */
    .panel-icon,
    .volume-btn-inline,
    .btn-header {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: rgba(0, 212, 255, 0.3);
    }
}

/* ============================================
   17. SMOOTH TRANSITIONS FOR ALL INTERACTIVE ELEMENTS
   ============================================ */

a, button, .panel-icon, .volume-btn-inline, .bundle-card,
.achievement-card, .store-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   18. GLASSMORPHISM EFFECTS
   ============================================ */

.glass-effect {
    background: rgba(1, 30, 41, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   19. SHADOW DEPTHS
   ============================================ */

.shadow-sm {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.shadow-md {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.shadow-lg {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.shadow-xl {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

/* ============================================
   20. BORDER GLOW EFFECTS
   ============================================ */

.border-glow {
    position: relative;
}

.border-glow::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: inherit;
    background: linear-gradient(45deg,
        rgba(0, 212, 255, 0.6),
        rgba(0, 212, 255, 0.2),
        rgba(0, 212, 255, 0.6));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(4px);
}

.border-glow:hover::before {
    opacity: 1;
}
