/* Design tokens and base styles */
:root[data-profile-theme] {
  --bs-primary: #f5c84c;
  --bs-primary-rgb: 245, 200, 76;
  --bs-primary-hover: #ffda70;
  --bs-primary-bg-subtle: rgba(245, 200, 76, 0.10);
  --bs-primary-border-subtle: rgba(245, 200, 76, 0.25);
  --locket-gold: #f5c84c;
  --locket-gold-rgb: 245, 200, 76;
  --bs-success: #89c9a2;
  --bs-info: #99bddd;
  --bs-warning: #f5c84c;
  --bs-danger: #ed9696;
  --spring-out: cubic-bezier(0.16, 1, 0.3, 1);
  --spring-bounce: cubic-bezier(0.34, 1.32, 0.64, 1);
  --smooth-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-profile-theme][data-bs-theme="dark"] {
  color-scheme: dark;
  --bs-body-bg: #151719;
  --bs-body-bg-rgb: 21, 23, 25;
  --bs-paper-bg: #1c1e20;
  --bs-paper-bg-rgb: 28, 30, 32;
  --bs-surface-2: #242729;
  --bs-surface-3: #303437;
  --bs-phone-bg: #111315;
  --bs-phone-inner: #1b1e20;
  --bs-heading-color: #f1f0ec;
  --bs-body-color: #c0c2c1;
  --bs-secondary-color: #929795;
  --bs-border-color: #34383a;
  --bs-border-translucent: rgba(241, 240, 236, 0.08);
  --bs-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --bs-box-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.14);
  --bs-box-shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.24);
  --navbar-bg: #191b1d;
}

:root[data-profile-theme][data-bs-theme="light"] {
  color-scheme: light;
  --bs-body-bg: #f4f3ef;
  --bs-body-bg-rgb: 244, 243, 239;
  --bs-paper-bg: #fdfcf9;
  --bs-paper-bg-rgb: 253, 252, 249;
  --bs-surface-2: #ecece6;
  --bs-surface-3: #e1e3dd;
  --bs-phone-bg: #111315;
  --bs-phone-inner: #1b1e20;
  --bs-heading-color: #252a28;
  --bs-body-color: #555d58;
  --bs-secondary-color: #747d76;
  --bs-border-color: #d5d9d2;
  --bs-border-translucent: rgba(37, 42, 40, 0.09);
  --bs-box-shadow: 0 2px 8px rgba(37, 42, 40, 0.04);
  --bs-box-shadow-lg: 0 8px 24px rgba(37, 42, 40, 0.06);
  --bs-box-shadow-xl: 0 16px 48px rgba(37, 42, 40, 0.12);
  --navbar-bg: #fdfcf9;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--locket-font-family);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
}

button, input, textarea, select { font: inherit; }
button, a { touch-action: manipulation; }
button { color: inherit; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
input, textarea, select { user-select: text; }
/* Keep number validation and keyboard controls without browser-painted steppers. */
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
img, video { max-width: 100%; }
::selection { background: rgba(var(--locket-gold-rgb), 0.28); color: var(--bs-heading-color); }
:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 4px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline-offset: 2px; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(146, 151, 149, 0.30); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(146, 151, 149, 0.50); }

/* Ripple feedback */
.waves-effect {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
}
.waves-ripple {
  position: absolute;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  margin-left: -12px;
  opacity: 0;
  background: rgba(var(--bs-primary-rgb), 0.20);
  transform: scale(0);
  pointer-events: none;
  animation: waveRippleAnim 0.58s var(--spring-out) forwards;
}
@keyframes waveRippleAnim {
  0% { transform: scale(0); opacity: 0.75; }
  70% { transform: scale(9); opacity: 0.35; }
  100% { transform: scale(11); opacity: 0; }
}
