/* DankeeGo - delete account page */
:root {
  --primary: #0a6b3c; --primary-dark: #064d2b; --primary-light: #1a8f55;
  --secondary: #f4c430; --accent: #e8f5e9; --ink: #14231a; --muted: #5d6b63;
  --line: #e3ebe6; --danger: #d63a2f; --danger-bg: #fdeceb; --danger-bd: #f3b8b3;
  --bg: #f4f8f5; --card: #ffffff;
  --shadow: 0 24px 60px rgba(8, 40, 22, .14);
}
@media (prefers-color-scheme: dark) { :root { color-scheme: light; } }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Inter", system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column; }
h1, h2, h3 { font-family: "Lexend", "Inter", sans-serif; margin: 0; }
a { color: var(--primary); }
button { font: inherit; cursor: pointer; }
.d-none { display: none !important; }
.muted { color: var(--muted); font-size: .94rem; margin: .35rem 0 1.4rem; }

/* nav */
.da-nav { display: flex; align-items: center; justify-content: space-between; padding: .8rem clamp(1rem, 4vw, 2.5rem); background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.da-brand img { height: 40px; display: block; }
.da-back { text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--primary-dark); padding: .45rem .9rem; border-radius: 50px; background: var(--accent); transition: background .2s; }
.da-back:hover { background: #d5ecd9; }

/* layout */
.da-shell { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: clamp(1rem, 3vw, 2.2rem) clamp(.8rem, 3vw, 1.5rem) 3rem; display: grid; grid-template-columns: 5fr 6fr; gap: 1.6rem; align-items: start; }

/* side */
.da-side { position: sticky; top: 84px; background: linear-gradient(150deg, #064d2b 0%, #0a6b3c 60%, #1a8f55 100%); color: #fff; border-radius: 24px; padding: 2.2rem 2rem; overflow: hidden; box-shadow: var(--shadow); }
.da-side::after { content: ""; position: absolute; right: -70px; top: -70px; width: 240px; height: 240px; border-radius: 50%; background: rgba(244, 196, 48, .17); pointer-events: none; }
.da-side > * { position: relative; z-index: 1; }
.da-pill { display: inline-flex; gap: .45rem; align-items: center; font-size: .76rem; font-weight: 600; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); padding: .35rem .8rem; border-radius: 50px; }
.da-side h1 { font-size: clamp(1.7rem, 3.2vw, 2.25rem); line-height: 1.18; margin: 1.1rem 0 .7rem; font-weight: 700; }
.da-lead { opacity: .9; margin: 0 0 1.6rem; font-size: .95rem; }
.da-info { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px; padding: 1.1rem 1.15rem; }
.da-info-t { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--secondary); margin-bottom: .8rem; }
.da-tl { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.da-tl li { display: grid; grid-template-columns: 30px 1fr; gap: .75rem; font-size: .88rem; line-height: 1.4; opacity: .95; }
.da-tl li i { width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, .15); display: flex; align-items: center; justify-content: center; font-size: .8rem; }
.da-tl li strong { display: block; font-size: .9rem; }
.da-help { display: flex; gap: .8rem; margin-top: 1.3rem; font-size: .84rem; align-items: flex-start; opacity: .95; }
.da-help > i { margin-top: .2rem; color: var(--secondary); }
.da-help strong { display: block; }
.da-help a { color: var(--secondary); font-weight: 700; text-decoration: none; border-bottom: 1px dashed rgba(244, 196, 48, .6); transition: all .2s; }
.da-help a:hover { color: #ffe27a; border-bottom-style: solid; }

/* card */
.da-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.3rem, 3vw, 2.1rem); box-shadow: var(--shadow); min-height: 480px; }
/* ---- route-style progress: a truck drives between 4 stops ---- */
.route { margin: 0 0 1.8rem; padding: 1.15rem .9rem .95rem; border-radius: 18px; border: 1px solid #dcebe1;
  background: radial-gradient(circle at 1px 1px, rgba(10,107,60,.16) 1px, transparent 1.4px) 0 0 / 16px 16px, linear-gradient(180deg, #f3fbf6, #eaf6ee); }
.route-in { position: relative; }
.route-track { position: absolute; top: 20px; left: 12.5%; right: 12.5%; height: 4px; border-radius: 4px;
  background: repeating-linear-gradient(90deg, #c4d6ca 0 8px, transparent 8px 14px); }
.route-fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, 0) * 100%); border-radius: 4px;
  background: repeating-linear-gradient(90deg, var(--primary) 0 8px, transparent 8px 14px); animation: march .9s linear infinite; transition: width .85s cubic-bezier(.65, 0, .25, 1); }
@keyframes march { to { background-position: 14px 0; } }
.route-nodes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; z-index: 1; }
.route-nodes li { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.route-nodes em { font-style: normal; font-size: .76rem; font-weight: 600; color: #8a9890; transition: color .3s; }
.nd { position: relative; width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 2px solid #cddbd2; color: #9aa9a0; display: flex; align-items: center; justify-content: center; font-size: .95rem; transition: all .35s; }
.nd .ck { display: none; }
.route-nodes li.is-done .nd { background: var(--primary); border-color: var(--primary); color: #fff; transform: scale(.92); }
.route-nodes li.is-done .nd .ic { display: none; }
.route-nodes li.is-done .nd .ck { display: block; animation: pop .4s ease; }
.route-nodes li.is-done em { color: var(--primary-dark); }
.route-nodes li.on .nd { border-color: var(--primary); color: var(--primary); }
.route-nodes li.on em { color: var(--primary-dark); font-weight: 700; }
@keyframes pop { from { transform: scale(0); } 60% { transform: scale(1.3); } to { transform: scale(1); } }
.route-truck { position: absolute; top: -1px; left: calc(12.5% + var(--p, 0) * 75%); width: 44px; height: 44px; margin-left: -22px; z-index: 3; border-radius: 50%;
  background: linear-gradient(135deg, #ffd84d, #f4c430); color: #4a3800; display: flex; align-items: center; justify-content: center; font-size: 1.02rem;
  box-shadow: 0 8px 18px rgba(201, 138, 0, .38), 0 0 0 3px #fff; transition: left .85s cubic-bezier(.65, 0, .25, 1); animation: bob 1.8s ease-in-out infinite; }
.route-truck::before, .route-truck::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid rgba(244, 196, 48, .75); animation: ping 2s ease-out infinite; pointer-events: none; }
.route-truck::after { animation-delay: 1s; }
@keyframes ping { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }
.route-in.arrived .route-truck { background: linear-gradient(135deg, #22b573, #0a6b3c); color: #fff; box-shadow: 0 8px 18px rgba(10, 107, 60, .4), 0 0 0 3px #fff; }
.route-in.arrived .route-truck::before, .route-in.arrived .route-truck::after { border-color: rgba(10, 107, 60, .6); }

.panel { animation: rise .32s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.panel h2 { font-size: 1.4rem; font-weight: 600; }
.lbl { display: block; font-size: .8rem; font-weight: 600; margin-bottom: .4rem; color: #33443a; }

/* type cards */
.types { display: grid; gap: .8rem; margin-bottom: 1.4rem; }
.type { display: grid; grid-template-columns: 52px 1fr 26px; gap: .9rem; align-items: center; text-align: left; border: 2px solid var(--line); border-radius: 16px; background: #fff; padding: .9rem 1rem; transition: all .2s; }
.type:hover { border-color: #b7d3c1; transform: translateY(-1px); }
.type.sel { border-color: var(--primary); background: var(--accent); box-shadow: 0 8px 22px rgba(10, 107, 60, .14); }
.type-ic { width: 52px; height: 52px; border-radius: 14px; background: var(--accent); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.type.sel .type-ic { background: var(--primary); color: #fff; }
.type-tx strong { display: block; font-size: 1rem; }
.type-tx small { color: var(--muted); font-size: .82rem; }
.type-tick { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #c8d5cd; display: flex; align-items: center; justify-content: center; color: transparent; font-size: .7rem; transition: all .2s; }
.type.sel .type-tick { background: var(--primary); border-color: var(--primary); color: #fff; }

/* inputs */
.phone { display: flex; margin-bottom: 1.2rem; }
.phone span { display: flex; align-items: center; padding: 0 .95rem; background: var(--accent); border: 1px solid #d3e0d8; border-right: 0; border-radius: 12px 0 0 12px; font-weight: 600; color: var(--primary-dark); }
.phone input { flex: 1; min-width: 0; height: 52px; border: 1px solid #d3e0d8; border-radius: 0 12px 12px 0; padding: 0 1rem; font-size: 1.05rem; letter-spacing: .04em; outline: none; color: var(--ink); }
.otp { width: 100%; height: 58px; border: 1px solid #d3e0d8; border-radius: 12px; text-align: center; font-size: 1.6rem; letter-spacing: .5em; font-weight: 700; outline: none; margin-bottom: 1.2rem; padding-left: .5em; color: var(--ink); }
.phone input:focus, .otp:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(10, 107, 60, .13); }
.phone:focus-within span { border-color: var(--primary); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; border: 0; border-radius: 12px; height: 50px; padding: 0 1.4rem; font-weight: 700; font-size: .95rem; text-decoration: none; transition: all .2s; }
.btn-primary { width: 100%; background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(10, 107, 60, .25); }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); transform: translateY(-1px); }
.btn-danger { background: var(--danger); color: #fff; box-shadow: 0 8px 20px rgba(214, 58, 47, .25); }
.btn-danger:hover:not(:disabled) { background: #b92d23; }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { background: #f4f8f5; }
.btn-link { background: none; height: auto; padding: .3rem 0; color: var(--primary); font-weight: 600; font-size: .88rem; box-shadow: none; }
.btn-link:hover:not(:disabled) { text-decoration: underline; }
.btn-link:disabled { color: #98a59d; cursor: default; }
.btn-link.center { display: flex; margin: 1rem auto 0; }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }
#backType { margin-top: .9rem; }
.row-between { display: flex; justify-content: space-between; margin-top: .9rem; }
.badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .74rem; font-weight: 700; padding: .28rem .75rem; border-radius: 50px; background: var(--accent); color: var(--primary-dark); margin-bottom: .7rem; }
.badge:empty { display: none; }

/* profile */
.profile { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.1rem; background: linear-gradient(135deg, #f1faf4, #fff); border: 1px solid var(--line); border-radius: 16px; }
.avatar { width: 58px; height: 58px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-family: "Lexend", sans-serif; font-weight: 600; font-size: 1.35rem; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-id { min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.profile-id strong { font-size: 1.08rem; overflow-wrap: anywhere; }
.profile-id span:not(.badge) { color: var(--muted); font-size: .9rem; }
.profile-id .badge { margin: .3rem 0 0; align-self: flex-start; }
.rows { margin: 1rem 0 1.3rem; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.rows div { border: 1px solid var(--line); border-radius: 12px; padding: .65rem .85rem; min-width: 0; }
.rows dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: #7a887f; font-weight: 700; }
.rows dd { margin: .15rem 0 0; font-weight: 600; font-size: .92rem; overflow-wrap: anywhere; }
.rows .wide { grid-column: 1 / -1; }

.danger { background: var(--danger-bg); border: 1px solid var(--danger-bd); border-radius: 16px; padding: 1.1rem 1.15rem 1.2rem; }
.danger-h { display: flex; gap: .6rem; align-items: center; color: #8e1f17; }
.danger p { margin: .55rem 0 .9rem; font-size: .88rem; color: #6b2a25; }
.chk { display: flex; gap: .65rem; align-items: flex-start; font-size: .86rem; margin-bottom: 1rem; cursor: pointer; color: #4a1f1b; }
.chk input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--danger); flex: none; }
.danger .btn { width: 100%; }

/* done */
.done { text-align: center; padding: 1.2rem 0 .4rem; }
.done-ic { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 1.2rem; display: flex; align-items: center; justify-content: center; font-size: 2rem; background: var(--accent); color: var(--primary); box-shadow: 0 0 0 10px rgba(10, 107, 60, .08); }
.done-ic.warn { background: #fff6dc; color: #c98a00; box-shadow: 0 0 0 10px rgba(201, 138, 0, .1); }
.done .muted { max-width: 420px; margin-inline: auto; }
.done-date { margin: 0 auto 1.4rem; display: inline-flex; gap: .6rem; align-items: center; background: #fff6dc; border: 1px solid #f1dc9a; color: #5c4400; border-radius: 12px; padding: .7rem 1rem; font-size: .9rem; }
.done .btn { max-width: 280px; }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(10, 25, 16, .55); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 1rem; z-index: 100; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.modal-c { background: #fff; border-radius: 20px; padding: 1.6rem 1.5rem 1.4rem; max-width: 400px; width: 100%; text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); animation: rise .25s ease; }
.modal-ic { width: 58px; height: 58px; border-radius: 50%; background: var(--danger-bg); color: var(--danger); display: flex; align-items: center; justify-content: center; margin: 0 auto .9rem; font-size: 1.3rem; }
.modal-c h3 { font-size: 1.2rem; }
.modal-c .muted { margin: .5rem 0 1.3rem; }
.modal-btns { display: flex; gap: .7rem; }
.modal-btns .btn { flex: 1; }

/* toast */
.toast { position: fixed; z-index: 200; top: 76px; left: 50%; transform: translateX(-50%); width: calc(100% - 28px); max-width: 480px; display: flex; gap: .7rem; align-items: center; padding: .8rem 1rem; border-radius: 12px; font-size: .9rem; font-weight: 500; box-shadow: 0 12px 34px rgba(0, 0, 0, .18); background: var(--danger-bg); border: 1px solid var(--danger-bd); color: #7a1d17; animation: rise .25s ease; }
.toast.ok { background: #e8f6ee; border-color: #b9e0c9; color: #14532d; }
.toast button { margin-left: auto; background: none; border: 0; color: inherit; opacity: .7; font-size: 1rem; }

/* footer */
.da-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: 1.1rem clamp(1rem, 4vw, 2.5rem); font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); background: #fff; }
.da-foot a { color: var(--muted); }

.spin { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: sp .7s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .da-shell { grid-template-columns: 1fr; }
  .da-side { position: static; padding: 1.6rem 1.3rem; }
  .da-card { min-height: 0; }
}
@media (max-width: 520px) {
  .rows { grid-template-columns: 1fr; }
  .route-nodes em { font-size: .68rem; } .nd { width: 38px; height: 38px; } .route-truck { width: 40px; height: 40px; margin-left: -20px; } .route-track { top: 18px; }
  .da-back { font-size: .8rem; padding: .4rem .7rem; }
  .da-foot { flex-direction: column; text-align: center; align-items: center; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }