/* ==========================================================================
   COMPONENTS.CSS — Buttons, Modals, PIN Keypad, Avatars, Cards & Badges
   ========================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #ffffff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger), var(--danger-hover));
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background: var(--bg-card-hover);
  color: #ffffff;
  transform: scale(1.05);
}

.btn-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

/* User Avatar & Status Badge */
.avatar-wrapper {
  position: relative;
  display: inline-block;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  object-fit: cover;
  background: var(--bg-card-hover);
  border: 2px solid var(--border-subtle);
}

.avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: 2px solid var(--border-subtle);
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  position: absolute;
  bottom: 0;
  right: 0;
  border: 2px solid var(--bg-dark);
}

.status-indicator.online {
  background-color: var(--status-online);
  box-shadow: 0 0 8px var(--status-online);
}

.status-indicator.offline {
  background-color: var(--status-offline);
}

/* Modal System */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #090b10;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 1.5rem;
  animation: fadeIn var(--transition-fast) forwards;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  text-align: center;
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
  transform: scale(1.08);
}

.modal-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.modal-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Shared PIN Keypad Component */
.pin-display {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0 2rem 0;
}

.pin-dot {
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-subtle);
  background: transparent;
  transition: all var(--transition-fast);
}

.pin-dot.filled {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary);
}

.pin-dot.error {
  background: var(--danger);
  border-color: var(--danger);
  box-shadow: 0 0 12px var(--danger);
}

.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  max-width: 280px;
  margin: 0 auto;
}

.keypad-btn {
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.keypad-btn:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.04);
}

.keypad-btn:active {
  transform: scale(0.96);
}

.keypad-btn.action-btn {
  font-size: 1rem;
  color: var(--text-muted);
}

.keypad-btn.action-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* User Card Items in Contact Sidebar */
.user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.user-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-subtle);
}

.user-card.active {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.3);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
  min-width: 0;
}

.user-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.user-name {
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.95rem;
}

.user-status-text {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.user-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideInRight var(--transition-fast) forwards;
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.15);
}

.toast.success {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.15);
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ==========================================================================
   REFERENCE UI DESIGN SYSTEM COMPONENTS (Matching ./Ui/ Mockups)
   ========================================================================== */

/* 1. LEFT NAVIGATION RAIL (Desktop) */
.app-nav-rail {
  width: 76px;
  height: 100%;
  background: #080a0f;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  z-index: 20;
  flex-shrink: 0;
}

.rail-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, transparent 70%);
}

.rail-items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  width: 100%;
}

.rail-btn {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}

.rail-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.rail-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.rail-btn.active {
  color: #ffffff;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.3);
}

.rail-badge {
  position: absolute;
  top: 4px;
  right: 6px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 999px;
  box-shadow: 0 0 8px var(--primary);
}

.rail-label {
  display: none;
}

.rail-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 2. SEARCH BAR & MIDDLE SIDEBAR */
.search-bar-wrapper {
  margin: 0.85rem 1rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.search-bar-wrapper svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-muted);
  stroke-width: 2;
  fill: none;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.9rem;
}

.btn-icon-subtle {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.btn-icon-subtle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}

.my-profile-mini-bar {
  padding: 0.5rem 1rem 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}

.contacts-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0.75rem;
}

/* 3. ROMANTIC AMBIENT WELCOME SCREEN & ANIMATED FLOATING HEARTS (Matching Welcom Home Page.png) */
.hero-welcome-screen {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, rgba(9, 11, 16, 0.4), rgba(22, 10, 30, 0.7)),
              url('/assets/images/romantic_bg.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.hero-welcome-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(168, 85, 247, 0.15) 0%, rgba(9, 11, 16, 0.75) 80%);
}

.floating-hearts-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.floating-heart {
  position: absolute;
  bottom: -40px;
  color: rgba(236, 72, 153, 0.75);
  font-size: 1.6rem;
  animation: floatUp 8s infinite ease-in;
  filter: drop-shadow(0 0 10px rgba(236, 72, 153, 0.9));
}

@keyframes floatUp {
  0% {
    transform: translateY(0) scale(0.6) rotate(0deg);
    opacity: 0;
  }
  20% {
    opacity: 0.9;
  }
  80% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-110vh) scale(1.3) rotate(360deg);
    opacity: 0;
  }
}

.hero-heart-container {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 540px;
  width: 90%;
  padding: 3.5rem 2.5rem;
  background: rgba(18, 22, 34, 0.55);
  border: 2px solid rgba(236, 72, 153, 0.4);
  border-radius: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(236, 72, 153, 0.35);
  backdrop-filter: blur(16px);
  animation: pulseGlow 3s infinite ease-in-out;
}

.glowing-heart-shape {
  width: 86px;
  height: 86px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 36px #ec4899;
}

.glowing-heart-shape svg {
  width: 46px;
  height: 46px;
  fill: #ffffff;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  font-family: 'Outfit', sans-serif;
}

.hero-title-script {
  font-family: 'Outfit', cursive, sans-serif;
  background: linear-gradient(135deg, #ec4899, #a855f7, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  font-size: 3rem;
}

.hero-divider {
  margin: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ec4899;
  font-size: 1.2rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #e2e8f0;
  margin-bottom: 2.25rem;
  line-height: 1.6;
  font-weight: 400;
}

.btn-hero-chat {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 2.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #a855f7, #ec4899) !important;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1.1rem;
  border: none !important;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.5) !important;
  transition: all var(--transition-normal);
}

.btn-hero-chat:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 40px rgba(236, 72, 153, 0.75) !important;
}

/* 4. CHAT INPUT BAR WITH ATTACHMENT & VOICE BUTTON (chat.png) */
.btn-icon-input {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-icon-input svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* 5. FLOATING MOBILE BOTTOM NAVIGATION DOCK (Mobile Home Page.png) */
.mobile-nav-dock {
  display: none;
}

@media (max-width: 768px) {
  .app-nav-rail {
    display: none;
  }

  .mobile-nav-dock {
    display: flex;
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    height: 64px;
    background: rgba(18, 22, 34, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    backdrop-filter: blur(16px);
    z-index: 100;
    align-items: center;
    justify-content: space-around;
    padding: 0 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  }

  .dock-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
  }

  .dock-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
  }

  .dock-btn.active {
    color: var(--primary);
  }

  .dock-badge {
    position: absolute;
    top: -2px;
    right: 6px;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 999px;
  }
}

/* INCOMING CALL OVERLAY (Matching Screenshot 1) */
.incoming-call-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 11, 16, 0.95);
  backdrop-filter: blur(24px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn var(--transition-fast) forwards;
}

.incoming-call-overlay.active {
  display: flex;
}

.incoming-call-card {
  width: 100%;
  max-width: 420px;
  height: 90vh;
  max-height: 800px;
  background: radial-gradient(circle at top, rgba(168, 85, 247, 0.2) 0%, rgba(15, 19, 28, 0.95) 70%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.9);
  position: relative;
}

.incoming-call-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.incoming-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
}

.e2e-encrypted-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.incoming-call-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto 0;
}

.incoming-avatar-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  box-shadow: 0 0 32px rgba(168, 85, 247, 0.6);
  margin-bottom: 1.5rem;
  animation: pulseGlow 2s infinite ease-in-out;
}

.incoming-avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.incoming-caller-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.incoming-ringing-status {
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 500;
}

.incoming-sub-actions {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2rem;
}

.sub-act-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
}

.sub-act-btn svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
  stroke-width: 2;
  fill: none;
  padding: 10px;
  box-sizing: content-box;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.incoming-main-actions {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 1rem;
}

.btn-call-action {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: transform var(--transition-fast);
}

.btn-call-action svg {
  width: 32px;
  height: 32px;
  stroke: #ffffff;
  stroke-width: 2;
  fill: none;
}

.btn-call-action span {
  display: none;
}

.btn-decline-glow {
  background: #ef4444 !important;
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.6) !important;
}

.btn-accept-glow {
  background: #10b981 !important;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.6) !important;
}

/* WHATSAPP MEDIA ATTACHMENT DRAWER (MATCHING SCREENSHOT 2) */
.media-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 11, 16, 0.75);
  backdrop-filter: blur(16px);
  z-index: 99990;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.media-drawer-overlay.active {
  display: flex;
}

.media-drawer-card {
  width: 100%;
  max-width: 500px;
  background: #0f131c;
  border-top-left-radius: 36px;
  border-top-right-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1.5rem 2rem 1.5rem;
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-height: 90vh;
  overflow-y: auto;
}

.drawer-drag-handle {
  width: 48px;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  margin: 0 auto 0.5rem auto;
}

.media-drawer-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.drawer-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
}

.media-drawer-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
}

.media-drawer-header p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* TOP 4 ACTION CARDS GRID */
.media-action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.media-act-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.media-act-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.act-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.2rem;
}

.act-icon-wrapper svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
  stroke-width: 2;
  fill: none;
}

.act-icon-wrapper.purple { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.act-icon-wrapper.indigo { background: linear-gradient(135deg, #6366f1, #4338ca); }
.act-icon-wrapper.pink { background: linear-gradient(135deg, #ec4899, #be185d); }
.act-icon-wrapper.cyan { background: linear-gradient(135deg, #06b6d4, #0891b2); }

.act-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
}

.act-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* TABS BAR */
.media-tabs-bar {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
}

.media-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.85rem;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.media-tab-btn.active {
  background: rgba(168, 85, 247, 0.25);
  color: #ffffff;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

/* SAMPLE GRID PREVIEW */
.media-grid-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.media-grid-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
}

.media-grid-item.active {
  border-color: #a855f7;
}

.media-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-check-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #a855f7;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

/* SELECTED TRAY & FLOATING SEND BUTTON */
.media-selected-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.selected-text-info {
  display: flex;
  flex-direction: column;
}

.selected-text-info span:first-child {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

.btn-floating-send {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #6366f1);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.5);
  transition: transform var(--transition-fast);
}

.btn-floating-send:hover {
  transform: scale(1.08);
}
