/* Base Styles */
:root {
  --headline-font: 'DM Serif Display', serif;
  --body-font: 'Poppins', sans-serif;
  --primary: #1a1a1a;
  --secondary: #444;
  --cta-bg: #ff8c7a;
  --cta-bg-hover: #FFA88F;
  --cta-text: #fff;
  --gradient: linear-gradient(180deg, #FFD1C1 0%, #F7B7A3 15%, #FFEDE0 35%, #FFEDE0 65%, #FFD1C1 100%);
  --header-color: linear-gradient(180deg, #FFD6CC 0%, #FFE5DE 100%);
  --chatbox-bg: #fff9f3;
  --nav-link: #222;
  --nav-link-hover: #ff8c7a;
  --nav-muted: #FFA88F;
  --user-message-bg: var(--cta-bg);
  --bot-message-bg: white;
}

.firebase-emulator-warning {
  display: none;
}
/* Reset & Base Layout */
html, body {
  height: 100dvh;
  margin: 0;
  padding: 0;
  background: #faf9f6;
  font-family: var(--body-font);
  color: var(--primary);
  width: 100vw;
  min-height: 100dvh;
  overflow-x: hidden;
}

body {
  min-height: 100dvh;
  min-width: 100vw;
  width: 100vw;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  overflow: hidden;
}

/* Chat Page Specific Styles */
.chat-page {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(180deg, #ffd1c1 0%, #ffb7a3 5%, #ff9e7d 15%, #f7b7a3 25%, #f7b7a3 35%, #f7c7b3 50%, #ffe5d0 65%, #ffede0 75%, #ffd1c1 100%);
  color: #222222;
  height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* Header Styles */
.vent-header {
  width: 100%;
  text-align: center;
  padding: 32px 16px 24px 16px;
  margin: 0 auto;
  background: none;
}

.vent-title {
  font-family: "DM Serif Display", serif;
  font-size: 3rem;
  font-weight: 400;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.vent-subtitle {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  color: #fff;
  opacity: 1;
  font-weight: 400;
  margin-bottom: 0;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

@media (min-width: 768px) {
  .vent-subtitle {
    font-size: 1.25rem;
  }
}

/* Chat Container Styles */
.outer-chatbox {
  background: linear-gradient(180deg, #fff8f3 80%, #fbeee2 100%);
  border-radius: 32px;
  box-shadow: 0 4px 32px 0 rgba(0, 0, 0, 0.07);
  padding: 24px 16px 16px 16px;
  max-width: 98vw;
  margin: 0 auto;
  width: 100%;
  position: relative;
  min-height: 70dvh;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-container {
  overflow-y: auto;
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
  padding: 0 12px;
  flex: 1 1 auto;
  min-height: 0;
}

/* Message Styles */
.message {
  max-width: 80%;
  animation: fadeIn 0.4s ease-out forwards;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 16px 20px;
  margin-bottom: 16px;
}

.user-message {
  background-color: var(--user-message-bg);
  color: white;
  border-radius: 18px 18px 0 18px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  margin-left: auto;
}

.bot-message {
  background-color: var(--bot-message-bg);
  color: #222222;
  border-radius: 18px 18px 18px 0;
  border: 1px solid #eeeeee;
  margin-right: auto;
}

/* Input Area Styles */
.input-area {
  background: var(--chatbox-bg);
  border-radius: 0;
  box-shadow: none;
  padding: 12px 12px;
  margin-top: auto;
  position: relative;
  z-index: 10;
}

.input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  position: relative;
}

.input-area input,
.input-area textarea {
  border: none;
  outline: none;
  background: #fdf6ef;
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 1.2rem;
  color: #444;
  flex: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  resize: none;
  max-height: 150px;
  padding-right: 90px;
  min-height: 72px;
}

.input-area input::placeholder,
.input-area textarea::placeholder {
  color: #b9a89a;
  opacity: 1;
}

.input-area .send-button {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--cta-bg);
  color: var(--cta-text);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: none; /* Hide by default */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(255, 140, 122, 0.08);
  transition: background 0.18s;
  padding: 0;
  z-index: 2;
}

.input-area .send-button.visible {
  display: flex;
}

.input-area .mic-button {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: #f0f0f0 !important;
  color: #666 !important;
  border: none;
  border-radius: 50% !important;
  width: 36px !important;
  height: 36px !important;
  padding: 8px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
}

.input-area .mic-button.hidden {
  display: none !important;
}

.input-area textarea {
  flex: 1;
  padding: 20px 24px !important;
  border: none;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  resize: none;
  font-family: "Poppins", sans-serif;
  font-size: 1rem !important;
  line-height: 1.5;
  color: #222222;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  min-height: 80px !important;
}

@media (max-width: 900px) {
  .input-area textarea {
    font-size: 14px !important;
    padding: 16px 44px 16px 16px !important;
    margin: 8px !important;
    min-height: 70px !important;
  }
}

/* Clear Chat Link Styles */
.clear-chat-link {
  text-align: right;
  padding: 0 20px 20px;
}

.clear-chat-link a {
  color: #666;
  font-size: 0.85rem;
  text-decoration: none;
  opacity: 0.7;
  transition: all 0.2s ease;
}

.clear-chat-link a:hover {
  color: #ff7566;
  opacity: 1;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  padding: 24px;
  border-radius: 16px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.modal-overlay.visible .modal-content {
  transform: translateY(0);
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #333;
}

.modal-message {
  color: #666;
  margin-bottom: 24px;
  line-height: 1.5;
}

.modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.modal-button {
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-button.cancel {
  background: #f5f5f5;
  color: #666;
}

.modal-button.cancel:hover {
  background: #eee;
}

.modal-button.confirm {
  background: var(--cta-bg);
  color: white;
}

.modal-button.confirm:hover {
  background: var(--cta-bg-hover);
}

/* Animation Styles */
@keyframes pop {
  0% { transform: scale(0) rotate(-10deg); }
  70% { transform: scale(1.2) rotate(10deg); }
  100% { transform: scale(1) rotate(0); }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}

/* Animation Styles */
@keyframes pop {
  0% { transform: scale(0) rotate(-10deg); }
  70% { transform: scale(1.2) rotate(10deg); }
  100% { transform: scale(1) rotate(0); }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}

/* Copy Notification Styles */
@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(10px); }
  15% { opacity: 1; transform: translateY(0); }
  85% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-10px); }
}

.copy-notification, .notification {
  position: fixed;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  z-index: 2000;
  animation: fadeInOut 3s forwards;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  width: fit-content;
  margin: 0 auto;
  white-space: nowrap;
}

.notification.success {
  background-color: rgba(46, 125, 50, 0.9);
}

.notification.error {
  background-color: rgba(198, 40, 40, 0.9);
}

/* Typing Indicator Styles */
.typing-indicator {
  display: flex;
  align-items: center;
  margin-left: 10px;
}

.typing-indicator span {
  height: 8px;
  width: 8px;
  background-color: var(--cta-bg);
  border-radius: 50%;
  display: inline-block;
  margin-right: 3px;
  animation: bounce 1.3s linear infinite;
  margin-bottom: 1rem;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.3s;
}

/* Sticker Styles */
.sticker {
  position: absolute;
  width: 60px;
  height: 60px;
  animation: pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  transform: scale(0);
  z-index: 10;
}

/* Responsive Styles */
/* Mobile header is hidden by default */
.mobile-header {
  display: none;
}

@media (max-width: 900px) {
  /* Mobile fixed header - show only on mobile */
  .mobile-header {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--header-color);
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10000;
  }
  .vent-title {
    font-size: 2rem;
  }
  .vent-header {
    padding: 20px 8px 16px 8px;
  }
  .outer-chatbox {
    padding: 8px 12px 0 12px !important;
    border-radius: 18px;
    /* Always fullscreen on mobile */
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw !important;
    height: 100dvh !important;
    max-width: 100vw !important;
    max-height: 100dvh !important;
    z-index: 9999;
    border-radius: 0 !important;
    padding: 12px 16px 0 16px !important;
    background: var(--chatbox-bg);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: none;
  }
  .chat-container {
    padding: 0 0px 84px 0px;
  }
  .input-area {
    padding: 12px 12px 12px 12px;
    border-radius: 0;
    margin: 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--chatbox-bg);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  }
  
  .input-row {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
    position: relative;
  }
  
  #user-input {
    flex: 1;
    font-size: 14px;
    min-height: 56px;
    max-height: 260px;
    overflow-y: auto;
    resize: none;
    height: auto;
    padding: 14px 16px;
    padding-right: 90px;
  }
  
  .mic-button {
    position: absolute;
    right: 52px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px !important;
    height: 36px !important;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .send-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .container {
    padding-top: 0;
    padding-bottom: 0;
    height: calc(100dvh - 20px);
  }

  /* Hide original header in fullscreen mode */
  .outer-chatbox .vent-header,
  .outer-chatbox + .clear-chat-link {
    display: none !important;
  }
  
  .mobile-header .app-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: var(--cta-bg);
    letter-spacing: -0.5px;
  }
  
  .mobile-header .login-button {
    background: white;
    color: var(--cta-bg);
    background: var(--chatbox-bg);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .mobile-header .login-button:hover {
    background: var(--cta-bg);
    color: white;
  }
  
  /* Add new style to prevent hover effect when button text is "Save" */
  .mobile-header .login-button[data-text="Save"]:hover {
    background: var(--chatbox-bg);
    color: var(--cta-bg);
  }
  
  /* Adjust chat container to account for fixed header */
  .outer-chatbox {
    padding-top: 80px !important;
  }

  .typing-indicator {
    margin-bottom: 7rem;
  }
}

/* Desktop Styles */
@media (min-width: 601px) {
  .input-area {
    display: flex;
    align-items: center;
  }
  
  .input-row {
    display: flex;
    flex: 1;
  }
  
  #user-input {
    flex: 1;
  }
}

/* Legacy Styles (to be removed or refactored) */
.main-card {
  background: var(--chatbox-bg);
  width: 100vw;
  height: 100dvh;
  min-height: 100dvh;
  min-width: 100vw;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gradient-bg {
  display: none;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 32px 48px 0 48px;
  position: relative;
  z-index: 2;
}

.nav-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nav-link {
  font-family: var(--body-font);
  font-size: 17px;
  color: var(--nav-link);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--nav-link-hover);
}

.nav-right {
  font-family: var(--body-font);
  font-size: 16px;
  color: var(--nav-link);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-right .icon {
  font-size: 18px;
}

.star {
  position: absolute;
  left: 50%;
  top: 120px;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 32px;
  color: #fff;
  opacity: 0.8;
}

.content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: calc(100dvh - 120px);
  margin-top: 0;
  padding: 0 32px;
}

.headline {
  font-family: var(--headline-font);
  font-size: 3.2rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 32px;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -1px;
}

.subtext {
  font-family: var(--body-font);
  font-size: 1.18rem;
  color: var(--secondary);
  text-align: center;
  margin-bottom: 40px;
  max-width: 480px;
}

.cta-btn {
  background: var(--cta-bg);
  color: var(--cta-text);
  font-family: var(--body-font);
  font-size: 1.1rem;
  font-weight: 500;
  border: none;
  border-radius: 24px;
  padding: 16px 36px;
  margin-bottom: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(255, 117, 102, 0.2);
}

.cta-btn:hover {
  background: var(--cta-bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(215, 4, 102, 0.3);
}

.template-credit {
  font-size: 0.98rem;
  color: var(--nav-muted);
  text-align: center;
  margin-top: 8px;
}

.footer-links {
  margin-top: 24px;
  display: flex;
  gap: 16px;
  justify-content: center;
}

.footer-links .nav-link {
  font-size: 0.9rem;
}

@media (max-width: 700px) {
  .main-card {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    max-width: 100vw;
    max-height: 100dvh;
    padding-bottom: 0;
  }
  .nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 16px 0 16px;
    gap: 16px;
  }
  .content {
    margin-top: 0;
    padding: 0 8px;
    height: calc(100dvh - 120px);
  }
  .headline {
    font-size: 2.1rem;
  }
  .gradient-bg {
    height: 180px;
    min-height: 120px;
  }
}

/* Mic Button Styles */
.mic-button {
  background: #f0f0f0 !important;
  color: #666 !important;
  border: none;
  border-radius: 50% !important;
  width: 36px !important;
  height: 36px !important;
  padding: 8px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mic-button:hover {
  background: #e6e6e6 !important;
  color: #333 !important;
}

.mic-button.listening {
  background: var(--cta-bg) !important;
  color: white !important;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 117, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 117, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 117, 102, 0);
  }
}

/* Input Area Layouts */
.input-row {
  display: flex;
  width: 100%;
}

#user-input {
  flex: 1;
  font-size: 14px;
  min-height: 56px;
  max-height: 260px;
  overflow-y: auto;
  resize: none;
  height: auto;
  padding-right: 90px;
}

.generate-insight-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.generate-insight-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Invitation Modal Styles */
.invitation-modal, .insight-modal {
  max-width: 500px;
  width: 90%;
  padding: 28px;
  position: relative;
}

/* Loading Spinner Styles */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 140, 122, 0.2);
  border-radius: 50%;
  border-top-color: var(--cta-bg);
  animation: spin 1s ease-in-out infinite;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.close-icon {
  background: transparent !important;
  color: #777 !important;
  padding: 5px 10px !important;
  position: absolute;
  top: 20px;
  right: 20px;
  box-shadow: none !important;
  border-radius: 50% !important;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-icon:hover {
  background: #f0f0f0 !important;
  color: #333 !important;
}

.invitation-modal .modal-title, .insight-modal .modal-title {
  font-size: 1.4rem;
  margin-bottom: 0;
  color: #222;
  font-weight: 600;
}

/* Insight Modal Styles */
.conversation-insight {
  background: #fff2ef;
  border-radius: 12px;
  padding: 16px;
  margin: 12px 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #444;
  border-left: 3px solid var(--cta-bg);
}

.modal-button.send-insight {
  background: var(--cta-bg);
  color: white;
}

.modal-button.send-insight:hover {
  background: var(--cta-bg-hover);
}

/* Partner Insight Message Styles */
.partner-insight-message {
  background: #fff2ef;
  color: #333;
  border-radius: 18px;
  border-left: 3px solid var(--cta-bg);
  margin-left: auto;
  margin-right: auto;
  max-width: 90%;
}

.partner-insight-header {
  font-weight: 600;
  color: var(--cta-bg);
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.modal-text-background {
  text-align: left;
  background: #FFF8F4;
  border-radius: 12px;
  padding: 16px;
  margin: 12px 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #444;
  border-left: 3px solid var(--cta-bg);
}

.sample-message {
  margin: 12px 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #444;
}

.invite-link {
  background: #f0f0f0;
  border-radius: 8px;
  padding: 12px;
  margin: 12px 0 20px 0;
  font-size: 0.9rem;
  word-break: break-all;
  color: #555;
  border: 1px solid #ddd;
  cursor: pointer;
}

.invite-link:hover {
  background: #e8e8e8;
}

.modal-message-text {
  text-align: left;
}

.modal-divider {
  margin-top: 20px;
  margin-bottom: 30px;
  border: none;
  height: 1px;
  background-color: #e0e0e0;
}

.modal-button.share-link {
  margin-bottom: 12px;
  background: var(--cta-bg);
  color: white;
}

.modal-button.share-link:hover {
  background: var(--cta-bg-hover);
}

/* Partner Invite In-Chat Styles */
.partner-invite-container {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  margin: 10px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-left: 3px solid var(--cta-bg);
}

.partner-invite-summary {
  background: #FFF8F4;
  border-radius: 12px;
  padding: 16px;
  margin: 12px 0;
}

.partner-invite-summary-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #444;
  margin-top: 8px;
  font-style: italic;
}

.partner-invite-buttons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.partner-invite-accept, 
.partner-invite-decline,
.partner-invite-copy {
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-size: 0.95rem;
}

.partner-invite-accept {
  background: var(--cta-bg);
  color: white;
  flex: 1;
}

.partner-invite-accept:hover {
  background: var(--cta-bg-hover);
}

.partner-invite-decline {
  background: #f5f5f5;
  color: #666;
  flex: 1;
}

.partner-invite-decline:hover {
  background: #eee;
}

.partner-invite-link-container {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  margin: 10px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.partner-invite-link {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 12px;
  margin: 12px 0;
  font-size: 0.9rem;
  word-break: break-all;
  color: #555;
  border: 1px solid #ddd;
}

.partner-invite-copy {
  background: var(--cta-bg);
  color: white;
  display: block;
  width: 100%;
  margin-top: 12px;
}

.partner-invite-copy:hover {
  background: var(--cta-bg-hover);
}

/* Move the 950px media query to the very end of the file for highest specificity */
@media (max-width: 950px) {
  .invite-partner-btn, .generate-insight-btn {
    position: static !important;
    display: block;
    width: auto;
    margin: 0 auto 18px auto;
    top: unset;
    right: unset;
    border-radius: 10px;
    font-size: 1rem;
    padding: 10px 18px;
    box-shadow: 0 2px 8px rgba(255, 117, 102, 0.08);
  }
  
  .generate-insight-btn {
    box-shadow: 0 2px 8px rgba(255, 117, 102, 0.08);
  }
}
