/**
 * Hero Habits - Consolidated Main Stylesheet
 * All shared CSS styles merged from multiple source files
 */

/* =============================================================================
   Section 1: CSS Variables
   ============================================================================= */
:root {
  --purple: #7E57C2;
  --purple-dark: #5E35B1;
  --purple-secondary: #9575CD;
  --teal: #4DB6AC;
  --teal-dark: #26A69A;
  --destructive: #E57373;
  --destructive-dark: #EF5350;
  --gold: #FFCA28;
  --gold-dark: #FFB300;
  --bg: #f9f9f9;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --nav-width: 240px;
  --radius-sm: 0.25rem;
  --radius-md: 0.50rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* =============================================================================
   Section 2: Font Declarations
   ============================================================================= */
@font-face {
  font-family: 'Luminari';
  src: url('../Fonts/Luminari-Regular.ttf') format('truetype');
}

/* =============================================================================
   Section 3: Base Styles
   ============================================================================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: var(--gray-900);
}

/* =============================================================================
   Section 4: Typography
   ============================================================================= */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
}

.gold {
  color: var(--gold);
  font-weight: bold;
}

/* =============================================================================
   Section 5: Layout Components
   ============================================================================= */
.main_container,
.main-container,
.app-container {
  display: flex;
  flex: 1;
}

.main-content {
  flex: 1;
  padding: 2rem;
  max-width: 1400px;
  width: 100%;
  background-image: url('../hero_habits_bg_1.png');
  background-size: contain;
  background-position: center top;
  background-repeat: no-repeat;
}

.content-box {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* =============================================================================
   Section 6: Chart Container
   ============================================================================= */
.chart-container {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

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

.chart-header h3 {
  margin: 0;
  color: var(--purple);
  font-size: 1.25rem;
  font-weight: 600;
}

.period-selector {
  display: flex;
  gap: 8px;
  background: var(--gray-100);
  padding: 4px;
  border-radius: 8px;
}

.period-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--gray-700);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.period-btn:hover {
  background: rgba(126, 87, 194, 0.1);
  color: var(--purple);
}

.period-btn.active {
  background: var(--purple);
  color: white;
  box-shadow: 0 2px 4px rgba(126, 87, 194, 0.3);
}

.chart-container canvas {
  max-height: 350px;
  width: 100%;
  margin-top: 15px;
}

/* =============================================================================
   Section 7: Buttons
   ============================================================================= */

/* Base button styles (from modern-theme.css) */
button,
.btn {
  padding: 10px 16px;
  margin-bottom: 6px;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-family: inherit;
  transition: all 0.2s ease;
}

button:hover:not(:disabled),
.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-purple,
button.quest {
  background-color: var(--purple);
}

.btn-purple:hover,
button.quest:hover {
  background-color: var(--purple-dark);
}

.btn-gold,
button.treasure {
  background-color: var(--gold);
  color: #333;
}

.btn-gold:hover,
button.treasure:hover {
  background-color: var(--gold-dark);
}

button.small {
  padding: 6px 12px;
  font-size: 0.9rem;
}

.btn-cancel,
.btn-tertiary {
  background-color: var(--teal);
  color: white;
}

.btn-cancel:hover,
.btn-tertiary:hover {
  background-color: var(--teal-dark);
}

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

.btn-green:hover {
  background-color: var(--teal-dark);
}

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

.btn-red:hover {
  background-color: var(--destructive-dark);
}

/* Additional button variants (from parent views) */
.btn-primary {
  background-color: var(--purple);
  color: white;
}

.btn-primary:hover {
  background-color: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

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

.btn-secondary:hover {
  background-color: var(--purple);
}

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

.btn-danger:hover {
  background-color: var(--destructive-dark);
}

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

.btn-success:hover {
  background-color: var(--teal-dark);
}

.btn-small {
  padding: 6px 12px;
  font-size: 0.875rem;
}

/* =============================================================================
   Section 8: Header Base Styles
   ============================================================================= */

/* Component header (from child-header / parent-header) */
header {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem 2rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.header-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: flex-start;
  flex-shrink: 0;
}

.header-title .logo {
  height: 80px;
  width: auto;
  display: block;
  margin: -1rem 0;
}

.header-title .page-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-700);
  margin: 0;
}

.header-divider {
  color: var(--gray-300);
  margin: 0 0.5rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: flex-end;
  flex-shrink: 0;
  margin-left: auto;
}

/* Old-style header classes (from modern-theme.css) */
header h1 {
  margin: 0;
  font-size: 2rem;
  color: var(--purple);
  font-family: 'Luminari', fantasy;
}

.user-display-name {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
}

.user-menu-btn {
  background: white;
  color: #333;
  border: 2px solid var(--purple);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.user-menu-btn:hover {
  background: var(--purple);
  color: white;
}

.user-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 2px solid var(--purple);
  border-radius: 8px;
  margin-top: 5px;
  min-width: 180px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 1000;
}

.user-dropdown.show {
  display: block;
}

.user-dropdown a {
  display: block;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #eee;
}

.user-dropdown a:last-child {
  border-bottom: none;
}

.user-dropdown a:hover {
  background: var(--purple);
  color: white;
}

.session-timer {
  background: rgba(255,255,255,0.3);
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 14px;
}

/* Child Profile Display in Header */
.child-profile-display {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
}

.child-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid white;
  object-fit: cover;
}

.child-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.child-info-name {
  font-weight: 600;
  color: var(--gray-900);
}

.child-info-gold {
  font-size: 0.875rem;
  color: var(--gold);
  font-weight: 600;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
}

/* =============================================================================
   Section 9: Navigation Sidebar
   ============================================================================= */
.sidebar-nav {
  width: 280px;
  background: white;
  border-right: 1px solid var(--gray-200);
  padding: 1.5rem 1rem;
  height: calc(100vh - 73px);
  position: sticky;
  top: 73px;
  overflow-y: auto;
}

.nav-section {
  margin-bottom: 2rem;
}

.nav-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  padding: 0 0.75rem;
  margin-bottom: 0.75rem;
}

.nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-item {
  margin: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  transition: all 0.2s ease;
  position: relative;
}

.nav-link:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.nav-link.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  color: var(--purple);
  font-weight: 600;
}

.nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: linear-gradient(180deg, var(--purple) 0%, #8b5cf6 100%);
  border-radius: 0 3px 3px 0;
}

.nav-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
}

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

.nav-text {
  flex: 1;
  text-align: left;
}

/* Specific nav item gradients on hover */
.nav-link-calendar:hover:not(.active) {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.nav-link-quests:hover:not(.active) {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(37, 99, 235, 0.05) 100%);
}

.nav-link-treasures:hover:not(.active) {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(217, 119, 6, 0.05) 100%);
}

.nav-link-dashboard:hover:not(.active) {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.nav-link-approvals:hover:not(.active) {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(220, 38, 38, 0.05) 100%);
}

.nav-link-profiles:hover:not(.active) {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
}

.nav-link-account:hover:not(.active) {
  background: linear-gradient(135deg, rgba(107, 114, 128, 0.05) 0%, rgba(75, 85, 99, 0.05) 100%);
}

/* =============================================================================
   Section 10: Forms
   ============================================================================= */

/* Base form styles (from modern-theme.css) */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 10px;
  margin: 5px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 1rem;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(126, 87, 194, 0.1);
}

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

.form-row {
  margin-bottom: 15px;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}

/* Form group styles (from parent views) */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--purple);
}

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

.form-group .help-text {
  font-size: 0.875rem;
  color: #666;
  margin-top: 4px;
}

/* =============================================================================
   Section 11: Messages & Alerts
   ============================================================================= */

/* From modern-theme.css */
.message {
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  font-weight: bold;
}

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

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

/* From auth.blade.php */
.error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.success-message {
  background: #10b981;
  color: white;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 500;
}

/* =============================================================================
   Section 12: Cards
   ============================================================================= */
.card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

/* Quest Cards */
.quest-card {
  background: white;
  border: 2px solid var(--purple);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quest-card.inactive {
  opacity: 0.6;
  border-color: #ccc;
}

.quest-info h3 {
  margin: 0 0 5px 0;
  color: var(--purple);
}

.quest-info p {
  margin: 5px 0;
  color: #666;
}

.quest-actions {
  display: flex;
  gap: 10px;
}

/* Child Cards */
.child-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.child-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.child-card .child-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.child-card .child-info {
  flex: 1;
  min-width: 0;
}

.child-card .child-info h3 {
  margin: 0 0 10px 0;
  color: var(--purple);
  font-size: 1.25rem;
  font-weight: 600;
}

.child-card .child-info p {
  margin: 5px 0;
  color: var(--gray-600);
}

.child-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  min-width: 150px;
  flex-shrink: 0;
}

.child-actions button {
  width: 100%;
  margin: 0;
  white-space: nowrap;
}

.child-actions form {
  width: 100%;
  margin: 0;
}

.child-actions form button {
  width: 100%;
}

/* =============================================================================
   Section 13: Badges
   ============================================================================= */

/* From modern-theme.css */
.pending-badge,
.status-badge {
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: bold;
  display: inline-block;
}

.pending-badge {
  background: #ff6b6b;
  color: white;
}

.status-badge {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-pending {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border: 1px solid #fbbf24;
}

.status-approved {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.status-rejected,
.status-denied {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.status-accepted {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  border: 1px solid #6ee7b7;
}

/* From parent views */
.badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-active {
  background: #10b981;
  color: white;
}

.badge-inactive {
  background: #6b7280;
  color: white;
}

.badge-pending {
  background: #f59e0b;
  color: white;
}

.badge-available {
  background: #10b981;
  color: white;
}

.badge-frequency {
  background: #7E57C2;
  color: white;
}

.quest-remaining {
  font-size: 0.8rem;
  color: #7E57C2;
  font-weight: 600;
  text-align: center;
}

.badge-unavailable {
  background: #6b7280;
  color: white;
}

/* =============================================================================
   Section 14: Modals
   ============================================================================= */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 30px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideDown 0.3s ease-out;
}

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

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

.modal-header h2,
.modal-header h3 {
  color: var(--purple);
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  color: #333;
}

.modal-buttons,
.modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* =============================================================================
   Section 15: Grids
   ============================================================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.children-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.avatar-option {
  cursor: pointer;
  border: 3px solid transparent;
  border-radius: 8px;
  padding: 5px;
  transition: all 0.2s ease;
}

.avatar-option:hover {
  border-color: var(--purple);
  transform: scale(1.05);
}

.avatar-option.selected {
  border-color: var(--gold);
  background: rgba(255, 202, 40, 0.1);
}

.avatar-option img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  display: block;
}

/* =============================================================================
   Section 16: Tables
   ============================================================================= */
.quest-table,
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.quest-table th,
table th {
  background: var(--purple);
  color: white;
  padding: 12px;
  text-align: left;
  font-weight: 600;
}

.quest-table td,
table td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
}

.quest-table tr:hover,
table tbody tr:hover {
  background: #f5f5f5;
}

/* =============================================================================
   Section 17: Profile Images
   ============================================================================= */
img.profile_pic {
  height: 50px;
  width: 50px;
  border-radius: 50%;
  object-fit: cover;
}

/* =============================================================================
   Section 18: Shared UI Components
   ============================================================================= */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.page-header h2 {
  color: var(--purple);
  margin: 0;
}

.page-subtitle {
  color: #666;
  font-size: 1.1rem;
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 2px solid #e0e0e0;
}

.tab {
  padding: 12px 24px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #666;
  transition: all 0.2s;
}

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

.tab.active {
  color: var(--purple);
  border-bottom-color: var(--purple);
}

.tab-content {
  display: none;
}

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

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state-text {
  font-size: 1.125rem;
  color: var(--gray-600);
}

.empty-state h3 {
  color: var(--purple);
  margin-bottom: 10px;
}

.loading {
  text-align: center;
  padding: 40px;
  color: #666;
}

/* =============================================================================
   Section 19: Responsive Design
   ============================================================================= */

@media (max-width: 1023px) {
  .sidebar-nav {
    width: 280px;
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: 1rem;
  }

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

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

  header {
    padding: 0.75rem 1rem;
  }

  .header-title .logo {
    height: 50px;
    margin: -0.5rem 0;
  }

  /* Hide page name and divider — logo alone identifies the app */
  .header-title .page-name,
  .header-divider {
    display: none;
  }
}

@media (max-width: 480px) {
  header {
    padding: 0.5rem 0.75rem;
  }

  .header-title .logo {
    height: 42px;
    margin: -0.25rem 0;
  }
}

/* Touch devices: enforce minimum tap target height and fix iOS zoom on inputs */
@media (max-width: 1023px) {
  button:not(.tab-item):not(.hamburger-btn):not(.close-btn):not(.pin-key):not(.period-btn),
  .btn {
    min-height: 44px;
  }

  /* Prevent iOS from zooming into focused inputs */
  input[type="text"],
  input[type="number"],
  input[type="email"],
  input[type="password"],
  textarea,
  select {
    font-size: 16px;
  }
}

/* Page header: stack title and action button on small screens */
@media (max-width: 640px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .page-header .btn {
    width: 100%;
    text-align: center;
  }

  /* Bulk action rows (approvals page) */
  .bulk-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 8px;
  }

  .bulk-actions button {
    width: 100%;
  }
}

/* Modals: bottom sheet on mobile */
@media (max-width: 640px) {
  .modal {
    align-items: flex-end;
  }

  .modal-content {
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    padding: 24px 16px 32px;
    max-height: 88vh;
    animation: slideUpModal 0.3s ease-out;
  }

  .modal-buttons,
  .modal-footer {
    flex-direction: column;
    gap: 8px;
  }

  .modal-buttons .btn,
  .modal-footer .btn {
    width: 100%;
    text-align: center;
  }
}

@keyframes slideUpModal {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

/* =============================================================================
   Section 20: Utility Classes
   ============================================================================= */
.text-center {
  text-align: center;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 0.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1.5rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

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

.justify-between {
  justify-content: space-between;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* =============================================================================
   Section 21: Auth Page Styles (scoped under body.auth-page)
   ============================================================================= */
body.auth-page {
  font-family: 'Inter', 'Baloo 2', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

body.auth-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../hero_habits_bg_1.png') center/cover;
  opacity: 0.1;
  pointer-events: none;
}

.auth-container {
  width: 100%;
  max-width: 450px;
  position: relative;
  z-index: 1;
}

.auth-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 40px;
  animation: slideUp 0.5s ease-out;
}

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

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-logo {
  width: 120px;
  height: auto;
  margin-bottom: 20px;
}

.auth-title {
  font-family: 'Luminari', fantasy;
  font-size: 2rem;
  color: var(--purple);
  margin-bottom: 8px;
}

.auth-subtitle {
  color: #666;
  font-size: 1rem;
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  color: #666;
  font-size: 0.95rem;
}

.auth-footer a {
  color: var(--purple);
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: #999;
  font-size: 0.9rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}

.divider::before {
  margin-right: 12px;
}

.divider::after {
  margin-left: 12px;
}

/* Auth-scoped button overrides */
body.auth-page .btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

body.auth-page .btn-primary {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  color: white;
}

body.auth-page .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(126, 87, 194, 0.4);
}

body.auth-page .btn-primary:active {
  transform: translateY(0);
}

body.auth-page .btn-secondary {
  background: white;
  color: var(--purple-secondary);
  border: 2px solid var(--purple-secondary);
}

body.auth-page .btn-secondary:hover {
  background: var(--purple-secondary);
  color: white;
}

.form-group input.error {
  border-color: #ef4444;
}

/* Auth responsive */
@media (max-width: 480px) {
  .auth-card {
    padding: 30px 24px;
  }

  .auth-title {
    font-size: 1.5rem;
  }
}

/* =============================================================================
   Section 22: Welcome/Splash Page Styles (scoped under body.welcome-page)
   ============================================================================= */
body.welcome-page {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

body.welcome-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../hero_habits_bg_1.png') center/cover;
  opacity: 0.1;
  pointer-events: none;
}

.splash-container {
  width: 100%;
  max-width: 900px;
  position: relative;
  z-index: 1;
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.splash-header {
  text-align: center;
  margin-bottom: 50px;
  color: white;
}

.splash-title {
  font-family: 'Luminari', fantasy;
  font-size: 3.5rem;
  margin-bottom: 15px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.splash-subtitle {
  font-size: 1.3rem;
  opacity: 0.95;
  font-weight: 500;
}

.login-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.login-card {
  background: white;
  border-radius: 25px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--purple) 0%, var(--gold) 100%);
  transform: scaleX(0);
  transition: transform 0.4s;
}

.login-card:hover::before {
  transform: scaleX(1);
}

.login-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.login-icon {
  font-size: 5rem;
  margin-bottom: 20px;
  display: inline-block;
  transition: transform 0.4s;
}

.login-card:hover .login-icon {
  transform: scale(1.2) rotate(5deg);
}

.login-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--purple);
  margin-bottom: 12px;
}

.login-description {
  color: #666;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 25px;
}

.login-btn {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(126, 87, 194, 0.4);
}

.login-btn.child {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
}

.login-btn.child:hover {
  box-shadow: 0 8px 25px rgba(255, 202, 40, 0.4);
}

.features {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.features-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--purple);
  margin-bottom: 25px;
}

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

.feature-item {
  text-align: center;
  padding: 20px;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.feature-text {
  color: #666;
  font-weight: 600;
  font-size: 1rem;
}

/* Welcome page logo (floating animation) */
body.welcome-page .logo {
  width: 180px;
  height: auto;
  margin-bottom: 30px;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Welcome responsive */
@media (max-width: 768px) {
  .splash-title {
    font-size: 2.5rem;
  }

  .splash-subtitle {
    font-size: 1.1rem;
  }

  .login-cards {
    grid-template-columns: 1fr;
  }

  .login-card {
    padding: 30px;
  }

  .login-icon {
    font-size: 4rem;
  }

  .login-title {
    font-size: 1.5rem;
  }
}

/* =============================================================================
   Section 23: Child Login Styles
   ============================================================================= */
.child-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.child-option {
  background: white;
  border: 3px solid #e0e0e0;
  border-radius: 15px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.child-option:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.child-option.selected {
  border-color: var(--purple);
  background: linear-gradient(135deg, #f3e7ff 0%, #e9d5ff 100%);
  transform: scale(1.05);
}

/* Child login avatar override (80px) */
.child-option .child-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 10px;
  border: 3px solid transparent;
  transition: border-color 0.3s;
}

.child-option.selected .child-avatar {
  border-color: var(--purple);
}

.child-name {
  font-weight: 700;
  color: var(--purple);
  font-size: 1rem;
}

.pin-container {
  margin: 30px 0;
  opacity: 0.3;
  pointer-events: none;
  transition: all 0.3s;
}

.pin-container.active {
  opacity: 1;
  pointer-events: all;
}

.pin-display {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
}

.pin-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid var(--purple);
  background: white;
  transition: all 0.3s;
}

.pin-dot.filled {
  background: var(--purple);
  transform: scale(1.2);
}

.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 280px;
  margin: 0 auto;
}

.pin-key {
  padding: 20px;
  border: none;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  color: white;
  font-size: 1.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 10px rgba(126, 87, 194, 0.3);
}

.pin-key:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(126, 87, 194, 0.4);
}

.pin-key:active {
  transform: translateY(0);
}

.pin-key.clear {
  background: linear-gradient(135deg, var(--destructive) 0%, var(--destructive-dark) 100%);
  font-size: 1.2rem;
}

.pin-key.empty {
  visibility: hidden;
}

.helper-text {
  text-align: center;
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.error-shake {
  animation: shake 0.5s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
  20%, 40%, 60%, 80% { transform: translateX(10px); }
}

/* =============================================================================
   Section 25: Landing Page
   ============================================================================= */

body.landing-page {
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: var(--gray-900);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: block;
}

/* Nav */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
}

.landing-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Luminari', fantasy;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--purple);
}

.landing-logo img {
  height: 40px;
  width: auto;
}

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

.landing-nav-login {
  padding: 8px 18px;
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: background 0.2s;
}

.landing-nav-login:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.landing-nav-cta {
  padding: 9px 20px;
  background: var(--purple);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: background 0.2s, transform 0.2s;
}

.landing-nav-cta:hover {
  background: var(--purple-dark);
  transform: translateY(-1px);
}

/* Shared inner container */
.landing-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero */
.landing-hero {
  background: linear-gradient(160deg, #f5f0ff 0%, #fff 60%);
  padding: 80px 0 90px;
}

.landing-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.landing-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 16px;
}

.landing-headline {
  font-family: 'Baloo 2', 'Inter', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--gray-900);
  margin: 0 0 20px 0;
}

.landing-headline-accent {
  color: var(--purple);
}

.landing-subheadline {
  font-size: 1.1rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin: 0 0 32px 0;
  max-width: 480px;
}

.landing-hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.landing-btn-primary {
  display: inline-block;
  padding: 14px 28px;
  background: var(--purple);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.landing-btn-primary:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(126, 87, 194, 0.35);
}

.landing-btn-primary--large {
  font-size: 1.15rem;
  padding: 16px 36px;
}

.landing-btn-ghost {
  display: inline-block;
  padding: 14px 20px;
  color: var(--gray-600);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.landing-btn-ghost:hover {
  color: var(--purple);
}

.landing-hero-note {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin: 0;
}

/* Hero visual cards */
.landing-hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.landing-hero-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.10);
  border: 1px solid var(--gray-200);
}

.landing-hero-card--offset {
  margin-left: 30px;
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.hero-card-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.hero-card-title {
  font-weight: 700;
  color: var(--gray-900);
  font-size: 0.95rem;
}

.hero-card-sub {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 2px;
}

.hero-card-gold {
  margin-left: auto;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--purple);
  white-space: nowrap;
}

.hero-card-progress-bar {
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.hero-card-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple) 0%, var(--purple-secondary) 100%);
  border-radius: 4px;
}

.hero-card-footer {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* Sections */
.landing-section {
  padding: 90px 0;
}

.landing-section--light {
  background: var(--gray-50);
}

.landing-section-header {
  text-align: center;
  margin-bottom: 56px;
}

.landing-section-title {
  font-family: 'Baloo 2', 'Inter', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gray-900);
  margin: 0 0 12px 0;
}

.landing-section-sub {
  font-size: 1.05rem;
  color: var(--gray-600);
  margin: 0;
}

/* Steps */
.landing-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
}

.landing-step {
  flex: 1;
  text-align: center;
  padding: 0 24px;
  max-width: 280px;
}

.landing-step-number {
  width: 36px;
  height: 36px;
  background: var(--purple);
  color: white;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.landing-step-icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.landing-step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 10px 0;
}

.landing-step-desc {
  font-size: 0.925rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

.landing-step-arrow {
  font-size: 1.8rem;
  color: var(--gray-300);
  padding-top: 36px;
  flex-shrink: 0;
}

/* Features grid */
.landing-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.landing-feature {
  background: var(--gray-50);
  border-radius: 16px;
  padding: 28px 24px;
  border: 1px solid var(--gray-200);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.landing-feature:hover {
  border-color: var(--purple);
  box-shadow: 0 4px 20px rgba(126, 87, 194, 0.1);
}

.landing-feature-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.landing-feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 8px 0;
}

.landing-feature-desc {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

/* Split cards */
.landing-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.landing-split-card {
  border-radius: 20px;
  padding: 40px 36px;
  border: 2px solid var(--gray-200);
  background: white;
}

.landing-split-card--parent {
  border-color: var(--purple);
}

.landing-split-card--child {
  border-color: var(--gold);
}

.landing-split-emoji {
  font-size: 3rem;
  margin-bottom: 16px;
}

.landing-split-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-900);
  margin: 0 0 20px 0;
}

.landing-split-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.landing-split-list li {
  font-size: 0.95rem;
  color: var(--gray-700);
  font-weight: 500;
}

.landing-split-btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--purple);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s;
}

.landing-split-btn:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
}

.landing-split-btn--child {
  background: var(--gold);
  color: #333;
}

.landing-split-btn--child:hover {
  background: var(--gold-dark);
}

/* CTA section */
.landing-cta {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  padding: 90px 0;
}

.landing-cta-inner {
  text-align: center;
}

.landing-cta-title {
  font-family: 'Baloo 2', 'Inter', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin: 0 0 16px 0;
}

.landing-cta-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin: 0 0 36px 0;
}

.landing-cta .landing-btn-primary {
  background: white;
  color: var(--purple);
  font-size: 1.1rem;
}

.landing-cta .landing-btn-primary:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* Footer */
.landing-footer {
  background: var(--gray-900);
  padding: 32px 0;
}

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

.landing-footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Luminari', fantasy;
  font-size: 1.1rem;
  color: white;
  font-weight: 700;
}

.landing-footer-logo img {
  height: 32px;
  width: auto;
  opacity: 0.9;
}

.landing-footer-links {
  display: flex;
  gap: 24px;
}

.landing-footer-links a {
  color: var(--gray-300);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.landing-footer-links a:hover {
  color: white;
}

/* Landing responsive */
@media (max-width: 900px) {
  .landing-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .landing-hero-visual {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }

  .landing-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 640px) {
  .landing-headline {
    font-size: 2.2rem;
  }

  .landing-section {
    padding: 60px 0;
  }

  .landing-section-title {
    font-size: 1.8rem;
  }

  .landing-features-grid {
    grid-template-columns: 1fr;
  }

  .landing-split {
    grid-template-columns: 1fr;
  }

  .landing-cta-title {
    font-size: 1.8rem;
  }

  .landing-footer-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .landing-footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .landing-nav-login {
    display: none;
  }
}
