/*
Theme Name: Modo Consorcio
Theme URI: https://modoconsorcio.com.ar
Author: Osvaldo
Description: Plataforma integral de gestion de consorcios
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: modo-consorcio
Tags: consorcio, gestion, mantenimiento
*/

/* ========================================
   DESIGN SYSTEM — ConsorcioApp
   ======================================== */

/* --- CSS Variables --- */
:root {
  /* Colors */
  --bg-primary: #0f1117;
  --bg-secondary: #1a1d27;
  --bg-card: #1e2230;
  --bg-card-hover: #252a3a;
  --bg-input: #161922;
  --bg-sidebar: #13161f;
  --bg-glass: rgba(30, 34, 48, 0.7);

  --text-primary: #e8eaf0;
  --text-secondary: #9ca3b8;
  --text-muted: #636b82;
  --text-heading: #ffffff;

  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.25);

  --success: #22c55e;
  --success-bg: rgba(34, 197, 94, 0.12);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.12);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.12);
  --info: #3b82f6;
  --info-bg: rgba(59, 130, 246, 0.12);

  /* Calendar colors */
  --cal-request: #ef4444;
  --cal-visit: #3b82f6;
  --cal-execute: #22c55e;

  --border: rgba(255, 255, 255, 0.06);
  --border-focus: rgba(99, 102, 241, 0.5);

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;

  /* Spacing */
  --sidebar-width: 260px;
  --sidebar-collapsed: 72px;
  --topbar-height: 64px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px var(--accent-glow);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.25s;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: 1.3;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

a:hover {
  color: var(--accent-hover);
}

/* --- Layout --- */
#app {
  display: flex;
  min-height: 100vh;
}

/* --- Sidebar --- */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform var(--duration) var(--ease);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 28px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.sidebar-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-secondary);
  margin: 4px 0;
  border-radius: 2px;
  transition: var(--duration) var(--ease);
}

.sidebar-nav {
  flex: 1;
  padding: 12px 10px;
  overflow-y: auto;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  transition: all var(--duration) var(--ease);
  position: relative;
  margin-bottom: 2px;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

.nav-link.active {
  color: var(--accent);
  background: var(--accent-glow);
}

.nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 24px;
  background: var(--accent);
  border-radius: 0 4px 4px 0;
}

.nav-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 16px 18px;
  border-top: 1px solid var(--border);
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
}

.user-role {
  font-size: 11px;
  color: var(--text-muted);
}

/* --- Main Content --- */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  height: var(--topbar-height);
  background: rgba(15, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 28px;
  z-index: 50;
  gap: 16px;
}

.topbar-title {
  font-size: 20px;
  font-weight: 600;
  flex: 1;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-primary);
  cursor: pointer;
}

.notification-bell {
  position: relative;
  font-size: 20px;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background var(--duration) var(--ease);
}

.notification-bell:hover {
  background: var(--bg-card);
}

.notif-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.page-content {
  flex: 1;
  padding: 28px;
  animation: fadeIn 0.3s var(--ease);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--duration) var(--ease);
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

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

.card-title {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #a78bfa);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.stat-card:hover::after {
  transform: scaleX(1);
}

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

.stat-icon {
  font-size: 32px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  flex-shrink: 0;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-heading);
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Forms --- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
  display: block;
  width: 100%;
}

.form-input,
.form-select,
.form-textarea {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  transition: all var(--duration) var(--ease);
  width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

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

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239ca3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* --- Checkbox Category --- */
.category-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 12px;
  transition: all var(--duration) var(--ease);
}

.category-group.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-glow);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  transition: background var(--duration) var(--ease);
}

.category-header:hover {
  background: var(--bg-card-hover);
}

.category-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid var(--text-muted);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--duration) var(--ease);
  cursor: pointer;
}

.category-checkbox.checked {
  background: var(--accent);
  border-color: var(--accent);
}

.category-checkbox.checked::after {
  content: '✓';
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.category-title {
  font-weight: 600;
  font-size: 14px;
  flex: 1;
}

.category-icon {
  font-size: 18px;
}

.category-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.3s var(--ease);
}

.category-body.open {
  max-height: 800px;
  padding: 0 20px 20px;
}

.category-body .form-textarea {
  margin-top: 8px;
}

/* Sub items within category */
.sub-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.sub-item:last-child {
  border-bottom: none;
}

.sub-item input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  margin-top: 2px;
  cursor: pointer;
}

.sub-item-label {
  font-size: 13px;
  color: var(--text-primary);
  flex: 1;
}

.sub-item-obs {
  margin-left: 28px;
  margin-top: 6px;
  display: none;
}

.sub-item-obs.visible {
  display: block;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #818cf8);
  color: #fff;
  box-shadow: 0 2px 12px var(--accent-glow);
}

.btn-primary:hover {
  box-shadow: 0 4px 20px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #34d399);
  color: #fff;
}

.btn-success:hover {
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
  transform: translateY(-1px);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger), #f87171);
  color: #fff;
}

.btn-warning {
  background: linear-gradient(135deg, var(--warning), #fbbf24);
  color: #1a1d27;
}

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

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-sm);
}

/* --- Tables --- */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

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

.data-table thead {
  background: var(--bg-secondary);
}

.data-table th {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 12px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}

.data-table tbody tr {
  transition: background var(--duration) var(--ease);
}

.data-table tbody tr:hover {
  background: var(--bg-card-hover);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.badge-success {
  background: var(--success-bg);
  color: var(--success);
}

.badge-warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.badge-danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.badge-info {
  background: var(--info-bg);
  color: var(--info);
}

/* --- Toast Notifications --- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 320px;
  max-width: 440px;
  animation: slideInRight 0.35s var(--ease);
  backdrop-filter: blur(12px);
}

.toast.toast-exit {
  animation: slideOutRight 0.3s var(--ease) forwards;
}

.toast-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.toast-message {
  flex: 1;
  font-size: 13px;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
}

.toast-success {
  border-left: 3px solid var(--success);
}

.toast-error {
  border-left: 3px solid var(--danger);
}

.toast-info {
  border-left: 3px solid var(--info);
}

.toast-email {
  border-left: 3px solid var(--warning);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* --- Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s var(--ease);
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 640px;
  max-height: 80vh;
  overflow-y: auto;
  animation: scaleIn 0.3s var(--ease);
}

@keyframes scaleIn {
  from {
    transform: scale(0.92);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  font-size: 18px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease);
}

.modal-close:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* --- Calendar --- */
.calendar {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-secondary);
}

.calendar-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
}

.calendar-nav {
  display: flex;
  gap: 8px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-day-header {
  padding: 10px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.calendar-day {
  min-height: 90px;
  padding: 8px;
  border: 1px solid var(--border);
  border-top: none;
  border-left: none;
  transition: background var(--duration) var(--ease);
  position: relative;
}

.calendar-day:nth-child(7n+1) {
  border-left: none;
}

.calendar-day:hover {
  background: var(--bg-card-hover);
}

.calendar-day.today {
  background: var(--accent-glow);
}

.calendar-day.other-month {
  opacity: 0.3;
}

.day-number {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.day-event {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: transform var(--duration) var(--ease);
}

.day-event:hover {
  transform: scale(1.02);
}

.day-event.event-request {
  background: rgba(239, 68, 68, 0.2);
  color: var(--cal-request);
  border-left: 2px solid var(--cal-request);
}

.day-event.event-visit {
  background: rgba(59, 130, 246, 0.2);
  color: var(--cal-visit);
  border-left: 2px solid var(--cal-visit);
}

.day-event.event-execute {
  background: rgba(34, 197, 94, 0.2);
  color: var(--cal-execute);
  border-left: 2px solid var(--cal-execute);
}

/* Calendar Legend */
.calendar-legend {
  display: flex;
  gap: 24px;
  padding: 14px 20px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-dot.dot-request {
  background: var(--cal-request);
}

.legend-dot.dot-visit {
  background: var(--cal-visit);
}

.legend-dot.dot-execute {
  background: var(--cal-execute);
}

/* --- Budget Section --- */
.budget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.budget-item {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
}

.budget-item label {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 600;
  text-transform: uppercase;
}

.budget-item input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 13px;
  color: var(--text-primary);
  width: 100%;
  font-family: var(--font-body);
}

.budget-item input:focus {
  outline: none;
  border-color: var(--border-focus);
}

/* --- Confirmation Section --- */
.confirm-section {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.confirm-card {
  flex: 1;
  min-width: 250px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.confirm-card h4 {
  font-size: 13px;
  margin-bottom: 8px;
}

.confirm-card .btn {
  margin-top: 8px;
}

.confirm-card .confirm-date {
  margin-top: 10px;
}

.confirm-card.confirmed {
  border-color: var(--success);
  background: var(--success-bg);
}

/* --- Map Container --- */
.map-container {
  width: 100%;
  height: 250px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-input);
  margin-top: 8px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* --- Section Dividers --- */
.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0 20px;
}

.section-divider h2 {
  font-size: 18px;
  white-space: nowrap;
}

.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state-text {
  font-size: 15px;
  margin-bottom: 20px;
}

/* --- Utility --- */
.mt-sm {
  margin-top: 8px;
}

.mt-md {
  margin-top: 16px;
}

.mt-lg {
  margin-top: 24px;
}

.mb-sm {
  margin-bottom: 8px;
}

.mb-md {
  margin-bottom: 16px;
}

.mb-lg {
  margin-bottom: 24px;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gap-sm {
  gap: 8px;
}

.gap-md {
  gap: 16px;
}

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

.text-success {
  color: var(--success);
}

.text-danger {
  color: var(--danger);
}

.text-warning {
  color: var(--warning);
}

.text-info {
  color: var(--info);
}

.text-muted {
  color: var(--text-muted);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.18);
}

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

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

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

  .mobile-menu-btn {
    display: block;
  }

  .page-content {
    padding: 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .calendar-day {
    min-height: 60px;
    padding: 4px;
  }

  .day-event {
    font-size: 8px;
    padding: 1px 4px;
  }

  .calendar-legend {
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* --- Print --- */
@media print {

  .sidebar,
  .topbar,
  .toast-container {
    display: none !important;
  }

  .main-content {
    margin-left: 0 !important;
  }
}

/* --- Section Header --- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-header h2 {
  font-size: 22px;
}

/* --- Search Bar --- */
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 14px;
  width: 280px;
  transition: border-color var(--duration) var(--ease);
}

.search-bar:focus-within {
  border-color: var(--border-focus);
}

.search-bar input {
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 10px 0;
  flex: 1;
  outline: none;
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

.search-icon {
  color: var(--text-muted);
  font-size: 14px;
}

/* --- Tabs --- */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-secondary);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  overflow-x: auto;
}

.tab {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  border: none;
  background: none;
  font-family: var(--font-body);
  white-space: nowrap;
}

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

.tab.active {
  background: var(--accent);
  color: #fff;
}

/* --- Loading Spinner --- */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* --- Action Bar --- */
.action-bar {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

/* --- Email Log Entry --- */
.email-entry {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
}

.email-entry-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.email-to {
  font-weight: 600;
  font-size: 13px;
  color: var(--accent);
}

.email-date {
  font-size: 11px;
  color: var(--text-muted);
}

.email-subject {
  font-size: 12px;
  color: var(--text-secondary);
}

/* --- Chip / Tag --- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.chip-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
}

.chip-remove:hover {
  color: var(--danger);
}

/* --- Login float animation --- */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* full-width form group */
.form-group.full-width {
  grid-column: 1 / -1;
}

.btn-info {
  background: linear-gradient(135deg, var(--info), #60a5fa);
  color: #fff;
}

/* ========================================
   PREMIUM LANDING PAGE
   ======================================== */
.landing {
  background: #050505;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: 'Outfit', sans-serif;
}

.gradient-text {
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Nav */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.6);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s;
}

.landing-nav.scrolled {
  background: rgba(5, 5, 5, 0.9);
}

.landing-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-logo .logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #fff;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.landing-nav-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.landing-nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #6366f1;
  transition: width 0.3s;
}

.landing-nav-links a:hover {
  color: #fff;
}

.landing-nav-links a:hover::after {
  width: 100%;
}

.landing-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

/* Hero Premium */
.landing-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  overflow: hidden;
}

.landing-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: transform;
  /* Hint for GPU acceleration */
  transform-style: preserve-3d;
}

.landing-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Removed animation: slowZoom to control via JS scroll */
}

.landing-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
  padding-top: 60px;
  /* Keep original padding-top */
  will-change: transform, opacity;
}

/* Scroll Effects Classes */
.parallax-element {
  will-change: transform;
  transition: transform 0.1s cubic-bezier(0, 0, 0.2, 1);
  /* Smooth but responsive */
}

/* Gradient Overlay for Cinema Feel */
.landing-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0.5) 0%, rgba(5, 5, 6, 0.8) 80%, #050505 100%);
  z-index: 1;
  pointer-events: none;
}

.landing-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fbbf24;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 32px;
  letter-spacing: 1px;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.landing-hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -2px;
}

.landing-hero-sub {
  font-size: clamp(18px, 2vw, 22px);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 48px;
  font-weight: 300;
}

.landing-hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.btn-premium {
  background: #fff;
  color: #000;
  font-weight: 600;
  padding: 18px 48px;
  border-radius: 100px;
  transition: transform 0.3s, box-shadow 0.3s;
  font-size: 16px;
}

.btn-premium:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-premium-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 600;
  padding: 18px 48px;
  border-radius: 100px;
  transition: all 0.3s;
  font-size: 16px;
  backdrop-filter: blur(10px);
}

.btn-premium-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Building Grid */
.building-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 100px 40px;
  max-width: 1400px;
  margin: 0 auto;
  gap: 60px;
  align-items: center;
}

.building-info h2 {
  font-size: 48px;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.building-info p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 32px;
}

/* Simulated building photo */
.building-photo {
  width: 100%;
  height: 600px;
  border-radius: 20px;
  background: linear-gradient(45deg, #1f2937, #111827);
  position: relative;
  overflow: hidden;
}

.building-photo::before {
  content: '🏢 Premium Building Photo';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.1);
  font-size: 24px;
  font-weight: 700;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  margin: 20px;
  border-radius: 12px;
}

/* Features Premium */
.premium-features {
  padding: 120px 40px;
  background: #0a0a0a;
}

.features-header {
  text-align: center;
  margin-bottom: 80px;
}

.features-header h2 {
  font-size: 48px;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.features-grid-prem {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.feature-card-prem {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 50px 40px;
  border-radius: 24px;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.feature-card-prem:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-10px);
  border-color: rgba(99, 102, 241, 0.3);
}

.feature-card-prem h3 {
  font-size: 24px;
  margin-bottom: 16px;
  color: #fff;
}

.feature-card-prem p {
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  font-size: 16px;
}

.feature-icon-prem {
  font-size: 40px;
  margin-bottom: 30px;
  display: inline-block;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), transparent);
  padding: 16px;
  border-radius: 20px;
  color: #818cf8;
}

/* Process Premium */
.process-prem {
  padding: 120px 40px;
}

.process-steps {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 60px;
}

.process-step {
  max-width: 250px;
  text-align: center;
  position: relative;
}

.process-step-num {
  font-size: 80px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
  margin-bottom: -40px;
  z-index: 0;
  position: relative;
}

.process-step-content {
  position: relative;
  z-index: 1;
  background: rgba(30, 30, 35, 0.6);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s;
}

.process-step:hover .process-step-content {
  transform: translateY(-10px);
  border-color: rgba(99, 102, 241, 0.3);
}

.process-step h3 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 12px;
}

.process-step p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

/* Testimonials */
.testimonials-prem {
  padding: 120px 40px;
  background: linear-gradient(to bottom, #050505, #0f0f12);
}

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

.testim-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 40px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.testim-card::before {
  content: '"';
  font-size: 80px;
  position: absolute;
  top: 20px;
  left: 20px;
  color: rgba(255, 255, 255, 0.05);
  font-family: serif;
  line-height: 0.5;
}

.testim-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.testim-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testim-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 18px;
}

.testim-info h5 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 4px;
}

.testim-info span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* App Download */
.app-cta {
  max-width: 1200px;
  margin: 100px auto 0;
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  border-radius: 30px;
  padding: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.app-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent 70%);
}

.app-cta-content {
  position: relative;
  z-index: 2;
}

.app-cta h2 {
  font-size: 42px;
  color: #fff;
  margin-bottom: 20px;
}

.app-cta p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto 40px;
}

.app-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-store {
  background: #000;
  color: #fff;
  border-radius: 12px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s;
}

.btn-store:hover {
  background: #1a1a1a;
  transform: translateY(-3px);
  border-color: #fff;
}

.store-icon {
  font-size: 24px;
}

.store-text {
  text-align: left;
}

.store-text span {
  display: block;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
}

.store-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
  .building-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .building-photo {
    height: 400px;
  }

  .app-cta {
    padding: 40px 20px;
  }

  .app-cta h2 {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .landing-nav-links {
    display: none;
  }

  .landing-menu-btn {
    display: block;
  }

  .landing-hero-title {
    font-size: 48px;
  }

  .landing-hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }

  .btn-premium,
  .btn-premium-outline {
    width: 100%;
    padding: 16px;
  }
}

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

/* Testimonials Marquee */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  margin-top: 60px;
}

.marquee-content {
  display: inline-flex;
  animation: marquee 40s linear infinite;
}

.marquee-content:hover {
  animation-play-state: paused;
}

.testim-card-sm {
  width: 350px;
  background: rgba(255, 255, 255, 0.03);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-right: 20px;
  white-space: normal;
  /* Allow text wrap inside card */
  flex-shrink: 0;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Benefits Tabs */
.benefits-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.ben-tab {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 12px 24px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  font-size: 16px;
}

.ben-tab.active,
.ben-tab:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.ben-content {
  display: none;
  animation: fadeUp 0.5s;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.ben-content.active {
  display: block;
}

.ben-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.ben-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 12px;
}

.ben-icon {
  font-size: 30px;
  margin-bottom: 10px;
  display: block;
}

/* Contact Form */
.contact-glass {
  background: rgba(30, 30, 35, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 24px;
  max-width: 600px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media(max-width:600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.contact-input,
.contact-textarea,
.contact-select {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  transition: border 0.3s;
}

.contact-input:focus,
.contact-textarea:focus,
.contact-select:focus {
  border-color: #a5b4fc;
  outline: none;
}

.contact-textarea {
  height: 120px;
  resize: vertical;
  margin-top: 10px;
}

.contact-label {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 6px;
  text-align: left;
}

/* Testimonials Carousel */
.carousel-container {
  position: relative;
  max-width: 1300px;
  margin: 40px auto;
  padding: 0 50px;
  /* Space for buttons */
}

.carousel-track {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 20px 0;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.testim-card-carousel {
  flex: 0 0 calc(33.333% - 20px);
  min-width: 300px;
  background: rgba(255, 255, 255, 0.03);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s, background 0.3s;
}

.testim-card-carousel:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(99, 102, 241, 0.3);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10;
}

.carousel-btn:hover {
  background: #fff;
  color: #000;
}

.carousel-btn.prev {
  left: 0;
}

.carousel-btn.next {
  right: 0;
}

@media (max-width: 1024px) {
  .testim-card-carousel {
    flex: 0 0 calc(50% - 15px);
  }
}

@media (max-width: 768px) {
  .testim-card-carousel {
    flex: 0 0 100%;
  }

  .carousel-container {
    padding: 0 20px;
  }

  .carousel-btn {
    display: none;
    /* Swipe on mobile */
  }
}

/* Testimonials Stars */
.testim-stars {
  color: #fbbf24;
  margin-bottom: 12px;
  font-size: 14px;
  letter-spacing: 2px;
}

/* Process Modal */
.process-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.process-modal-content {
  background: #1e1e24;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 40px;
}

.process-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.process-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media(max-width:768px) {
  .process-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact "Hablemos" Section */
.contact-modern {
  position: relative;
  padding: 100px 20px;
  overflow: hidden;
  background: #000;
  text-align: center;
}

.contact-blobs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.blob-purple {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: rgba(88, 28, 135, 0.2);
  border-radius: 50%;
  filter: blur(100px);
}

.blob-pink {
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(131, 24, 67, 0.2);
  border-radius: 50%;
  filter: blur(100px);
}

.contact-content {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-header h2 {
  font-size: 48px;
  /** 4xl/5xl equivalent */
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(to right, #c084fc, #db2777);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
}

.contact-header p {
  font-size: 20px;
  color: #9ca3af;
  max-width: 600px;
  margin: 0 auto 60px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto 60px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  transition: all 0.3s;
  text-decoration: none;
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.contact-card.insta:hover {
  border-color: rgba(236, 72, 153, 0.5);
}

.contact-card.email:hover {
  border-color: rgba(168, 85, 247, 0.5);
}

.contact-card.wa:hover {
  border-color: rgba(34, 197, 94, 0.5);
}

.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: transform 0.3s;
}

.contact-card:hover .icon-circle {
  transform: scale(1.1);
}

.icon-insta {
  background: linear-gradient(to top right, #eab308, #ef4444, #a855f7);
}

.icon-email {
  background: #9333ea;
}

.icon-wa {
  background: #22c55e;
}

.contact-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.contact-card p {
  color: #9ca3af;
  font-size: 14px;
}

.wa-cta-banner {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(to right, rgba(88, 28, 135, 0.4), rgba(131, 24, 67, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 48px 32px;
  position: relative;
  overflow: hidden;
}

.wa-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 6px -1px rgba(34, 197, 94, 0.2);
}

.wa-cta-btn:hover {
  background: #1faf55;
  transform: scale(1.05);
}

/* Footer Premium */
.footer-prem {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 80px 40px;
  margin-top: 0;
  /* Remove top margin since contact section has padding */
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 60px;
}

.footer-col h4 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 24px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  margin-bottom: 12px;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: #fff;
}

/* Login Modal - same as before but dark theme compatible */
.login-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s;
}

.login-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 420px;
  position: relative;
  animation: scaleIn 0.3s var(--ease);
}

.login-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  transition: color 0.2s;
}

.login-modal-close:hover {
  color: var(--text-primary);
}

/* Responsive Landing */
@media (max-width: 768px) {
  .landing-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px;
    gap: 12px;
  }

  .landing-nav-links.open {
    display: flex;
  }

  .landing-menu-btn {
    display: block;
  }

  .landing-steps {
    flex-direction: column;
    align-items: center;
  }

  .step-arrow {
    transform: rotate(90deg);
    margin: 0;
  }

  .step-card {
    max-width: 100%;
  }

}


/* Testimonials React Style */
.testimonials-react {
  padding: 100px 20px;
  background: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.react-testim-header {
  text-align: center;
  margin-bottom: 60px;
}

.react-testim-header h2 {
  font-family: 'Outfit', serif;
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #fff;
}

.react-testim-header p {
  color: #9ca3af;
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

.react-testim-grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  transition: opacity 0.5s ease;
}

.react-testim-card {
  flex: 1;
  min-width: 300px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  transition: background 0.3s;
}

.react-testim-card:hover {
  background: rgba(255, 255, 255, 0.04);
}

.react-quote-icon {
  color: rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
}

.react-testim-text {
  color: #d1d5db;
  font-size: 18px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 32px;
  flex-grow: 1;
}

.react-testim-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 16px;
}

.react-testim-footer h4 {
  font-family: 'Outfit', serif;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  margin-bottom: 4px;
}

.react-testim-footer span {
  font-family: monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #737373;
}

.react-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}

.react-star {
  width: 14px;
  height: 14px;
  fill: #fff;
  color: #fff;
}

/* Navigation Controls */
.react-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
}

.react-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.react-btn:hover {
  background: #fff;
  color: #000;
}

.react-dots {
  display: flex;
  gap: 8px;
}

.react-dot {
  height: 6px;
  width: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s;
}

.react-dot.active {
  width: 32px;
  background: #fff;
}

@media(max-width: 768px) {
  .react-testim-grid {
    flex-direction: column;
    align-items: center;
  }

  .react-testim-card {
    width: 100%;
    max-width: 400px;
    display: none;
    /* JS will toggle active one */
  }

  .react-testim-card.active {
    display: flex;
    animation: fadeIn 0.5s ease;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Process Modal Specifics */
.process-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.process-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaa;
  padding: 12px 24px;
  border-radius: 30px;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
}

.process-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.process-tab.active {
  background: #fff;
  color: #000;
  border-color: #fff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.process-role-content {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.process-role-content.active {
  display: block;
  opacity: 1;
}

/* App Mode Fullscreen Login */
.login-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #050505;
  background-image: radial-gradient(circle at top right, rgba(212, 175, 55, 0.1), transparent 40%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 9999;
  overflow-y: auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.login-card-centered {
  background: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(20px);
  padding: 40px;
  border-radius: 24px;
  width: 100%;
  max-width: 400px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.5s ease;
  margin: auto;
}