:root {
  --primary: #E60023;
  --primary-dark: #AD081B;
  --primary-light: #FFE0E5;
  --dark: #1a1a2e;
  --dark-2: #16213e;
  --gray: #6c757d;
  --light-gray: #f8f9fa;
  --white: #ffffff;
  --success: #28a745;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0.85rem 3rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transition: all 0.3s ease;
  border-radius: 20px;
}

.navbar.scrolled {
  padding: 0.6rem 3rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 35px rgba(0, 0, 0, 0.1);
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: -0.5px;
}

.navbar .logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(230, 0, 35, 0.3);
}

.navbar .logo-text {
  color: var(--dark);
}

.navbar .logo-text .accent {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
  justify-self: center;
}

.nav-links-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  justify-self: end;
}

.nav-links a,
.nav-links-right a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--dark);
  transition: var(--transition);
  position: relative;
}

.nav-links a:not(.btn)::after,
.nav-links-right a:not(.btn)::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover,
.nav-links-right a:not(.btn):hover {
  color: var(--primary);
}

.nav-links a:not(.btn):hover::after,
.nav-links-right a:not(.btn):hover::after {
  width: 100%;
}

/* Hamburger - hidden on desktop */
.nav-mobile-auth {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 4px;
  transition: all 0.3s ease;
  margin: 0 auto;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 0, 35, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.btn-loading {
  pointer-events: none;
  opacity: 0.7;
  position: relative;
}

.btn-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btnSpin 0.6s linear infinite;
}

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

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  padding: 6rem 2rem 4rem;
  background: linear-gradient(-45deg, #ffe8ec, #f0f4ff, #fff5f6, #e8eaff, #ffd6dd, #eaeaff);
  background-size: 300% 300%;
  animation: gradientShift 8s ease infinite;
  position: relative;
  overflow: hidden;
  gap: 4rem;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -30%;
  width: 160%;
  height: 160%;
  background: radial-gradient(circle, rgba(230, 0, 35, 0.08) 0%, transparent 60%);
  animation: floatGlow 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(8%, 8%) scale(1.15); }
  66% { transform: translate(-8%, -5%) scale(0.9); }
}

/* Animated background blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-blob-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(230, 0, 35, 0.15), transparent 70%);
  top: -100px;
  right: 10%;
  animation: blobMove1 12s ease-in-out infinite;
}

.hero-blob-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(100, 80, 255, 0.12), transparent 70%);
  bottom: -80px;
  left: 5%;
  animation: blobMove2 14s ease-in-out infinite;
}

.hero-blob-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 180, 50, 0.1), transparent 70%);
  top: 40%;
  left: 30%;
  animation: blobMove3 10s ease-in-out infinite;
}

.hero-blob-4 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0, 200, 150, 0.08), transparent 70%);
  top: 60%;
  right: 30%;
  animation: blobMove4 16s ease-in-out infinite;
}

@keyframes blobMove1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, 60px) scale(1.2); }
  66% { transform: translate(30px, -30px) scale(0.9); }
}

@keyframes blobMove2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -40px) scale(1.15); }
  66% { transform: translate(-30px, 30px) scale(0.85); }
}

@keyframes blobMove3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, 40px) scale(1.3); }
}

@keyframes blobMove4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, 50px) scale(0.8); }
  66% { transform: translate(-50px, -20px) scale(1.2); }
}

/* Subtle grid overlay */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  max-width: 560px;
  z-index: 2;
}

/* ===== Hero Visual ===== */
.hero-visual {
  position: relative;
  width: 360px;
  height: 420px;
  flex-shrink: 0;
  z-index: 2;
}

.hero-schedule-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  animation: cardFloat 5s ease-in-out infinite;
}

@keyframes cardFloat {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-12px); }
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.hero-card-dots {
  display: flex;
  gap: 0.35rem;
}

.hero-card-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
}

.hero-card-dots span:nth-child(1) { background: #ff6b6b; }
.hero-card-dots span:nth-child(2) { background: #ffd93d; }
.hero-card-dots span:nth-child(3) { background: #6bcb77; }

.hero-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  margin-left: 0.5rem;
}

.hero-card-body {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hero-pin-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
}

.hero-pin-item:nth-child(1) {
  animation: slideInPin 0.6s ease 0.2s both;
}

.hero-pin-item:nth-child(2) {
  animation: slideInPin 0.6s ease 0.4s both;
}

.hero-pin-item:nth-child(3) {
  animation: slideInPin 0.6s ease 0.6s both;
}

@keyframes slideInPin {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.hero-pin-thumb {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
}

.hero-pin-info {
  flex: 1;
  text-align: left;
}

.hero-pin-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.15rem;
}

.hero-pin-time {
  font-size: 0.72rem;
  color: var(--gray);
}

.hero-pin-status {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #6bcb77;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.hero-pin-pending {
  background: #ffd93d;
  color: var(--dark);
  animation: pulsePending 2s ease-in-out infinite;
}

@keyframes pulsePending {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* Floating icons */
.hero-float-icon {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  z-index: 3;
}

.hero-float-1 {
  top: 10px;
  right: -10px;
  animation: floatIcon 4s ease-in-out infinite;
}

.hero-float-2 {
  top: 50%;
  right: -20px;
  animation: floatIcon 4s ease-in-out infinite 1s;
}

.hero-float-3 {
  bottom: 60px;
  left: -15px;
  animation: floatIcon 4s ease-in-out infinite 0.5s;
}

.hero-float-4 {
  bottom: 10px;
  right: 20px;
  animation: floatIcon 4s ease-in-out infinite 1.5s;
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(8deg); }
}

.hero-note {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 0.5rem;
  font-style: italic;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--dark-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: var(--gray);
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* ===== Features ===== */
.features {
  padding: 5rem 3rem;
  background: var(--white);
}

.features h2::before,
.how-it-works h2::before,
.pricing h2::before,
.use-cases h2::before,
.faq-section h2::before {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 4px;
  margin: 0 auto 1.5rem;
}

.features h2,
.how-it-works h2,
.pricing h2,
.use-cases h2,
.faq-section h2 {
  text-align: center;
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  background: var(--light-gray);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  background: var(--white);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--gray);
  font-size: 1rem;
}

/* ===== Footer ===== */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 3rem 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-brand h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.95rem;
  max-width: 300px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

/* ===== Auth Pages ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, #fff5f6 0%, #fff 50%, #f0f4ff 100%);
}

.auth-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 3rem;
  max-width: 440px;
  width: 100%;
}

.auth-card h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-align: center;
}

.auth-card .subtitle {
  text-align: center;
  color: var(--gray);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.form-group input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230, 0, 35, 0.1);
}

.auth-switch {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--gray);
}

.auth-switch a {
  color: var(--primary);
  font-weight: 600;
}

.auth-back {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
}

.auth-back a {
  color: var(--gray);
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  display: none;
}

.alert-error {
  background: #fee;
  color: #c00;
  border: 1px solid #fcc;
}

.alert-success {
  background: #efe;
  color: #070;
  border: 1px solid #cfc;
}

/* ===== Dashboard Layout ===== */
.dash-layout {
  display: flex;
  min-height: 100vh;
  background: #f4f6f9;
}

/* Sidebar */
.dash-sidebar {
  width: 260px;
  background: var(--dark);
  color: var(--white);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 900;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
}

.sidebar-logo .accent {
  color: var(--primary);
}

.sidebar-close {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

.sidebar-user {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  flex-shrink: 0;
}

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

.sidebar-user-email {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.sidebar-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--primary);
}

.sidebar-link.active {
  color: var(--white);
  background: rgba(230, 0, 35, 0.1);
  border-left-color: var(--primary);
}

.sidebar-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

.sidebar-footer {
  padding: 0.5rem 0 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 850;
}

.sidebar-overlay.show {
  display: block;
}

/* Main Content */
.dash-main {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Top Bar */
.dash-topbar {
  background: var(--white);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 800;
}

.dash-topbar h1 {
  font-size: 1.4rem;
  font-weight: 800;
  flex: 1;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-credits {
  display: flex;
  gap: 0.5rem;
}

.credit-pill {
  background: var(--light-gray);
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--dark);
}

.credit-pill strong {
  color: var(--primary);
}

/* Dashboard Content */
.dash-content {
  padding: 2rem;
  max-width: 1200px;
  width: 100%;
}

/* Welcome Banner */
.welcome-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  color: var(--white);
}

.welcome-banner h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.welcome-banner p {
  font-size: 0.95rem;
  opacity: 0.9;
}

.welcome-action .btn-primary {
  background: var(--white);
  color: var(--primary);
}

.welcome-action .btn-primary:hover {
  background: var(--dark);
  color: var(--white);
}

/* Stats Grid */
.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dash-stat-card {
  background: var(--white);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.dash-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.dash-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.dash-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.icon-blue { background: #e3f0ff; }
.icon-purple { background: #f0e3ff; }
.icon-green { background: #e3ffe8; }
.icon-orange { background: #fff0e3; }

.dash-stat-trend {
  font-size: 0.75rem;
  color: var(--gray);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dash-stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}

.dash-stat-label {
  color: var(--gray);
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

/* Dashboard Sections */
.dash-section {
  margin-bottom: 2rem;
}

.dash-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.dash-section-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.see-all {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Quick Actions */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.quick-action-card {
  background: var(--white);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.quick-action-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border-color: var(--primary);
}

.quick-action-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.quick-action-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.quick-action-card p {
  color: var(--gray);
  font-size: 0.9rem;
}

/* Dashboard Table */
.dash-table-wrap {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
}

.dash-table thead {
  background: #f8f9fa;
}

.dash-table th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray);
}

.dash-table td {
  padding: 1rem 1.5rem;
  border-top: 1px solid #f0f0f0;
  font-size: 0.95rem;
}

.dash-table tbody tr:hover {
  background: #fafafa;
}

.dash-table-empty td {
  padding: 3rem !important;
}

.empty-state {
  text-align: center;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.empty-state p {
  color: var(--gray);
  margin-bottom: 1.25rem;
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-scheduled {
  background: #fff0e3;
  color: #c47300;
}

.status-posted {
  background: #e3ffe8;
  color: #0a7a30;
}

.status-failed {
  background: #fee;
  color: #c00;
}

/* ===== Dashboard Responsive ===== */

/* ===== Logout Modal ===== */
.logout-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.2s ease;
}

.logout-modal {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem 2rem 2rem;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.3s ease;
}

.logout-modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background: #fff0f1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.logout-modal h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.logout-modal p {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

.logout-modal-actions {
  display: flex;
  gap: 0.75rem;
}

.logout-modal-actions .btn {
  flex: 1;
  justify-content: center;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===== Create Pin Page ===== */

/* Connect Prompt */

/* Page Loader */
.page-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 1.25rem;
}

.page-loader p {
  color: var(--gray);
  font-size: 0.95rem;
  font-weight: 500;
}

.loader-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid #e8eaed;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: loaderSpin 0.7s linear infinite;
}

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

/* Connect Prompt */
.connect-prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.connect-prompt-card {
  text-align: center;
  background: var(--white);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  max-width: 420px;
}

.connect-prompt-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.connect-prompt-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.connect-prompt-card p {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

/* ===== Link Pinterest Page ===== */
.pinterest-connect-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.5rem 0;
  text-align: left;
}

.pinterest-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--dark);
  padding: 0.6rem 0.85rem;
  background: var(--bg-light);
  border-radius: 10px;
}

.pinterest-feature-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.pinterest-btn-icon {
  margin-right: 0.5rem;
}

.pinterest-disclaimer {
  font-size: 0.8rem !important;
  color: var(--gray) !important;
  margin-top: 1.25rem !important;
  margin-bottom: 0 !important;
  line-height: 1.5;
}

.pinterest-disclaimer a {
  color: var(--primary);
  text-decoration: none;
}

.pinterest-disclaimer a:hover {
  text-decoration: underline;
}

/* Connected State */
.pinterest-connected {
  max-width: 640px;
  margin: 0 auto;
}

.pinterest-connected-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.pinterest-connected-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.pinterest-connected-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.pinterest-connected-info {
  flex: 1;
}

.pinterest-connected-info h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.pinterest-connected-info p {
  font-size: 0.9rem;
  color: var(--gray);
}

.pinterest-status-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #16a34a;
  background: #f0fdf4;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
}

.pinterest-connected-details {
  margin-bottom: 1.5rem;
}

.pinterest-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--bg-light);
}

.pinterest-detail-row:last-child {
  border-bottom: none;
}

.pinterest-detail-label {
  font-size: 0.875rem;
  color: var(--gray);
  font-weight: 500;
}

.pinterest-detail-value {
  font-size: 0.875rem;
  color: var(--dark);
  font-weight: 600;
}

.pinterest-connected-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-danger {
  background: #dc2626;
  color: var(--white);
  border: none;
}

.btn-danger:hover {
  background: #b91c1c;
}

.pinterest-info-box {
  background: var(--white);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.pinterest-info-box h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark);
}

.pinterest-info-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pinterest-info-box li {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pinterest-info-box li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
}

@media (max-width: 640px) {
  .pinterest-connect-features {
    grid-template-columns: 1fr;
  }

  .pinterest-connected-actions {
    flex-direction: column;
  }

  .pinterest-connected-header {
    flex-wrap: wrap;
  }

  .pinterest-status-badge {
    order: 3;
    width: 100%;
    margin-top: 0.5rem;
  }
}

/* Create Pin Layout */
.create-pin-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.pin-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark);
}

/* Upload Zone */
.pin-upload-section {
  position: sticky;
  top: 90px;
  align-self: start;
}

.upload-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.upload-tab {
  flex: 1;
  padding: 0.65rem 1rem;
  border: 2px solid #e8eaed;
  background: var(--white);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  transition: var(--transition);
}

.upload-tab.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.upload-tab:hover:not(.active) {
  border-color: #d0d5dd;
  color: var(--dark);
}

.upload-url-zone {
  background: var(--white);
  border-radius: 16px;
  padding: 1.5rem;
  border: 2px dashed #d0d5dd;
}

.upload-url-zone input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid #e8eaed;
  border-radius: 10px;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
  font-family: inherit;
  margin-bottom: 0.75rem;
}

.upload-url-zone input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230, 0, 35, 0.08);
}

.upload-url-zone .btn-sm {
  width: 100%;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.upload-url-zone .btn-sm:hover {
  background: var(--primary);
  color: var(--white);
}

.upload-url-zone .image-preview {
  margin-top: 1rem;
}

.upload-zone {
  background: var(--white);
  border: 2px dashed #d0d5dd;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
}

.upload-zone:hover {
  border-color: var(--primary);
  background: #fff8f9;
}

.upload-zone.drag-active {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: scale(1.02);
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.upload-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.upload-text {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
}

.upload-hint {
  font-size: 0.8rem;
  color: var(--gray);
}

.image-preview {
  width: 100%;
}

.image-preview img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  max-height: 320px;
}

/* Form Section */
.pin-form-section {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.pin-field {
  margin-bottom: 1.25rem;
}

.pin-field label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.pin-label-required {
  color: var(--primary);
  font-size: 0.8rem;
}

.pin-field input,
.pin-field select,
.pin-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid #e8eaed;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
  font-family: inherit;
  background: var(--white);
  color: var(--dark);
}

.pin-field input:focus,
.pin-field select:focus,
.pin-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230, 0, 35, 0.08);
  background: #fff;
}

.pin-field select option {
  padding: 0.5rem;
}

.pin-field select option[value="__new__"] {
  font-weight: 700;
  color: var(--primary);
  border-top: 1px solid #e8eaed;
}

.pin-field textarea {
  resize: vertical;
  min-height: 80px;
}

.new-board-field {
  animation: slideDown 0.3s ease;
  overflow: hidden;
}

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

.pin-field input::placeholder,
.pin-field textarea::placeholder {
  color: #aaa;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f0f0f0;
}

@media (max-width: 900px) {
  .create-pin-layout {
    grid-template-columns: 1fr;
  }

  .pin-upload-section {
    position: static;
  }

  .upload-zone {
    min-height: 200px;
  }
}

@media (max-width: 768px) {
  .pin-form-section {
    padding: 1.5rem;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .form-actions .btn {
    width: 100%;
  }
}

/* Modern Pins Table */
.pins-table th {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  color: var(--gray);
  font-weight: 700;
}

.pins-table th.text-right,
.pins-table td.text-right {
  text-align: right;
}

.pin-cell {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.pin-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #e8eaed;
}

.pin-thumb-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.pin-cell-info {
  min-width: 0;
}

.pin-cell-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.pin-cell-desc {
  font-size: 0.8rem;
  color: var(--gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  margin-top: 2px;
}

.pin-board-badge {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  background: #f0f0f0;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--dark);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pin-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: var(--transition);
}

.pin-link:hover {
  text-decoration: underline;
}

.text-muted {
  color: #ccc;
}

.pin-date {
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 500;
}

.pin-actions {
  display: flex;
  gap: 0.4rem;
  justify-content: flex-end;
}

.pin-action-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: none;
  background: #f5f5f5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
}

.pin-action-btn.edit:hover {
  background: #e8f0fe;
  transform: scale(1.1);
}

.pin-action-btn.delete:hover {
  background: #fee;
  transform: scale(1.1);
}

.table-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
}

.table-loader p {
  color: var(--gray);
  font-size: 0.9rem;
  font-weight: 500;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  background: var(--white);
  color: var(--dark);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.6rem;
  transition: var(--transition);
}

.page-btn:hover:not(:disabled):not(.active) {
  border-color: var(--primary);
  color: var(--primary);
}

.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-ellipsis {
  color: var(--gray);
  font-size: 0.85rem;
  padding: 0 0.3rem;
}

.edit-pin-modal {
  max-width: 480px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
}

.edit-pin-modal .pin-field {
  margin-bottom: 0;
}

.edit-pin-modal .pin-field label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.edit-pin-modal .pin-field input,
.edit-pin-modal .pin-field textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
}

.edit-pin-modal .pin-field input:focus,
.edit-pin-modal .pin-field textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.edit-pin-modal .pin-label-required {
  color: #e74c3c;
}

/* ===== Dashboard Responsive ===== */
@media (max-width: 768px) {
  .dash-sidebar {
    transform: translateX(-100%);
  }

  .dash-sidebar.open {
    transform: translateX(0);
  }

  .sidebar-close {
    display: block;
  }

  .dash-main {
    margin-left: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .dash-content {
    padding: 1.25rem;
  }

  .welcome-banner {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
    padding: 1.5rem;
  }

  .dash-topbar {
    padding: 0.85rem 1.25rem;
  }

  .dash-topbar h1 {
    font-size: 1.1rem;
  }

  .topbar-credits {
    flex-direction: column;
    gap: 0.25rem;
  }

  .credit-pill {
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
  }
}

/* ===== Hero Badge ===== */
.hero-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* ===== Section Subtitle ===== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.4rem 1.25rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 1.1rem;
  margin-bottom: 0;
  margin-top: 0.5rem;
}

/* ===== Stats Bar ===== */
.stats-bar {
  background: var(--dark);
  padding: 2.5rem 3rem;
}

.stats-bar-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.stat-bar-item {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-bar-item:last-child {
  border-right: none;
}

.stat-bar-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
}

.stat-bar-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* ===== How It Works ===== */
.how-it-works {
  padding: 5rem 3rem;
  background: linear-gradient(180deg, #f8f9ff 0%, #fff 100%);
}

.steps-container {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.step-card {
  flex: 1;
  min-width: 250px;
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  margin: 0.5rem;
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.step-icon {
  font-size: 3rem;
  margin: 1rem 0 1rem;
}

.step-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.step-card p {
  color: var(--gray);
  font-size: 0.95rem;
}

.step-connector {
  display: flex;
  align-items: center;
  color: var(--primary);
  font-size: 1.5rem;
  opacity: 0.4;
}

/* ===== Pricing ===== */
.pricing {
  padding: 5rem 3rem;
  background: var(--white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  border: 2px solid #eee;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.pricing-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.pricing-popular {
  border-color: var(--primary);
  transform: scale(1.05);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  padding: 0.3rem 1.25rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-header h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--dark);
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray);
}

.pricing-features {
  list-style: none;
  margin: 2rem 0;
  text-align: left;
}

.pricing-features li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.95rem;
  color: var(--dark);
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* ===== Use Cases ===== */
.use-cases {
  padding: 5rem 3rem;
  background: linear-gradient(180deg, #fff 0%, #f9f9fb 100%);
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.use-case-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.use-case-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.use-case-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.use-case-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.use-case-card p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.use-case-card ul {
  padding-left: 1.2rem;
}

.use-case-card ul li {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ===== FAQ Section ===== */
.faq-section {
  padding: 5rem 3rem;
  background: #f9f9fb;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: var(--transition);
}

.faq-item:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  text-align: left;
  font-family: inherit;
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: var(--transition);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.5rem;
}

.faq-answer p {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.7;
  padding-bottom: 1.25rem;
  margin: 0;
}

.faq-answer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.faq-answer a:hover {
  text-decoration: underline;
}

/* ===== CTA Section ===== */
.cta-section {
  padding: 5rem 3rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.cta-content .btn-primary {
  background: var(--white);
  color: var(--primary);
}

.cta-content .btn-primary:hover {
  background: var(--dark);
  color: var(--white);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .navbar {
    padding: 0.8rem 1.25rem;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
    order: 3;
  }

  .nav-links {
    order: 4;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    margin-top: 0;
  }

  .nav-links.open {
    max-height: 420px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    padding: 0.6rem 0;
  }

  .nav-links {
    gap: 0;
    font-size: 0.9rem;
  }

  .nav-links-right {
    display: none;
  }

  .nav-mobile-auth {
    display: block;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(0,0,0,0.08);
  }

  .nav-mobile-auth .btn {
    width: 100%;
    margin-top: 0.5rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero-visual {
    display: none;
  }

  .hero {
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .stats-bar-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .stat-bar-item {
    border-right: none;
  }

  .step-connector {
    display: none;
  }

  .pricing-popular {
    transform: none;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .features,
  .how-it-works,
  .pricing,
  .use-cases,
  .faq-section,
  .cta-section {
    padding: 3rem 1.5rem;
  }

  .auth-card {
    padding: 2rem;
  }

  .dashboard-container {
    padding: 1.5rem;
  }

  .cta-content h2 {
    font-size: 1.75rem;
  }
}

/* ===== Legal Pages ===== */
.legal-page {
  padding: 6rem 1.5rem 3rem;
  background: #f9f9fb;
  min-height: 100vh;
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.legal-container h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.legal-updated {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal-container h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-container h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.legal-container p {
  color: #444;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.legal-container ul {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
}

.legal-container ul li {
  color: #444;
  line-height: 1.7;
  margin-bottom: 0.3rem;
}

.legal-container a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.legal-container a:hover {
  text-decoration: underline;
}

.legal-container code {
  background: #f0f0f0;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-family: monospace;
}

/* ===== Contact Page ===== */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-item h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
}

.contact-item p {
  margin: 0;
  color: #555;
  font-size: 0.9rem;
}

.contact-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
}

.contact-form input,
.contact-form textarea {
  padding: 0.7rem 0.9rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* ===== Cookie Consent Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  color: var(--white);
  padding: 1rem 1.5rem;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner-text p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
}

.cookie-banner-text a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.cookie-banner-text a:hover {
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cookie-banner .btn-outline {
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
}

.cookie-banner .btn-outline:hover {
  background: rgba(255,255,255,0.1);
}

@media (max-width: 600px) {
  .legal-container {
    padding: 1.5rem;
  }

  .cookie-banner-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-banner-actions {
    width: 100%;
    justify-content: center;
  }
}
