@font-face { font-family: VaultInter; src: url('./assets/inter-regular.ttf'); font-weight: 400; font-display: swap; }
@font-face { font-family: VaultInter; src: url('./assets/inter-semibold.ttf'); font-weight: 600; font-display: swap; }
@font-face { font-family: VaultInter; src: url('./assets/inter-bold.ttf'); font-weight: 700; font-display: swap; }
:root { font-family: VaultInter, sans-serif; --green: #6bee91; --bg: #0d1112; }
body { background: #0d1112; }
body::before { display: block; position: fixed; inset: 0; z-index: -1; content: ''; pointer-events: none; background: url('./assets/vaultify-graphite-background-v1.webp') center / cover no-repeat; opacity: .85; }
body::after { display: none; }
button, input { font-family: inherit; letter-spacing: 0; }
.app-shell { padding: 0; }
.app-screen { width: min(100%, 440px); padding: 24px 18px 106px; min-height: 100svh; }
.topbar { margin-bottom: 18px; }
.brand { font-size: 24px; font-weight: 700; gap: 10px; }
.shield { width: 30px; height: 34px; }
.brand .shield { width: 36px; height: 40px; flex: 0 0 36px; background: none; box-shadow: none; filter: drop-shadow(0 0 6px #20df8055) drop-shadow(0 0 15px #20df8025); }
.brand .shield img { display: block; width: 100%; height: 100%; object-fit: contain; }
.lang-toggle { background: transparent; box-shadow: none; }
.balance-card { min-height: 154px; margin: 0 0 22px; padding: 16px; border: 1px solid #45715a; border-radius: 8px; background: linear-gradient(145deg, #22332eee, #12191af5 80%); box-shadow: inset 0 1px 0 #92f8ba20, 0 0 18px #26df7412, 0 12px 24px #00000035; overflow: hidden; }
.balance-card::after, .card-glint, .section-orbit { display: none; }
.balance-copy { width: 70%; }
.balance-label { font-size: 14px; color: #aab3b9; }
.balance-label-icon { display: none; }
.balance-copy h1 { display: flex; align-items: center; gap: 7px; margin: 14px 0 10px; font-size: 36px; line-height: 1.15; font-weight: 700; }
.balance-copy h1 span { display: inline-flex; align-items: center; gap: 5px; font-size: 15px; font-weight: 600; color: #aab3b9; }
.balance-copy h1 span::before { content: ''; width: 26px; height: 26px; background: url('./assets/vlt-coin-v1.webp') center / contain no-repeat; }
.balance-copy p { font-size: 16px; color: #aab3b9; }
.hero-safe { width: 120px; max-width: 30%; right: 10px; bottom: 15px; filter: drop-shadow(0 8px 14px #0009) drop-shadow(0 0 8px #36d78125); }
[data-view='home'] .vault-card { padding: 18px 16px 16px; margin-top: 0; border-radius: 8px; border: 1px solid #455150; background: linear-gradient(145deg, #222c2e, #12191a 80%); box-shadow: inset 0 1px 0 #ffffff0c; }
.vault-card::after { display: none; }
.vault-head { min-height: 104px; }
.vault-head h2 { font-size: 23px; line-height: 1.25; font-weight: 700; }
.vault-head > div { min-width: 0; }
.vault-gift { width: 86px; height: 86px; margin: 0 -2px 0 4px; flex-shrink: 0; }
.counter { margin-top: 15px; font-size: 30px; font-weight: 700; line-height: 1.1; }
.counter span { color: #abb7bf; }
.progress { height: 10px; background: #111a19; border: 1px solid #354c41; box-shadow: none; }
.progress span { background: linear-gradient(90deg, #27ca69, #79f598); box-shadow: none; transition: width 250ms ease; }
.hint { font-size: 12px; line-height: 1.5; margin: 12px 0 15px; }
.watch-button { min-height: 52px; padding: 0 12px; gap: 7px; border-radius: 8px; border: 1px solid #62d580; background: linear-gradient(180deg, #38c568, #138641); box-shadow: inset 0 1px 0 #b6ffc342, 0 0 18px #20df8020, 0 6px 14px #0004; font-size: 13px; font-weight: 600; white-space: nowrap; }
.watch-button .play { flex: 0 0 24px; width: 24px; height: 26px; }
.watch-button > span:last-of-type { flex: 1; text-align: left; }
.watch-button strong { display: inline-flex; align-items: center; gap: 4px; color: #ffe280; font-size: 13px; font-weight: 700; }
.watch-button strong::before, .reward em::before { content: ''; width: 20px; height: 20px; flex: 0 0 20px; background: url('./assets/vlt-coin-v1.webp') center / contain no-repeat; }
.adsgram-slot { margin-top: 18px; }
.local-preview .refresh-task { display: none; }
.refresh-task { display: flex; align-items: center; gap: 12px; min-height: 86px; padding: 15px; border: 1px solid #465155; border-radius: 8px; background: linear-gradient(145deg, #202a2d, #141b1d); }
.refresh-task-icon { width: 43px; height: 43px; flex: 0 0 43px; display: grid; place-items: center; border-radius: 50%; color: white; background: #0aa9e5; }
.refresh-task-icon svg { width: 25px; height: 25px; }
.refresh-task-copy { flex: 1; min-width: 0; }
.refresh-task-copy > strong { font-size: 14px; font-weight: 600; }
.refresh-task-copy p { margin: 7px 0 0; display: flex; align-items: center; gap: 5px; font-size: 13px; color: #ffda6d; font-weight: 600; }
.refresh-task-copy img { width: 20px; height: 20px; object-fit: contain; }
.refresh-task-copy small { color: #9faab1; font-size: 11px; font-weight: 400; margin-left: 5px; white-space: nowrap; }
.refresh-task button { display: grid; place-items: center; flex: 0 0 34px; height: 34px; width: 34px; border-radius: 50%; border: 1px solid #526168; background: #263238; color: white; }
.refresh-task button svg { width: 20px; height: 20px; }
.refresh-task button:disabled { opacity: .4; }
.rewards-card { margin-top: 24px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.rewards-card::after { display: none; }
.rewards-head { margin-bottom: 15px; }
.rewards-head h2 { font-size: 19px; font-weight: 700; line-height: 1.3; }
.rewards-head > span { display: none; }
.reward-grid { gap: 9px; }
.reward { min-height: 160px; padding: 13px 5px 12px; border-radius: 8px; border-color: #455358; background: linear-gradient(150deg, #263034, #141b1d); box-shadow: inset 0 1px 0 #ffffff0a; grid-template-rows: 44px 24px 22px 30px; align-content: space-between; }
.reward.is-open { border-color: #3d9c65; background: linear-gradient(150deg, #1e3c2f, #141d19); box-shadow: inset 0 1px 0 #92f8ba20, 0 0 14px #26df7412; }
.reward-icon { grid-row: 1; width: 42px; height: 42px; border: 1px solid #627278; border-radius: 50%; margin: 0; background: #ffffff04; }
.reward-icon img { width: 30px; height: 30px; transform: none; }
.reward-icon svg { width: 24px; height: 24px; }
.reward.is-open .reward-icon { border-color: #54d981; }
.reward > strong { grid-row: 2; font-size: 22px; font-weight: 700; }
.reward > span { grid-row: 3; font-size: 11px; margin: 0; }
.reward em { display: flex; align-items: center; justify-content: center; gap: 3px; grid-row: 4; color: #ffda6d; font-size: 12px; font-weight: 600; margin: 0; padding-top: 8px; border-top: 1px solid #465355; width: 100%; white-space: nowrap; }
.reward em::before { width: 17px; height: 17px; flex-basis: 17px; }
.tabbar { bottom: 0; width: min(100%, 440px); min-height: 78px; padding: 9px 10px calc(9px + env(safe-area-inset-bottom)); border: 0; border-top: 1px solid #344245; border-radius: 0; background: #101719; box-shadow: none; }
.tab { border-radius: 0; font-size: 10px; gap: 7px; color: #aab5bc; text-shadow: none; }
.tab svg { width: 25px; height: 25px; filter: none; }
.tab.is-active { text-shadow: none; }
.tab.is-active::before { top: auto; bottom: -2px; width: 26px; height: 2px; border-radius: 1px; background: #6bee91; }

/* Layered material surfaces; decorative layers never intercept controls. */
:is(.balance-card, .vault-card, .refresh-task, .reward, .card-panel, .task-card) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 8px;
  border-color: #54615e;
  background:
    linear-gradient(115deg, #ffffff0a, transparent 32%, transparent 72%, #ffffff04),
    repeating-linear-gradient(135deg, #ffffff02 0 1px, transparent 1px 5px),
    linear-gradient(155deg, #273130, #141c1d 55%, #101617);
  box-shadow: inset 0 1px 0 #d1eee32c, inset 0 -1px 0 #000b,
    0 10px 22px #0005;
}
:is(.balance-card, .vault-card, .refresh-task, .reward, .card-panel, .task-card)::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 5px;
  border: 1px solid #c9dfd509;
  border-radius: 4px;
  pointer-events: none;
}
:is(.balance-card, .vault-card, .refresh-task, .reward, .card-panel, .task-card)::after {
  display: block;
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  border-radius: 0;
  background: linear-gradient(90deg, transparent, #d0e5d9a6, transparent);
  mask-image: none;
  pointer-events: none;
}
.balance-card {
  border-color: #8a8870;
  background:
    linear-gradient(110deg, #e5d39a0c, transparent 50%),
    repeating-linear-gradient(135deg, #ffffff02 0 1px, transparent 1px 5px),
    linear-gradient(145deg, #29352f, #121c19 62%, #192320);
  box-shadow: inset 0 1px 0 #ffe1a33b, 0 12px 26px #0006;
}
.balance-card::before {
  inset: 12px 8px 12px auto;
  width: 120px;
  border: 0;
  border-left: 1px solid #b4c5b518;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, #d6e9d708, transparent);
}
.balance-card::after { background: linear-gradient(90deg, transparent, #efd397aa, #76cba977, transparent); }
[data-view='home'] .vault-card {
  border-color: #527b63;
  background:
    linear-gradient(118deg, #c8f3d00c, transparent 36%, transparent 72%, #47de7807),
    repeating-linear-gradient(135deg, #ffffff02 0 1px, transparent 1px 5px),
    linear-gradient(155deg, #263a30, #15231d 50%, #101b17);
  box-shadow: inset 0 1px 0 #beffcc30, 0 12px 25px #0005;
}
.vault-card::after { background: linear-gradient(90deg, transparent, #91ffb4a6, transparent); }
.vault-gift { filter: drop-shadow(0 10px 12px #0009) drop-shadow(0 0 5px #52f69328); }
.refresh-task {
  border-color: #526c76;
  background: linear-gradient(110deg, #1f353d, #18262a 40%, #141c20);
}
.refresh-task::after { background: linear-gradient(90deg, transparent, #8fc9dfa6, transparent); }
.refresh-task-icon { box-shadow: inset 0 1px 0 #ffffff66, 0 4px 12px #0005; background: linear-gradient(145deg, #25c7f7, #0781c7); }
.refresh-task button { box-shadow: inset 0 1px 0 #ffffff25, 0 3px 7px #0004; }
.reward { border-color: #5f6b70; background: linear-gradient(135deg, #313c3e, #1d282c 48%, #141b1e); }
.reward::before { inset: 5px; border-color: #d9e2e810; }
.reward.is-open { border-color: #679876; background: linear-gradient(135deg, #2c4c37, #1d3025 45%, #121d17); }
.reward.is-open::after { background: linear-gradient(90deg, transparent, #b4ffcca6, transparent); }
.reward-icon { background: linear-gradient(145deg, #ffffff0a, #00000026); box-shadow: inset 0 1px 0 #ffffff1a, 0 3px 7px #0004; }
.reward em { background: linear-gradient(180deg, #ffffff05, transparent); border-top-color: #a9b6b42b; }
.reward > strong { text-shadow: 0 2px 2px #0005; }

/* Machined edges and distinct silhouettes distinguish each functional surface. */
.balance-card {
  border-color: #a7a084;
  padding-left: 22px;
  clip-path: polygon(0 0, calc(100% - 17px) 0, 100% 17px, 100% 100%, 0 100%);
  background:
    linear-gradient(90deg, #c7b67b 0 3px, transparent 3px),
    linear-gradient(118deg, #35413b 0%, #1d2824 58%, #111b18 58.4%, #283831 100%);
  box-shadow: inset 0 1px 0 #fff2b959, inset 0 -3px 0 #0008;
}
.balance-card::before {
  inset: 0 0 0 auto;
  width: 35%;
  border: 0;
  transform: skewX(-19deg);
  background:
    repeating-linear-gradient(0deg, #9fb7a412 0 1px, transparent 1px 8px),
    linear-gradient(90deg, #07150d, #44634d35);
  box-shadow: -1px 0 0 #d6e4c23b, -6px 0 0 #0003;
}
.balance-card::after { left: 18px; right: 30px; height: 2px; background: linear-gradient(90deg, #d8c48b, #d8c48b44 58%, transparent); }
.balance-copy h1 { color: #fffef5; text-shadow: 0 2px 0 #0006; }
.hero-safe { bottom: 13px; right: 12px; }
[data-view='home'] .vault-card {
  border-color: #587666;
  background:
    linear-gradient(180deg, transparent 0 calc(100% - 83px), #09150fc9 calc(100% - 83px) 100%),
    linear-gradient(118deg, #263d30, #16271f 50%, #24392d);
  box-shadow: inset 0 1px 0 #d3ffde38, inset 0 -3px 0 #0005, 0 10px 22px #0005;
}
.vault-card::before { inset: 6px; border: 0; border-left: 2px solid #5bba7845; border-radius: 0; background: linear-gradient(128deg, transparent 56%, #88d9a009 56.2%, #88d9a009 67%, transparent 67.2%); }
.vault-head::before { content: ''; position: absolute; top: -4px; right: -18px; width: 110px; height: 115px; background: url('./assets/vaultify-shield-generated-v1.webp') center / contain no-repeat; opacity: .07; pointer-events: none; }
.vault-gift { position: relative; }
.watch-button { border-color: #78f29d; background: linear-gradient(180deg, #56de7e, #159849 52%, #0b7031); box-shadow: inset 0 2px 0 #d9ffe44d, inset 0 -3px 0 #004417aa, 0 5px 12px #0006; }
.watch-button strong { border-left: 1px solid #d1ffe342; padding-left: 8px; min-height: 28px; }
.refresh-task { border-color: #547687; border-left: 3px solid #46c4ef; background: linear-gradient(105deg, #24414c, #1b2c35 47%, #111e26); }
.refresh-task::before { inset: 0; border: 0; background: linear-gradient(125deg, transparent 75%, #76cced0a 75.3%, #76cced0a 87%, transparent 87.3%); }
.refresh-task::after { left: 0; right: 0; background: linear-gradient(90deg, #8be0ff99, transparent 80%); }
.refresh-task-icon { border-radius: 8px; background: linear-gradient(145deg, #43d2ff, #0794d5 60%, #086caf); border: 1px solid #9beaff77; }
.refresh-task button { border-radius: 6px; background: linear-gradient(145deg, #456171, #253a46); border-color: #6d8898; }
.reward {
  min-height: 174px;
  padding-top: 15px;
  grid-template-rows: 48px 24px 22px 33px;
  border-color: #77858d;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  background:
    linear-gradient(180deg, transparent calc(100% - 45px), #0d161dcc calc(100% - 45px)),
    linear-gradient(135deg, #3f4e58, #26343d 42%, #1a242b);
}
.reward::before { inset: 6px 5px 47px; border: 0; border-left: 1px solid #c3d0d52b; border-right: 1px solid #c3d0d52b; border-radius: 0; background: linear-gradient(130deg, #c9d8df08, transparent 50%); }
.reward::after { left: 0; right: 0; height: 2px; background: linear-gradient(90deg, #738591, #d7e6ec88, #738591); }
.reward.is-open { border-color: #c4ac6a; background: linear-gradient(180deg, transparent calc(100% - 45px), #171b0fcc calc(100% - 45px)), linear-gradient(135deg, #4a5332, #243d2b 42%, #142419); }
.reward.is-open::after { background: linear-gradient(90deg, #a18a50, #f3dc94, #a18a50); }
.reward-icon { width: 46px; height: 46px; border: 2px solid #8c9da7; background: linear-gradient(145deg, #536571, #253640 50%, #15232b); box-shadow: inset 0 0 0 3px #14252c, inset 0 0 0 4px #bbd1dc30, 0 4px 9px #0006; }
.reward-icon svg { color: #cbd7dc; }
.reward.is-open .reward-icon { border-color: #d1b567; background: linear-gradient(145deg, #566333, #1a572c 50%, #133d21); box-shadow: inset 0 0 0 3px #28381c, inset 0 0 0 4px #dfc77c66, 0 4px 9px #0006; }
.reward em { padding-top: 8px; background: none; border-top: 0; }
@media (max-width: 360px) {
  .app-screen { padding: 18px 13px 106px; }
  .balance-copy h1 { font-size: 30px; gap: 4px; }
  .balance-copy h1 span { font-size: 12px; gap: 3px; }
  .balance-copy h1 span::before { width: 22px; height: 22px; }
  .vault-head h2 { font-size: 20px; }
  .vault-gift { width: 66px; height: 76px; }
  .watch-button { padding: 0 8px; gap: 5px; font-size: 11px; }
  .watch-button strong { font-size: 11px; }
  .watch-button strong::before { width: 16px; height: 16px; flex-basis: 16px; }
  .rewards-head h2 { font-size: 17px; }
  .reward-grid { gap: 7px; }
  .reward em { font-size: 10px; }
  .refresh-task { gap: 8px; padding: 12px; }
  .refresh-task-copy > strong { font-size: 12px; }
}
