  :root {
    --bg: #0e0f13;
    --card: #171921;
    --card-hover: #1f222d;
    --border: #2a2e3d;
    --accent: #e8b878;
    --accent-dark: #c9944e;
    --text: #f3f4f6;
    --muted: #9ca3af;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
  }
  header {
    padding: 20px 32px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(23,25,33,0.85);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
  }
  header h1 { font-size: 20px; font-weight: 600; letter-spacing: 0.5px; }
  header h1 span { color: var(--accent); }
  header .sub { font-size: 13px; color: var(--muted); }
  .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 24px 60px;
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 28px;
  }
  @media (max-width: 960px) {
    .container { grid-template-columns: 1fr; }
  }
  .panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
  }
  .step-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .step-badge {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--accent);
    color: #111;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .upload-box {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(255,255,255,0.02);
    margin-bottom: 22px;
  }
  .upload-box:hover, .upload-box.drag { border-color: var(--accent); background: rgba(232,184,120,0.05); }
  .upload-box img {
    max-height: 220px;
    border-radius: 10px;
    margin-top: 10px;
    object-fit: contain;
  }
  .upload-tip { font-size: 13px; color: var(--muted); }
  .upload-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 12px;
    flex-wrap: wrap;
  }
  .btn-sub {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #1f222d;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s;
  }
  .btn-sub:hover { border-color: var(--accent); color: var(--accent); }
  .btn-camera {
    background: rgba(232,184,120,0.14);
    border-color: rgba(232,184,120,0.5);
    color: var(--accent);
  }
  .styles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 22px;
  }
  .style-card {
    position: relative;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #12131a;
    transition: all 0.18s;
    display: flex;
    flex-direction: column;
  }
  .vip-pill {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    background: linear-gradient(135deg, #e8b878, #c9944e);
    color: #141414;
    box-shadow: 0 2px 6px rgba(0,0,0,0.45);
  }
  .style-card:hover { border-color: #555b73; transform: translateY(-1px); }
  .style-card.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
  .style-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    object-position: center;
    display: block;
  }
  .style-card.coming-soon {
    border-style: dashed;
    border-color: rgba(232,184,120,0.35);
    cursor: default;
    opacity: 0.92;
  }
  .style-card.coming-soon:hover { transform: none; border-color: rgba(232,184,120,0.6); }
  .coming-soon-cover {
    width: 100%;
    aspect-ratio: 2 / 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    background: radial-gradient(circle at 50% 35%, rgba(232,184,120,0.16), rgba(23,25,33,0.95) 75%);
    color: var(--accent);
  }
  .coming-soon-icon {
    font-size: 28px;
    margin-bottom: 10px;
    opacity: 0.9;
  }
  .coming-soon-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 6px;
  }
  .coming-soon-desc {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.5;
  }
  @media (max-width: 640px) {
    header { padding: 10px 14px; }
    header h1 { font-size: 16px; }
    header .sub:not(#engineStatus) { display: none; }
    #engineStatus { font-size: 11px; white-space: nowrap; }
    .container { padding: 10px 10px 40px; gap: 12px; }
    .panel { padding: 12px; border-radius: 12px; }
    .step-title { font-size: 14px; margin-bottom: 8px; }
    .step-badge { width: 19px; height: 19px; font-size: 11px; }
    .upload-box { padding: 10px 12px; margin-bottom: 12px; }
    .upload-tip { display: none; }
    .upload-actions { margin-top: 8px; gap: 8px; }
    .btn-sub { padding: 6px 12px; font-size: 12px; }
    .styles-grid { gap: 8px; margin-bottom: 14px; }
    .style-card img, .coming-soon-cover { aspect-ratio: 4 / 5; }
    .style-info { padding: 6px 8px; }
    .style-name { font-size: 12px; }
    .style-tag { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  }
  .style-info { padding: 8px 10px; }
  .style-name { font-size: 13px; font-weight: 600; }
  .style-tag { font-size: 11px; color: var(--muted); margin-top: 2px; }
  .quota-box {
    background: rgba(232,184,120,0.06);
    border: 1px solid rgba(232,184,120,0.25);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
  }
  .quota-line { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
  .quota-badges { display: flex; gap: 6px; }
  .quota-badge {
    font-size: 12px; font-weight: 700; color: var(--accent);
    background: rgba(232,184,120,0.14); padding: 4px 10px; border-radius: 999px;
  }
  .quota-badge.sd { color: #7ec8a0; background: rgba(126,200,160,0.14); }
  .quota-actions { display: flex; gap: 8px; margin-top: 8px; }
  .btn-checkin, .btn-pwd {
    flex: 1; padding: 9px 10px; border-radius: 9px; font-size: 12px; font-weight: 700;
    cursor: pointer; border: 1px solid rgba(232,184,120,0.45);
    background: rgba(232,184,120,0.12); color: var(--accent);
  }
  .btn-checkin:disabled { opacity: 0.55; cursor: default; }
  .btn-pwd { background: transparent; color: var(--muted); border-color: var(--border); }
  .pwd-row { display: flex; gap: 8px; margin-top: 8px; }
  .btn-pwd-save {
    flex: 0 0 auto; padding: 0 14px; border-radius: 10px; font-size: 13px; font-weight: 700;
    cursor: pointer; border: 1px solid rgba(232,184,120,0.5);
    background: rgba(232,184,120,0.14); color: var(--accent);
  }
  .phone-input, .card-input {
    width: 100%; box-sizing: border-box;
    background: #101218; border: 1px solid var(--border); color: var(--text);
    border-radius: 10px; padding: 11px 12px; font-size: 14px; outline: none;
  }
  .phone-input:focus, .card-input:focus { border-color: var(--accent); }
  .card-input { text-transform: uppercase; }
  .sms-row { display: flex; gap: 8px; align-items: center; }
  .btn-code {
    flex: 0 0 auto; white-space: nowrap; padding: 11px 12px; border-radius: 10px;
    border: 1px solid rgba(232,184,120,0.5); background: rgba(232,184,120,0.14);
    color: var(--accent); font-size: 13px; font-weight: 700; cursor: pointer;
  }
  .btn-code:disabled { opacity: 0.5; cursor: not-allowed; }
  .sms-tip { font-size: 11px; color: var(--muted); margin-top: 7px; }
  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
  }
  label.lbl { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
  select, textarea {
    width: 100%;
    background: #101218;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    outline: none;
  }
  select:focus, textarea:focus { border-color: var(--accent); }
  textarea { resize: vertical; min-height: 64px; margin-bottom: 16px; }
  .btn-primary {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #141414;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
  }
  .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
  .status-bar {
    position: relative;
    overflow: hidden;
    padding: 12px 16px;
    border-radius: 10px;
    background: #11131a;
    border: 1px solid var(--border);
    margin-bottom: 18px;
    font-size: 13px;
  }
  .status-progress-bg {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 0%;
    background: linear-gradient(90deg, rgba(232,184,120,0.12), rgba(232,184,120,0.26));
    transition: width 0.6s ease;
    pointer-events: none;
    z-index: 0;
  }
  .status-progress-line {
    position: absolute;
    left: 0; bottom: 0; height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-dark), var(--accent));
    transition: width 0.6s ease;
    pointer-events: none;
    z-index: 1;
  }
  .status-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    width: 100%;
  }
  .gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
  .empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 16px;
    color: var(--muted);
    font-size: 13px;
  }
  .result-card {
    position: relative;
    background: #11131a;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
  }
  .result-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    -webkit-user-drag: none;
  }
  .result-foot {
    padding: 6px 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 11px;
  }
  .btn-dl {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 4px 6px;
    border-radius: 6px;
    background: rgba(232,184,120,0.12);
    border: 1px solid rgba(232,184,120,0.35);
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 11px;
  }
  .del-badge {
    display: none;
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 4;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(220,38,38,0.92);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.45);
  }
  .result-card.show-del .del-badge { display: inline-block; }
  .lightbox-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(8,9,13,0.92);
    backdrop-filter: blur(6px);
    padding: 20px 16px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
  }
  .lightbox-modal.open { display: flex; }
  .lightbox-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(23,25,33,0.9);
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
  }
  .lightbox-stage {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 48px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(23,25,33,0.72);
    color: var(--text);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .lightbox-nav.prev { left: 8px; }
  .lightbox-nav.next { right: 8px; }
  .lightbox-nav:disabled { opacity: 0.25; cursor: default; }
  .lightbox-img {
    max-width: 94vw;
    max-height: 76vh;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    transition: transform 0.2s ease, opacity 0.2s ease;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
  }
  .lightbox-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .lightbox-meta { font-size: 13px; color: var(--muted); }
  .lightbox-dl {
    padding: 10px 22px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #141414;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
  }
  @media (max-width: 640px) {
    .gallery { gap: 6px; }
    .result-foot { padding: 4px; }
    .btn-dl { font-size: 10px; padding: 3px 4px; }
    .lightbox-nav { width: 32px; height: 42px; font-size: 22px; }
  }
  .header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
  }
  .btn-account {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(232,184,120,0.45);
    background: linear-gradient(135deg, rgba(232,184,120,0.2), rgba(201,148,78,0.12));
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
  }
  .btn-account:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #141414;
    border-color: var(--accent);
  }
  .btn-account.logged {
    background: rgba(255,255,255,0.06);
    border-color: var(--border);
    color: var(--text);
  }
  .btn-account.logged:hover {
    border-color: var(--accent);
    color: var(--accent);
  }
  .account-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(8,9,12,0.82);
    backdrop-filter: blur(8px);
    z-index: 60;
    align-items: center;
    justify-content: center;
    padding: 16px;
  }
  .account-modal.show { display: flex; }
  .account-card {
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.65);
  }
  .account-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
  }
  .account-head h2 { font-size: 17px; font-weight: 600; color: var(--text); }
  .account-head .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
  .account-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.06);
    color: var(--text);
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
  }
  .account-close:hover { border-color: var(--accent); color: var(--accent); }
  .account-msg {
    margin-bottom: 12px;
    padding: 9px 12px;
    border-radius: 10px;
    background: rgba(232,184,120,0.12);
    border: 1px solid rgba(232,184,120,0.35);
    color: var(--accent);
    font-size: 13px;
  }
  .account-card-box {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    margin-top: 12px;
  }
  .account-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
  }
  .account-foot #accountDoneBtn { margin-left: auto; }
  .btn-logout {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    cursor: pointer;
  }
  .btn-logout:hover { color: #f87171; border-color: rgba(248,113,113,0.5); }
  @media (max-width: 640px) {
    header { padding: 14px 16px; gap: 10px; }
    header h1 { font-size: 17px; }
    header .sub { display: none; }
    .btn-account { padding: 7px 12px; font-size: 12px; }
  }
  .vip-float-btn {
    position: fixed;
    right: 22px;
    bottom: 24px;
    z-index: 45;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 999px;
    border: 1px solid rgba(232,184,120,0.6);
    background: linear-gradient(135deg, #272219, #171921);
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0,0,0,0.55), 0 0 0 1px rgba(232,184,120,0.16);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  }
  .vip-float-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #141414;
    box-shadow: 0 14px 32px rgba(232,184,120,0.28);
  }
  .vip-float-dot {
    padding: 2px 6px;
    border-radius: 999px;
    background: var(--accent);
    color: #141414;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.4px;
  }
  .vip-float-btn:hover .vip-float-dot {
    background: #141414;
    color: var(--accent);
  }
  .custom-history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 180px;
    overflow-y: auto;
  }
  .custom-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 12px;
  }
  .custom-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 11px;
  }
  .custom-status {
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(232,184,120,0.14);
    color: var(--accent);
    font-weight: 600;
  }
  .custom-status.done {
    background: rgba(52,211,153,0.14);
    color: #34d399;
  }
  .custom-item-body {
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.45;
  }
  @media (max-width: 640px) {
    .vip-float-btn { right: 14px; bottom: 16px; padding: 9px 14px; font-size: 12px; }
  }
