 /* Core vars (fallback if chat.css missing) */
    :root { --white: #ffffff; --light-gray: #f3f4f6; --neutral-gray: #6b7280; --primary-purple: #7c3aed; --secondary-yellow: #f59e0b; --alert-red: #ef4444; --success-green: #10b981; }

    /* Connection status */
    .status-dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; margin-right: .25rem; }
    .status-online .status-dot { background-color: #00d4aa; animation: pulse-dot 2s infinite; }
    .status-offline .status-dot { background-color: #ff7675; }
    @keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:.5} }

    /* 2×2 image grid + +N badge */
    .image-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: .25rem; }
    .image-grid img { width: 100%; height: 100%; max-height: 150px; object-fit: cover; border-radius: .5rem; cursor: pointer; }
    .image-grid .grid-item { position: relative; }
    .image-grid .grid-item:nth-child(n+5) { display: none; }
    .image-grid .grid-item:nth-child(4) .badge {
        position: absolute; inset: 0; background: rgba(0,0,0,.6);
        color: white; font-weight: 600; font-size: 1.25rem;
        display: flex; align-items: center; justify-content: center;
        border-radius: .5rem;
    }

    /* Modal carousel */
    .image-modal {
        position: fixed; inset: 0; background: rgba(0,0,0,.95); z-index: 50;
        opacity: 0; pointer-events: none; transition: opacity .3s ease;
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        padding: 1rem;
    }
    .image-modal.active { opacity: 1; pointer-events: auto; }
    .image-modal img { 
        max-width: 95vw; max-height: 75vh; object-fit: contain; 
        transition: transform .3s ease; border-radius: .5rem;
    }
    .image-modal.zoomed img { transform: scale(2); }

    .carousel-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1rem; }
    .carousel-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--neutral-gray); transition: background .3s; }
    .carousel-dot.active { background: var(--primary-purple); }

    .carousel-nav { 
        position: absolute; top: 50%; transform: translateY(-50%);
        width: 44px; height: 44px; background: rgba(0,0,0,.6);
        color: white; border-radius: 50%; display: flex;
        align-items: center; justify-content: center; cursor: pointer;
        transition: background .3s;
    }
    .carousel-nav:hover { background: rgba(0,0,0,.8); }
    .carousel-nav.left { left: 1rem; }
    .carousel-nav.right { right: 1rem; }
    @media (max-width: 640px) { .carousel-nav { display: none; } }

    .modal-actions {
        position: absolute; top: 1rem; right: 1rem; display: flex; gap: .5rem;
    }
    .modal-actions button {
        width: 40px; height: 40px; background: rgba(0,0,0,.6); color: white;
        border-radius: 50%; display: flex; align-items: center; justify-content: center;
        transition: background .3s;
    }
    .modal-actions button:hover { background: rgba(0,0,0,.8); }

    .input-container { transition: padding-bottom .3s ease; }
    :root {
    --primary-purple: #6C5CE7;
    --secondary-yellow: #FDCB6E;
    --accent-light: #F3F0FF;
    --neutral-gray: #4B4B4B;
    --light-gray: #F5F5F5;
    --alert-red: #FF7675;
    --white: #FFFFFF;
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 1rem;
    --border-radius-ig: 1.125rem; /* IG-like bubble radius: 18px */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 0.75rem;
    --spacing-lg: 1rem;
    --touch-target: 2.75rem; /* 44px min for accessibility */
    
    /* Optional dark mode vars (toggle with media query below) */
    /* --primary-purple-dark: #5A4FCF; */
    /* --light-gray-dark: #2A2A2A; */
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--accent-light);
    color: var(--neutral-gray);
    margin: 0;
    overflow: hidden;
    touch-action: pan-y;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Dark mode hook (uncomment and add @media (prefers-color-scheme: dark) { :root { --var: dark-val; } } */
@media (prefers-color-scheme: dark) {
    /* body { background-color: var(--light-gray-dark); } */
    /* .chat-message.other { background-color: var(--light-gray-dark); } */
}

.ripple {
    position: relative;
    overflow: hidden;
}

.ripple:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.3s, opacity 0.5s;
}

.ripple:active:after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
}

.toast {
    position: fixed;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-ig);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-size: 0.875rem;
    line-height: 1.25rem;
    min-width: 200px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Flatter IG-like shadow */
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background-color: var(--secondary-yellow);
    color: var(--neutral-gray);
}

.toast.error {
    background-color: var(--alert-red);
    color: var(--white);
}

.chat-container {
    min-height: calc(100vh - 10rem);
    max-height: calc(100vh - 10rem);
    overflow-y: auto;
    padding: var(--spacing-xs); /* Tighter padding like IG */
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs); /* Tighter gaps for compact IG feel */
    -webkit-overflow-scrolling: touch; /* Smooth iOS scrolling */
}

.chat-message {
    max-width: 100%; /* Full width on phone/mobile base */
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-ig); /* Rounder IG bubbles */
    word-wrap: break-word;
    position: relative;
    animation: slideIn 0.2s ease;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); /* Minimal shadow for flat IG look */
    line-height: 1.3;
    will-change: transform; /* Perf boost for animations */
}

.chat-message.user {
    margin: 0 var(--spacing-xs) 0 0; /* Minimal right margin on phone, full width */
    background-color: var(--primary-purple);
    color: var(--white);
    border-radius: var(--border-radius-ig) var(--border-radius-sm) var(--border-radius-sm) var(--border-radius-ig); /* IG: round left, flat right-bottom */
    border: 1px solid var(--primary-purple);
    display: block; /* For now, until JS adds flex if needed */
    align-self: flex-end; /* Align to right on full width */
    width: auto;
}

.chat-message.other {
    margin: 0 0 0 var(--spacing-xs); /* Minimal left margin on phone, full width */
    background-color: var(--light-gray);
    color: var(--neutral-gray);
    border-radius: var(--border-radius-sm) var(--border-radius-ig) var(--border-radius-ig) var(--border-radius-sm); /* IG: round right, flat left-bottom */
    border: 1px solid var(--light-gray);
    display: flex; /* Flex for potential avatar + bubble like IG */
    align-items: flex-end;
    gap: var(--spacing-sm);
    align-self: flex-start; /* Align to left on full width */
    width: auto;
}

.chat-message.user::after,
.chat-message.other::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 0.5rem;
    height: 0.5rem;
    background: inherit;
    border: inherit;
}

.chat-message.user::after {
    right: -0.25rem;
    border-bottom-left-radius: 0.5rem;
    transform: rotate(45deg);
}

.chat-message.other::after {
    left: -0.25rem;
    border-bottom-right-radius: 0.5rem;
    transform: rotate(-45deg);
}

/* IG-like message avatar for other users (add via JS: <div class="message-avatar">U</div> before bubble) */
.message-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: var(--secondary-yellow);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    flex-shrink: 0;
    margin-bottom: auto; /* Aligns with bubble bottom like IG */
}

.chat-message.pending {
    opacity: 0.7;
    position: relative;
    overflow: hidden;
}

.chat-message.pending::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s infinite;
}

.nav-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: var(--secondary-yellow);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    flex-shrink: 0;
}

.date-separator {
    text-align: center;
    font-size: 0.75rem;
    color: var(--neutral-gray);
    margin: var(--spacing-xs) 0; /* Tighter like IG */
    background-color: var(--white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); /* Minimal */
}

.input-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-top: 1px solid var(--light-gray);
    z-index: 10;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.05); /* Subtle IG-like lift */
    border-radius: var(--border-radius-ig) var(--border-radius-ig) 0 0; /* Rounded top like IG bar */
}

.typing-indicator {
    display: none;
    font-size: 0.75rem;
    color: var(--neutral-gray);
    margin: var(--spacing-xs) var(--spacing-sm);
}

.typing-indicator.active {
    display: block;
    animation: pulse 1.5s infinite;
}

.chat-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: transform 0.2s ease;
    max-height: 12rem; /* Cap for mobile perf */
}

.chat-image:hover {
    transform: scale(1.05);
}

.error-message {
    color: var(--alert-red);
    font-size: 0.75rem;
    margin: var(--spacing-xs) var(--spacing-sm);
    display: none;
}

.image-preview {
    display: none;
    margin: var(--spacing-xs) var(--spacing-sm);
    padding: var(--spacing-sm);
    background-color: var(--light-gray);
    border-radius: var(--border-radius-sm);
}

.image-preview.active {
    display: block;
}

.preview-image {
    max-width: 3rem;
    border-radius: var(--spacing-xs);
    margin: var(--spacing-xs);
    object-fit: cover;
    flex: 0 0 auto;
}

.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.image-modal.active {
    display: flex;
}

.image-modal img {
    max-width: 95vw;
    max-height: 80vh;
    border-radius: var(--border-radius-ig); /* Rounder like IG image viewer */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    will-change: transform; /* Perf for zoom */
}

.image-modal .close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--white);
    color: var(--neutral-gray);
    border-radius: 50%;
    width: var(--touch-target);
    height: var(--touch-target);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s ease;
    min-width: var(--touch-target); /* Ensure touch-friendly */
}

.image-modal .close-button:hover,
.image-modal .close-button:focus-visible {
    background-color: var(--secondary-yellow);
    outline: none; /* A11y: visible focus without default outline */
}

.shimmer {
    position: relative;
    overflow: hidden;
    background-color: var(--light-gray);
    border-radius: var(--border-radius-ig);
    height: 3.75rem; /* Consistent placeholder */
}

.shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s infinite;
}

.reply-button {
    display: none;
    position: absolute;
    top: var(--spacing-xs);
    right: var(--spacing-xs);
    padding: var(--spacing-xs);
    border-radius: 50%;
    background-color: var(--light-gray);
    cursor: pointer;
    width: var(--touch-target);
    height: var(--touch-target);
    min-width: var(--touch-target);
    justify-content: center;
    align-items: center;
    border: none;
    transition: background-color 0.2s ease;
}

.chat-message:hover .reply-button,
.reply-button:focus-visible {
    display: flex;
}

.chat-message.user .reply-button {
    background-color: var(--primary-purple);
    color: var(--white);
}

.reply-preview {
    display: none; /* Fallback to none; JS toggles 'active' for flex */
    background-color: var(--light-gray);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    margin: var(--spacing-xs) var(--spacing-sm);
    border-left: 0.1875rem solid var(--primary-purple);
    font-size: 0.75rem;
    max-width: 100%;
    flex-direction: column; /* Stack for tight mobile */
}

.reply-preview.active {
    display: flex;
}

.reply-preview .close-reply {
    cursor: pointer;
    color: var(--primary-purple);
    font-weight: 600;
    margin-left: auto; /* Better alignment in flex */
    align-self: flex-end;
}

.reply-preview .truncate {
    flex: 1; /* Allow flex-grow in wrapper */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quoted-message {
    background-color: var(--light-gray);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-left: 0.1875rem solid var(--primary-purple);
    border-radius: var(--spacing-xs);
    margin-bottom: var(--spacing-xs);
    font-size: 0.75rem;
    font-style: italic;
    color: var(--neutral-gray);
    max-width: 100%;
    line-height: 1.2;
}

.quoted-message img {
    max-width: 3rem;
    border-radius: var(--spacing-xs);
    object-fit: cover; /* Crisp fit for previews */
}

.quoted-preview-img {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 2px;
}

/* JS-tied fallbacks */
.hidden {
    display: none !important;
}

.loading-more {
    text-align: center;
    padding: 10px;
    color: var(--neutral-gray);
    display: none;
    font-size: 0.75rem;
    opacity: 0.7;
}

.loading-more.loading::after {
    content: ' ⏳'; /* Simple spinner fallback */
    animation: pulse 1s infinite;
}

emoji-picker {
    --background: var(--light-gray);
    --border-color: var(--primary-purple);
    --button-active-background: var(--primary-purple);
    --button-hover-background: var(--secondary-yellow);
    --input-border-color: var(--primary-purple);
    --category-emoji-padding: 0.5rem;
    --emoji-size: 1.25rem;
    position: absolute;
    bottom: 4rem;
    left: var(--spacing-sm);
    z-index: 20;
    display: none;
    max-width: 18.75rem;
    border-radius: var(--border-radius-ig); /* Rounder like IG picker */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

emoji-picker.active {
    display: block;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes slideIn {
    from { transform: translateY(0.625rem); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mobile-first: Base is for <768px, enhance for larger */
@media (min-width: 768px) {
    .chat-container {
        min-height: calc(100vh - 9.375rem);
        max-height: calc(100vh - 9.375rem);
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .input-container {
        padding: 0.5rem 0.75rem;
    }

    emoji-picker {
        bottom: 4.375rem;
        left: 0.75rem;
        max-width: 20rem;
    }

    .chat-message {
        max-width: 70%; /* Scale back on tablet+ */
    }

    .chat-message.user {
        margin: 0 var(--spacing-sm) 0 0;
    }

    .chat-message.other {
        margin: 0 0 0 var(--spacing-sm);
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 43.75rem;
    }

    .chat-container {
        min-height: calc(100vh - 8.75rem);
        max-height: calc(100vh - 8.75rem);
        padding: 1rem;
        gap: 1rem;
    }

    .input-container {
        max-width: 43.75rem;
        left: 50%;
        transform: translateX(-50%);
    }

    .image-modal img {
        max-width: 80%;
        max-height: 85%;
    }

    emoji-picker {
        bottom: 5rem;
        left: calc(50% - 17.5rem);
        max-width: 21.875rem;
    }

    .chat-message {
        max-width: 65%; /* Further scale on desktop */
    }
}

/* Ultra-small screen fallback (e.g., <320px) */
@media (max-width: 359px) {
    .chat-message {
        max-width: 100%; /* Ensure full even on tiny phones */
        padding: 0.375rem 0.5rem;
    }

    .input-container {
        padding: 0.25rem 0.375rem;
    }

    .nav-avatar {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.75rem;
    }
}

.icon-fallback {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    text-align: center;
    line-height: 1.25rem;
    font-size: 0.75rem;
    color: var(--neutral-gray);
}
/* === HIGHLIGHTED REPLY PREVIEW === */
.reply-preview {
  display: none;
  background: linear-gradient(135deg, #f8f5ff 0%, #f0eaff 100%);
  padding: 0.5rem;
  border-radius: 0.5rem;
  margin: 0.25rem 0.5rem;
  border-left: 0.25rem solid var(--primary-purple);
  font-size: 0.75rem;
  max-width: 100%;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.12);
  animation: replyGlow 0.3s ease-out;
  position: relative;
  overflow: hidden;
}

.reply-preview::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 10% 10%, rgba(124, 58, 237, 0.1) 0%, transparent 60%);
  pointer-events: none;
  border-radius: 0.5rem;
}

.reply-preview.active {
  display: flex;
}

#reply-sender {
  font-weight: 700 !important;
  color: var(--primary-purple) !important;
  font-size: 0.7rem !important;
  text-transform: capitalize;
  margin-bottom: 0.125rem;
}

#reply-content-wrapper {
  color: #5c5470 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.75rem !important;
}

.close-reply {
  cursor: pointer;
  color: var(--primary-purple) !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  margin-left: auto !important;
  align-self: flex-end !important;
  width: 1.5rem;
  height: 1.5rem;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  transition: all 0.2s ease !important;
  background: none !important;
  border: none !important;
}

.close-reply:hover {
  background: rgba(124, 58, 237, 0.15) !important;
  transform: scale(1.05);
}

@keyframes replyGlow {
  0% { 
    opacity: 0; 
    transform: translateY(-4px) scale(0.95); 
  }
  100% { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
  }
}
/* === ENHANCED REPLY PREVIEW – SUPER VISIBLE === */
.reply-preview {
  position: relative;
  background: linear-gradient(135deg, #f8f5ff 0%, #f0eaff 100%);
  padding: 0.75rem;
  border-radius: 0.75rem;
  margin: 0.5rem 0.75rem;
  border-left: 4px solid var(--primary-purple);
  font-size: 0.8rem;
  max-width: 100%;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.18);
  animation: replySlideGlow 0.4s ease-out forwards;
  overflow: hidden;
  border: 1px solid rgba(124, 58, 237, 0.15);
  z-index: 15;
}

.reply-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 0.75rem;
  animation: pulseGlow 2s infinite;
}

.reply-preview::after {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(45deg, var(--primary-purple), var(--secondary-yellow), var(--primary-purple));
  border-radius: 0.75rem;
  z-index: -1;
  opacity: 0;
  animation: borderPulse 2s infinite;
}

.reply-preview.active::after {
  animation: borderPulse 1.5s infinite;
}

#reply-sender {
  font-weight: 800 !important;
  color: var(--primary-purple) !important;
  font-size: 0.8rem !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
  text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

#reply-content-wrapper {
  color: #5c5470 !important;
  font-size: 0.85rem !important;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
}

#reply-content {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

#reply-preview-img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 2px solid var(--white);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.close-reply {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 1.75rem !important;
  height: 1.75rem !important;
  background: rgba(124, 58, 237, 0.15) !important;
  color: var(--primary-purple) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 900 !important;
  font-size: 1rem !important;
  transition: all 0.2s ease !important;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.close-reply:hover {
  background: var(--primary-purple) !important;
  color: white !important;
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

/* Animations */
@keyframes replySlideGlow {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    box-shadow: 0 0 0 rgba(124, 58, 237, 0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.18);
  }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.3; }
}

@keyframes borderPulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.02); }
}