@CHARSET "UTF-8";

:root {
    --c-primary: #0E7BCE;
    --c-primary-light: #3ea5e5;
    --c-primary-dark: #0a5a99;
    --c-accent: #c9a96e;
    --c-accent-light: #e0c998;
    --c-accent-dark: #a8874d;
    --c-bg: #1D1D1D;
    --c-bg-2: #252525;
    --c-bg-3: #2e2e2e;
    --c-bg-4: #383838;
    --c-surface: rgba(35, 35, 35, 0.94);
    --c-surface-2: rgba(42, 42, 42, 0.9);
    --c-border: rgba(201, 169, 110, 0.18);
    --c-border-strong: rgba(201, 169, 110, 0.35);
    --c-text: #f0f0f0;
    --c-text-2: rgba(240, 240, 240, 0.75);
    --c-text-3: rgba(240, 240, 240, 0.55);
    --c-text-4: rgba(240, 240, 240, 0.4);
    --c-danger: #e74c3c;
    --c-success: #2ecc71;
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
    --shadow-xl: 0 24px 72px rgba(0, 0, 0, 0.55);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

.shop-apply-middle {
    position: relative;
    min-height: 100vh;
    width: 100%;
    background-color: var(--c-bg);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(201, 169, 110, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(14, 123, 206, 0.05) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.01) 0%, transparent 60%),
        linear-gradient(180deg, #1D1D1D 0%, #222226 50%, #1D1D1D 100%);
    overflow: hidden;
    padding: 50px 0;
}

.shop-apply-middle::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(201, 169, 110, 0.03) 0%, transparent 3%),
        radial-gradient(circle at 80% 70%, rgba(201, 169, 110, 0.03) 0%, transparent 3%),
        radial-gradient(circle at 30% 80%, rgba(14, 123, 206, 0.03) 0%, transparent 2.5%),
        radial-gradient(circle at 70% 20%, rgba(14, 123, 206, 0.03) 0%, transparent 2.5%),
        radial-gradient(circle at 50% 60%, rgba(201, 169, 110, 0.02) 0%, transparent 4%);
    background-size: 200px 200px, 250px 250px, 300px 300px, 220px 220px, 280px 280px;
    pointer-events: none;
    z-index: 0;
}

.shop-apply-middle::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 25px;
    right: 25px;
    bottom: 25px;
    border: 1px solid rgba(201, 169, 110, 0.08);
    border-radius: var(--radius-lg);
    pointer-events: none;
    z-index: 0;
}

.shop-apply-middle > * {
    position: relative;
    z-index: 2;
}

.shop-apply-middle a {
    color: var(--c-primary-light);
    text-decoration: none;
    transition: color 0.3s var(--ease);
}

.shop-apply-middle a:hover {
    color: var(--c-accent);
}

.shop-apply-middle ol,
.shop-apply-middle ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shop-apply-middle input[type=text],
.shop-apply-middle input[type=password],
.shop-apply-middle input[type=submit],
.shop-apply-middle input[type=button],
.shop-apply-middle select,
.shop-apply-middle textarea {
    border: none;
    line-height: normal;
    padding: 0;
    margin: 0;
    background: transparent;
    outline: none;
    box-shadow: none;
}

.shop-apply-middle select {
    /* color: white; */
    height: auto;
}

.shop-apply-middle .wst-clear {
    clear: both;
}

.shop-apply-middle .wst-container {
    width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.shop-apply-middle .wst-container::after {
    content: '';
    display: block;
    clear: both;
}

.shop-apply-center {
    display: flex;
    justify-content: center;
}

/* ============================================================
   BRAND PANEL (shop_join.html - left side)
   ============================================================ */
.apply-brand-panel {
    width: 440px;
    float: left;
    color: var(--c-text);
    position: relative;
    animation: fadeSlideIn 0.9s var(--ease);
    padding: 50px 40px;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.apply-brand-panel::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid rgba(201, 169, 110, 0.2);
    border-radius: var(--radius-lg);
    pointer-events: none;
}

.apply-brand-panel::after {
    /* content: ''; */
    position: absolute;
    top: 30px;
    left: 30px;
    right: 30px;
    bottom: 30px;
    border: 1px solid rgba(14, 123, 206, 0.12);
    border-radius: var(--radius-md);
    pointer-events: none;
}

.apply-brand-panel > * {
    position: relative;
    z-index: 1;
}

.brand-panel-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    pointer-events: none;
    z-index: 0;
}

.brand-panel-corner.tl {
    top: 35px;
    left: 35px;
    border-top: 2px solid var(--c-accent);
    border-left: 2px solid var(--c-accent);
    border-top-left-radius: 8px;
}

.brand-panel-corner.tr {
    top: 35px;
    right: 35px;
    border-top: 2px solid var(--c-accent);
    border-right: 2px solid var(--c-accent);
    border-top-right-radius: 8px;
}

.brand-panel-corner.bl {
    bottom: 35px;
    left: 35px;
    border-bottom: 2px solid var(--c-accent);
    border-left: 2px solid var(--c-accent);
    border-bottom-left-radius: 8px;
}

.brand-panel-corner.br {
    bottom: 35px;
    right: 35px;
    border-bottom: 2px solid var(--c-accent);
    border-right: 2px solid var(--c-accent);
    border-bottom-right-radius: 8px;
}

.brand-panel-logo {
    text-align: center;
    margin-bottom: 28px;
}

.brand-logo-emblem {
    width: 90px;
    height: 90px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--c-accent), var(--c-primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 8px 32px rgba(201, 169, 110, 0.35);
    position: relative;
}

.brand-logo-emblem::before,
.brand-logo-emblem::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--c-accent);
    opacity: 0.6;
    transition: all 0.3s var(--ease);
}

.brand-logo-emblem::before {
    top: -4px;
    left: -4px;
    border-right: none;
    border-bottom: none;
}

.brand-logo-emblem::after {
    bottom: -4px;
    right: -4px;
    border-left: none;
    border-top: none;
}

.brand-logo-emblem svg {
    width: 40px;
    height: 40px;
}

.brand-panel-title {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 4px;
    margin: 0 0 14px;
    text-align: center;
    color: var(--c-text);
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(201, 169, 110, 0.25);
}

.brand-panel-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    margin: 14px auto 0;
    background: linear-gradient(90deg, transparent, var(--c-accent), var(--c-primary), var(--c-accent), transparent);
    border-radius: 2px;
}

.brand-panel-subtitle {
    font-size: 14px;
    color: var(--c-text-3);
    line-height: 2;
    margin-bottom: 24px;
    text-align: center;
    padding: 0 20px;
}

.brand-panel-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--c-accent);
    font-size: 12px;
    letter-spacing: 4px;
}

.panel-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--c-accent));
}

.panel-line:last-child {
    background: linear-gradient(90deg, var(--c-accent), transparent);
}

.panel-diamond {
    font-size: 14px;
    text-shadow: 0 0 10px rgba(201, 169, 110, 0.5);
}

.brand-panel-features {
    padding: 0;
    margin: 0 0 28px;
}

.brand-panel-features li {
    padding: 14px 20px;
    color: var(--c-text-2);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    background: linear-gradient(90deg, rgba(201, 169, 110, 0.06), transparent);
    border-left: 3px solid var(--c-accent);
    margin-bottom: 10px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    transition: all 0.3s var(--ease);
}

.brand-panel-features li:hover {
    background: linear-gradient(90deg, rgba(201, 169, 110, 0.12), transparent);
    color: var(--c-text);
    transform: translateX(4px);
}

.brand-panel-features li strong {
    display: block;
    color: var(--c-text);
    font-size: 14px;
    margin-bottom: 2px;
}

.brand-panel-features li em {
    font-style: normal;
    color: var(--c-text-4);
    font-size: 12px;
}

.feature-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-accent);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.2);
    flex-shrink: 0;
}

.brand-panel-features li > div {
    flex: 1;
}

.brand-panel-steps {
    padding: 20px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
}

.panel-step {
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-step-num {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--c-accent), var(--c-primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 4px 12px rgba(201, 169, 110, 0.3);
    flex-shrink: 0;
}

.panel-step-label {
    font-size: 13px;
    color: var(--c-text-2);
    font-weight: 500;
}

.panel-step-line {
    width: 2px;
    height: 16px;
    background: var(--c-border-strong);
    margin: 4px 0 4px 15px;
}

/* ============================================================
   PROCESS PANEL (独立的入驻流程区块 - 横向显示)
   ============================================================ */
.apply-process-panel {
    width: 100%;
    float: none;
    clear: both;
    margin: 32px 0;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 24px 40px 20px;
    box-shadow: var(--shadow-md);
    position: relative;
    animation: fadeSlideIn 0.9s var(--ease) 0.1s backwards;
}

.apply-process-panel::before {
    /* content: ''; */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--c-primary) 0%, var(--c-accent) 50%, var(--c-primary) 100%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.process-panel-corner {
    position: absolute;
    width: 22px;
    height: 22px;
    pointer-events: none;
    z-index: 10;
}

.process-panel-corner.tl {
    top: 8px; left: 8px;
    border-top: 2px solid var(--c-accent);
    border-left: 2px solid var(--c-accent);
    border-top-left-radius: 12px;
}
.process-panel-corner.tr {
    top: 8px; right: 8px;
    border-top: 2px solid var(--c-accent);
    border-right: 2px solid var(--c-accent);
    border-top-right-radius: 12px;
}
.process-panel-corner.bl {
    bottom: 8px; left: 8px;
    border-bottom: 2px solid var(--c-accent);
    border-left: 2px solid var(--c-accent);
    border-bottom-left-radius: 12px;
}
.process-panel-corner.br {
    bottom: 8px; right: 8px;
    border-bottom: 2px solid var(--c-accent);
    border-right: 2px solid var(--c-accent);
    border-bottom-right-radius: 12px;
}

.process-panel-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 20px;
}

.process-line {
    flex: 1;
    height: 1px;
    max-width: 80px;
    background: linear-gradient(90deg, transparent, var(--c-accent));
}
.process-line:last-child {
    background: linear-gradient(90deg, var(--c-accent), transparent);
}

.process-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--c-text);
    letter-spacing: 4px;
}

.apply-process-panel .brand-panel-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.apply-process-panel .panel-step {
    flex-direction: column;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    transition: all 0.3s var(--ease);
    text-align: center;
    gap: 8px;
    min-width: 100px;
}

.apply-process-panel .panel-step:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--c-border-strong);
    transform: translateY(-4px);
}

.apply-process-panel .panel-step-label {
    font-size: 13px;
    color: var(--c-text-2);
    white-space: nowrap;
}

.apply-process-panel .panel-step-line {
    width: 24px;
    height: 2px;
    background: var(--c-border-strong);
    margin: 0 4px;
    flex-shrink: 0;
}

/* ============================================================
   ACTION PANEL (shop_join.html - right side)
   ============================================================ */
.apply-action-panel {
    width: 700px;
    float: right;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 40px 44px;
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(201, 169, 110, 0.1);
    margin-bottom: 32px;
    animation: fadeSlideIn 0.9s var(--ease) 0.15s backwards;
    position: relative;
    overflow: visible;
}

.apply-action-panel::before {
    /* content: ''; */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--c-accent) 0%, var(--c-primary) 50%, var(--c-accent) 100%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.apply-action-panel::after {
    /* content: ''; */
    position: absolute;
    top: 16px;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.2), transparent);
}

.action-panel-corner {
    position: absolute;
    width: 24px;
    height: 24px;
    pointer-events: none;
    z-index: 10;
}

.action-panel-corner.tl {
    top: 10px;
    left: 10px;
    border-top: 2px solid var(--c-accent);
    border-left: 2px solid var(--c-accent);
    border-top-left-radius: 12px;
}

.action-panel-corner.tr {
    top: 10px;
    right: 10px;
    border-top: 2px solid var(--c-accent);
    border-right: 2px solid var(--c-accent);
    border-top-right-radius: 12px;
}

.action-panel-corner.bl {
    bottom: 10px;
    left: 10px;
    border-bottom: 2px solid var(--c-accent);
    border-left: 2px solid var(--c-accent);
    border-bottom-left-radius: 12px;
}

.action-panel-corner.br {
    bottom: 10px;
    right: 10px;
    border-bottom: 2px solid var(--c-accent);
    border-right: 2px solid var(--c-accent);
    border-bottom-right-radius: 12px;
}

.action-panel-header {
    text-align: center;
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--c-border);
}

.action-panel-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--c-text);
    margin: 0 0 12px;
    letter-spacing: 4px;
}

.action-panel-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    margin: 10px auto 0;
    background: linear-gradient(90deg, transparent, var(--c-accent), var(--c-primary), var(--c-accent), transparent);
}

.action-panel-user {
    font-size: 14px;
    color: var(--c-text-2);
}

.user-welcome {
    color: var(--c-text-3);
}

.user-name {
    color: var(--c-accent);
    font-weight: 600;
    margin: 0 4px;
}

.action-panel-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 32px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all 0.3s var(--ease);
    letter-spacing: 3px;
    position: relative;
    overflow: hidden;
}

.action-btn-primary {
    background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-primary) 100%);
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(201, 169, 110, 0.25);
}

.action-btn-primary:hover {
    background: linear-gradient(135deg, var(--c-accent-light) 0%, var(--c-primary-light) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 169, 110, 0.4);
    color: #fff !important;
}

.action-btn-primary.action-btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.action-btn-secondary {
    background: transparent;
    color: var(--c-text-2) !important;
    border: 1px solid var(--c-border-strong);
}

.action-btn-secondary:hover {
    background: rgba(14, 123, 206, 0.1);
    border-color: var(--c-primary);
    color: var(--c-text) !important;
}

.btn-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon svg {
    width: 18px;
    height: 18px;
}

.action-panel-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.action-info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    transition: all 0.3s var(--ease);
    position: relative;
}

.action-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--c-accent), var(--c-primary));
    opacity: 0;
    transition: opacity 0.3s var(--ease);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.action-info-card:hover {
    border-color: var(--c-border-strong);
    background: rgba(0, 0, 0, 0.35);
    transform: translateX(4px);
}

.action-info-card:hover::before {
    opacity: 1;
}

.info-card-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.15), rgba(14, 123, 206, 0.1));
    border: 1px solid var(--c-border-strong);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-accent);
}

.info-card-icon svg {
    width: 22px;
    height: 22px;
}

.info-card-body h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text);
    margin: 0 0 6px;
}

.info-card-body p {
    font-size: 13px;
    color: var(--c-text-3);
    margin: 0;
    line-height: 1.7;
}

/* ============================================================
   GUIDE PANEL (shop_join.html)
   ============================================================ */
.apply-guide-panel {
    clear: both;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 44px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.apply-guide-panel::before {
    /* content: ''; */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--c-accent) 0%, var(--c-primary) 50%, var(--c-accent) 100%);
}

.guide-panel-header {
    text-align: center;
    margin-bottom: 32px;
}

.guide-panel-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--c-text);
    margin: 0 0 8px;
    letter-spacing: 3px;
}

.guide-panel-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    margin: 10px auto 0;
    background: linear-gradient(90deg, transparent, var(--c-accent), var(--c-primary), var(--c-accent), transparent);
}

.guide-panel-header p {
    font-size: 13px;
    color: var(--c-text-4);
    margin: 0;
    letter-spacing: 1px;
}

.guide-tab-box {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.guide-tab-nav,
.wst-tab-nav {
    display: flex;
    background: rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid var(--c-border);
    padding: 5px;
    gap: 2px;
}

.guide-tab-nav li,
.wst-tab-nav li {
    padding: 10px 24px;
    color: var(--c-text-3);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    white-space: nowrap;
    border-radius: var(--radius-sm);
}

.guide-tab-nav li:hover,
.wst-tab-nav li:hover {
    color: var(--c-text);
    background: rgba(201, 169, 110, 0.06);
}

.guide-tab-nav li.current,
.guide-tab-nav li.on,
.wst-tab-nav li.current,
.wst-tab-nav li.on {
    color: #fff;
    background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-primary) 100%);
    box-shadow: 0 2px 8px rgba(201, 169, 110, 0.25);
}

.guide-tab-content,
.wst-tab-content {
    padding: 28px;
    min-height: 260px;
    color: var(--c-text-2);
    font-size: 14px;
    line-height: 1.8;
}

.guide-tab-item,
.wst-tab-item {
    display: none;
    animation: tabFadeIn 0.4s var(--ease);
}

.guide-tab-item.current,
.guide-tab-item.on,
.wst-tab-item.current,
.wst-tab-item.on {
    display: block;
}

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.guide-tab-item h1,
.guide-tab-item h2,
.guide-tab-item h3 {
    color: var(--c-text);
    margin: 20px 0 12px;
}

.guide-tab-item p {
    color: var(--c-text-2);
    margin-bottom: 12px;
}

.guide-tab-item strong {
    color: var(--c-accent);
}

.guide-tab-item img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 16px 0;
    border: 1px solid var(--c-border);
}

.guide-tab-item table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.guide-tab-item table th,
.guide-tab-item table td {
    padding: 10px 14px;
    border: 1px solid var(--c-border);
    text-align: left;
}

.guide-tab-item table th {
    background: rgba(201, 169, 110, 0.08);
    color: var(--c-text);
}

/* ============================================================
   APPLY LAYOUT (shop_join_step.html)
   ============================================================ */
.apply-layout {
    display: flex;
    gap: 28px;
    width: 100%;
    max-width: 1150px;
    animation: fadeSlideIn 0.8s var(--ease);
    align-items: flex-start;
}

/* --- Sidebar --- */
.apply-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: visible;
    animation: fadeSlideIn 0.9s var(--ease);
}

.apply-sidebar::before {
    /* content: ''; */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--c-accent) 0%, var(--c-primary) 50%, var(--c-accent) 100%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.sidebar-corner {
    position: absolute;
    width: 24px;
    height: 24px;
    pointer-events: none;
    z-index: 10;
}

.sidebar-corner.tl {
    top: 10px;
    left: 10px;
    border-top: 2px solid var(--c-accent);
    border-left: 2px solid var(--c-accent);
    border-top-left-radius: 12px;
}

.sidebar-corner.tr {
    top: 10px;
    right: 10px;
    border-top: 2px solid var(--c-accent);
    border-right: 2px solid var(--c-accent);
    border-top-right-radius: 12px;
}

.sidebar-corner.bl {
    bottom: 10px;
    left: 10px;
    border-bottom: 2px solid var(--c-accent);
    border-left: 2px solid var(--c-accent);
    border-bottom-left-radius: 12px;
}

.sidebar-corner.br {
    bottom: 10px;
    right: 10px;
    border-bottom: 2px solid var(--c-accent);
    border-right: 2px solid var(--c-accent);
    border-bottom-right-radius: 12px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 24px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--c-border);
}

.sidebar-brand-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--c-accent), var(--c-primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(201, 169, 110, 0.3);
}

.sidebar-brand-icon svg {
    width: 22px;
    height: 22px;
}

.sidebar-brand-text strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--c-text);
    letter-spacing: 1px;
}

.sidebar-brand-text span {
    font-size: 12px;
    color: var(--c-text-4);
    letter-spacing: 2px;
}

.sidebar-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.sd-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--c-accent));
}

.sd-line:last-child {
    background: linear-gradient(90deg, var(--c-accent), transparent);
}

.sd-diamond {
    color: var(--c-accent);
    font-size: 14px;
    text-shadow: 0 0 10px rgba(201, 169, 110, 0.5);
}

/* --- Sidebar Steps --- */
.stepflex-sidebar {
    padding: 0;
    margin: 0 0 24px;
}

.stepflex-sidebar dl {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    margin: 0 0 18px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    transition: background 0.3s var(--ease);
    position: relative;
}

.stepflex-sidebar dl:hover {
    background: rgba(0, 0, 0, 0.2);
}

.stepflex-sidebar dl:last-child {
    margin-bottom: 0;
}

.stepflex-sidebar dl dt {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    z-index: 2;
    transition: all 0.3s var(--ease);
    position: relative;
}

.stepflex-sidebar dl dt.s-done {
    background: linear-gradient(135deg, var(--c-accent), var(--c-primary));
    color: #fff;
    box-shadow: 0 4px 12px rgba(201, 169, 110, 0.3);
}

.stepflex-sidebar dl dt.s-pending {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--c-border);
    color: var(--c-text-4);
}

.step-num-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-check {
    width: 18px;
    height: 18px;
}

.stepflex-sidebar dl dd {
    margin: 0;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.stepflex-sidebar dl dd.s-label-done .step-label-text {
    color: var(--c-text);
    font-weight: 600;
}

.stepflex-sidebar dl dd.s-label-pending .step-label-text {
    color: var(--c-text-3);
}

.step-label-text {
    font-size: 14px;
    line-height: 1.4;
}

.step-label-status {
    font-size: 12px;
    color: var(--c-text-4);
    letter-spacing: 1px;
}

.step-label-status.current {
    color: var(--c-accent);
    font-weight: 600;
}

.step-connector-v {
    display: none;
}

.stepflex-sidebar dl + dl::before {
    content: '';
    position: absolute;
    left: 31px;
    top: -18px;
    width: 2px;
    height: 18px;
    background: var(--c-border);
}

/* --- Sidebar Tip --- */
.sidebar-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(201, 169, 110, 0.06);
    border: 1px solid rgba(201, 169, 110, 0.15);
    border-radius: var(--radius-md);
    font-size: 12px;
    color: var(--c-text-3);
    line-height: 1.6;
}

.sidebar-tip svg {
    width: 18px;
    height: 18px;
    color: var(--c-accent);
    flex-shrink: 0;
    margin-top: 1px;
}

/* --- Main Content --- */
.apply-main-content {
    flex: 1;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 44px 48px;
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(201, 169, 110, 0.1);
    position: relative;
    overflow: visible;
    min-width: 0;
}

.apply-main-content::before {
    /* content: ''; */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--c-accent) 0%, var(--c-primary) 50%, var(--c-accent) 100%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.apply-main-content::after {
    /* content: ''; */
    position: absolute;
    top: 16px;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.15), transparent);
}

.main-content-corner {
    position: absolute;
    width: 24px;
    height: 24px;
    pointer-events: none;
    z-index: 10;
}

.main-content-corner.tl {
    top: 10px;
    left: 10px;
    border-top: 2px solid var(--c-accent);
    border-left: 2px solid var(--c-accent);
    border-top-left-radius: 12px;
}

.main-content-corner.tr {
    top: 10px;
    right: 10px;
    border-top: 2px solid var(--c-accent);
    border-right: 2px solid var(--c-accent);
    border-top-right-radius: 12px;
}

.main-content-corner.bl {
    bottom: 10px;
    left: 10px;
    border-bottom: 2px solid var(--c-accent);
    border-left: 2px solid var(--c-accent);
    border-bottom-left-radius: 12px;
}

.main-content-corner.br {
    bottom: 10px;
    right: 10px;
    border-bottom: 2px solid var(--c-accent);
    border-right: 2px solid var(--c-accent);
    border-bottom-right-radius: 12px;
}

.main-content-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--c-border);
}

.main-header-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.15), rgba(14, 123, 206, 0.1));
    border: 1px solid var(--c-border-strong);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-accent);
    flex-shrink: 0;
}

.main-header-icon svg {
    width: 26px;
    height: 26px;
}

.main-header-text h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--c-text);
    margin: 0 0 6px;
    letter-spacing: 2px;
}

.main-header-text span {
    font-size: 13px;
    color: var(--c-text-4);
}

/* ============================================================
   FORM / AGREEMENT / PAY (shared)
   ============================================================ */
.agreement-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: 28px;
    margin-bottom: 20px;
    max-height: 480px;
    overflow-y: auto;
    color: var(--c-text-2);
    font-size: 14px;
    line-height: 1.8;
    position: relative;
}

.agreement-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--c-accent) 0%, var(--c-primary) 50%, var(--c-accent) 100%);
    background-size: 200% 100%;
    animation: formShimmer 4s linear infinite;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.agreement-box h1,
.agreement-box h2,
.agreement-box h3 {
    color: var(--c-text);
}

.agreement-check {
    text-align: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    position: relative;
}

.agreement-check::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--c-accent) 0%, var(--c-primary) 50%, var(--c-accent) 100%);
    background-size: 200% 100%;
    animation: formShimmer 4s linear infinite;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.agreement-check label {
    color: var(--c-text-2);
    font-size: 14px;
    cursor: pointer;
}

.agreement-check .msg-box {
    color: var(--c-danger);
    font-size: 13px;
    margin-left: 10px;
}

.form-content-box,
.form-box-plain {
    background: linear-gradient(180deg, rgba(55, 48, 38, 0.55) 0%, rgba(45, 40, 32, 0.45) 100%);
    border: 1px solid rgba(201, 169, 110, 0.22);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    margin-bottom: 24px;
    position: relative;
    overflow: visible;
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(201, 169, 110, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: formFadeIn 0.6s var(--ease);
}

@keyframes formFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-content-box::before,
.form-box-plain::before {
    /* content: ''; */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--c-accent) 0%, var(--c-primary) 50%, var(--c-accent) 100%);
    background-size: 200% 100%;
    animation: formShimmer 4s linear infinite;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

@keyframes formShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.form-content-box::after,
.form-box-plain::after {
    /* content: ''; */
    position: absolute;
    top: 18px;
    left: 28px;
    right: 28px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.2), transparent);
}

.form-content-box > .form-corner,
.form-box-plain > .form-corner {
    position: absolute;
    width: 24px;
    height: 24px;
    pointer-events: none;
    z-index: 5;
}

.form-content-box > .form-corner.tl,
.form-box-plain > .form-corner.tl {
    top: 10px;
    left: 10px;
    border-top: 2px solid var(--c-accent);
    border-left: 2px solid var(--c-accent);
    border-top-left-radius: 12px;
}

.form-content-box > .form-corner.tr,
.form-box-plain > .form-corner.tr {
    top: 10px;
    right: 10px;
    border-top: 2px solid var(--c-accent);
    border-right: 2px solid var(--c-accent);
    border-top-right-radius: 12px;
}

.form-content-box > .form-corner.bl,
.form-box-plain > .form-corner.bl {
    bottom: 10px;
    left: 10px;
    border-bottom: 2px solid var(--c-accent);
    border-left: 2px solid var(--c-accent);
    border-bottom-left-radius: 12px;
}

.form-content-box > .form-corner.br,
.form-box-plain > .form-corner.br {
    bottom: 10px;
    right: 10px;
    border-bottom: 2px solid var(--c-accent);
    border-right: 2px solid var(--c-accent);
    border-bottom-right-radius: 12px;
}

.agreement-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    position: relative;
    z-index: 2;
}

.agreement-table tr {
    position: relative;
    transition: background 0.3s var(--ease);
}

.agreement-table tr td,
.agreement-table tr th {
    border-bottom: 1px solid rgba(201, 169, 110, 0.1);
}

.agreement-table tr:last-child td,
.agreement-table tr:last-child th {
    border-bottom: none;
}

.agreement-table tr:hover td {
    background: rgba(201, 169, 110, 0.04);
}

.agreement-table th {
    text-align: right;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text-2);
    white-space: nowrap;
    width: 180px;
    vertical-align: top;
    position: relative;
}

.agreement-table th::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, var(--c-accent), var(--c-primary));
    border-radius: 2px;
    transition: height 0.3s var(--ease);
    opacity: 0.6;
}

.agreement-table tr:hover th::before {
    height: 20px;
    opacity: 1;
}

.agreement-table th font {
    color: #e74c3c;
    margin-left: 2px;
    font-size: 16px;
    text-shadow: 0 0 8px rgba(231, 76, 60, 0.3);
}

.agreement-table td {
    padding: 14px 20px;
    vertical-align: middle;
    color: var(--c-text);
    font-size: 14px;
}

.agreement-table td .a-ipt {
    max-width: 100%;
}

.agreement-table td select.a-ipt {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23c9a96e' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px !important;
}

.agreement-table td select.a-ipt option {
    background: var(--c-bg-2);
    color: var(--c-text);
}

.agreement-table textarea.a-ipt {
    min-height: 90px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.7;
    padding: 12px 16px !important;
}

.c-tip {
    margin-top: 8px;
    font-size: 12px;
    color: var(--c-text-4);
    line-height: 1.6;
    padding: 6px 10px;
    background: rgba(14, 123, 206, 0.06);
    border-left: 2px solid var(--c-primary);
    border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
    display: inline-block;
}

/* ============================================================
   FORM CONTROLS - Radio / Checkbox / Date / Region
   ============================================================ */

/* --- Radio & Checkbox in agreement table --- */
.agreement-table td label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(75, 68, 55, 0.45);
    border: 1px solid rgba(201, 169, 110, 0.25);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    color: var(--c-text-2);
    transition: all 0.25s var(--ease);
    margin: 3px 4px 3px 0;
    user-select: none;
    vertical-align: middle;
}

.agreement-table td label:hover {
    border-color: var(--c-accent);
    color: var(--c-text);
    background: rgba(85, 78, 65, 0.55);
}

.agreement-table td label input[type="radio"],
.agreement-table td label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    margin: 0;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 0.25s var(--ease);
}

.agreement-table td label input[type="radio"] {
    border: 2px solid rgba(201, 169, 110, 0.5);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
}

.agreement-table td label input[type="radio"]:hover {
    border-color: var(--c-accent);
}

.agreement-table td label input[type="radio"]:checked {
    border-color: var(--c-accent);
    background: rgba(201, 169, 110, 0.2);
}

.agreement-table td label input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: var(--c-accent);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(201, 169, 110, 0.6);
}

.agreement-table td label input[type="checkbox"] {
    border: 2px solid rgba(201, 169, 110, 0.5);
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.3);
}

.agreement-table td label input[type="checkbox"]:hover {
    border-color: var(--c-accent);
}

.agreement-table td label input[type="checkbox"]:checked {
    border-color: var(--c-accent);
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.3), rgba(14, 123, 206, 0.2));
}

.agreement-table td label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -60%) rotate(45deg);
    width: 4px;
    height: 7px;
    border: solid var(--c-accent);
    border-width: 0 2px 2px 0;
}

.agreement-table td label input[type="radio"]:focus,
.agreement-table td label input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.2);
}

/* Date relevance checkbox (inline) */
.agreement-table td > label {
    padding: 4px 14px;
    font-size: 13px;
}

/* --- Date picker (laydate handles its own icon) --- */
.a-ipt.laydate-icon {
    cursor: pointer;
    padding-right: 44px !important;
    margin: 0 4px;
    display: inline-block;
    position: relative;
    vertical-align: middle;
    max-width: 220px;
    border: 2px solid var(--c-accent) !important;
    border-radius: var(--radius-md) !important;
    background: rgba(75, 68, 55, 0.7) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s var(--ease);
}

.a-ipt.laydate-icon:hover {
    border-color: var(--c-accent-light) !important;
    background: rgba(85, 78, 65, 0.75) !important;
    box-shadow: 0 4px 14px rgba(201, 169, 110, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.a-ipt.laydate-icon:focus {
    border-color: var(--c-accent) !important;
    background: rgba(90, 82, 68, 0.8) !important;
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.25), 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Date range separator between two date inputs */
.date-range-sep {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, var(--c-accent), var(--c-primary));
    border-radius: 2px;
    margin: 0 6px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.date-range-sep::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--c-accent);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(201, 169, 110, 0.5);
}

/* Gap between date second input and the checkbox label */
.agreement-table td .a-ipt.laydate-icon + label {
    margin-left: 12px;
}

/* --- Region / Area select (all cascading levels) --- */
.agreement-table td select[class^="j-"] {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(75, 68, 55, 0.55);
    border: 1px solid rgba(201, 169, 110, 0.35);
    border-radius: var(--radius-sm);
    color: #f5f5f5;
    font-size: 14px;
    padding: 12px 36px 12px 16px;
    margin-right: 8px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23c9a96e' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    min-width: 130px;
}

.agreement-table td select[class^="j-"]:hover {
    border-color: rgba(201, 169, 110, 0.55);
    background-color: rgba(85, 78, 65, 0.6);
}

.agreement-table td select[class^="j-"]:focus {
    border-color: var(--c-accent);
    background-color: rgba(90, 82, 68, 0.65);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.2);
    outline: none;
}

.agreement-table td select[class^="j-"] option {
    background: #2a2824;
    color: #f5f5f5;
}

/* --- Time select --- */
.agreement-table td select.time-component {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(75, 68, 55, 0.55);
    border: 1px solid rgba(201, 169, 110, 0.35);
    border-radius: var(--radius-sm);
    color: #f5f5f5;
    font-size: 14px;
    padding: 12px 36px 12px 16px;
    margin-right: 8px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23c9a96e' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    min-width: 110px;
}

.agreement-table td select.time-component:hover {
    border-color: rgba(201, 169, 110, 0.55);
}

.agreement-table td select.time-component:focus {
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.2);
    outline: none;
}

/* --- Goods category checkboxes --- */
.agreement-table td label.goodsCat {
    padding: 6px 14px;
}

/* --- Upload picker in form table --- */
.agreement-table td .upload-picker {
    margin-top: 4px;
}

.msg-box {
    color: var(--c-danger);
    font-size: 12px;
    margin-top: 6px;
    display: block;
    padding: 4px 8px;
    background: rgba(231, 76, 60, 0.08);
    border-radius: var(--radius-xs);
    border-left: 2px solid var(--c-danger);
}

.radio-group input[type="radio"]:checked + span,
.checkbox-group input[type="checkbox"]:checked + span {
    color: var(--c-accent);
}

.wst-uploader {
    display: inline-block;
}

.wst-uploader-btn {
    display: inline-block;
    padding: 8px 18px;
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s var(--ease);
}

.wst-uploader-btn:hover {
    box-shadow: 0 4px 12px rgba(14, 123, 206, 0.4);
    transform: translateY(-1px);
}

.wst-uploader-list {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wst-uploader-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--c-border);
}

.wst-uploader-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wst-uploader-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

.wst-uploader-remove:hover {
    background: #e74c3c;
}

/* --- Form Inputs --- */
.a-ipt {
    width: 100%;
    max-width: 360px;
    padding: 12px 16px !important;
    background: rgba(75, 68, 55, 0.55);
    border: 1px solid rgba(201, 169, 110, 0.35);
    border-radius: var(--radius-sm);
    color: #f5f5f5 !important;
    font-size: 14px;
    outline: none;
    transition: all 0.3s var(--ease);
    font-family: inherit;
    position: relative;
}

/* Exclude radio/checkbox from text-input styling */
.a-ipt[type="radio"],
.a-ipt[type="checkbox"] {
    width: auto;
    max-width: none;
    padding: 0 !important;
    background: none;
    border: none;
    border-radius: 0;
    color: inherit !important;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.a-ipt::placeholder {
    color: rgba(240, 240, 240, 0.45);
}

.a-ipt:hover {
    border-color: rgba(201, 169, 110, 0.55);
    background: rgba(85, 78, 65, 0.6);
}

.a-ipt:focus {
    border-color: var(--c-accent);
    background: rgba(90, 82, 68, 0.65);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.2), 0 2px 8px rgba(0, 0, 0, 0.15);
}

.a-ipt:-webkit-autofill,
.a-ipt:-webkit-autofill:hover,
.a-ipt:-webkit-autofill:focus {
    -webkit-text-fill-color: #f5f5f5;
    -webkit-box-shadow: 0 0 0px 1000px rgba(90, 82, 68, 0.65) inset;
    transition: background-color 5000s ease-in-out 0s;
}

.agreement-table td textarea.a-ipt {
    min-height: 90px;
    padding: 12px 16px !important;
    line-height: 1.7;
    resize: vertical;
}

select.a-ipt {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23c9a96e' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px !important;
}

select.a-ipt option {
    background: #2a2824;
    color: #f5f5f5;
}

.agreement-table img {
    margin-top: 10px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--c-border);
}

/* --- Pay Box --- */
.pay-box {
    text-align: center;
    padding: 0;
}

.pay-content-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: 32px;
    margin: 16px 0;
}

.pay-tip1,
.pay-tip2 {
    text-align: center;
    color: var(--c-text-3);
    font-size: 14px;
    padding: 12px;
    line-height: 2;
}

.pay-tip1::before {
    content: '请您在线支付年费，以便快速处理您的入驻申请';
    display: block;
}

.pay-tip2::before {
    content: '请您选择支付方式完成年费支付';
    display: block;
}

.pay-notice {
    background: rgba(201, 169, 110, 0.08);
    border: 1px solid rgba(201, 169, 110, 0.2);
    color: var(--c-text-2);
    padding: 16px 20px;
    margin-bottom: 20px;
    border-radius: var(--radius-sm);
    line-height: 1.8;
}

.price-fred {
    color: var(--c-accent);
    font-weight: 700;
    font-size: 18px;
}

.pay-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 16px;
}

.pay-methods {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.pay-methods > div {
    width: 80px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s var(--ease);
    background-size: 60% auto;
    background-position: center;
    background-repeat: no-repeat;
}

.pay-methods > div:hover {
    border-color: var(--c-border-strong);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pay-methods > div[class$='-curr'] {
    border-color: var(--c-accent);
    background: rgba(201, 169, 110, 0.12);
    box-shadow: 0 0 0 1px rgba(201, 169, 110, 0.3), 0 4px 12px rgba(201, 169, 110, 0.15);
}

.wst-payCode-weixinpays {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40'%3E%3Ctext x='60' y='26' text-anchor='middle' fill='%23f0f0f0' font-size='14' font-family='sans-serif'%3E微信支付%3C/text%3E%3C/svg%3E");
}

.wst-payCode-alipay {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40'%3E%3Ctext x='60' y='26' text-anchor='middle' fill='%23f0f0f0' font-size='14' font-family='sans-serif'%3E支付宝%3C/text%3E%3C/svg%3E");
}

.wst-payCode-yinlian {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40'%3E%3Ctext x='60' y='26' text-anchor='middle' fill='%23f0f0f0' font-size='14' font-family='sans-serif'%3E银联%3C/text%3E%3C/svg%3E");
}

.pay-submit {
    display: inline-block;
    padding: 12px 40px;
    background: linear-gradient(135deg, var(--c-accent), var(--c-primary));
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    box-shadow: 0 4px 14px rgba(201, 169, 110, 0.25);
    letter-spacing: 2px;
}

.pay-submit:hover {
    background: linear-gradient(135deg, var(--c-accent-light), var(--c-primary-light));
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 169, 110, 0.4);
    color: #fff;
}

.pay-action {
    margin-top: 20px;
}

.qr-box {
    text-align: center;
    padding: 20px;
}

.qr-box .qr-tip {
    margin-bottom: 20px;
    color: var(--c-text-2);
}

.wst-qrcode {
    display: inline-block;
    padding: 14px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.wallet-box {
    max-width: 460px;
    margin: 0 auto;
}

.wallet-notice {
    background: rgba(201, 169, 110, 0.08);
    border: 1px solid rgba(201, 169, 110, 0.2);
    color: var(--c-text-2);
    padding: 16px 20px;
    margin-bottom: 16px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.wallet-detail {
    background: rgba(255, 255, 255, 0.05);
    padding: 16px 20px;
    margin-bottom: 12px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
}

.wallet-row {
    padding: 6px 0;
}

.wallet-row-right {
    float: right;
}

.wallet-pay-btn {
    text-align: center;
    padding: 10px 0 20px;
}

.pay-btn {
    padding: 12px 40px;
    background: linear-gradient(135deg, var(--c-accent), var(--c-primary));
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    box-shadow: 0 4px 14px rgba(201, 169, 110, 0.25);
}

.pay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 169, 110, 0.4);
}

.pay-forgot {
    color: var(--c-primary-light);
    margin-left: 10px;
}

.pay-forgot:hover {
    color: var(--c-accent);
}

.wallet-empty {
    text-align: center;
    padding: 20px;
    color: var(--c-text-2);
}

.wallet-empty a {
    color: var(--c-accent);
}

.examine-msg {
    text-align: center;
    padding: 40px 30px;
    color: var(--c-text-2);
    font-size: 16px;
    line-height: 2.5;
}

.examine-msg img {
    vertical-align: middle;
    margin-right: 10px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.examine-msg a {
    color: var(--c-accent);
    text-decoration: none;
    margin-left: 10px;
}

.examine-msg a:hover {
    color: var(--c-accent-light);
    text-decoration: underline;
}

/* --- Upload --- */
.upload-picker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: linear-gradient(135deg, var(--c-accent), var(--c-primary));
    color: #fff;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s var(--ease);
    box-shadow: 0 4px 12px rgba(201, 169, 110, 0.25);
    letter-spacing: 1px;
}

.upload-picker:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 169, 110, 0.4);
    background: linear-gradient(135deg, var(--c-accent-light), var(--c-primary-light));
}

/* --- Step Action Bar --- */
.step-action-bar {
    text-align: center;
    padding: 32px 0 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    position: relative;
}

.step-action-bar::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--c-border-strong), transparent);
}

.step-action-bar .btn-prev {
    display: inline-block;
    padding: 13px 44px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--c-text-2) !important;
    border-radius: var(--radius-md);
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid var(--c-border);
    transition: all 0.3s var(--ease);
    letter-spacing: 2px;
    font-weight: 500;
}

.step-action-bar .btn-prev:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--c-border-strong);
    color: var(--c-text) !important;
    transform: translateY(-2px);
}

.step-action-bar .btn-next {
    display: inline-block;
    padding: 13px 44px;
    background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-primary) 100%);
    color: #fff !important;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all 0.3s var(--ease);
    box-shadow: 0 4px 14px rgba(201, 169, 110, 0.25);
    letter-spacing: 2px;
}

.step-action-bar .btn-next:hover {
    background: linear-gradient(135deg, var(--c-accent-light) 0%, var(--c-primary-light) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(201, 169, 110, 0.4);
    color: #fff !important;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--c-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--c-accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--c-accent-light);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    .shop-apply-middle .wst-container {
        width: 100%;
        padding: 0 20px;
    }

    .apply-brand-panel {
        width: 100%;
        float: none;
        padding: 40px 30px;
    }

    .apply-process-panel {
        width: 100%;
        float: none;
    }

    .apply-action-panel {
        width: 100%;
        float: none;
    }

    .apply-layout {
        flex-direction: column;
        gap: 24px;
    }

    .apply-sidebar {
        width: 100%;
    }

    .sidebar-tip {
        display: none;
    }
}

@media (max-width: 768px) {
    .apply-brand-panel {
        padding: 36px 24px;
    }

    .apply-process-panel {
        padding: 24px 20px;
    }

    .apply-panel-title {
        font-size: 32px;
    }

    .apply-action-panel {
        padding: 36px 24px;
    }

    .action-panel-buttons {
        flex-direction: column;
        gap: 14px;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }

    .action-info-card {
        flex-direction: column;
        text-align: center;
    }

    .apply-main-content {
        padding: 32px 24px;
    }

    .main-content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .step-action-bar {
        flex-direction: column;
        gap: 14px;
    }

    .step-action-bar .btn-prev,
    .step-action-bar .btn-next {
        width: 100%;
        text-align: center;
    }
}