:root {
  --pink:#f4a4c7;
  --pink-deep:#df75a8;
  --pink-dark:#b94f83;
  --pale:#fff4f9;
  --paper:#fffafd;
  --ink:#59394c;
  --muted:#a47d91;
  --line:#f2d7e5;
  --shadow:0 18px 50px #c66c9722;
  --white:#fff;
  --chrome:linear-gradient(145deg,#fff 0%,#f6e9f0 28%,#fff 48%,#dfd1dc 68%,#fff 100%)
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  min-height:100vh;
  background:radial-gradient(ellipse at 12% 12%,#ffe0ed 0,transparent 36%),radial-gradient(ellipse at 90% 45%,#f8d9eb 0,transparent 32%),linear-gradient(135deg,#fff8fb,#fcebf4 52%,#fff5fa);
  color:var(--ink);
  font-family:Nunito,system-ui,sans-serif;
  overflow-x:hidden
}
button,input,select {
  font:inherit
}
button {
  cursor:pointer
}
.app-shell {
  width:min(1120px,calc(100% - 40px));
  margin:auto;
  padding:24px 0 20px;
  position:relative;
  z-index:1
}
.topbar,.top-actions,.brand,.tabs,.calc-topline,.mode-switch,.display-tools,.memory-row,.side-heading,.currency-footer,.quick-amounts,.footer {
  display:flex;
  align-items:center;
  justify-content:space-between
}
.brand {
  gap:9px;
  text-decoration:none;
  color:var(--pink-dark);
  font-size:22px;
  font-weight:900;
  letter-spacing:-1px
}
.brand-icon {
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border-radius:12px;
  background:linear-gradient(145deg,#fff,#f5c2da);
  box-shadow:inset 0 2px #fff,0 5px 12px #c56c922c;
  font-size:20px
}
.brand-light {
  font-weight:500;
  color:#a97891
}
.top-actions {
  gap:13px
}
.live-pill {
  font-size:9px;
  letter-spacing:1.5px;
  font-weight:900;
  color:#b87595
}
.live-pill i {
  display:inline-block;
  width:6px;
  height:6px;
  border-radius:50%;
  background:#83c9a2;
  margin-right:6px;
  box-shadow:0 0 0 3px #83c9a222
}
.icon-button {
  width:36px;
  height:36px;
  border:1px solid #f0d5e3;
  border-radius:12px;
  background:#fff9;
  color:#a65d82;
  box-shadow:0 4px 10px #b96c8b16
}
.hero {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:48px 8px 30px
}
.eyebrow,.mini-label {
  font-size:9px;
  letter-spacing:2px;
  font-weight:900;
  color:#c27b9d;
  margin:0 0 8px
}
.hero h1 {
  font-size:clamp(38px,6vw,60px);
  line-height:1;
  margin:0;
  letter-spacing:-2.8px;
  font-weight:900;
  color:#75465e
}
.hero h1 span {
  color:#e17eae;
  text-shadow:2px 3px 0 #f8d5e5
}
.hero-sub {
  margin:12px 0 0;
  color:#a77f93;
  font-size:14px
}
.hero-sticker {
  width:94px;
  height:94px;
  border-radius:50%;
  background:var(--chrome);
  border:1px solid #fff;
  box-shadow:0 10px 25px #c47a9d3b,inset 0 0 0 5px #fff9;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  transform:rotate(9deg);
  color:#d76e9f
}
.hero-sticker span {
  font-size:26px;
  line-height:1
}
.hero-sticker small {
  font-size:8px;
  line-height:1.15;
  text-align:center;
  letter-spacing:1px;
  font-weight:900
}
.tabs {
  justify-content:flex-start;
  gap:7px;
  border-bottom:1px solid #edcede;
  padding:0 0 12px;
  margin-bottom:22px
}
.tab {
  border:0;
  background:transparent;
  color:#ae8498;
  padding:11px 17px;
  border-radius:12px;
  font-weight:800;
  font-size:12px;
  transition:.2s
}
.tab span {
  font-size:15px;
  margin-right:5px
}
.tab.active {
  background:linear-gradient(135deg,#e88db8,#d875a6);
  color:white;
  box-shadow:0 7px 16px #d77da33d,inset 0 1px #ffffff80
}
.tool-panel {
  display:none
}
.tool-panel.active {
  display:block;
  animation:appear .3s ease
}
@keyframes appear {
  from {
  opacity:0;
  transform:translateY(7px)
}
to {
  opacity:1;
  transform:translateY(0)
}

}
.glass-card {
  background:#fffafde8;
  border:1px solid #fff;
  box-shadow:var(--shadow),inset 0 1px #fff;
  border-radius:23px
}
.calculator-layout {
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(260px,.8fr);
  gap:20px;
  align-items:start
}
.calculator-card {
  padding:22px
}
.calc-topline {
  font-size:9px;
  color:#b58a9e;
  letter-spacing:1px
}
.mode-switch {
  gap:7px;
  font-size:9px;
  color:#c2a0b1
}
.mode-btn {
  border:1px solid #efcddd;
  border-radius:7px;
  background:#fff;
  color:#c05f91;
  padding:5px 8px;
  font-size:9px;
  font-weight:900
}
.display {
  margin:17px 0 12px;
  padding:15px 18px 12px;
  border-radius:17px;
  background:linear-gradient(145deg,#fff,#fff3f8);
  border:1px solid #f7dfeb;
  box-shadow:inset 0 3px 10px #c77b9810;
  min-height:112px;
  text-align:right;
  display:flex;
  flex-direction:column;
  justify-content:flex-end
}
.expression {
  font-family:"DM Mono",monospace;
  color:#bd91a7;
  font-size:12px;
  min-height:19px;
  overflow-wrap:anywhere
}
.result {
  font-family:"DM Mono",monospace;
  color:#79445f;
  font-size:clamp(28px,4vw,38px);
  font-weight:500;
  overflow-wrap:anywhere;
  line-height:1.35
}
.display-tools {
  margin-top:6px;
  font-size:8px;
  letter-spacing:1px;
  color:#c59aaf
}
.tiny-action,.text-action {
  border:0;
  background:none;
  color:#c06d98;
  font-size:9px;
  font-weight:900;
  letter-spacing:1px;
  padding:4px
}
.memory-row {
  gap:7px;
  margin-bottom:10px
}
.memory-row button {
  flex:1;
  border:1px solid #f2dce7;
  background:#fff9fc;
  color:#b7809a;
  border-radius:8px;
  padding:7px 2px;
  font-size:9px;
  font-weight:900
}
.keypad {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px
}
.key {
  min-height:48px;
  border:1px solid #f3d9e6;
  border-radius:12px;
  background:linear-gradient(145deg,#fff,#fff6fa);
  color:#79516a;
  font-size:15px;
  font-weight:800;
  box-shadow:0 4px 0 #ecd0df,0 6px 12px #c67a9810,inset 0 1px #fff;
  transition:transform .12s,box-shadow .12s
}
.key:active {
  transform:translateY(3px);
  box-shadow:0 1px 0 #e7c5d7
}
.key.function {
  font-size:11px;
  color:#bd6e96;
  background:linear-gradient(145deg,#fff8fc,#fbe7f1)
}
.key.operator {
  color:#fff;
  background:linear-gradient(145deg,#efa6c7,#dc7eaa);
  border-color:#e89abd;
  box-shadow:0 4px 0 #c86b99,0 7px 12px #c66b9625,inset 0 1px #ffffff88
}
.key.utility {
  background:linear-gradient(145deg,#f8d5e5,#f0b6d1);
  color:#a34c79
}
.key.equals {
  background:linear-gradient(145deg,#d86d9f,#b84f83);
  border-color:#d66b9b;
  color:#fff;
  box-shadow:0 4px 0 #99436d,0 7px 15px #c45e912e,inset 0 1px #ffffff80;
  font-size:21px
}
.key.zero {
  grid-column:span 1
}
.side-column {
  display:grid;
  gap:15px
}
.side-card {
  padding:19px
}
.side-heading h2,.section-heading h2 {
  font-size:19px;
  letter-spacing:-.5px;
  margin:0;
  color:#70475c
}
.side-heading .mini-label {
  margin-bottom:4px
}
.history-list {
  display:grid;
  gap:8px;
  margin-top:14px;
  max-height:310px;
  overflow:auto
}
.empty-state {
  font-size:12px;
  color:#bd9bad;
  text-align:center;
  padding:25px 5px
}
.history-item {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:9px 10px;
  background:#fff5f9;
  border:1px solid #f7e3ed;
  border-radius:10px
}
.history-expression {
  font:10px "DM Mono",monospace;
  color:#b58ba0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.history-result {
  font:11px "DM Mono",monospace;
  color:#8c4c6d;
  font-weight:600;
  white-space:nowrap
}
.tip-card {
  position:relative;
  overflow:hidden;
  border-radius:18px;
  padding:18px 20px;
  background:linear-gradient(135deg,#e99abc,#d77da8);
  color:#fff;
  box-shadow:0 12px 24px #cb70952b
}
.tip-card .mini-label {
  color:#fff9
}
.tip-card p:last-child {
  font-size:12px;
  line-height:1.65;
  margin:7px 0 0;
  max-width:260px
}
.tip-star {
  position:absolute;
  right:18px;
  top:10px;
  font-size:32px;
  color:#fff8
}
kbd {
  padding:2px 5px;
  background:#ffffff35;
  border:1px solid #ffffff55;
  border-radius:4px;
  font:10px "DM Mono",monospace
}
.converter-card {
  padding:clamp(22px,4vw,38px);
  max-width:850px;
  margin:0 auto
}
.section-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:30px
}
.section-heading h2 {
  font-size:clamp(23px,4vw,30px)
}
.section-heading h2 span {
  color:#e18ab2
}
.section-heading p:not(.mini-label) {
  font-size:12px;
  color:#ad879a;
  margin:8px 0 0
}
.round-sticker {
  width:72px;
  height:72px;
  border-radius:22px;
  transform:rotate(8deg);
  background:var(--chrome);
  box-shadow:0 7px 16px #b96d9328,inset 0 1px white;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  color:#d775a2;
  font-size:26px
}
.round-sticker small {
  font-size:7px;
  text-align:center;
  line-height:1.1;
  font-weight:900;
  letter-spacing:1px
}
.currency-converter,.unit-converter {
  display:grid;
  grid-template-columns:minmax(0,1fr) 48px minmax(0,1fr);
  gap:14px;
  align-items:center
}
.currency-box,.unit-box {
  background:linear-gradient(145deg,#fff,#fff5f9);
  border:1px solid #f2d9e6;
  border-radius:17px;
  padding:16px;
  min-width:0
}
.currency-box label,.unit-box label {
  display:block;
  font-size:9px;
  letter-spacing:1.5px;
  font-weight:900;
  color:#c18ca6;
  margin-bottom:12px
}
.currency-box input,.unit-box input {
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  color:#77475f;
  font:24px "DM Mono",monospace;
  min-width:0
}
.currency-box select,.unit-box select,.wide-select {
  width:100%;
  border:1px solid #f0d9e5;
  border-radius:9px;
  background:#fff;
  color:#8e5d77;
  padding:9px;
  margin-top:12px;
  font-size:12px;
  font-weight:800;
  outline:none
}
.swap-button {
  width:43px;
  height:43px;
  border-radius:50%;
  border:1px solid #f1ccdd;
  background:linear-gradient(145deg,#fff,#f8dce9);
  color:#c46693;
  font-size:23px;
  box-shadow:0 5px 12px #bf72951c
}
.rate-line {
  text-align:center;
  color:#a87991;
  font:11px "DM Mono",monospace;
  margin:22px 0 17px;
  min-height:17px
}
.currency-footer {
  gap:12px;
  color:#b38ca0;
  font-size:10px
}
.outline-button {
  border:1px solid #edcddd;
  background:#fff8fc;
  color:#bf6794;
  border-radius:9px;
  padding:9px 12px;
  font-size:9px;
  font-weight:900;
  letter-spacing:.7px
}
.quick-amounts {
  justify-content:flex-start;
  gap:8px;
  flex-wrap:wrap;
  border-top:1px solid #f2e0e9;
  padding-top:17px;
  margin-top:20px
}
.quick-amounts span {
  font-size:9px;
  color:#bb8ba2;
  letter-spacing:1px;
  font-weight:900;
  margin-right:5px
}
.quick-amounts button {
  border:1px solid #f0d6e3;
  border-radius:8px;
  background:#fff;
  color:#a96688;
  padding:6px 11px;
  font:10px "DM Mono",monospace
}
.disclaimer {
  font-size:10px;
  color:#b99aac;
  line-height:1.5;
  margin:18px 0 0
}
.unit-controls {
  max-width:330px;
  margin-bottom:18px
}
.field-label {
  font-size:9px;
  letter-spacing:1.4px;
  font-weight:900;
  color:#bf89a2
}
.wide-select {
  display:block;
  margin-top:8px
}
.unit-result {
  text-align:center;
  background:#fff4f9;
  border:1px solid #f4dce8;
  border-radius:12px;
  padding:13px;
  margin-top:18px;
  color:#b17b95;
  font:11px "DM Mono",monospace;
  overflow-wrap:anywhere
}
.footer {
  padding:25px 5px 5px;
  color:#bd98aa;
  font-size:8px;
  letter-spacing:1.3px;
  font-weight:900
}
.footer b {
  color:#df80aa
}
.sparkle {
  position:fixed;
  z-index:0;
  color:#e9a5c4;
  pointer-events:none
}
.sparkle-one {
  top:19%;
  left:4%;
  font-size:23px
}
.sparkle-two {
  top:66%;
  right:4%;
  font-size:32px
}
.sparkle-three {
  top:7%;
  right:15%;
  font-size:15px
}
.toast {
  position:fixed;
  bottom:24px;
  left:50%;
  transform:translate(-50%,20px);
  background:#75465e;
  color:#fff;
  padding:11px 17px;
  border-radius:12px;
  font-size:12px;
  box-shadow:0 8px 25px #60334c30;
  opacity:0;
  pointer-events:none;
  transition:.25s;
  z-index:5
}
.toast.show {
  opacity:1;
  transform:translate(-50%,0)
}
body.dark {
  --ink:#f7dce9;
  --muted:#c49ab0;
  --shadow:0 18px 50px #160b162e;
  background:radial-gradient(ellipse at 12% 12%,#503047 0,transparent 36%),linear-gradient(135deg,#211722,#322033 60%,#241925);
  color:var(--ink)
}
body.dark .glass-card {
  background:#352536ed;
  border-color:#65445b
}
body.dark .hero h1,body.dark .side-heading h2,body.dark .section-heading h2 {
  color:#f9dce9
}
body.dark .hero-sub,body.dark .section-heading p:not(.mini-label) {
  color:#c7a2b5
}
body.dark .display,body.dark .currency-box,body.dark .unit-box,body.dark .history-item,body.dark .unit-result {
  background:#291d2c;
  border-color:#604157
}
body.dark .result,body.dark .currency-box input,body.dark .unit-box input {
  color:#ffe5f0
}
body.dark .key {
  background:linear-gradient(145deg,#493448,#39283b);
  border-color:#66475c;
  color:#f5d7e5;
  box-shadow:0 4px 0 #211724
}
body.dark .key.function,body.dark .memory-row button {
  background:#432c40;
  color:#e9a5c4;
  border-color:#68465d
}
body.dark .key.operator {
  background:linear-gradient(145deg,#d77ca8,#a94d7c)
}
body.dark .key.utility {
  background:#68405a;
  color:#fff
}
body.dark .key.equals {
  background:linear-gradient(145deg,#d86d9f,#a94578)
}
body.dark .tabs {
  border-color:#63465a
}
body.dark .tab {
  color:#c6a0b5
}
body.dark .tab.active {
  color:white
}
body.dark .currency-box select,body.dark .unit-box select,body.dark .wide-select {
  background:#39283b;
  color:#f5d7e5;
  border-color:#66475c
}
body.dark .swap-button,body.dark .outline-button,.dark .quick-amounts button {
  background:#432c40;
  color:#f1b7d1;
  border-color:#68465d
}
body.dark .brand {
  color:#f3a9c9
}
body.dark .brand-light {
  color:#d2a9be
}
body.dark .icon-button {
  background:#3c293c;
  border-color:#68465d;
  color:#f3b5d0
}
body.dark .display-tools,body.dark .expression {
  color:#c49ab0
}
body.dark .side-card .empty-state {
  color:#c5a1b4
}
