/* =========================================
   PEDRO & GLICIA — DESIGN SYSTEM
   Controle de Entradas e Gastos Financeiros
   Cores: #000000, #2d5128, #06b6d4
   ========================================= */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #111827;
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video {
  max-width: 100%;
  display: block;
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000000;
  color: #ffffff;
  padding: 0.5rem 1rem;
  z-index: 10000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* Focus visible global */
:focus-visible {
  outline: 3px solid #06b6d4;
  outline-offset: 2px;
}

/* Smooth image loading */
img {
  transition: opacity 0.3s ease;
}

img[loading="lazy"] {
  opacity: 0;
}

img.loaded,
img:not([loading="lazy"]) {
  opacity: 1;
}

/* Force content visibility — garante que todo conteúdo seja renderizado independentemente de animações */
.section,
.section-header,
.section-title,
.section-description,
.value-grid,
.value-card,
.feature-list,
.feature-row,
.testimonials-slider,
.testimonial-card,
.cta-box,
.site-footer,
.footer-inner,
.footer-copy,
[data-reveal] {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  transform: none !important;
}

.section-value,
.section-testimonials {
  display: block !important;
}

.value-grid {
  display: grid !important;
}

.hero-actions,
.hero-stats,
.dashboard-actions,
.footer-social {
  display: flex !important;
}

.feature-row,
.testimonial-author,
.footer-brand {
  display: flex !important;
}

.main-nav,
.nav-list,
.nav-actions,
.footer-nav ul {
  display: flex !important;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: #111827;
}

p {
  margin-bottom: 1rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.98);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}

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

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 800;
  font-size: 1.125rem;
  color: #000000;
  letter-spacing: -0.02em;
}

.brand-slogan {
  font-size: 0.75rem;
  color: #2d5128;
  font-weight: 500;
}

/* Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background 0.2s;
}

.menu-toggle:hover,
.menu-toggle:focus {
  background: rgba(0, 0, 0, 0.05);
}

.menu-toggle:focus-visible {
  outline: 2px solid #06b6d4;
  outline-offset: 2px;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: #000000;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: #374151;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #06b6d4;
  transition: width 0.2s;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: #000000;
}

.nav-link:hover::after,
.nav-link:focus::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:focus-visible {
  outline: 2px solid #06b6d4;
  outline-offset: 4px;
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
  text-align: center;
}

.btn:focus-visible {
  outline: 3px solid #06b6d4;
  outline-offset: 2px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.btn-primary:hover,
.btn-primary:focus {
  background: #1f2937;
  border-color: #1f2937;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.btn-secondary {
  background: #2d5128;
  color: #ffffff;
  border-color: #2d5128;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: #1f3a1b;
  border-color: #1f3a1b;
  box-shadow: 0 8px 20px rgba(45, 81, 40, 0.25);
}

.btn-outline {
  background: transparent;
  color: #000000;
  border-color: #000000;
}

.btn-outline:hover,
.btn-outline:focus {
  background: #000000;
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  color: #374151;
  border-color: transparent;
}

.btn-ghost:hover,
.btn-ghost:focus {
  background: rgba(0, 0, 0, 0.05);
}

.btn-danger {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}

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

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  border-color: #25d366;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
  background: #128c7e;
  border-color: #128c7e;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
}

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #e0f7fa 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.12) 0%, transparent 40%),
              radial-gradient(circle at 20% 80%, rgba(45, 81, 40, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2d5128;
  margin-bottom: 1rem;
  background: rgba(45, 81, 40, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: #000000;
  margin-bottom: 1.5rem;
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

.hero-title strong {
  color: #2d5128;
  position: relative;
}

.hero-description {
  font-size: 1.125rem;
  color: #4b5563;
  max-width: 540px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

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

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #000000;
}

.stat-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  animation: float 6s ease-in-out infinite;
}

.hero-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
}

.hero-card--credit {
  top: 10%;
  left: 5%;
}

.hero-card--credit .hero-card__icon {
  background: #2d5128;
}

.hero-card--debit {
  bottom: 20%;
  right: 5%;
  animation-delay: -2s;
}

.hero-card--debit .hero-card__icon {
  background: #dc2626;
}

.hero-card__content {
  display: flex;
  flex-direction: column;
}

.hero-card__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  font-weight: 600;
}

.hero-card__value {
  font-weight: 700;
  color: #000000;
}

.hero-chart {
  position: absolute;
  bottom: 5%;
  left: 20%;
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  animation: float 7s ease-in-out infinite;
  animation-delay: -3s;
}

.hero-chart__bar {
  width: 24px;
  height: var(--h, 50%);
  background: linear-gradient(180deg, #06b6d4 0%, #2d5128 100%);
  border-radius: 6px 6px 0 0;
  animation: growBar 1.5s ease-out forwards;
}

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

@keyframes growBar {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

/* Sections */
.section {
  padding: 6rem 0;
}

.section-dark {
  background: #000000;
  color: #ffffff;
}

.section-dark h2,
.section-dark h3,
.section-dark p {
  color: #ffffff;
}

.section-header {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2d5128;
  margin-bottom: 0.75rem;
}

.section-dark .section-eyebrow {
  color: #06b6d4;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  color: #4b5563;
}

.section-dark .section-description {
  color: #d1d5db;
}

/* Value Grid */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.value-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(6, 182, 212, 0.3);
}

.value-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(45, 81, 40, 0.1) 100%);
  color: #2d5128;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.value-card__title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.value-card__text {
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Feature List */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.feature-row {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s, transform 0.3s;
}

.feature-row:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(8px);
}

.feature-number {
  font-size: 2rem;
  font-weight: 800;
  color: #06b6d4;
  line-height: 1;
  flex-shrink: 0;
  min-width: 50px;
}

.feature-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.feature-content p {
  color: #d1d5db;
  margin-bottom: 0;
}

/* Testimonials */
.section-testimonials {
  background: #f8fafc;
}

.testimonials-slider {
  padding-bottom: 3rem;
}

.testimonial-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  height: auto;
}

.testimonial-card blockquote {
  font-size: 1.1rem;
  color: #374151;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-card blockquote p::before {
  content: '"';
  color: #06b6d4;
  font-size: 2rem;
  line-height: 0;
  margin-right: 0.25rem;
  vertical-align: middle;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
}

.testimonial-author strong {
  color: #000000;
  font-weight: 700;
}

.testimonial-author span {
  color: #6b7280;
  font-size: 0.875rem;
}

.swiper-pagination-bullet-active {
  background: #06b6d4 !important;
  width: 24px;
  border-radius: 4px;
}

/* CTA */
.section-cta {
  background: linear-gradient(135deg, #000000 0%, #1f2937 100%);
  color: #ffffff;
}

.cta-box {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: #ffffff;
  margin-bottom: 1rem;
}

.cta-description {
  font-size: 1.125rem;
  color: #d1d5db;
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Footer */
.site-footer {
  background: #000000;
  color: #ffffff;
  padding-top: 4rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #ffffff;
  padding: 4px;
}

.footer-brand strong {
  display: block;
  font-weight: 700;
  color: #ffffff;
}

.footer-brand span {
  display: block;
  font-size: 0.875rem;
  color: #9ca3af;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav a {
  color: #d1d5db;
  transition: color 0.2s;
}

.footer-nav a:hover,
.footer-nav a:focus {
  color: #06b6d4;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transition: background 0.2s, transform 0.2s;
}

.footer-social a:hover,
.footer-social a:focus {
  background: #06b6d4;
  transform: translateY(-3px);
}

.footer-copy {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: #9ca3af;
}

.footer-copy p {
  margin-bottom: 0.25rem;
}

.footer-copy strong {
  color: #06b6d4;
}

/* =====================
   ÁREA DO CLIENTE
   ===================== */
.page-area .hero,
.page-dashboard .hero {
  min-height: auto;
  padding: 8rem 0 3rem;
  text-align: center;
}

.page-area .hero-content,
.page-dashboard .hero-content {
  grid-template-columns: 1fr;
  justify-items: center;
}

.page-area .hero-description,
.page-dashboard .hero-description {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Transaction Form */
.form-section {
  padding: 4rem 0 6rem;
}

.form-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  max-width: 800px;
  margin: 0 auto;
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-header h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.form-header p {
  color: #6b7280;
  margin-bottom: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

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

.form-group label {
  font-weight: 600;
  font-size: 0.875rem;
  color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.875rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #06b6d4;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
  outline: none;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

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

.form-hint {
  font-size: 0.8rem;
  color: #6b7280;
}

.error-message {
  font-size: 0.8rem;
  color: #dc2626;
  display: none;
}

.form-group.error .error-message {
  display: block;
}

.type-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.type-option {
  position: relative;
}

.type-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.type-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem;
  border: 2px solid #d1d5db;
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  font-weight: 600;
  color: #374151;
}

.type-option label:hover {
  border-color: #06b6d4;
}

.type-option input:checked + label,
.type-option input:focus + label {
  border-color: #06b6d4;
  background: rgba(6, 182, 212, 0.06);
  transform: translateY(-2px);
}

.type-option input:focus-visible + label {
  outline: 3px solid #06b6d4;
  outline-offset: 2px;
}

.type-option .type-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
}

.type-option.credit .type-icon {
  background: #2d5128;
}

.type-option.debit .type-icon {
  background: #dc2626;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.form-status {
  text-align: center;
  padding: 1rem;
  border-radius: 12px;
  margin-top: 1.5rem;
  font-weight: 500;
  display: none;
}

.form-status.success {
  background: rgba(45, 81, 40, 0.1);
  color: #2d5128;
  display: block;
}

.form-status.error {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  display: block;
}

/* Upload Zone */
.upload-zone {
  border: 2px dashed #d1d5db;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
  position: relative;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: #06b6d4;
  background: rgba(6, 182, 212, 0.05);
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-zone__icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.upload-zone__text {
  font-weight: 600;
  color: #374151;
}

.upload-zone__hint {
  font-size: 0.8rem;
  color: #6b7280;
}

/* =====================
   DASHBOARD
   ===================== */
.dashboard-section {
  padding: 2rem 0 6rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.dashboard-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.dashboard-card__label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.dashboard-card__value {
  font-size: 2rem;
  font-weight: 800;
  color: #000000;
}

.dashboard-card__value.positive {
  color: #2d5128;
}

.dashboard-card__value.negative {
  color: #dc2626;
}

.dashboard-card__value.neutral {
  color: #06b6d4;
}

.dashboard-panel {
  background: #ffffff;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.dashboard-panel h2 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dashboard-panel h2 .icon {
  color: #06b6d4;
}

.dashboard-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.chart-container {
  position: relative;
  height: 320px;
  width: 100%;
}

/* Table / Spreadsheet */
.table-responsive {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.data-table th {
  background: #f8fafc;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.data-table tbody tr:hover {
  background: #f8fafc;
}

.data-table td.credit {
  color: #2d5128;
  font-weight: 700;
}

.data-table td.debit {
  color: #dc2626;
  font-weight: 700;
}

.data-table .empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #6b7280;
}

.data-table .btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
}

/* Dashboard Actions */
.dashboard-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}

/* Calendar */
.calendar-widget {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 1.5rem;
}

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

.calendar-header h3 {
  font-size: 1.125rem;
}

.calendar-nav {
  display: flex;
  gap: 0.5rem;
}

.calendar-nav button {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.calendar-nav button:hover,
.calendar-nav button:focus {
  background: #f8fafc;
  border-color: #06b6d4;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  text-align: center;
}

.calendar-day-label {
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #6b7280;
  padding: 0.5rem 0;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  position: relative;
  transition: background 0.2s;
  cursor: pointer;
}

.calendar-day:hover,
.calendar-day:focus {
  background: #e0f7fa;
  outline: none;
}

.calendar-day.today {
  background: #000000;
  color: #ffffff;
}

.calendar-day.has-event::after {
  content: '';
  position: absolute;
  bottom: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #06b6d4;
}

.calendar-day.has-credit {
  box-shadow: inset 0 0 0 2px #2d5128;
}

.calendar-day.has-debit {
  box-shadow: inset 0 0 0 2px #dc2626;
}

.calendar-day.other-month {
  color: #9ca3af;
  background: transparent;
}

/* =====================
   UTILITIES
   ===================== */
.text-center { text-align: center; }
.text-positive { color: #2d5128; }
.text-negative { color: #dc2626; }
.text-neutral { color: #06b6d4; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 10000;
  background: #000000;
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  max-width: 360px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  background: #2d5128;
}

.toast.error {
  background: #dc2626;
}

.toast.info {
  background: #06b6d4;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 1.5rem 0 0;
  font-size: 0.875rem;
  color: #6b7280;
}

.breadcrumbs a {
  color: #374151;
  transition: color 0.2s;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus {
  color: #06b6d4;
}

.breadcrumbs span[aria-current="page"] {
  color: #000000;
  font-weight: 600;
}

.breadcrumb-separator {
  margin: 0 0.5rem;
}

/* Print Styles */
@media print {
  .site-header,
  .site-footer,
  .hero-actions,
  .dashboard-actions,
  .form-actions,
  .menu-toggle,
  .nav-actions,
  .btn {
    display: none !important;
  }
  .dashboard-panel,
  .dashboard-card {
    box-shadow: none;
    border: 1px solid #000000;
  }
  body {
    color: #000000;
    background: #ffffff;
  }
}
