/* Spendd Server-Side Dashboard Stylesheet */
/* Premium Dark Mode Glassmorphism Design System */

:root {
  --bg-primary: #0A0A0C;
  --bg-secondary: rgba(18, 18, 22, 0.7);
  --bg-tertiary: rgba(26, 26, 34, 0.55);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 100, 26, 0.3);
  
  --brand-color: #FF641A;      /* Spendd Brand Orange */
  --brand-green: #30D55D;      /* Inflow Green */
  --brand-blue: #0A84FF;       /* Active Blue */
  --brand-red: #FF453A;        /* Outflow / Bug Red */
  
  --text-main: #FFFFFF;
  --text-secondary: #AEAEB2;
  --text-muted: #636366;
  
  --font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Core Layout */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Mesh Glow Gradients */
.mesh-glow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.12;
}

.glow-orb-1 {
  top: -10%;
  left: 10%;
  width: 500px;
  height: 500px;
  background-color: var(--brand-color);
}

.glow-orb-2 {
  top: 30%;
  right: -5%;
  width: 600px;
  height: 600px;
  background-color: var(--brand-blue);
}

.glow-orb-3 {
  bottom: -10%;
  left: 20%;
  width: 450px;
  height: 450px;
  background-color: var(--brand-red);
}

.app-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}

/* Glassmorphism Cards Utility */
.glass {
  background-color: var(--bg-secondary);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  border-radius: 24px;
}

/* Header Component */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 100, 26, 0.1);
  border: 1px solid rgba(255, 100, 26, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.logo-shield-icon {
  color: var(--brand-color);
  width: 22px;
  height: 22px;
}

.pulse-dot-green {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--brand-green);
  box-shadow: 0 0 10px var(--brand-green);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.5; }
  100% { transform: scale(0.95); opacity: 1; }
}

.header-brand h1 {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 2px;
}

.header-brand .subtitle {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
}

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

/* Connection Badges */
.status-badge {
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  border: 1px solid transparent;
}

.status-badge .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-badge.sse-mode {
  background: rgba(10, 132, 255, 0.1);
  color: var(--brand-blue);
  border-color: rgba(10, 132, 255, 0.2);
}

.status-badge.sse-mode .status-dot {
  background-color: var(--brand-blue);
  box-shadow: 0 0 8px var(--brand-blue);
}

.status-badge.poll-mode {
  background: rgba(48, 213, 93, 0.1);
  color: var(--brand-green);
  border-color: rgba(48, 213, 93, 0.2);
}

.status-badge.poll-mode .status-dot {
  background-color: var(--brand-green);
  box-shadow: 0 0 8px var(--brand-green);
}

.status-badge.disconnected {
  background: rgba(255, 69, 58, 0.1);
  color: var(--brand-red);
  border-color: rgba(255, 69, 58, 0.2);
}

.status-badge.disconnected .status-dot {
  background-color: var(--brand-red);
  box-shadow: 0 0 8px var(--brand-red);
}

/* Buttons UI */
.btn {
  padding: 10px 20px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  transition: var(--transition-fast);
}

.btn-primary {
  background-color: var(--brand-color);
  color: var(--text-main);
}

.btn-primary:hover {
  background-color: #ff7834;
  box-shadow: 0 0 15px rgba(255, 100, 26, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger-outlined {
  background: transparent;
  color: var(--brand-red);
  border-color: rgba(255, 69, 58, 0.3);
}

.btn-danger-outlined:hover {
  background: rgba(255, 69, 58, 0.15);
  border-color: var(--brand-red);
}

.btn-logout {
  background: rgba(255, 69, 58, 0.1);
  color: var(--brand-red);
  border-color: rgba(255, 69, 58, 0.2);
}

.btn-logout:hover {
  background: var(--brand-red);
  color: #ffffff;
}

/* KPI Cards Layout */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 8px;
}

.kpi-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition-normal);
}

.kpi-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

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

.kpi-label {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-family: 'Inter', sans-serif;
}

.kpi-icon-wrapper {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid transparent;
}

.kpi-icon-wrapper.blue { background: rgba(10, 132, 255, 0.1); color: var(--brand-blue); border-color: rgba(10, 132, 255, 0.2); }
.kpi-icon-wrapper.orange { background: rgba(255, 100, 26, 0.1); color: var(--brand-color); border-color: rgba(255, 100, 26, 0.2); }
.kpi-icon-wrapper.red { background: rgba(255, 69, 58, 0.1); color: var(--brand-red); border-color: rgba(255, 69, 58, 0.2); }
.kpi-icon-wrapper.green { background: rgba(48, 213, 93, 0.1); color: var(--brand-green); border-color: rgba(48, 213, 93, 0.2); }

.kpi-value {
  font-size: 32px;
  font-weight: 800;
}

.footer-note {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
}

.progress-bar-container {
  width: 100%;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 6px;
}

.progress-bar {
  height: 100%;
  background-color: var(--brand-green);
  border-radius: 3px;
}

/* Tabs Panel */
.dashboard-tabs {
  display: flex;
  padding: 6px;
  gap: 8px;
  align-self: flex-start;
  border-radius: 16px;
}

.tab-btn {
  padding: 10px 20px;
  border-radius: 12px;
  background: transparent;
  color: var(--text-secondary);
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-sm);
}

/* Layout Content Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}

@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.grid-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.grid-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Card General Design */
.card {
  border-radius: 24px;
  overflow: hidden;
}

.card-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.card-header h3 {
  font-size: 18px;
  font-weight: 800;
}

.live-indicator {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-green);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  background: rgba(48, 213, 93, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
}

/* Chart Canvas Section */
.chart-card {
  padding-bottom: 24px;
}

.chart-container {
  height: 280px;
  padding: 0 28px;
  margin-top: 16px;
  position: relative;
}

/* Telemetry Ingestion Audit Table */
.table-card {
  display: flex;
  flex-direction: column;
}

.table-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  width: 16px;
  height: 16px;
}

.search-input-wrapper input {
  padding: 10px 16px 10px 38px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background-color: rgba(0, 0, 0, 0.2);
  color: var(--text-main);
  font-size: 12.5px;
  font-weight: 500;
  width: 200px;
  font-family: 'Inter', sans-serif;
  transition: var(--transition-fast);
}

.search-input-wrapper input:focus {
  outline: none;
  border-color: var(--brand-color);
}

.filter-select {
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background-color: rgba(0, 0, 0, 0.2);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  outline: none;
}

.filter-select:focus {
  border-color: var(--brand-color);
}

.table-scroll-wrapper {
  overflow-x: auto;
  max-height: 500px;
  overflow-y: auto;
}

.ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', sans-serif;
  text-align: left;
}

.ledger-table th {
  padding: 18px 28px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-color);
}

.ledger-table td {
  padding: 16px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 13.5px;
  vertical-align: middle;
}

.ledger-table tr {
  transition: var(--transition-fast);
}

.ledger-table tr:hover {
  background-color: rgba(255, 255, 255, 0.015);
}

.tx-time-sub {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

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

/* Category Badges */
.category-pill {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.category-pill.inflow {
  background: rgba(48, 213, 93, 0.1);
  color: var(--brand-green);
  border-color: rgba(48, 213, 93, 0.15);
}

.category-pill.outlaw {
  background: rgba(255, 69, 58, 0.1);
  color: var(--brand-red);
  border-color: rgba(255, 69, 58, 0.15);
}

/* Specific highlight design elements */
.bug-row {
  background: rgba(255, 69, 58, 0.02);
}

.bug-row:hover {
  background: rgba(255, 69, 58, 0.04) !important;
}

.details-text {
  font-weight: 500;
  font-size: 13px;
  opacity: 0.95;
}

.bug-row .details-text {
  color: #ffb3b3;
  font-weight: 600;
}

@keyframes row-highlight-fade {
  0% { background-color: rgba(255, 100, 26, 0.25); }
  100% { background-color: transparent; }
}

/* Empty State Styling */
.empty-state-row td {
  padding: 48px 0;
}

.empty-state-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
}

.empty-icon {
  width: 44px;
  height: 44px;
  color: var(--text-muted);
}

.empty-state-content p {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-main);
}

.empty-state-content span {
  font-size: 12px;
  color: var(--text-muted);
}

/* Sidebar Breakdowns list */
.breakdown-card {
  padding: 24px 28px;
}

.breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.breakdown-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
}

.breakdown-name {
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
}

.breakdown-value {
  color: var(--text-main);
}

.breakdown-track {
  width: 100%;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.04);
  border-radius: 3px;
  overflow: hidden;
}

.breakdown-fill {
  height: 100%;
  background-color: var(--brand-blue);
  border-radius: 3px;
}

.breakdown-fill.green {
  background-color: var(--brand-green);
}

.breakdown-fill.orange {
  background-color: var(--brand-color);
}

.empty-side-note {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
  padding: 16px 0;
  font-family: 'Inter', sans-serif;
}

/* API Integration Card */
.integration-card {
  padding: 24px 28px;
}

.integration-body {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.integration-body p {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 18px;
  font-family: 'Inter', sans-serif;
}

.code-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
  font-family: monospace;
}

.btn-copy {
  background: transparent;
  border: none;
  color: var(--brand-color);
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.code-block {
  background: #030304;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  overflow-x: auto;
}

#curl-code {
  font-family: monospace;
  font-size: 11px;
  color: #A3E635;
  line-height: 16px;
  display: block;
}

/* Auth Portal Styles */
.login-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  background-color: var(--bg-primary);
}

.login-card {
  width: 100%;
  maxWidth: 420px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  border-radius: 28px;
}

.login-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.logo-shield {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(255, 100, 26, 0.1);
  border: 1.5px solid rgba(255, 100, 26, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 8px;
}

.shield-icon {
  color: var(--brand-color);
  width: 32px;
  height: 32px;
}

.logo-glow {
  position: absolute;
  width: 44px;
  height: 44px;
  background: var(--brand-color);
  filter: blur(20px);
  opacity: 0.35;
  z-index: -1;
}

.login-header h2 {
  font-size: 22px;
  font-weight: 800;
}

.login-header p {
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 18px;
  font-family: 'Inter', sans-serif;
}

.auth-tabs {
  display: flex;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 4px;
  gap: 4px;
}

.auth-tab {
  flex: 1;
  height: 38px;
  border-radius: 12px;
  background: transparent;
  color: var(--text-secondary);
  border: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

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

.auth-tab.active {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
}

.clerk-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
}

.spinner-container {
  width: 40px;
  height: 40px;
  position: relative;
}

.double-bounce1, .double-bounce2 {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--brand-color);
  opacity: 0.6;
  position: absolute;
  top: 0;
  left: 0;
  animation: sk-bounce 2.0s infinite ease-in-out;
}

.double-bounce2 {
  animation-delay: -1.0s;
}

@keyframes sk-bounce {
  0%, 100% { transform: scale(0.0); }
  50% { transform: scale(1.0); }
}

.clerk-loader p {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  width: 18px;
  height: 18px;
}

.password-input-wrapper input {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background-color: rgba(0, 0, 0, 0.2);
  color: var(--text-main);
  padding: 0 48px 0 44px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-fast);
}

.password-input-wrapper input:focus {
  outline: none;
  border-color: var(--brand-color);
}

.password-toggle-btn {
  position: absolute;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.password-toggle-btn:hover {
  color: var(--text-secondary);
}

.btn-block {
  width: 100%;
  height: 52px;
  justify-content: center;
  font-size: 14px;
}

.login-error-message {
  padding: 12px 16px;
  border-radius: 12px;
  background-color: rgba(255, 69, 58, 0.1);
  border: 1px solid rgba(255, 69, 58, 0.2);
  color: #ff9f9f;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.hidden {
  display: none !important;
}

/* Footer Section */
.main-footer {
  text-align: center;
  padding: 24px 0 12px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

/* Landing Page Styles */
.landing-body {
  background-color: #030303;
  color: var(--text-main);
  font-family: var(--font-family);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.landing-wrapper {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 64px;
  flex: 1;
}

.landing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  border-radius: 20px;
}

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

.landing-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: var(--transition-fast);
}

.landing-nav a:hover {
  color: var(--text-main);
}

.landing-main {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* Hero Section */
.hero-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.hero-badge {
  background: rgba(255, 100, 26, 0.08);
  border: 1px solid rgba(255, 100, 26, 0.2);
  color: var(--brand-color);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--brand-color);
  box-shadow: 0 0 8px var(--brand-color);
}

.hero-title {
  font-size: 54px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1.5px;
  font-family: 'Outfit', sans-serif;
}

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

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 28px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

.hero-actions-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}

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

.btn-sm {
  padding: 6px 12px;
  font-size: 11px;
  border-radius: 8px;
}

/* On-Device AI Preview Mockup */
.app-preview-section {
  display: flex;
  justify-content: center;
  width: 100%;
}

.mockup-container {
  width: 100%;
  max-width: 680px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.7);
}

.mockup-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mockup-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.mockup-dot.red { background-color: #ff453a; }
.mockup-dot.yellow { background-color: #ffcc00; }
.mockup-dot.green { background-color: #30d55d; }

.mockup-title {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 8px;
  font-family: monospace;
}

.mockup-body {
  padding: 24px;
  background: #030305;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 180px;
}

.terminal-line {
  font-family: monospace;
  font-size: 12.5px;
  line-height: 20px;
  color: #E5E7EB;
}

.terminal-cyan { color: #00D2FF; font-weight: bold; }
.terminal-green { color: #30D55D; font-weight: bold; }
.terminal-orange { color: #FF641A; font-weight: bold; }
.terminal-category {
  background: rgba(255, 100, 26, 0.15);
  color: #FF641A;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
}

/* Features Section */
.features-section {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  width: 100%;
}

.feature-card {
  padding: 32px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 100, 26, 0.25);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid transparent;
}

.feature-icon.blue { background: rgba(10, 132, 255, 0.08); color: var(--brand-blue); border-color: rgba(10, 132, 255, 0.15); }
.feature-icon.orange { background: rgba(255, 100, 26, 0.08); color: var(--brand-color); border-color: rgba(255, 100, 26, 0.15); }
.feature-icon.green { background: rgba(48, 213, 93, 0.08); color: var(--brand-green); border-color: rgba(48, 213, 93, 0.15); }

.feature-card h4 {
  font-size: 18px;
  font-weight: 800;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 22px;
  font-family: 'Inter', sans-serif;
}

/* Privacy Statement */
.privacy-section {
  padding: 40px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.privacy-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.shield-main-icon {
  width: 36px;
  height: 36px;
  color: var(--brand-green);
}

.privacy-section h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.privacy-section p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 24px;
  font-family: 'Inter', sans-serif;
}

/* Landing Footer */
.landing-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 12.5px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-secondary);
}

.footer-links .sep {
  color: var(--text-muted);
  opacity: 0.5;
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 38px;
  }
  .landing-header {
    flex-direction: column;
    gap: 16px;
  }
  .landing-footer {
    flex-direction: column;
    text-align: center;
  }
}

/* Interactive Simulator Section */
.demo-section {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

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

.section-desc {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 24px;
  margin-top: 12px;
  font-family: 'Inter', sans-serif;
}

.simulator-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: center;
  width: 100%;
}

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

.simulator-controls {
  padding: 32px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  justify-content: center;
}

.simulator-controls h4 {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
}

.controls-subtitle {
  color: var(--text-muted);
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  margin-bottom: 8px;
}

.trigger-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.trigger-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  transition: var(--transition-fast);
  width: 100%;
}

.trigger-btn:hover {
  background: rgba(255, 100, 26, 0.04);
  border-color: rgba(255, 100, 26, 0.3);
  transform: translateX(4px);
}

.trigger-btn i {
  width: 22px;
  height: 22px;
  opacity: 0.95;
}

.trigger-btn .red-icon { color: var(--brand-red); }
.trigger-btn .green-icon { color: var(--brand-green); }
.trigger-btn .blue-icon { color: var(--brand-blue); }
.trigger-btn .orange-icon { color: var(--brand-color); }

.btn-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.btn-text-wrapper strong {
  color: var(--text-main);
  font-size: 14.5px;
  font-family: 'Outfit', sans-serif;
}

.btn-text-wrapper span {
  color: var(--text-secondary);
  font-size: 11.5px;
  font-family: 'Inter', sans-serif;
}

/* Simulated Mobile Device */
.mock-phone-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.phone-frame {
  width: 320px;
  height: 580px;
  border-radius: 44px;
  border: 12px solid #1E1F24;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), inset 0 2px 8px rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
  background-color: #090A0E;
}

.phone-notch {
  width: 140px;
  height: 22px;
  background-color: #1E1F24;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.phone-header {
  height: 36px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  font-family: monospace;
  position: relative;
  z-index: 5;
}

.phone-status-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.phone-icon-xs {
  width: 11px;
  height: 11px;
  color: var(--text-secondary);
}

.phone-screen {
  position: relative;
  width: 100%;
  height: calc(100% - 36px);
  display: flex;
  flex-direction: column;
}

/* SMS Toast Banner */
.sms-notification-toast {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  background: rgba(20, 20, 25, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  z-index: 100;
  transform: translateY(-80px);
  opacity: 0;
}

.sms-toast-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.sms-app-badge {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background-color: var(--brand-blue);
  display: flex;
  justify-content: center;
  align-items: center;
}

.sms-toast-time {
  margin-left: auto;
}

#sms-toast-body {
  font-family: monospace;
  font-size: 10px;
  line-height: 14px;
  color: #FFFFFF;
}

@keyframes slideDownFade {
  0% { transform: translateY(-80px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes slideUpFadeOut {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-80px); opacity: 0; }
}

/* Spendd App Frame */
.spendd-app-view {
  display: flex;
  flex-direction: column;
  padding: 12px 16px 16px;
  gap: 16px;
  flex: 1;
}

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

.spendd-app-brand {
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand-color);
}

.spendd-app-brand strong {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.app-balance-card {
  background: linear-gradient(135deg, rgba(255, 100, 26, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
  border: 1px solid rgba(255, 100, 26, 0.15);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.balance-label {
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-family: 'Inter', sans-serif;
}

#app-balance-value {
  font-size: 22px;
  font-weight: 800;
}

.app-status-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  transition: var(--transition-fast);
  border: 1px solid transparent;
}

.app-status-bar.idle {
  background-color: rgba(255,255,255,0.03);
  color: var(--text-secondary);
  border-color: rgba(255,255,255,0.04);
}

.app-status-bar.processing {
  background-color: rgba(255, 100, 26, 0.08);
  color: var(--brand-color);
  border-color: rgba(255, 100, 26, 0.2);
}

.app-status-bar.processing i {
  animation: spin 1.5s linear infinite;
}

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

.app-status-bar.success {
  background-color: rgba(48, 213, 93, 0.08);
  color: var(--brand-green);
  border-color: rgba(48, 213, 93, 0.2);
}

.app-transactions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  overflow: hidden;
}

.list-header {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.ledger-items-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  flex: 1;
}

/* Hide scrollbar for layout */
.ledger-items-container::-webkit-scrollbar {
  display: none;
}

.empty-ledger-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  text-align: center;
  height: 100%;
}

.empty-ledger-note i {
  width: 28px;
  height: 28px;
}

.empty-ledger-note p {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.empty-ledger-note span {
  font-size: 10px;
}

.app-ledger-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 10px 12px;
}

.animate-slide-in {
  animation: slideInLeft 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInLeft {
  0% { opacity: 0; transform: translateX(20px); }
  100% { opacity: 1; transform: translateX(0); }
}

.item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.item-icon-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid transparent;
}

.item-icon-circle.debit { background-color: rgba(255, 69, 58, 0.1); color: var(--brand-red); border-color: rgba(255, 69, 58, 0.2); }
.item-icon-circle.credit { background-color: rgba(48, 213, 93, 0.1); color: var(--brand-green); border-color: rgba(48, 213, 93, 0.2); }

.item-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.item-meta strong {
  font-size: 11.5px;
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
}

.item-meta span {
  font-size: 9.5px;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
}

.item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.debit-text { color: var(--text-main); font-size: 12px; font-weight: 700; font-family: monospace; }
.credit-text { color: var(--brand-green); font-size: 12px; font-weight: 700; font-family: monospace; }

.app-category-tag {
  font-size: 8px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.app-category-tag.outlaw { background-color: rgba(255,69,58,0.15); color: #FF453A; }
.app-category-tag.inflow { background-color: rgba(48,213,93,0.15); color: #30D55D; }

/* Download Section redesign */
.download-section {
  display: flex;
  justify-content: center;
  width: 100%;
}

.download-card {
  width: 100%;
  padding: 40px;
  border-radius: 28px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: center;
}

@media (max-width: 768px) {
  .download-card {
    grid-template-columns: 1fr;
    padding: 32px;
  }
}

.download-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(48, 213, 93, 0.1);
  color: var(--brand-green);
  border: 1px solid rgba(48, 213, 93, 0.2);
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.android-icon {
  width: 14px;
  height: 14px;
}

.download-left h3 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
}

.download-left p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 22px;
  margin-bottom: 24px;
}

.build-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.meta-value {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-secondary);
}

.sha-box {
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sha-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.sha-value {
  font-family: monospace;
  font-size: 11px;
  color: #FFB35A;
  word-break: break-all;
}

.download-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.download-btn-action {
  box-shadow: 0 0 30px rgba(255, 100, 26, 0.25);
  border-radius: 18px !important;
}

.download-btn-action:hover {
  box-shadow: 0 0 40px rgba(255, 100, 26, 0.45);
}

.download-terms {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}