: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%;
}

/* ===== 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: center;
  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;
}

@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); }
}

.hero-content {
  max-width: 700px;
}

.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: center;
  flex-wrap: wrap;
}

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

.features h2::before,
.how-it-works h2::before,
.pricing h2::before,
.testimonials 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,
.testimonials 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;
}

/* 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;
}

/* ===== Testimonials ===== */
.testimonials {
  padding: 5rem 3rem;
  background: linear-gradient(180deg, #fff 0%, #fff5f6 100%);
}

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

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.testimonial-stars {
  color: #ffc107;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testimonial-card p {
  color: var(--dark);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.testimonial-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.testimonial-role {
  color: var(--gray);
  font-size: 0.85rem;
}

/* ===== 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);
}

/* ===== Contact Page ===== */
.contact-section {
  padding: 8rem 2rem 4rem;
  min-height: 100vh;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 4rem;
}

.contact-header h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1rem;
}

.contact-subtitle {
  font-size: 1.2rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: var(--transition);
}

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

.contact-info-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--white));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.contact-info-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

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

.contact-form-wrapper {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

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

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

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

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

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-message {
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  margin-top: 1rem;
}

.form-message-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem 1.5rem;
  }

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

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

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

  .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,
  .testimonials,
  .cta-section {
    padding: 3rem 1.5rem;
  }

  .auth-card {
    padding: 2rem;
  }

  .dashboard-container {
    padding: 1.5rem;
  }

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

  .contact-section {
    padding: 6rem 1.5rem 3rem;
  }

  .contact-header h1 {
    font-size: 2rem;
  }

  .contact-subtitle {
    font-size: 1rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-info-card {
    padding: 1.5rem;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
  }
}
