/* ==========================================================================
   IONITY CENTRAL - COMPONENTS (MODALS, COMMAND PALETTE, NOTIFICATIONS, AUTH)
   ========================================================================== */

/* Modal Overlays */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 12, 12, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--glass-bg-elevated);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-hover);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(51, 102, 255, 0.18);
  position: relative;
  transform: translateY(16px) scale(0.96);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  overflow: hidden;
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: rgba(20, 20, 20, 0.6);
}

/* Form Controls */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.form-input, .form-select, .form-textarea {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 13.5px;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(51, 102, 255, 0.25), 0 0 14px rgba(51, 102, 255, 0.2);
  background: rgba(18, 22, 32, 0.95);
}

/* Command Palette (Ctrl+K) */
.command-palette-card {
  max-width: 580px;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.command-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--glass-border);
  background: var(--bg-surface);
}

.command-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 16px;
  color: var(--text-main);
  font-family: var(--font-sans);
}

.command-results-list {
  max-height: 360px;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.command-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-main);
  cursor: pointer;
  font-size: 13.5px;
  transition: all 0.15s;
}

.command-result-item:hover, .command-result-item.selected {
  background: var(--accent-subtle);
  color: var(--accent-hover);
}

.command-category {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-subtle);
  padding: 8px 12px 4px;
}

/* In-App Notification Center Dropdown */
.notification-center-drawer {
  position: absolute;
  top: 65px;
  right: 24px;
  width: 360px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 500;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.notification-center-drawer.active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.notif-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notif-list {
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  gap: 12px;
  transition: background 0.15s;
  cursor: pointer;
}

.notif-item:hover {
  background: var(--bg-surface-elevated);
}

.notif-item.unread {
  background: rgba(51, 102, 255, 0.05);
  border-left: 3px solid var(--accent-primary);
}

.notif-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.notif-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.notif-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.notif-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.notif-time {
  font-size: 10.5px;
  color: var(--text-subtle);
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2000;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  min-width: 280px;
  max-width: 400px;
  transform: translateX(100%);
  animation: slideToastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast.success { border-left-color: var(--status-green); }
.toast.error { border-left-color: var(--status-red); }
.toast.info { border-left-color: var(--accent-primary); }

.toast-msg {
  font-size: 13px;
  color: var(--text-main);
  flex: 1;
}

@keyframes slideToastIn {
  to { transform: translateX(0); }
}

/* Provider Connect Cards */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.provider-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s;
}

.provider-card:hover {
  border-color: var(--accent-primary);
}

.provider-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.provider-logo-box {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* Cloud Sync Status Pill in Header */
.sync-status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.sync-dot.online {
  background: var(--status-green);
  box-shadow: 0 0 8px var(--status-green);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* Cover Gallery Picker Grid */
.cover-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.cover-card-option {
  height: 70px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: flex-end;
  padding: 6px 8px;
  font-size: 10px;
  font-weight: 700;
  color: #FFFFFF;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.cover-card-option:hover {
  transform: scale(1.04);
  border-color: var(--accent-primary);
}

/* Cloud Terminal UI in GCP View */
.terminal-window {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
}

.terminal-titlebar {
  background: #161b22;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #30363d;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-body {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #c9d1d9;
  background: #0d1117;
  min-height: 220px;
  max-height: 320px;
  overflow-y: auto;
  white-space: pre-wrap;
  line-height: 1.5;
}

.terminal-quick-cmds {
  padding: 10px 14px;
  background: #161b22;
  border-top: 1px solid #30363d;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* Executive Signature Badge */
.signature-card-box {
  background: #111111;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.signature-img {
  max-height: 50px;
  filter: brightness(1.2) contrast(1.1);
  object-fit: contain;
}

/* ==========================================================================
   TOP HEADER BUTTONS & PROFILE SWITCHER
   ========================================================================== */
.btn-record-quick {
  background: linear-gradient(135deg, rgba(255, 61, 113, 0.15), rgba(255, 61, 113, 0.25));
  border: 1px solid rgba(255, 61, 113, 0.4);
  color: #FFF;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-record-quick:hover {
  background: linear-gradient(135deg, rgba(255, 61, 113, 0.3), rgba(255, 61, 113, 0.45));
  border-color: #FF3D71;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 61, 113, 0.35);
}

.record-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF3D71;
  box-shadow: 0 0 8px #FF3D71;
  animation: pulseGlow 1.4s infinite ease-in-out;
}

@keyframes pulseGlow {
  0% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 4px #FF3D71; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px #FF3D71; }
  100% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 4px #FF3D71; }
}

.btn-watermark-quick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
}

.header-profile-pill {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 3px 10px 3px 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-main);
}

.header-profile-pill:hover {
  border-color: var(--accent-primary);
  background: rgba(51, 102, 255, 0.1);
}

.header-profile-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #FFF;
  overflow: hidden;
}

.header-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-profile-name {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Profile Switcher Dropdown */
.profile-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  background: rgba(26, 26, 26, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 1000;
  display: none;
  flex-direction: column;
  gap: 4px;
  animation: fadeInDown 0.15s ease-out;
}

.profile-dropdown-menu.active {
  display: flex;
}

.profile-dropdown-header {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  padding: 6px 8px 4px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 4px;
}

.profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  color: var(--text-main);
}

.profile-dropdown-item:hover {
  background: var(--bg-surface-elevated);
}

.profile-dropdown-item.active {
  background: rgba(51, 102, 255, 0.12);
  border-left: 2px solid var(--accent-primary);
}

.profile-dropdown-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #FFF;
  overflow: hidden;
  flex-shrink: 0;
}

.profile-dropdown-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-dropdown-info {
  flex: 1;
  min-width: 0;
}

.profile-dropdown-name {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-dropdown-role {
  font-size: 10px;
  color: var(--text-muted);
}

.profile-dropdown-action {
  border-top: 1px solid var(--border-subtle);
  margin-top: 4px;
  padding-top: 6px;
}

/* ==========================================================================
   FLOATING SCREEN RECORDER HUD
   ========================================================================== */
.screen-recorder-hud-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  background: rgba(20, 22, 28, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 61, 113, 0.45);
  border-radius: 999px;
  padding: 8px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 61, 113, 0.2);
  display: flex;
  align-items: center;
  gap: 16px;
  animation: slideUpHUD 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpHUD {
  from { transform: translate(-50%, 40px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.rec-hud-beacon-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rec-hud-pulse-beacon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #FF3D71;
  box-shadow: 0 0 10px #FF3D71;
  animation: pulseGlow 1.2s infinite ease-in-out;
}

.rec-hud-timer-digits {
  font-family: var(--font-pixel);
  font-size: 13px;
  color: #00E676;
  letter-spacing: 1px;
  text-shadow: 0 0 6px rgba(0, 230, 118, 0.6);
  min-width: 72px;
}

.rec-hud-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rec-hud-btn {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
}

.btn-danger {
  background: #FF3D71;
  color: #FFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-danger:hover {
  background: #E0285C;
  box-shadow: 0 2px 10px rgba(255, 61, 113, 0.4);
}

/* ==========================================================================
   WATERMARK STUDIO & CANVAS PREVIEW
   ========================================================================== */
.watermark-studio-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 20px;
  margin-top: 16px;
}

@media (max-width: 960px) {
  .watermark-studio-grid {
    grid-template-columns: 1fr;
  }
}

.watermark-preview-canvas-wrap {
  background: #11141a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-md);
}

.watermark-canvas-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0d0f14 repeating-conic-gradient(#141720 0% 25%, #0f1218 0% 50%) 50% / 20px 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.watermark-canvas-element {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.watermark-pos-grid-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: 120px;
  margin-top: 6px;
}

.pos-cell {
  aspect-ratio: 1;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
}

.pos-cell:hover {
  border-color: var(--accent-primary);
  color: var(--text-main);
}

.pos-cell.active {
  background: var(--accent-primary);
  border-color: var(--accent-hover);
  color: #FFF;
  box-shadow: 0 0 8px rgba(51, 102, 255, 0.4);
}

.logo-dropzone {
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.logo-dropzone:hover, .logo-dropzone.dragover {
  border-color: var(--accent-primary);
  background: rgba(51, 102, 255, 0.06);
}

.watermark-preset-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.watermark-preset-chip {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
  color: var(--text-muted);
}

.watermark-preset-chip:hover {
  border-color: var(--accent-primary);
  color: var(--text-main);
}

.watermark-preset-chip.active {
  border-color: var(--accent-primary);
  background: rgba(51, 102, 255, 0.12);
  color: #FFF;
}

/* ==========================================================================
   PROFILES & IDENTITY MANAGEMENT HUB
   ========================================================================== */
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.profile-manage-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.profile-manage-card:hover {
  border-color: rgba(51, 102, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.profile-manage-card.active-card {
  border-color: var(--accent-primary);
  background: linear-gradient(135deg, rgba(51, 102, 255, 0.06), rgba(26, 26, 26, 0.95));
}

.profile-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #FFF;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--border-subtle);
}

.profile-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card-signature-preview {
  background: #111;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-card-signature-preview img {
  max-height: 36px;
  filter: brightness(1.2);
  object-fit: contain;
}

.avatar-staged-preview, .signature-staged-preview {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: #111;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-staged-preview img, .signature-staged-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ==========================================================================
   VIDEO PLAYER & RECORDING PREVIEW
   ========================================================================== */
.preview-video-container {
  width: 100%;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-video-element {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.preview-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px 0;
  font-size: 12px;
  color: var(--text-muted);
}

.notion-video-block-wrapper {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 10px 0;
}

.notion-video-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  position: relative;
}

.notion-video-element {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.notion-video-footer {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
}

.rec-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.rec-gallery-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-fast);
}

.rec-gallery-card:hover {
  border-color: rgba(51, 102, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.rec-gallery-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0a0c10;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rec-gallery-thumb video, .rec-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rec-gallery-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}


