.shop-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 40px; padding: 10px 24px; border: 0; border-radius: 4px;
    background: #1a73e8; color: #fff; font-weight: 500; cursor: pointer; text-decoration: none;
    box-shadow: none; gap: 8px;
}
.shop-btn:hover { background: #1765cc; }
.shop-btn.secondary { background: #fff; color: #1a73e8; border: 1px solid #dadce0; box-shadow: none; }

.account-page {
    --g-blue: #1a73e8;
    --g-blue-hover: #1765cc;
    --g-blue-ink: #174ea6;
    --g-blue-soft: #e8f0fe;
    --g-green: #188038;
    --g-green-soft: #e6f4ea;
    --g-red: #d93025;
    --g-red-soft: #fce8e6;
    --g-yellow: #e37400;
    --g-yellow-soft: #fef7e0;
    --g-ink: #202124;
    --g-muted: #5f6368;
    --g-hint: #80868b;
    --g-line: #dadce0;
    --g-soft: #f1f3f4;
    --g-bg: #f8f9fa;
    --g-card: #fff;
    --acc-ink: var(--g-ink);
    --acc-muted: var(--g-muted);
    --acc-line: var(--g-line);
    --acc-soft: var(--g-soft);
    --acc-card: var(--g-card);
    --acc-orange: var(--g-blue);
    max-width: 1120px;
    margin: 0 auto;
    padding: 20px 16px 88px;
    font-family: Roboto, "Segoe UI", Arial, sans-serif;
    color: var(--g-ink);
}
.account-page-head { margin: 4px 0 22px; }
.account-eyebrow {
    margin: 0 0 6px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--g-blue);
}
.account-page h1 {
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: 0;
    margin: 0;
    line-height: 1.25;
    color: var(--g-ink);
}
.account-lead { margin: 8px 0 0; color: var(--g-muted); font-size: 0.95rem; line-height: 1.5; }

.account-gate {
    text-align: center;
    padding: 48px 24px;
    background: var(--g-card);
    border: 1px solid var(--g-line);
    border-radius: 8px;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}
.account-gate p { color: var(--g-muted); line-height: 1.6; max-width: 420px; margin: 0 auto; }
.account-gate .shop-btn { width: auto; min-width: 180px; max-width: 280px; margin: 20px auto 0; }
.account-loading { color: var(--g-muted); padding: 28px 4px; }

.account-shell { display: grid; gap: 16px; }
.account-nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 8px;
    background: var(--g-card);
    border: 1px solid var(--g-line);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.12);
}
.account-nav button {
    display: flex; align-items: center; gap: 10px; flex: 0 0 auto;
    border: 0; background: transparent; border-radius: 4px;
    padding: 10px 12px; min-height: 40px; cursor: pointer; font: inherit; color: var(--g-ink);
    font-weight: 500; transition: background 0.15s ease, color 0.15s ease;
}
.account-nav button:hover { background: var(--g-soft); }
.account-nav button i { width: 18px; color: var(--g-hint); }
.account-nav button.is-on { background: var(--g-blue-soft); color: var(--g-blue-ink); font-weight: 500; }
.account-nav button.is-on i { color: var(--g-blue); }

.account-card {
    background: var(--g-card);
    border: 1px solid var(--g-line);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.12);
}
.account-hero {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 8px; padding-bottom: 16px;
    border-bottom: 1px solid var(--g-line);
}
.account-avatar {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--g-blue);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.4rem; font-weight: 500;
    box-shadow: none;
}
.account-hero h2 {
    display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap;
    margin: 0 0 4px; font-size: 1.25rem; font-weight: 400; letter-spacing: 0;
}
.account-hero p { margin: 0; color: var(--g-muted); font-size: 0.9rem; }
.account-meta-tick {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    width: 16px; height: 16px; flex: 0 0 auto; line-height: 0; vertical-align: middle;
}
.account-hero .account-meta-tick { width: 18px; height: 18px; }
.account-meta-tick svg { width: 100%; height: 100%; display: block; }
.account-meta-tick .visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.account-fields { display: grid; gap: 0; }
.account-field {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center;
    padding: 14px 0; border-bottom: 1px solid var(--g-line);
}
.account-field:last-child { border-bottom: 0; }
.account-label {
    display: block; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.02em;
    text-transform: none; color: var(--g-muted); margin-bottom: 2px;
}
.account-value {
    display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap;
    font-size: 1rem; font-weight: 400; color: var(--g-ink);
}
.account-muted { color: var(--g-muted); font-size: 0.875rem; }

.account-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.account-actions a, .account-actions button, .account-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 36px; padding: 8px 16px; border-radius: 4px;
    border: 1px solid var(--g-line); background: #fff;
    color: var(--g-blue); cursor: pointer; text-decoration: none;
    font: inherit; font-weight: 500; transition: background 0.12s ease, box-shadow 0.12s ease;
}
.account-actions a:hover, .account-actions button:hover, .account-btn:hover {
    background: var(--g-blue-soft);
}
.account-btn.danger { color: var(--g-red); background: var(--g-red-soft); border-color: #f6aea9; }
.account-btn.danger:hover { background: #f9d7d4; }
.account-btn.primary {
    background: var(--g-blue); color: #fff; border-color: var(--g-blue);
    box-shadow: none;
}
.account-btn.primary:hover { background: var(--g-blue-hover); }
.account-btn-sm {
    min-height: 28px; padding: 3px 10px; font-size: 0.75rem; gap: 5px; border-radius: 16px;
}
.account-btn-sm i { font-size: 0.7rem; }
.account-addr-toolbar { display: flex; justify-content: flex-start; margin: 0 0 8px; }

.account-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.account-filters button {
    display: inline-flex; align-items: center; gap: 6px; min-height: 32px;
    padding: 6px 14px; border-radius: 16px; border: 1px solid var(--g-line);
    background: #fff; color: var(--g-ink); cursor: pointer; font: inherit; font-weight: 500;
}
.account-filters button span { color: inherit; }
.account-filters button .account-filter-count { color: var(--g-muted); font-weight: 400; }
.account-filters button.is-on { background: var(--g-blue-soft); border-color: transparent; color: var(--g-blue-ink); }
.account-filters button.is-on .account-filter-count { color: var(--g-blue); }

.account-kind {
    display: inline; font-size: 0.625rem; font-weight: 500; letter-spacing: 0.04em;
    text-transform: uppercase; color: var(--g-muted); margin: 0 6px 0 0;
}
.account-card.account-order {
    padding: 0 0 6px;
}
.account-order {
    position: relative;
    overflow: visible;
    margin-bottom: 8px;
    padding: 0 0 6px;
    transition: box-shadow 0.16s ease;
}
.account-order:hover { box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.2), 0 1px 3px 1px rgba(60, 64, 67, 0.1); }
.account-order::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: var(--g-blue);
    border-radius: 8px 0 0 8px;
}
.account-order.is-service::before { background: var(--g-green); }
.account-order-top {
    display: flex; justify-content: space-between; gap: 8px; align-items: center;
    padding: 6px 4px 4px 12px;
}
.account-order-head { min-width: 0; line-height: 1.35; }
.account-order-aside { display: flex; align-items: center; gap: 0; flex: 0 0 auto; }
.account-order-id { display: inline; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0; }
.account-order-top .account-muted { display: inline; font-size: 0.75rem; }
.account-status {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.6875rem; font-weight: 500; padding: 2px 8px;
    border-radius: 12px; background: var(--g-blue-soft); color: var(--g-blue-ink);
    white-space: nowrap;
}
.account-status::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}
.account-status.done { background: var(--g-green-soft); color: var(--g-green); }
.account-status.wait { background: var(--g-yellow-soft); color: var(--g-yellow); }
.account-status.warn { background: var(--g-red-soft); color: var(--g-red); }

.account-order-items {
    display: grid; gap: 6px;
    margin: 0; padding: 4px 12px 2px 12px;
    color: var(--g-ink); line-height: 1.35;
}
.account-order-item {
    display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: center;
    text-decoration: none; color: inherit;
}
.account-order-item-text { display: block; padding-top: 4px; }
.account-order-thumb-wrap {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 6px;
    background: var(--g-bg);
    border: 1px solid var(--g-line);
    overflow: hidden;
}
.account-order-thumb {
    width: 38px; height: 38px; object-fit: contain;
    background: transparent; border: 0; border-radius: 0;
}
.account-order-thumb-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; color: var(--g-hint); font-size: 1rem;
}
.account-order-item-copy { display: grid; gap: 1px; min-width: 0; }
.account-order-item-name { font-weight: 400; color: var(--g-ink); font-size: 0.8125rem; }
.account-order-item-qty { color: var(--g-muted); font-size: 0.75rem; }

.account-order-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    padding: 2px 12px 6px 66px;
}
.account-order-meta strong { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0; }
.account-chip {
    display: inline-flex; align-items: center;
    min-height: 20px; padding: 0 8px; border-radius: 12px;
    background: var(--g-soft); color: var(--g-ink); font-size: 0.6875rem; font-weight: 500;
}
.account-chip.is-pending { background: var(--g-yellow-soft); color: var(--g-yellow); }
.account-chip.is-paid { background: var(--g-green-soft); color: var(--g-green); }
.account-order-awb { margin: 0 12px 6px; font-size: 0.75rem; }
.account-order-foot {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin: 12px 0 0; padding: 12px 20px 14px 22px;
    background: var(--g-bg); border-top: 1px solid var(--g-line);
}

.account-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.account-product {
    position: relative;
    display: flex; flex-direction: column; gap: 8px;
    border: 1px solid var(--g-line); border-radius: 8px; padding: 12px;
    text-decoration: none; color: inherit; background: #fff;
}
.account-product-media {
    display: flex; align-items: center; justify-content: center;
    height: 124px; border-radius: 8px; background: var(--g-bg);
}
.account-product img { width: 100%; height: 110px; object-fit: contain; background: transparent; }
.account-product h3 { font-size: 0.875rem; font-weight: 400; margin: 0; line-height: 1.35; }
.account-product-price { color: var(--g-ink); font-weight: 500; }

.account-empty { color: var(--g-muted); padding: 22px 4px; line-height: 1.55; }
.account-empty-card { text-align: center; padding: 42px 22px; }
.account-empty-icon {
    width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center;
    background: var(--g-blue-soft); color: var(--g-blue); font-size: 1.25rem;
}

.account-field.is-editing { align-items: start; }
.account-otp {
    display: grid; gap: 8px; margin: 10px 0 0; padding: 10px;
    grid-column: 1 / -1; width: 100%; box-sizing: border-box;
    background: var(--g-bg); border: 1px solid var(--g-line); border-radius: 8px;
    justify-items: stretch;
}
.account-otp-row {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.account-otp-row .account-btn { flex: 0 0 auto; width: auto; }
.account-otp-row input { flex: 1 1 160px; width: auto; min-width: 0; }
.account-otp-row #otpCode {
    flex: 1 1 160px; max-width: 220px;
}
.account-otp .account-muted { margin: 0; font-size: 0.75rem; line-height: 1.45; }
#addressForm { position: relative; z-index: 2; }
.account-otp input, .account-card .shop-field input, .account-card .shop-field select {
    min-height: 36px; border: 1px solid var(--g-line); border-radius: 4px;
    padding: 6px 12px; font: inherit; width: 100%; box-sizing: border-box; background: #fff;
}
.account-otp input:focus, .account-card .shop-field input:focus, .account-card .shop-field select:focus {
    outline: none; border-color: var(--g-blue); box-shadow: 0 0 0 1px var(--g-blue);
}
.shop-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; font-size: 0.8125rem; color: var(--g-muted); }
.shop-fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.shop-check { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: start; margin: 10px 0; }
.account-addr-types {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin: 6px 0 14px;
}
.account-addr-type, .account-addr-pick {
    display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: 6px;
    min-height: 32px; padding: 4px 10px; border: 1px solid var(--g-line); border-radius: 16px;
    background: #fff; color: var(--g-ink); cursor: pointer; font: inherit; font-size: 0.8125rem; font-weight: 500;
    text-align: center;
}
.account-addr-type i, .account-addr-pick i { font-size: 0.8125rem; color: var(--g-muted); width: 14px; text-align: center; }
.account-addr-type:hover, button.account-addr-pick:hover { background: var(--g-soft); }
.account-addr-type.is-on, .account-addr-pick.is-on {
    background: var(--g-blue-soft); border-color: var(--g-blue); color: var(--g-blue-ink);
}
.account-addr-type.is-on:hover, .account-addr-pick.is-on { background: var(--g-blue-soft); }
.account-addr-type.is-on i, .account-addr-pick.is-on i { color: var(--g-blue); }
span.account-addr-pick { cursor: default; }
.account-addr {
    display: grid; grid-template-columns: auto minmax(0, 1fr) 40px; gap: 12px; align-items: start;
}
.account-addr-pick { width: auto; min-width: 0; min-height: 32px; background: var(--g-bg); }
.account-addr-body { display: grid; gap: 4px; min-width: 0; }
.account-more-wrap { position: relative; justify-self: end; }
.account-more-wrap.is-open { z-index: 8; }
.account-more {
    width: 32px; height: 32px; border: 0; border-radius: 50%;
    background: transparent; color: var(--g-muted); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
}
.account-more:hover, .account-more-wrap.is-open .account-more { background: var(--g-soft); color: var(--g-ink); }
.account-more-list {
    display: none; position: absolute; right: 0; top: 32px; z-index: 6;
    min-width: 180px; padding: 8px 0;
    background: #fff; border-radius: 4px;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 2px 6px 2px rgba(60, 64, 67, 0.15);
}
.account-more-wrap.is-open .account-more-list { display: block; }
.account-more-list button, .account-more-list a {
    display: flex; align-items: center; gap: 12px; width: 100%;
    border: 0; background: transparent; padding: 10px 16px;
    color: var(--g-ink); cursor: pointer; font: inherit; font-weight: 400; text-align: left;
    text-decoration: none; box-sizing: border-box;
}
.account-more-list button i, .account-more-list a i { width: 16px; color: var(--g-muted); text-align: center; }
.account-more-list button:hover, .account-more-list a:hover { background: var(--g-soft); }
.account-more-list button.danger, .account-more-list a.danger { color: var(--g-red); }
.account-more-list button.danger i, .account-more-list a.danger i { color: var(--g-red); }
.account-product .account-more-wrap { position: absolute; top: 4px; right: 4px; z-index: 3; }
.account-badge {
    display: inline-flex; align-items: center;
    width: fit-content; font-size: 0.6875rem; color: var(--g-green); font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.04em;
    background: var(--g-green-soft); border-radius: 16px; padding: 3px 8px; margin-bottom: 8px;
}
.account-device {
    display: grid; grid-template-columns: 44px minmax(0, 1fr) 32px; gap: 12px; align-items: center;
    padding: 12px 8px 12px 12px;
}
.account-device-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--g-bg); color: var(--g-muted); font-size: 1.15rem;
}
.account-device-body { display: grid; gap: 2px; min-width: 0; }
.account-device-body strong { font-size: 0.875rem; font-weight: 500; }
.account-device .account-badge { margin-bottom: 0; }
.wish-btn {
    position: absolute; top: 8px; right: 8px; z-index: 2;
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--g-line); background: #fff; color: var(--g-hint); cursor: pointer;
}
.wish-btn.is-on { color: var(--g-red); }

.track-wrap { max-width: 760px; margin: 0 auto; }
.track-steps { display: flex; justify-content: space-between; gap: 6px; margin: 28px 0 18px; position: relative; }
.track-steps::before {
    content: ''; position: absolute; top: 7px; left: 10%; right: 10%;
    height: 2px; background: var(--g-line);
}
.track-step { flex: 1; text-align: center; font-size: 0.75rem; color: var(--g-muted); position: relative; }
.track-step::before {
    content: ''; display: block; width: 12px; height: 12px; border-radius: 50%;
    background: var(--g-line); margin: 0 auto 8px; position: relative; z-index: 1;
    box-shadow: 0 0 0 4px #fff;
}
.track-step.is-done { color: var(--g-green); font-weight: 500; }
.track-step.is-done::before { background: var(--g-green); }
.track-step.is-on { color: var(--g-blue); font-weight: 500; }
.track-step.is-on::before { background: var(--g-blue); }
.track-meta { display: grid; gap: 10px; margin: 16px 0; }
.track-meta div { background: var(--g-bg); border-radius: 8px; padding: 14px 16px; }
.track-meta span { display: block; font-size: 0.75rem; color: var(--g-muted); margin-bottom: 4px; }

@media (max-width: 700px) {
    .shop-fields-2 { grid-template-columns: 1fr; }
    .track-steps { flex-wrap: wrap; }
    .account-page h1 { font-size: 1.5rem; }
    .account-order-item { grid-template-columns: 40px minmax(0, 1fr); gap: 8px; }
    .account-order-thumb-wrap, .account-order-thumb-icon { width: 40px; height: 40px; border-radius: 6px; }
    .account-order-thumb { width: 34px; height: 34px; }
    .account-order-meta { padding-left: 60px; }
    .account-order-foot { padding-left: 12px; }
}
@media (min-width: 860px) {
    .account-shell { grid-template-columns: 236px minmax(0, 1fr); align-items: start; }
    .account-nav { flex-direction: column; overflow: visible; position: sticky; top: 84px; }
    .account-nav button { width: 100%; }
    .account-page h1 { font-size: 1.75rem; }
}
@media print { header, footer, .whatsapp-button, .account-nav, .account-actions, .account-order-foot { display: none !important; } }
