@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --primary-green: #37c876;
  --primary-green-dark: #22a75d;
  --primary-green-light: #5de097;
  --header-grad-start: #44cf7f;
  --header-grad-mid: #5ddc92;
  --header-grad-end: #7ee7a9;
  --text-dark: #2d3748;
  --text-muted: #718096;
  --text-light: #a0aec0;
  --bg-page: #0f172a;
  --bg-card: #ffffff;
  --border-light: #edf2f7;
  --divider-color: #f1f5f9;
  --badge-bg: #f2fbf6;
  --badge-border: #d4f3e2;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.16);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-main);
  background: #0f172a;
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 0% 0%, rgba(55, 200, 118, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(34, 167, 93, 0.12) 0px, transparent 50%);
}

/* Top Tool Bar for Showcase / Admin Link */
.showcase-bar {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  margin-bottom: 8px;
  color: #cbd5e1;
  font-size: 13px;
}

.showcase-bar .brand-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.showcase-bar .brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #37c876;
  box-shadow: 0 0 10px #37c876;
}

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

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-admin {
  background: #37c876;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(55, 200, 118, 0.3);
}

.btn-admin:hover {
  background: #2cb568;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(55, 200, 118, 0.4);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* Device Shell Container */
.phone-viewport-wrapper {
  position: relative;
  padding: 10px 0 40px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.phone-device {
  width: 100%;
  max-width: 412px;
  min-height: 860px;
  background: #ffffff;
  border-radius: 38px;
  box-shadow: 
    0 25px 60px -15px rgba(0, 0, 0, 0.6),
    0 0 0 10px #1e293b,
    0 0 0 12px #334155;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Fullscreen mode on small screens */
@media (max-width: 480px) {
  body {
    background: #ffffff;
  }
  .showcase-bar {
    display: none;
  }
  .phone-viewport-wrapper {
    padding: 0;
  }
  .phone-device {
    max-width: 100%;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
    border: none;
  }
}

/* Simulated Status Bar (Matching screenshot) */
.mobile-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 18px 4px;
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  user-select: none;
}

.status-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-time {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.app-icons-mini {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 3px;
}

.app-icons-mini svg {
  width: 13px;
  height: 13px;
  fill: #64748b;
}

.status-right {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #475569;
}

.status-right svg {
  width: 14px;
  height: 14px;
  fill: #1e293b;
}

/* App Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px 12px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
}

.btn-hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4.5px;
  padding: 6px;
  border-radius: 6px;
}

.hamburger-line {
  width: 22px;
  height: 2.5px;
  background-color: var(--primary-green);
  border-radius: 2px;
}

.brand-logo-center {
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  text-decoration: none;
}

.logo-sphere {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #8ef5be 0%, #30c473 45%, #188d4d 100%);
  box-shadow: 0 2px 5px rgba(34, 167, 93, 0.35), inset 0 -1px 2px rgba(0, 0, 0, 0.2);
  position: relative;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 0.95;
}

.logo-main {
  font-size: 19px;
  font-weight: 800;
  color: #2b353f;
  letter-spacing: -0.5px;
}

.logo-sub {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.2px;
  margin-top: 1px;
}

.header-right-action {
  display: flex;
  align-items: center;
}

.chat-badge-icon {
  width: 32px;
  height: 28px;
  border: 2px solid var(--primary-green);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #ffffff;
  color: var(--primary-green);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.chat-badge-icon::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 6px;
  width: 5px;
  height: 5px;
  background: #ffffff;
  border-right: 2px solid var(--primary-green);
  border-bottom: 2px solid var(--primary-green);
  transform: rotate(45deg);
}

.chat-badge-icon:active {
  transform: scale(0.95);
}

/* Green Hero Card */
.hero-account-card {
  background: linear-gradient(175deg, var(--header-grad-start) 0%, var(--header-grad-mid) 50%, var(--header-grad-end) 100%);
  padding: 24px 20px 0;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.account-subtitle {
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.balance-amount {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 6px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.balance-label-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  margin-bottom: 28px;
  cursor: pointer;
}

.balance-triangle {
  font-size: 9px;
  transform: translateY(-0.5px);
  color: rgba(255, 255, 255, 0.85);
}

/* Vault Section */
.vault-section-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-bottom: -44px; /* Pull down halfway */
  z-index: 10;
  padding: 0 10px;
}

.btn-vault-action {
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 10px 22px;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  flex: 1;
  max-width: 110px;
  text-align: center;
}

.btn-vault-action:hover {
  background: rgba(255, 255, 255, 0.38);
  transform: translateY(-1px);
}

.btn-vault-action:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.45);
}

/* Central Vault Circle */
.vault-circle-badge {
  width: 90px;
  height: 90px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1), 0 0 0 3px #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 15;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin: 0 12px;
}

.vault-circle-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14), 0 0 0 3px #ffffff;
}

.vault-circle-badge .vault-title {
  font-size: 9px;
  font-weight: 700;
  color: #718096;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 1px;
}

.vault-circle-badge .vault-amount {
  font-size: 17px;
  font-weight: 700;
  color: #2d3748;
  letter-spacing: -0.3px;
  line-height: 1.1;
}

.vault-circle-badge .vault-lock-box {
  width: 17px;
  height: 15px;
  border: 1.5px solid var(--primary-green);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
}

.vault-lock-box svg {
  width: 9px;
  height: 9px;
  fill: var(--primary-green);
}

/* Action Items List */
.app-content-body {
  background: #ffffff;
  padding-top: 56px; /* Offset for vault circle overlap */
  flex: 1;
  display: flex;
  flex-direction: column;
}

.feature-list {
  list-style: none;
  width: 100%;
}

.feature-item {
  display: flex;
  align-items: center;
  padding: 17px 22px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background-color 0.15s ease;
  user-select: none;
}

.feature-item:hover {
  background-color: #fafbfc;
}

.feature-item:active {
  background-color: #f1f5f9;
}

.feature-icon-wrapper {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--badge-border);
  background: var(--badge-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 18px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.feature-item:hover .feature-icon-wrapper {
  transform: scale(1.05);
}

.feature-icon-wrapper svg {
  width: 19px;
  height: 19px;
  stroke: var(--primary-green);
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-text {
  font-size: 16px;
  font-weight: 500;
  color: #4a5568;
  letter-spacing: -0.1px;
  flex: 1;
}

.feature-item.is-locked .feature-text {
  color: #2d3748;
  font-weight: 600;
}

/* Status indicator pill for lock item */
.lock-status-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  background: #e6f9ed;
  color: #1b8e4e;
}

.lock-status-badge.unlocked {
  background: #fef2f2;
  color: #dc2626;
}

/* Bottom Bar / Home Indicator */
.phone-bottom-nav {
  padding: 24px 20px 12px;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-bar-indicator {
  width: 134px;
  height: 4px;
  background: #1e293b;
  border-radius: 3px;
  opacity: 0.85;
}

/* Modals & Drawers */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-bottom-sheet {
  background: #ffffff;
  width: 100%;
  max-width: 440px;
  border-radius: 28px 28px 0 0;
  padding: 24px 22px 32px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 85vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-bottom-sheet {
  transform: translateY(0);
}

.sheet-handle {
  width: 40px;
  height: 4px;
  background: #cbd5e1;
  border-radius: 2px;
  margin: 0 auto 18px;
}

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

.sheet-title {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
}

.btn-close-sheet {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #64748b;
  cursor: pointer;
}

/* Stash / Transfer Form Inside Modal */
.transfer-input-group {
  margin-bottom: 16px;
}

.transfer-input-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

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

.currency-prefix {
  position: absolute;
  left: 14px;
  font-size: 20px;
  font-weight: 700;
  color: #64748b;
}

.transfer-input {
  width: 100%;
  padding: 14px 14px 14px 34px;
  font-size: 22px;
  font-weight: 700;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  outline: none;
  color: #1e293b;
  font-family: var(--font-display);
}

.transfer-input:focus {
  border-color: var(--primary-green);
}

.quick-amount-chips {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.chip-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}

.chip-btn:hover {
  background: #e2f8eb;
  border-color: #8ce3b4;
  color: #128245;
}

.btn-primary-action {
  width: 100%;
  background: var(--primary-green);
  color: #ffffff;
  border: none;
  padding: 14px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 14px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(55, 200, 118, 0.35);
}

.btn-primary-action:hover {
  background: var(--primary-green-dark);
  transform: translateY(-1px);
}

.btn-primary-action:active {
  transform: scale(0.98);
}

/* Transactions list in Modal */
.tx-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tx-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 14px;
  border: 1px solid #edf2f7;
}

.tx-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tx-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.tx-icon-circle.credit {
  background: #e6f9ed;
  color: #128245;
}

.tx-icon-circle.debit {
  background: #fef2f2;
  color: #dc2626;
}

.tx-title {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.tx-meta {
  font-size: 11.5px;
  color: #64748b;
}

.tx-amount {
  font-size: 15px;
  font-weight: 700;
}

.tx-amount.credit {
  color: #16a34a;
}

.tx-amount.debit {
  color: #1e293b;
}

/* Toast alert notification */
.toast-msg {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1e293b;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-msg.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-green);
}
