/* Customer account area */
.form-msg.info { background: var(--sky); color: var(--ink-3); word-break: break-all; }
.btn-danger { background: #B42318; color: #fff; }
.btn-danger:hover { background: #8E1B12; color: #fff; }

/* Auth pages */
.auth { display: grid; place-items: center; padding-top: 40px; padding-bottom: 72px; }
.auth-card { width: 100%; max-width: 480px; }
.auth-card h1 { font-size: clamp(1.6rem, 3vw, 2rem); margin-bottom: .3em; }
.auth-card .form-msg { margin-bottom: 14px; }
.auth-perks { font-size: .94rem; margin-bottom: 18px; }
.auth-alt { text-align: center; margin: 18px 0 0; font-size: .95rem; }
.field-link { float: right; font-weight: 500; font-size: .85rem; }
.field small { display: block; margin-top: 5px; }

/* Layout */
.acct { display: grid; gap: 20px; padding-top: 24px; padding-bottom: 72px; }
@media (min-width: 960px) { .acct { grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; } }
.acct-side { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 12px; box-shadow: var(--shadow); }
@media (min-width: 960px) { .acct-side { position: sticky; top: 88px; } }
.acct-me { display: flex; gap: 12px; align-items: center; padding: 4px 4px 12px; border-bottom: 1px solid var(--line); }
.acct-me span:last-child { min-width: 0; }
.acct-me strong, .acct-me small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-me small { color: var(--muted); }
.acct-avatar { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--green-bright); font: italic 900 1.2rem/1 var(--display); flex: none; }
.acct-side ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; }
@media (min-width: 960px) { .acct-side ul { display: grid; } }
.acct-side li a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.acct-side li a:hover { background: var(--paper); color: var(--ink); }
.acct-side li a[aria-current="page"] { background: var(--ink); color: #fff; }
.acct-side li a[aria-current="page"] .ic { color: var(--green-bright); }
.acct-logout { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; padding: 8px 12px; color: var(--muted); font: 600 .9rem/1 var(--body); cursor: pointer; }
.acct-logout:hover { color: #B42318; }
.acct-main { display: grid; gap: 18px; min-width: 0; }
.acct-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.acct-head h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 .2em; }
.acct-head p { margin: 0; }
.back { margin: 0; font-size: .92rem; }
.acct-verify { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.acct-verify span { display: flex; gap: 8px; align-items: center; }
.acct-verify form { margin: 0; }
.notice-info { background: var(--accent-soft); border-color: #BFE6CD; color: var(--green-deep); font-weight: 600; }

/* Cards */
.acct-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); min-width: 0; }
.acct-card h2 { font-size: 1.25rem; display: flex; align-items: center; gap: 8px; }
.acct-card h3 { font-size: 1.05rem; margin: 0; }
.acct-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.acct-card-head h2 { margin: 0; }
.acct-card-head a { font-weight: 700; font-size: .9rem; color: var(--accent); }
.acct-card.danger { border-color: #F3C3BD; }
.acct-card details summary { list-style: none; display: inline-flex; }
.acct-card details summary::-webkit-details-marker { display: none; }
.acct-two { display: grid; gap: 18px; }
@media (min-width: 860px) { .acct-two { grid-template-columns: 1fr 1fr; } }
.acct-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.acct-stats .stat { text-decoration: none; transition: border-color .15s; }
.acct-stats .stat:hover { border-color: var(--green); color: var(--ink); }
@media (max-width: 560px) { .acct-stats .stat { padding: 14px; } .acct-stats .stat b { font-size: 1.5rem; } .acct-stats .stat span { font-size: .8rem; } }

.empty { text-align: center; padding: 18px 10px; color: var(--muted); }
.empty .ic { width: 40px; height: 40px; margin: 0 auto 8px; color: var(--green); }
.empty p { margin-bottom: 14px; }
.empty strong { color: var(--ink); }

/* Order rows + progress */
.order-row { display: block; text-decoration: none; padding: 14px; border: 1px solid var(--line); border-radius: 14px; margin-top: 10px; transition: border-color .15s, box-shadow .15s; }
.order-row:hover { border-color: var(--green); box-shadow: var(--shadow); color: var(--ink); }
.acct-card.order-row { margin-top: 0; padding: 18px 22px; }
.order-row-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.progress { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); margin: 16px 0 4px; padding: 0; counter-reset: p; }
.progress li { position: relative; text-align: center; font-size: .74rem; font-weight: 600; color: var(--muted); padding-top: 22px; }
.progress li span { position: absolute; top: 0; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #fff; border: 2px solid #CDD3CB; z-index: 1; }
.progress li::before { content: ""; position: absolute; top: 7px; left: -50%; width: 100%; height: 2px; background: #CDD3CB; }
.progress li:first-child::before { display: none; }
.progress li.done span { background: var(--green); border-color: var(--green); }
.progress li.done::before, .progress li.now::before { background: var(--green); }
.progress li.now span { background: #fff; border-color: var(--green); box-shadow: 0 0 0 4px var(--accent-soft); }
.progress li.now { color: var(--ink); }
.ship-box { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; padding: 12px 14px; background: var(--accent-soft); border-radius: 12px; }
.ship-box .ic { color: var(--green-deep); }
.ship-box .btn { margin-left: auto; }

/* Badges */
.badge { display: inline-block; padding: 5px 10px; border-radius: 999px; font: 700 .75rem/1.1 var(--body); background: #E6E1D5; color: var(--ink); white-space: nowrap; }
.badge-lg { font-size: .88rem; padding: 8px 14px; }
.st-quoted, .rq-quoted, .rq-mockup_sent { background: #FFF2CC; color: #7A5000; }
.st-approved { background: #FFE8D6; color: #9A4A00; }
.st-production, .rq-designing, .rq-new { background: var(--sky); color: var(--ink-3); }
.st-shipped { background: #DCE8FF; color: #1D3F9A; }
.st-delivered, .rq-won { background: var(--ok-soft); color: var(--ok); }
.st-cancelled, .rq-lost { background: #ECECEC; color: #666; }

/* Lists + tables */
.list { list-style: none; padding: 0; margin: 0; }
.list li + li { border-top: 1px solid var(--line); }
.list a { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 4px; text-decoration: none; }
.list a:hover { color: var(--accent); }
.list small { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.table-wrap.flat { box-shadow: none; border: 0; border-radius: 0; }
.acct-table th small { display: block; color: var(--muted); font-weight: 500; font-size: .8rem; margin-top: 2px; }
.acct-table td, .acct-table th { vertical-align: middle; }
@media (max-width: 640px) { .acct-table thead { display: none; } .acct-table tr { display: grid; grid-template-columns: 1fr auto; padding: 10px 0; border-bottom: 1px solid var(--line); } .acct-table th, .acct-table td { border: 0; padding: 4px 6px; } .acct-table td:nth-child(2), .acct-table td:nth-child(3) { display: none; } }

.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; margin: 0; font-size: .95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.design-views { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 520px; }
.design-views figure { margin: 0; background: radial-gradient(120% 90% at 50% 10%, #fff 0%, #E8ECF2 100%); border-radius: 14px; padding: 10px; text-align: center; font-size: .82rem; color: var(--muted); }
.design-views canvas { width: 100%; height: auto; aspect-ratio: 400 / 460; }
.timeline-list { list-style: none; margin: 0; padding: 0; }
.timeline-list li { position: relative; padding: 0 0 16px 22px; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline-list li::before { content: ""; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--green); }
.timeline-list time { display: block; font-size: .8rem; color: var(--muted); }
.timeline-list p { margin: 4px 0 0; }

/* Header account link */
.nav-account .ic { width: 18px; height: 18px; }

/* Saved designs */
.design-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.design-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.design-thumb { display: block; background: radial-gradient(120% 90% at 50% 10%, #fff 0%, #E8ECF2 100%); padding: 14px 18px 6px; }
.design-thumb canvas { width: 100%; height: auto; aspect-ratio: 400 / 460; }
.design-meta { padding: 12px 14px 14px; display: grid; gap: 6px; }
.design-meta form { margin: 0; }
