/**
 * QuickDate Theme
 * Pastel pink background with circular forms, gradient accents, white cards
 * Matches QuickDate mockup specification
 */

/* ========================================
   CSS VARIABLES (Design Tokens)
   ======================================== */
:root {
  /* Background Colors - PASTEL PINK */
  --bg: #FFF0F3;
  --bg-2: #FFF7FA;
  --surface: #FFFFFF;
  --surface-2: #FFF9FB;
  
  /* Text Colors */
  --text: #253B56;
  --text-muted: #6B6F7E;
  
  /* Border */
  --border: #F2CED6;
  
  /* Accent Colors */
  --pink: #FF007F;
  --magenta: #D20AA8;
  --purple: #BF00FF;
  
  /* Gradients */
  --grad-primary: linear-gradient(90deg, #FF007F 0%, #D20AA8 45%, #BF00FF 100%);
  
  /* Shadows */
  --shadow-soft: 0 10px 25px rgba(37,59,86,0.08);
  --shadow: 0 18px 45px rgba(37,59,86,0.10);
  --shadow-button: 0 14px 30px rgba(255,0,127,0.20);
  --shadow-button-hover: 0 18px 40px rgba(191,0,255,0.25);
  
  /* Border Radius */
  --radius-card: 24px;
  --radius-input: 14px;
  --radius-pill: 999px;
  --radius-device: 22px;
  
  /* Typography */
  --font-family: 'Poppins', 'Inter', system-ui, -apple-system, sans-serif;
  --font-size-base: 15px;
  --line-height-base: 1.6;
}

/* ========================================
   BACKGROUND LAYER (Pastel Pink + Circular Forms)
   ======================================== */
body,
html {
  background: #FFF0F3 !important;
  background-image:
    radial-gradient(circle at 85% 10%, rgba(255,0,127,0.15) 0 400px, transparent 401px),
    radial-gradient(circle at 15% 20%, rgba(191,0,255,0.12) 0 350px, transparent 351px),
    radial-gradient(circle at 80% 60%, rgba(210,10,168,0.10) 0 300px, transparent 301px),
    radial-gradient(circle at 20% 80%, rgba(255,0,127,0.08) 0 250px, transparent 251px),
    radial-gradient(circle at 50% 50%, rgba(191,0,255,0.06) 0 500px, transparent 501px) !important;
  /* Remove fixed attachment on mobile for better performance */
  background-attachment: scroll;
  background-size: 100% 100%;
  color: var(--text) !important;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Use fixed attachment only on desktop for better scroll performance */
@media (min-width: 769px) {
  body,
  html {
    background-attachment: fixed;
  }
}

/* Override main.css dark backgrounds - FORCE PASTEL PINK */
.main,
.hero,
.hero-container,
.dashboard-main,
.dashboard-container,
.admin-main,
.admin-container,
section,
.section {
  background: transparent !important;
}

/* Override all dark background variables from main.css */
:root {
  --color-bg-base: #FFF0F3 !important;
  --color-bg-elevated: #FFF7FA !important;
  --color-bg-surface: #FFF9FB !important;
  --color-bg-card: #FFFFFF !important;
  --color-text-primary: #253B56 !important;
  --color-text-secondary: #6B6F7E !important;
}

/* Override header dark background - Optimize backdrop-filter for performance */
.header,
.header-container {
  background: rgba(255,255,255,0.95) !important;
}

/* Use backdrop-filter only on desktop, use solid background on mobile */
@media (min-width: 769px) {
  .header,
  .header-container {
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    background: rgba(255,255,255,0.9) !important;
  }
}

/* Footer - Same style as header (pastel pink background with blur effect) */
.footer {
  background: rgba(255,255,255,0.95) !important;
  background-color: rgba(255,255,255,0.95) !important;
  border-top: 1px solid rgba(242,206,214,0.3) !important;
  color: var(--text) !important;
}

/* Force footer background on all screen sizes */
@media (max-width: 992px) {
  .footer {
    background: rgba(255,255,255,0.98) !important;
    background-color: rgba(255,255,255,0.98) !important;
  }
}

/* Use backdrop-filter only on desktop */
@media (min-width: 769px) {
  .footer {
    background: rgba(255,255,255,0.9) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
  }
}

.footer-container {
  color: var(--text) !important;
}

.footer-section h3 {
  color: var(--text) !important;
  font-weight: 600 !important;
}

.footer-social a,
.footer-links a,
.footer-adult-link {
  color: var(--text-muted) !important;
  transition: color 0.2s ease !important;
}

.footer-social a:hover,
.footer-links a:hover,
.footer-adult-link:hover {
  color: var(--pink) !important;
}

.footer-bottom {
  border-top: 1px solid rgba(242,206,214,0.3) !important;
  color: var(--text-muted) !important;
}

.footer-bottom p {
  color: var(--text-muted) !important;
}

/* Align footer content properly */
.footer-container {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  flex-wrap: wrap !important;
  gap: 2rem !important;
}

.footer-section {
  flex: 1 !important;
  min-width: 150px !important;
}

.footer-section h3 {
  margin-bottom: 1rem !important;
  font-size: 14px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.footer-social,
.footer-links {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
}

.footer-social a,
.footer-links a {
  display: inline-block !important;
  text-decoration: none !important;
  font-size: 14px !important;
}

.footer-adult-link {
  display: block !important;
  margin-top: 1rem !important;
  font-size: 13px !important;
  text-decoration: none !important;
}

.lang-switcher {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  margin-bottom: 1rem !important;
}

.lang-link {
  color: var(--text-muted) !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.lang-link.active {
  color: var(--pink) !important;
}

.lang-separator {
  color: var(--border) !important;
}

@media (max-width: 768px) {
  /* Ensure footer has pastel background on mobile */
  .footer {
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  
  .footer-container {
    flex-direction: column !important;
    gap: 2rem !important;
    display: flex !important;
    grid-template-columns: none !important;
  }
  
  .footer-section {
    width: 100% !important;
  }
  
  /* Override any dark background from main.css on mobile */
  .footer,
  .footer * {
    background-color: transparent !important;
  }
  
  .footer {
    background: rgba(255,255,255,0.95) !important;
  }
}

/* Extra specificity for mobile devices */
@media (max-width: 576px) {
  .footer {
    background: rgba(255,255,255,0.98) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* Keep form cards and specific dark elements dark if needed, but override page backgrounds */

/* Page Background Wrapper (for landing page) */
.page-bg {
  position: relative;
  overflow: hidden;
}

.page-bg::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -150px;
  width: 800px;
  height: 800px;
  border: 80px solid rgba(255,0,127,0.08);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.page-bg::after {
  content: '';
  position: absolute;
  top: 200px;
  left: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(191,0,255,0.10) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-top: 0;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(28px, 4vw, 34px);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: clamp(24px, 3vw, 28px);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
}

/* Kicker Text */
.kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: center;
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
}

.kicker::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: rgba(255,0,127,0.4);
  border-radius: 1px;
}

a {
  color: var(--pink);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--magenta);
  opacity: 0.9;
}

a:focus {
  outline: 2px solid rgba(255,0,127,0.4);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ========================================
   LAYOUT CONTAINERS
   ======================================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 576px) {
  .container {
    padding: 0 1rem;
  }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  padding: 4rem 0 6rem;
  position: relative;
  z-index: 1;
}

.hero__grid {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 992px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.hero__brand {
  position: relative;
  z-index: 2;
}

.hero__brand h1 {
  color: var(--text);
  margin-bottom: 1rem;
}

.hero__brand .subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero__showcase {
  position: relative;
  z-index: 2;
}

/* Device Cards Showcase (4 phones in stagger) */
.device-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  position: relative;
}

.device-showcase .device-card:nth-child(1) {
  transform: translateY(0);
}

.device-showcase .device-card:nth-child(2) {
  transform: translateY(24px);
}

.device-showcase .device-card:nth-child(3) {
  transform: translateY(8px);
}

.device-showcase .device-card:nth-child(4) {
  transform: translateY(16px);
}

@media (max-width: 576px) {
  .device-showcase {
    grid-template-columns: 1fr;
  }
  
  .device-showcase .device-card {
    transform: translateY(0) !important;
  }
}

/* ========================================
   DEVICE CARD (Phone Mockup)
   ======================================== */
.device-card {
  background: var(--surface);
  border: 1px solid rgba(242,206,214,0.7);
  border-radius: var(--radius-device);
  padding: 14px 18px;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.device-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 55px rgba(37,59,86,0.15);
}

.device-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
  border-radius: var(--radius-device) var(--radius-device) 0 0;
}

.device-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

/* ========================================
   GALLERY / GRID SECTIONS
   ======================================== */
.device-grid,
.screens-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 4rem 0;
}

@media (max-width: 1280px) {
  .device-grid,
  .screens-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .device-grid,
  .screens-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 576px) {
  .device-grid,
  .screens-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 0;
  }
}

/* ========================================
   CARDS / PANELS / BOXES
   ======================================== */
.card,
.panel,
.box,
.admin-card,
.stat-card,
.dashboard-sidebar,
.dashboard-content,
.admin-sidebar,
.admin-content {
  background: var(--surface) !important;
  border-top: 1px solid rgba(242,206,214,0.7) !important;
  border-bottom: 1px solid rgba(242,206,214,0.7) !important;
  border-left: none !important;
  border-right: none !important;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: var(--text) !important;
}

.card:hover,
.panel:hover,
.box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Featured card */
.card.featured,
.panel.featured {
  border-top: 3px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.card.featured::before,
.panel.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-primary);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

/* ========================================
   BUTTONS (Pill Style)
   ======================================== */
.btn,
button,
input[type="button"],
input[type="submit"],
a.btn {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  line-height: 1.5;
}

@media (max-width: 576px) {
  .btn,
  button,
  input[type="button"],
  input[type="submit"],
  a.btn {
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* Primary Button (Gradient Pill) */
.btn-primary,
button.primary,
.cta,
.btn.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: var(--shadow-button);
}

.btn-primary:hover,
button.primary:hover,
.cta:hover,
.btn.btn-primary:hover {
  background: rgba(253,6,120,0.05) !important;
  border: 2px solid rgba(253,6,120,0.6) !important;
  color: var(--text) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(253,6,120,0.15) !important;
  text-decoration: none;
}

.btn-primary:focus,
button.primary:focus,
.cta:focus,
.btn.btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255,0,127,0.18), var(--shadow-button);
}

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

/* Secondary Button */
.btn-secondary,
button.secondary,
.btn.btn-secondary {
  background: #ffffff;
  color: var(--text);
  border: 1px solid rgba(242,206,214,0.95);
  box-shadow: 0 2px 8px rgba(37,59,86,0.06);
}

.btn-secondary:hover,
button.secondary:hover,
.btn.btn-secondary:hover {
  background: var(--surface-2);
  border-color: rgba(255,0,127,0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,59,86,0.1);
  color: var(--text);
}

.btn-secondary:focus,
button.secondary:focus,
.btn.btn-secondary:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255,0,127,0.12), 0 2px 8px rgba(37,59,86,0.06);
}

/* Outline Button (for "Incepe gratuit" - align with primary buttons) */
.btn-outline,
.btn.btn-outline {
  background: transparent !important;
  color: var(--text) !important;
  border: 2px solid rgba(253,6,120,0.4) !important;
  box-shadow: 0 2px 8px rgba(37,59,86,0.06) !important;
  padding: 12px 24px !important;
  font-weight: 600 !important;
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.btn-outline:hover,
.btn.btn-outline:hover {
  background: rgba(253,6,120,0.05) !important;
  border-color: rgba(253,6,120,0.6) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(253,6,120,0.15) !important;
  color: var(--text) !important;
}

.btn-outline:focus,
.btn.btn-outline:focus {
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(255,0,127,0.12), 0 2px 8px rgba(37,59,86,0.06) !important;
}

@media (max-width: 576px) {
  .btn-outline,
  .btn.btn-outline {
    padding: 12px 20px !important;
    font-size: 14px !important;
  }
}

/* Small buttons */
.btn-small,
.btn.btn-small {
  padding: 8px 16px;
  font-size: 14px;
}

/* ========================================
   INPUTS / FORMS
   ======================================== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
select,
textarea {
  background: #ffffff;
  border: 1px solid rgba(242,206,214,0.95);
  border-radius: var(--radius-input);
  padding: 12px 14px;
  font-family: var(--font-family);
  font-size: 15px;
  color: var(--text);
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(255,0,127,0.55);
  box-shadow: 0 0 0 4px rgba(255,0,127,0.12);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text);
  font-size: 14px;
}

/* ========================================
   NAVBAR / HEADER
   ======================================== */
header,
.header,
.navbar,
nav,
.header-container {
  background: rgba(255,255,255,0.95) !important;
  border-bottom: none !important;
  border-top: none !important;
}

/* Use backdrop-filter only on desktop */
@media (min-width: 769px) {
  header,
  .header,
  .navbar,
  nav,
  .header-container {
    background: rgba(255,255,255,0.9) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
  }
}

/* Remove all horizontal borders from header elements */
.header::before,
.header::after,
.header-container::before,
.header-container::after {
  display: none !important;
}

/* Remove all horizontal lines/borders globally */
hr {
  display: none !important;
  border: none !important;
  height: 0 !important;
  margin: 0 !important;
}

/* Remove horizontal borders from all top-level elements */
main::before,
.main::before,
section::before,
.section::before {
  display: none !important;
  border-top: none !important;
}

/* Remove ALL vertical borders (left/right) globally, EXCEPT form elements and chat elements */
*:not(input):not(select):not(textarea):not(button):not(.btn):not(.chat-limit):not(.chat-form) {
  border-left: none !important;
  border-right: none !important;
}

/* Restore borders only where explicitly needed (top/bottom for cards) */
.card,
.panel,
.box,
.device-card {
  border-left: none !important;
  border-right: none !important;
}

/* Images stats - remove left border line */
.images-stats {
  border-left: none !important;
  border-right: none !important;
}

.header a,
.navbar a,
nav a,
.header-container a,
.header-nav a,
.header-links a {
  color: var(--text) !important;
  font-weight: 600 !important;
  font-size: 15px !important;
}

.header a:hover,
.navbar a:hover,
nav a:hover,
.header-container a:hover,
.header-nav a:hover,
.header-links a:hover {
  color: var(--pink) !important;
}

/* Make navigation links specifically bolder */
.header-nav a,
.header-links a,
.header a[href*="preturi"],
.header a[href*="about"],
.header a[href*="despre"],
.header a[href*="contact"] {
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
}

header .btn-primary,
.header .btn-primary,
.navbar .btn-primary {
  box-shadow: var(--shadow-button);
}

/* Logo brand color and size */
.header-logo,
.header-logo a,
.header a[href="/"],
.brand {
  color: var(--purple) !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
}

@media (max-width: 768px) {
  .header-logo,
  .header-logo a,
  .header a[href="/"],
  .brand {
    font-size: 24px !important;
  }
}

/* ========================================
   BADGES / PILLS / CHIPS
   ======================================== */
.badge,
.pill,
.chip {
  display: inline-block;
  background: rgba(255,0,127,0.10);
  color: var(--pink);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255,0,127,0.2);
}

.badge.success {
  background: rgba(16,185,129,0.1);
  color: #10b981;
  border-color: rgba(16,185,129,0.2);
}

.badge.warning {
  background: rgba(251,191,36,0.1);
  color: #fbbf24;
  border-color: rgba(251,191,36,0.2);
}

.badge.info {
  background: rgba(191,0,255,0.1);
  color: var(--purple);
  border-color: rgba(191,0,255,0.2);
}

/* ========================================
   FOOTER CAPTION
   ======================================== */
.footer-caption {
  text-align: center;
  padding: 3rem 0;
  color: var(--text-muted);
  font-size: 14px;
  letter-spacing: 0.02em;
  margin-top: 4rem;
}

/* ========================================
   ADMIN PANEL SPECIFIC
   ======================================== */
.admin-main {
  background: var(--bg);
}

.admin-container {
  background: transparent;
}

.admin-sidebar {
  background: rgba(255,255,255,0.98);
  border-right: none !important;
  border-left: none !important;
}

/* Use backdrop-filter only on desktop */
@media (min-width: 769px) {
  .admin-sidebar {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

.admin-nav a {
  color: var(--text);
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.admin-nav a:hover {
  background: rgba(255,0,127,0.08);
  color: var(--pink);
  text-decoration: none;
}

.admin-nav a.active {
  background: var(--grad-primary);
  color: #ffffff;
  text-decoration: none;
}

.admin-content {
  background: transparent;
  color: var(--text);
}

/* ========================================
   DASHBOARD SPECIFIC
   ======================================== */
.dashboard-container {
  background: transparent !important;
}

.dashboard-sidebar,
.dashboard-content {
  background: var(--surface) !important;
  color: var(--text) !important;
}

.chat-container {
  background: rgba(255,255,255,0.95) !important;
  border-radius: var(--radius-card);
  border-top: 1px solid rgba(242,206,214,0.5) !important;
  border-bottom: 1px solid rgba(242,206,214,0.5) !important;
  border-left: none !important;
  border-right: none !important;
  color: var(--text) !important;
}

/* Use backdrop-filter only on desktop */
@media (min-width: 769px) {
  .chat-container {
    background: rgba(255,255,255,0.8) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

.images-gallery {
  background: transparent !important;
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  border-left: none !important;
  border-right: none !important;
}

/* Chat Limit - Pronounced border, COMPLETE border (ALL SIDES EQUAL) */
.chat-limit {
  background: var(--surface) !important;
  border: 3px solid rgba(253,6,120,0.4) !important;
  border-radius: var(--radius-input) !important;
  padding: 1rem !important;
  margin-bottom: 1rem !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  box-shadow: var(--shadow-soft) !important;
  box-sizing: border-box !important;
}

/* Chat Input Area - No borders */
.chat-input-area {
  border-top: none !important;
  border-bottom: none !important;
  border-left: none !important;
  border-right: none !important;
  padding-top: 0 !important;
}

/* Chat Form - Pronounced border container, COMPLETE border (ALL SIDES EQUAL) */
.chat-form {
  display: flex;
  gap: 1rem;
  background: var(--surface) !important;
  border: 3px solid rgba(253,6,120,0.4) !important;
  border-radius: var(--radius-input) !important;
  padding: 0.5rem !important;
  box-shadow: var(--shadow-soft) !important;
  box-sizing: border-box !important;
}

/* Chat Input Field */
.chat-input {
  background: transparent !important;
  border: none !important;
  border-radius: var(--radius-input) !important;
  padding: 0.75rem 1rem !important;
  font-size: 15px !important;
  color: var(--text) !important;
  flex: 1;
  outline: none !important;
}

.chat-input:focus {
  outline: none !important;
  box-shadow: none !important;
}

.chat-input::placeholder {
  color: var(--text-muted) !important;
}

/* Dashboard Tabs - Bold with pronounced border */
.dashboard-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: none !important;
  border-top: none !important;
  margin-bottom: 2rem;
  padding-bottom: 0;
}

.tab-btn {
  padding: 1rem 1.5rem !important;
  background: transparent !important;
  border: 2px solid transparent !important;
  border-bottom: none !important;
  border-radius: var(--radius-card) var(--radius-card) 0 0 !important;
  cursor: pointer;
  font-size: 16px !important;
  color: var(--text-muted) !important;
  font-weight: 700 !important;
  transition: all 0.2s ease !important;
  position: relative;
  margin-bottom: -2px;
}

.tab-btn::before {
  display: none !important;
}

.tab-btn:hover {
  color: var(--text) !important;
  background: rgba(255,255,255,0.5) !important;
  border-color: rgba(242,206,214,0.7) !important;
  border-bottom-color: transparent !important;
}

.tab-btn.active {
  color: var(--purple) !important;
  font-weight: 700 !important;
  background: var(--surface) !important;
  border: 2px solid rgba(191,0,255,0.4) !important;
  border-bottom: 2px solid var(--surface) !important;
  border-radius: var(--radius-card) var(--radius-card) 0 0 !important;
  box-shadow: 0 -2px 8px rgba(191,0,255,0.15) !important;
  position: relative;
  z-index: 1;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: -2px;
  right: -2px;
  height: 2px;
  background: var(--surface) !important;
  z-index: 2;
}

/* ========================================
   UTILITIES / HELPERS
   ======================================== */
.text-muted {
  color: var(--text-muted);
}

.text-primary {
  color: var(--pink);
}

.bg-surface {
  background: var(--surface);
}

.bg-surface-2 {
  background: var(--surface-2);
}

.border-soft {
  border-color: rgba(242,206,214,0.5);
}

.shadow-soft {
  box-shadow: var(--shadow-soft);
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
/* Override hero dark background from main.css */
.hero {
  background: transparent !important;
}

.hero::before,
.hero::after {
  display: none !important;
}

/* Override ALL sections and containers to be transparent */
section,
.container,
.wrapper,
.content-wrapper {
  background: transparent !important;
}

/* Ensure text is readable on pastel background */
p, span, div, li, td, th, label {
  color: var(--text) !important;
}

/* Override specific dark text elements */
h1, h2, h3, h4, h5, h6 {
  color: var(--text) !important;
}

@media (max-width: 768px) {
  body,
  html {
    background: #FFF0F3 !important;
    background-image:
      radial-gradient(circle at 90% 10%, rgba(255,0,127,0.12) 0 250px, transparent 251px),
      radial-gradient(circle at 10% 80%, rgba(191,0,255,0.10) 0 200px, transparent 201px) !important;
  }
  
  :root {
    --font-size-base: 14px;
    --radius-card: 20px;
    --radius-input: 12px;
  }

  h1 {
    font-size: clamp(28px, 6vw, 40px);
  }

  h2 {
    font-size: clamp(24px, 5vw, 32px);
  }

  h3 {
    font-size: clamp(20px, 4vw, 26px);
  }

  .card,
  .panel,
  .box {
    padding: 1.25rem;
    border-radius: 20px;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 32px;
  }

  .card,
  .panel,
  .box {
    padding: 1rem;
  }
  
  .hero {
    padding: 2rem 0 3rem;
  }
}

/* ========================================
   ANIMATIONS / TRANSITIONS
   ======================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

/* Optimize transitions - Only apply to interactive elements, not all elements */
a,
button,
.btn,
input,
select,
textarea,
.card:hover,
.panel:hover,
.box:hover,
.device-card:hover {
  transition-property: color, background-color, border-color, box-shadow;
  transition-duration: 0.2s;
  transition-timing-function: ease;
}

/* Transform transitions only for buttons and cards (GPU accelerated) */
.btn,
button,
.card,
.panel,
.box,
.device-card {
  transition-property: transform, box-shadow;
  transition-duration: 0.2s;
  transition-timing-function: ease;
  will-change: transform;
}

/* Performance optimization: Remove will-change when not needed */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* FINAL OVERRIDE: Ensure chat elements have uniform borders on ALL sides */
.chat-limit,
.chat-form {
  border-width: 3px !important;
  border-style: solid !important;
  border-color: rgba(253,6,120,0.4) !important;
  border-left-width: 3px !important;
  border-right-width: 3px !important;
  border-top-width: 3px !important;
  border-bottom-width: 3px !important;
}

/* Pricing CTA - Ensure all buttons have same height and alignment */
.pricing-cta .btn,
.pricing-cta .btn-primary,
.pricing-cta .btn-outline,
.pricing-cta .btn.btn-large,
.pricing-cta .btn-primary.btn-large,
.pricing-cta .btn-outline.btn-large {
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  padding: 12px 24px !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  font-weight: 600 !important;
}

/* Override btn-large padding for pricing buttons to match height */
.pricing-cta .btn-large {
  padding: 12px 24px !important;
  font-size: 15px !important;
}

/* Pricing CTA - Ensure same spacing and alignment for all cards */
.pricing-card .pricing-cta {
  margin-top: auto !important;
  padding-top: var(--space-lg) !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* Add spacer for free plan to match Pro cards with Stripe note */
.pricing-card:not(.pricing-card-pro) .pricing-cta::after {
  content: '';
  display: block;
  height: calc(var(--space-md) + 1.5rem); /* Match height of Stripe note text */
  width: 100%;
}

/* Pricing Stripe Note - Consistent spacing (only for Pro cards, inside card) */
.pricing-card-pro .pricing-stripe-note {
  margin-top: var(--space-md) !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  font-size: var(--font-size-xs) !important;
  color: var(--text-muted) !important;
  text-align: center !important;
  line-height: 1.5 !important;
  min-height: 1.5rem !important;
  display: block !important;
}

/* Hide Stripe note if it appears in free plan cards (shouldn't happen but just in case) */
.pricing-card:not(.pricing-card-pro) .pricing-stripe-note {
  display: none !important;
}

/* Hide global Stripe note that appears after all cards in pricing.php */
.pricing-grid-full + .pricing-stripe-note {
  display: none !important;
}

/* Remove horizontal borders from image gallery items */
.image-item {
  border-top: none !important;
  border-bottom: none !important;
}

/* About Page - Centered Text */
.about-page {
  padding: var(--space-xl) var(--space-md) !important;
}

.about-container {
  max-width: 800px !important;
  margin: 0 auto !important;
  text-align: center !important;
}

.about-content {
  text-align: center !important;
  max-width: 700px !important;
  margin: 0 auto !important;
}

.about-text {
  font-size: var(--font-size-base) !important;
  line-height: var(--line-height-base) !important;
  color: var(--text) !important;
  margin-bottom: var(--space-lg) !important;
  text-align: center !important;
}

.about-text:last-child {
  margin-bottom: 0 !important;
}

/* Privacy, Terms, Contact Pages - Centered Text (same style as About) */
.privacy-page,
.terms-page,
.contact-page {
  padding: var(--space-xl) var(--space-md) !important;
}

.privacy-container,
.terms-container,
.contact-container {
  max-width: 800px !important;
  margin: 0 auto !important;
  text-align: center !important;
}

.privacy-content,
.terms-content,
.contact-content {
  text-align: center !important;
  max-width: 700px !important;
  margin: 0 auto !important;
}

.privacy-content p,
.terms-content p,
.contact-content p {
  font-size: var(--font-size-base) !important;
  line-height: var(--line-height-base) !important;
  color: var(--text) !important;
  margin-bottom: var(--space-lg) !important;
  text-align: center !important;
}

.privacy-content p:last-child,
.terms-content p:last-child,
.contact-content p:last-child {
  margin-bottom: 0 !important;
}

@media (max-width: 768px) {
  .about-page,
  .privacy-page,
  .terms-page,
  .contact-page {
    padding: var(--space-lg) var(--space-md) !important;
  }
  
  .about-container,
  .privacy-container,
  .terms-container,
  .contact-container {
    max-width: 100% !important;
    padding: 0 var(--space-md) !important;
  }
  
  .about-content,
  .privacy-content,
  .terms-content,
  .contact-content {
    max-width: 100% !important;
  }
  
  .about-text,
  .privacy-content p,
  .terms-content p,
  .contact-content p {
    font-size: 15px !important;
    margin-bottom: var(--space-md) !important;
  }
}
