/* ==========================================================================
   IMAGICA STUDIO - PRODUCTION COMPONENT DESIGN SYSTEM
   ========================================================================== */

/* ==========================================================================
   1. NAVBAR & FIXED HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  pointer-events: none;
  transition: background-color var(--transition-base), backdrop-filter var(--transition-base);
}

.site-header.scrolled {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-container-ref {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 2rem;
  background: #111113;
  border-bottom: 1px solid #1a1a1f;
  pointer-events: none;
}

/* Left Brand Logo */
.brand-logo-ref {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  pointer-events: auto;
}

.brand-logo-img {
  height: 46px;
  width: auto;
  max-width: 54px;
  object-fit: contain;
  display: block;
  filter: none !important;
  box-shadow: none !important;
  background: transparent !important;
  transition: transform var(--transition-fast);
}

.brand-logo-ref:hover .brand-logo-img {
  transform: scale(1.06) rotate(3deg);
}

/* Center Riviera / Imagica Logo */
.center-script-logo {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  pointer-events: auto !important;
  height: 64px !important;
  max-height: 68px !important;
}

.center-logo-img,
.center-script-logo img {
  height: 62px !important;
  max-height: 66px !important;
  width: auto !important;
  max-width: 340px !important;
  object-fit: contain !important;
  display: block !important;
  transition: transform var(--transition-fast);
}

.center-script-logo:hover .center-logo-img,
.center-script-logo:hover img {
  transform: scale(1.05);
}

/* Right Nav Actions */
.nav-actions-ref {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  pointer-events: none;
}

.nav-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.4rem;
  border-radius: var(--radius-full);
  background: #86efac;
  border: 1px solid #86efac;
  color: #052e16;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 10px rgba(134, 239, 172, 0.35);
  transition: all var(--transition-fast);
}

.nav-login-btn:hover {
  background: #6ee7b7;
  border-color: #6ee7b7;
  color: #022c22;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(134, 239, 172, 0.55);
}

.nav-login-btn.logged-in {
  background: rgba(134, 239, 172, 0.15);
  border-color: #86efac;
  color: #86efac;
}

.nav-login-btn.logged-in svg {
  stroke: #86efac;
}

.nav-login-btn.exhausted {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: rgba(239, 68, 68, 0.45) !important;
  color: #f87171 !important;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.2) !important;
}

.nav-logout-direct-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  cursor: pointer;
  pointer-events: auto;
  transition: all var(--transition-fast);
}

.nav-logout-direct-btn:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
  transform: scale(1.06);
}

.nav-menu-box-btn {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: #fdf5f6;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3.5px;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-menu-box-btn:hover {
  background: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.nav-menu-box-btn:active {
  transform: scale(0.96);
}

.nav-menu-box-btn span {
  width: 18px;
  height: 2.5px;
  background-color: #000000;
  border-radius: 2px;
  display: block;
}

/* User Avatar Top Trigger Button */
.nav-user-avatar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 9999px;
  pointer-events: auto;
  transition: transform var(--transition-fast);
}

.nav-user-avatar-btn:hover {
  transform: scale(1.05);
}

.nav-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #22c55e;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
}

.nav-avatar-chevron {
  stroke: #9ca3af;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.nav-user-avatar-btn:hover .nav-avatar-chevron {
  stroke: #ffffff;
}

/* Screenshot-Accurate Profile Popover Dropdown */
.nav-menu-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  pointer-events: auto;
}

.nav-profile-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 310px;
  background: #0e1015;
  border: 1px solid #1f242d;
  border-radius: 18px;
  padding: 22px 18px 16px 18px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  display: none;
  flex-direction: column;
  animation: profileDropdownIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-profile-dropdown::before {
  content: '';
  position: absolute;
  top: -7px;
  right: 18px;
  width: 12px;
  height: 12px;
  background: #0e1015;
  border-left: 1px solid #1f242d;
  border-top: 1px solid #1f242d;
  transform: rotate(45deg);
}

.nav-profile-dropdown.open {
  display: flex;
}

@keyframes profileDropdownIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Center Avatar & User Info - Clean Matte Black & Mint */
.dropdown-profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  padding-bottom: 2px;
}

.dropdown-big-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #00e599;
  color: #032212;
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border: none;
  box-shadow: none;
  overflow: hidden;
  transition: transform 0.15s ease;
}

.dropdown-big-avatar svg {
  stroke: #032212;
  stroke-width: 2.2;
}

.dropdown-big-avatar:hover {
  transform: scale(1.03);
}

.dropdown-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.dropdown-user-name {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.dropdown-user-email {
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 4px;
  word-break: break-all;
}

/* Credits & Allowance Card (Clean Matte Black & Mint) */
.dropdown-workspace-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #14171e;
  border: 1px solid #232936;
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 16px;
  margin-bottom: 12px;
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.dropdown-workspace-card:hover {
  background: #191d26;
  border-color: #00e599;
}

.workspace-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #181c25;
  border: 1px solid rgba(250, 204, 21, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: none;
}

.workspace-icon-box svg {
  display: block;
}

.workspace-name {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

/* Horizontal Divider */
.dropdown-divider {
  width: 100%;
  height: 1px;
  background: #1e232d;
  margin: 6px 0 10px 0;
}

/* Modern Auth Buttons List */
.dropdown-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dropdown-menu-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  width: 100%;
  box-shadow: none;
  transition: all 0.15s ease;
}

/* Sign In Clean Mint Button */
#dropdown-signin-btn {
  background: #00e599;
  color: #032212;
  font-weight: 800;
  box-shadow: none;
}

#dropdown-signin-btn:hover {
  background: #05d48d;
}

#dropdown-signin-btn svg {
  stroke: #032212;
  stroke-width: 2.2;
}

/* Sign Up Clean Outline Button */
#dropdown-signup-btn {
  background: transparent;
  border: 1px solid #28303f;
  color: #cbd5e1;
  font-weight: 700;
}

#dropdown-signup-btn:hover {
  background: #171c26;
  border-color: #00e599;
  color: #ffffff;
}

#dropdown-signup-btn svg {
  stroke: #94a3b8;
  transition: stroke 0.15s;
}

#dropdown-signup-btn:hover svg {
  stroke: #00e599;
}

/* Sign Out Danger Button */
.dropdown-logout-item {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
  font-weight: 700;
}

.dropdown-logout-item svg {
  stroke: #f87171;
  transition: stroke 0.15s;
}

.dropdown-logout-item:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
}

.dropdown-logout-item:hover svg {
  stroke: #fca5a5;
}

/* Support Option in Dropdown */
.dropdown-support-item {
  background: transparent;
  border: 1px solid #232936;
  color: #cbd5e1;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  box-shadow: none;
  transition: all 0.15s ease;
}

.dropdown-support-item svg {
  stroke: #94a3b8;
  transition: stroke 0.15s;
  flex-shrink: 0;
}

.dropdown-support-item:hover {
  background: #171c26;
  border-color: #00e599;
  color: #ffffff;
}

.dropdown-support-item:hover svg {
  stroke: #00e599;
}

/* Mint Green Infinite Marquee Sub Banner Strip */
.header-sub-banner {
  width: 100%;
  background: #86efac;
  padding: 0.35rem 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
  user-select: none;
}

.banner-marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: bannerMarqueeScroll 26s linear infinite;
  text-decoration: none;
  color: #000000;
  cursor: pointer;
}

.banner-marquee-track:hover {
  animation-play-state: paused;
}

.banner-marquee-group {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding-right: 1.75rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.marquee-brand {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #000000;
}

.marquee-tagline {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  color: #000000;
}

.marquee-sep {
  color: #166534;
  font-size: 0.7rem;
  opacity: 0.9;
}

.marquee-dot {
  color: #15803d;
  font-size: 0.75rem;
  opacity: 0.7;
}

@keyframes bannerMarqueeScroll {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (max-width: 768px) {
  .header-sub-banner {
    padding: 0.28rem 0;
  }

  .banner-marquee-track {
    animation-duration: 20s;
  }

  .banner-marquee-group {
    gap: 1.25rem;
    padding-right: 1.25rem;
  }

  .marquee-brand {
    font-size: 0.78rem;
  }

  .marquee-tagline {
    font-size: 0.76rem;
  }
}

/* ==========================================================================
   2. HERO SECTION & FLIPPING CANVAS CONTAINER
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 100svh;
  max-height: 100svh;
  overflow: hidden;
  background: #000000;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  box-sizing: border-box;
}

.hero-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000;
}

#hero-flip-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: auto;
}

/* ==========================================================================
   3. TOAST NOTIFICATIONS (Professional Mint Green System)
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
  max-width: 440px;
}

.toast {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background: rgba(10, 25, 18, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(110, 231, 183, 0.38);
  border-radius: 9999px;
  color: #f8fafc;
  font-family: var(--font-body);
  font-size: 0.885rem;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.6), 0 0 24px -2px rgba(110, 231, 183, 0.22);
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  pointer-events: auto;
}

.toast.show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.toast-msg {
  color: #f1f5f9;
  font-size: 0.885rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Toast Color Variants */
.toast.toast-success,
.toast.toast-info {
  background: rgba(10, 25, 18, 0.94);
  border-color: rgba(110, 231, 183, 0.42);
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.6), 0 0 24px -2px rgba(110, 231, 183, 0.25);
}

.toast.toast-error {
  background: rgba(30, 12, 14, 0.95);
  border-color: rgba(248, 113, 113, 0.45);
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.6), 0 0 24px -2px rgba(248, 113, 113, 0.22);
}

/* ==========================================================================
   4. CENTERED AI GENERATION & UPLOAD BOX COMPONENT
   ========================================================================== */
.hero-center-container {
  position: absolute;
  top: calc(50% + 42px);
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 820px;
  padding: 0 1.25rem;
  z-index: 50;
  pointer-events: none;
  display: flex;
  justify-content: center;
}

.ai-prompt-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(48px) saturate(200%);
  -webkit-backdrop-filter: blur(48px) saturate(200%);
  border-radius: 28px;
  padding: 14px 18px 18px;
  border: none;
  box-shadow:
    0 24px 64px -8px rgba(0, 0, 0, 0.4),
    0 0 0 1.5px transparent;
  pointer-events: auto;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  animation: cardFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Animated aurora gradient border */
.ai-prompt-card::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: 29.5px;
  background: linear-gradient(135deg, #10b981, #34d399, #06b6d4, #6ee7b7, #10b981);
  background-size: 300% 300%;
  animation: auroraShift 6s ease infinite;
  z-index: -1;
}

/* Inner white fill to create border effect */
.ai-prompt-card::after {
  content: '';
  position: absolute;
  inset: 1.5px;
  border-radius: 26.5px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(48px);
  -webkit-backdrop-filter: blur(48px);
  z-index: -1;
}

@keyframes auroraShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes cardFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ai-prompt-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 32px 80px -8px rgba(0, 0, 0, 0.45),
    0 0 60px -20px rgba(168, 85, 247, 0.3);
}

/* Top Tabs Navigation */
.prompt-tabs-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.prompt-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: #64748b;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.prompt-tab-btn .tab-icon {
  display: block;
  flex-shrink: 0;
}

.prompt-tab-btn:hover {
  color: #1e293b;
  background: rgba(0, 0, 0, 0.04);
}

.prompt-tab-btn.active {
  background: #ffffff;
  color: #0f172a;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Inner Prompt Box Container */
.prompt-inner-card {
  background: #f8fafc;
  border: 1.5px solid #f1f5f9;
  border-radius: 18px;
  padding: 14px 16px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.prompt-inner-card:focus-within {
  border-color: #d1fae5;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04), 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Top Input Row */
.prompt-input-row {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}

/* Upload Attachments Container (Multi-Image Support) */
.upload-attachments-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  max-width: 60%;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 2px;
}

.upload-attachments-container::-webkit-scrollbar {
  display: none;
}

.upload-previews-list {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Individual Upload Preview Thumbnail */
.upload-preview-item {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 13px;
  position: relative;
  overflow: hidden;
  border: 1.5px solid rgba(168, 85, 247, 0.4);
  background: #0f172a;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.15);
  animation: preview-pop-in 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

@keyframes preview-pop-in {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.upload-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 11px;
  display: block;
}

.upload-preview-item:hover {
  border-color: rgba(168, 85, 247, 0.8);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.25);
}

.upload-preview-item .remove-img-btn,
.remove-img-btn {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.92);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, background-color 0.15s ease;
  z-index: 3;
}

.upload-preview-item .remove-img-btn:hover,
.remove-img-btn:hover {
  background: #dc2626;
  transform: scale(1.15);
}

.upload-add-more-state {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #a855f7;
  transition: transform 0.2s ease;
}

.upload-dropzone-box:hover .upload-add-more-state {
  transform: scale(1.1);
  color: #9333ea;
}

/* Upload Dropzone Box */
.upload-dropzone-box {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.07) 0%, rgba(6, 182, 212, 0.07) 100%);
  border: 1.5px dashed rgba(168, 85, 247, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  flex-shrink: 0;
}

.upload-dropzone-box:hover {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.14) 0%, rgba(6, 182, 212, 0.14) 100%);
  border-color: rgba(168, 85, 247, 0.6);
  transform: scale(1.03);
}

.upload-dropzone-box.drag-over {
  border-color: #10b981;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(6, 182, 212, 0.2) 100());
  transform: scale(1.06);
}

.sr-only-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.upload-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Prompt Text Input */
.prompt-text-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 450;
  color: #0f172a;
  line-height: 1.5;
  padding: 4px 0;
}

.prompt-text-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

/* Action Icon Buttons */
.prompt-action-icon-btn,
.icon-pill-btn {
  border: 1px solid #e8ecf0;
  background: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.prompt-action-icon-btn.attachment-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 10px;
}

.prompt-action-icon-btn:hover,
.icon-pill-btn:hover {
  background: #f1f5f9;
  border-color: #6ee7b7;
  color: #047857;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.icon-pill-btn.plus-btn {
  width: 38px;
  height: 38px;
  font-weight: 600;
}

.icon-pill-btn.plus-btn.active {
  background: #d1fae5;
  border-color: #6ee7b7;
  color: #059669;
}

/* Custom Dimension Popover Container */
.custom-dimension-container {
  position: relative;
}

.custom-dimension-popover {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 0;
  width: 290px;
  background: #ffffff;
  border: 1px solid #e8ecf0;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(0, 0, 0, 0.06);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: popoverFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-dim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
}

.custom-dim-badge {
  font-size: 0.725rem;
  font-weight: 700;
  padding: 2px 8px;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #059669;
  border-radius: var(--radius-full);
}

.custom-dim-inputs-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.custom-dim-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.custom-dim-field label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}

.custom-dim-input-wrap {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0 8px;
  transition: border-color 0.2s;
}

.custom-dim-input-wrap:focus-within {
  border-color: #10b981;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.custom-dim-input-wrap input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 6px 0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
  outline: none;
}

.custom-dim-input-wrap span {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  padding-left: 2px;
}

.custom-dim-divider {
  font-size: 1.1rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-top: 18px;
}

.custom-dim-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.custom-preset-chip {
  padding: 4px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-size: 0.725rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.custom-preset-chip:hover {
  background: #f0fdf4;
  border-color: #6ee7b7;
  color: #059669;
}

.custom-dim-apply-btn {
  width: 100%;
  padding: 9px;
  background: linear-gradient(135deg, #10b981, #34d399);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.custom-dim-apply-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.aspect-ratio-pill.custom-ratio-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 8px 0 12px;
  border-style: dashed;
}

.custom-ratio-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(21, 128, 61, 0.14);
  color: #15803d;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-left: 2px;
}

.custom-ratio-close:hover {
  background: rgba(239, 68, 68, 0.22);
  color: #ef4444;
  transform: scale(1.15);
}

/* Bottom Controls Row */
.prompt-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 2px;
}

.controls-left-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.aspect-ratio-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.aspect-ratio-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #e8ecf0;
  background: #ffffff;
  color: #64748b;
  font-family: var(--font-body);
  font-size: 0.825rem;
  font-weight: 500;
  line-height: 1;
  vertical-align: middle;
  box-sizing: border-box;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.aspect-ratio-pill:hover {
  background: #f0fdf4;
  border-color: #6ee7b7;
  color: #047857;
}

.aspect-ratio-pill.active {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border-color: #6ee7b7;
  color: #059669;
  font-weight: 600;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.controls-right-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Settings Popover Container */
.settings-popover-container {
  position: relative;
}

.icon-pill-btn.settings-btn {
  width: 38px;
  height: 38px;
}

.settings-popover-menu {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  width: 270px;
  background: #ffffff;
  border: 1px solid #e8ecf0;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(0, 0, 0, 0.06);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: popoverFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popoverFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
}

.badge-tag {
  font-size: 0.725rem;
  font-weight: 700;
  padding: 2px 7px;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #059669;
  border-radius: 6px;
  border: 1px solid #6ee7b7;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.settings-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings-item label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
}

.setting-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.setting-label-row span {
  font-size: 0.8rem;
  font-weight: 700;
  color: #059669;
}

.settings-select {
  width: 100%;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
  font-family: var(--font-body);
  font-size: 0.825rem;
  outline: none;
  cursor: pointer;
}

.settings-select:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.settings-range {
  width: 100%;
  accent-color: #10b981;
  cursor: pointer;
}

/* Generate Button */
/* Generate Button with Fluid Wave Logo */
.btn-generate {
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-full);
  background: #86efac;
  border: none;
  color: #052e16;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(134, 239, 172, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-generate:hover {
  background: #6ee7b7;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(110, 231, 183, 0.5);
}

.btn-generate:active {
  transform: scale(0.97);
}

.btn-logo-loader {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.btn-logo-svg {
  width: 90px;
  height: 22.5px;
  display: block;
  overflow: hidden;
}

.btn-logo-base {
  transition: opacity 0.25s ease, fill 0.25s ease;
  stroke: none !important;
  stroke-width: 0 !important;
}

.btn-wave-wrap {
  display: none;
}

/* Generating State: fluid wave sloshes & rises inside logo */
.btn-generate.generating {
  pointer-events: none;
  background: #6ee7b7;
  box-shadow: 0 0 20px rgba(110, 231, 183, 0.75);
}

.btn-generate.generating .btn-logo-base {
  opacity: 0.28 !important;
  fill: currentColor !important;
  stroke: none !important;
  stroke-width: 0 !important;
}

.btn-generate.generating .btn-wave-wrap {
  display: block;
  clip-path: url(#btn-imagica-clip);
  -webkit-clip-path: url(#btn-imagica-clip);
  overflow: hidden;
}

.btn-generate.generating .btn-wave-group {
  animation: btn-rise-up 3.2s ease-in-out infinite alternate;
  will-change: transform;
}

.btn-generate.generating .btn-wave-path {
  animation: btn-wave-move 3s linear infinite;
  will-change: transform;
  fill: currentColor !important;
  stroke: none !important;
  stroke-width: 0 !important;
}

@keyframes btn-rise-up {
  0% {
    transform: translateY(460px);
  }

  100% {
    transform: translateY(-40px);
  }
}

@keyframes btn-wave-move {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-1200px);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section {
    height: 100vh;
    height: 100svh;
    min-height: 100svh;
    max-height: 100svh;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
  }

  .hero-center-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0 1rem;
    max-width: 100%;
    width: 100%;
    margin-top: 0;
  }

  .ai-prompt-card {
    display: block !important;
    width: 100%;
    max-width: 100%;
    padding: 12px 14px 14px;
    border-radius: 20px;
  }

  .prompt-inner-card {
    padding: 12px;
    gap: 12px;
  }

  .prompt-controls-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .controls-left-group {
    justify-content: flex-start;
  }

  .controls-right-group {
    justify-content: space-between;
    width: 100%;
  }

  .btn-generate {
    flex: 1;
    justify-content: center;
  }

  .aspect-ratio-pill {
    padding: 0 10px;
    font-size: 0.8rem;
    height: 34px;
  }

  .prompt-action-icon-btn.attachment-btn,
  .icon-pill-btn.plus-btn,
  .icon-pill-btn.settings-btn {
    width: 34px;
    height: 34px;
  }

  .upload-attachments-container {
    max-width: 65%;
    gap: 6px;
  }

  .upload-previews-list {
    gap: 6px;
  }

  .upload-dropzone-box,
  .upload-preview-item {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 11px;
  }

  .upload-preview-item .remove-img-btn,
  .remove-img-btn {
    width: 16px;
    height: 16px;
    top: 2px;
    right: 2px;
  }

  .settings-popover-menu {
    left: 0;
    right: auto;
    width: 275px;
    max-width: calc(100vw - 56px);
  }

  .custom-dimension-popover {
    left: 0;
    right: auto;
    width: 280px;
    max-width: calc(100vw - 56px);
  }

  .nav-profile-dropdown {
    right: 0;
    max-width: calc(100vw - 32px);
  }
}

/* ==========================================================================
   AI GENERATION RESULT SHOWCASE MODAL
   ========================================================================== */
.result-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s ease;
}

.result-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.result-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 8, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.result-modal-container {
  position: relative;
  width: 92%;
  max-width: 860px;
  max-height: 90vh;
  z-index: 10;
  transform: scale(0.96) translateY(12px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.result-modal.open .result-modal-container {
  transform: scale(1) translateY(0);
}

.result-modal-card {
  background: #121217;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 50px rgba(134, 239, 172, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.result-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #17171d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.result-modal-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.result-badge-ai {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 6px;
}

.result-badge-ratio,
.result-badge-style {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.result-modal-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.result-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: scale(1.08);
}

.result-image-wrapper {
  position: relative;
  width: 100%;
  min-height: 320px;
  max-height: 520px;
  background: #09090c;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 12px;
}

.result-main-image {
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: opacity 0.3s ease;
}



.result-img-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #10b981;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 40px 20px;
}

.result-spinner {
  width: 44px;
  height: 44px;
  border: 3.5px solid rgba(16, 185, 129, 0.2);
  border-top-color: #10b981;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}



.result-prompt-box {
  padding: 12px 20px;
  background: #15151a;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.result-prompt-text {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.5;
  color: #e2e8f0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.result-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 20px;
  background: #17171d;
}

.result-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
}

.result-action-btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
}

.result-action-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.result-action-btn.primary {
  background: #86efac;
  color: #052e16;
  box-shadow: 0 4px 15px rgba(134, 239, 172, 0.3);
}

.result-action-btn.primary:hover {
  background: #6ee7b7;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(134, 239, 172, 0.5);
}

@keyframes shake-error {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-6px);
  }

  40%,
  80% {
    transform: translateX(6px);
  }
}

.shake-error {
  animation: shake-error 0.5s ease-in-out !important;
  border-color: #ef4444 !important;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.4) !important;
}

/* ==========================================================================
   Screenshot-Accurate Support Modal & Portal Styling
   Clean minimalist layout with dark squircle Imagica logo, email input,
   "Send Code" button, and "Powered by Imagica" footer.
   ========================================================================== */

#support-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#support-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.support-modal-window {
  position: relative;
  width: 100%;
  max-width: 450px;
  min-height: 480px;
  background: #ffffff;
  color: #09090b;
  border-radius: 20px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 52px 32px 30px 32px;
  transform: translateY(14px) scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#support-modal-overlay.active .support-modal-window {
  transform: translateY(0) scale(1);
}

.support-modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f4f4f5;
  border: none;
  color: #71717a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  z-index: 10;
}

.support-modal-close-btn:hover {
  background: #e4e4e7;
  color: #09090b;
  transform: scale(1.05);
}

/* Standalone Page View */
.support-standalone-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #09090b;
  position: relative;
  padding: 40px 20px;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.support-back-home {
  position: absolute;
  top: 24px;
  left: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #71717a;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.support-back-home:hover {
  color: #09090b;
}

/* Core Support Container */
.support-portal-body {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto 0;
  text-align: center;
}

/* Rounded Dark Squircle with Imagica Logo */
.support-logo-squircle {
  width: 58px;
  height: 58px;
  background: #111215;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  margin-bottom: 26px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.support-logo-squircle:hover {
  transform: scale(1.06);
}

.support-logo-squircle img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

/* Form Elements */
.support-form-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.support-email-input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  font-size: 14px;
  font-family: inherit;
  color: #09090b;
  background: #ffffff;
  border: 1px solid #d4d4d8;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.support-email-input::placeholder {
  color: #71717a;
  font-weight: 400;
}

.support-email-input:focus {
  border-color: #09090b;
  box-shadow: 0 0 0 1px #09090b;
}

.support-send-btn {
  margin-top: 16px;
  background: transparent;
  border: none;
  color: #71717a;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.support-send-btn:hover {
  color: #09090b;
  background: #f4f4f5;
}

.support-send-btn:active {
  transform: scale(0.98);
}

.support-send-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Step 2: Verification Code View (Screenshot-Accurate Match) */
.support-heading {
  font-size: 18px;
  font-weight: 600;
  color: #18181b;
  margin: 0 0 24px 0;
  text-align: center;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.support-email-readonly {
  background: #f1f3f5 !important;
  color: #4b5563 !important;
  border: 1px solid #e5e7eb !important;
  cursor: pointer;
  margin-bottom: 12px;
  font-size: 14px;
}

.support-email-readonly:hover {
  border-color: #d1d5db !important;
  background: #edf0f2 !important;
}

.support-code-input {
  background: #ffffff !important;
  border: 1px solid #d4d4d8 !important;
  color: #09090b !important;
  font-size: 14px;
}

.support-code-input:focus {
  border-color: #09090b !important;
  box-shadow: 0 0 0 1px #09090b !important;
}

.support-resend-row {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 13.5px;
  color: #52525b;
}

.support-resend-link {
  background: none;
  border: none;
  color: #18181b;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: color 0.15s ease;
}

.support-resend-link:hover {
  text-decoration: underline;
  color: #000000;
}

.support-resend-link:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  text-decoration: none;
}

/* Step 3: Support Portal Workspace / Ticket Center */
.support-dashboard-view {
  width: 100%;
  text-align: left;
}

.support-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #09090b;
  margin-bottom: 6px;
  text-align: center;
}

.support-field-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #3f3f46;
  margin-bottom: 6px;
  display: block;
}

.support-select,
.support-textarea {
  width: 100%;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13.5px;
  color: #09090b;
  background: #ffffff;
  outline: none;
  margin-bottom: 14px;
  transition: border-color 0.15s ease;
}

.support-select:focus,
.support-textarea:focus {
  border-color: #09090b;
  box-shadow: 0 0 0 1px #09090b;
}

.support-textarea {
  resize: vertical;
  min-height: 90px;
}

.support-submit-ticket-btn {
  width: 100%;
  background: #09090b;
  color: #ffffff;
  border: none;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.support-submit-ticket-btn:hover {
  background: #27272a;
}

.support-submit-ticket-btn:active {
  transform: scale(0.98);
}

/* Success Confirmation Banner */
.support-success-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 18px 16px;
  border-radius: 12px;
  text-align: center;
  width: 100%;
  margin-top: 10px;
}

.support-success-box h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px 0;
}

.support-success-box p {
  font-size: 13px;
  margin: 0;
  line-height: 1.4;
}

/* Footer: "Powered by Imagica" */
.support-portal-footer {
  margin-top: auto;
  padding-top: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12.5px;
  color: #9ca3af;
  user-select: none;
}

.support-footer-icon {
  width: 15px;
  height: 15px;
  object-fit: contain;
  opacity: 0.85;
}

.support-footer-brand {
  font-weight: 600;
  color: #6b7280;
}