.navxia-tool-submit-page {
    margin: 0;
    min-height: 100vh;
    background: #f8fafc;
    color: #0f172a;
    font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.navxia-tool-submit-page * {
    box-sizing: border-box;
}

.navxia-tool-submit-page ::selection {
    background: #e0e7ff;
}

.navxia-tool-submit-page .ak-submit-shell svg {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ak-submit-shell {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    padding: 48px 16px;
}

.ak-submit-hero {
    max-width: 100%;
    margin: 0 auto 64px;
    padding: 0 16px;
    text-align: center;
    animation: akFadeUp .42s ease both;
}

.ak-submit-hero h1 {
    margin: 0 0 24px;
    color: #0f172a;
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.ak-submit-hero p {
    max-width: 880px;
    margin: 0 auto;
    color: #475569;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.75;
}

.ak-submit-hero strong {
    color: #0f172a;
    font-weight: 700;
}

.ak-submit-stack {
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 1024px;
    margin: 0 auto;
}

.ak-submit-card {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ak-submit-card-head {
    padding: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.ak-submit-card-head h2 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.ak-submit-card-head p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}

.ak-submit-card-body {
    padding: 24px;
}

.ak-submit-type-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.ak-submit-type-card {
    position: relative;
    display: flex;
    min-height: 151px;
    cursor: pointer;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    padding: 16px;
    text-align: left;
    outline: none;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ak-submit-type-card:hover {
    border-color: #4f46e5;
}

.ak-submit-type-card.is-active {
    border-color: #4f46e5;
    background: rgba(238, 242, 255, 0.28);
    box-shadow: 0 0 0 1px rgba(79, 70, 229, .04);
}

.ak-submit-type-card[data-submit-type="free"].is-active {
    background: #f8fafc;
}

.ak-submit-check {
    position: absolute;
    top: 16px;
    right: 16px;
    display: none;
    color: #4f46e5;
    font-size: 20px;
}

.ak-submit-type-card.is-active .ak-submit-check {
    display: block;
}

.ak-submit-type-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 32px 10px 0;
    color: #0f172a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.ak-submit-type-title strong {
    color: #4f46e5;
    font-weight: 600;
}

.ak-submit-type-title em {
    color: #64748b;
    font-style: normal;
    font-weight: 600;
}

.ak-submit-type-list {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

.ak-submit-type-list i {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: #6366f1;
}

.ak-submit-type-list.muted i {
    background: #94a3b8;
}

.ak-submit-form {
    display: none;
    animation: akPanelIn .22s ease both;
}

.ak-submit-form.is-active {
    display: block;
}

.ak-field {
    margin-bottom: 20px;
}

.ak-field label {
    display: block;
    margin-bottom: 6px;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.ak-field label span {
    color: #ef4444;
    font-weight: 400;
}

.ak-field label small {
    margin-left: 4px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 400;
}

.ak-field input,
.ak-field select,
.ak-field textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-size: 14px;
    outline: none;
    padding: 10px 12px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.ak-field select {
    appearance: none;
    padding-right: 46px;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.5 5.25L7 8.75L10.5 5.25' fill='none' stroke='%2394a3b8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: right 22px center;
    background-repeat: no-repeat;
    background-size: 14px 14px;
}

.ak-field input:focus,
.ak-field select:focus,
.ak-field textarea:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .08);
}

.ak-field input::placeholder {
    color: #94a3b8;
}

.ak-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.ak-payment-panel {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
}

.ak-payment-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.ak-payment-label {
    margin-bottom: 4px;
    color: #64748b;
    font-size: 14px;
}

.ak-payment-price {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    color: #0f172a;
}

.ak-payment-price strong {
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
}

.ak-payment-price del {
    margin-bottom: 2px;
    color: #94a3b8;
    font-size: 14px;
}

.ak-payment-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 384px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: #f8fafc;
    padding: 12px 16px;
    color: #475569;
    font-size: 12px;
    line-height: 1.65;
}

.ak-payment-note-wide {
    max-width: none;
    margin-bottom: 24px;
}

.ak-payment-note svg {
    flex: 0 0 auto;
    margin-top: 2px;
    color: #94a3b8;
    font-size: 16px;
}

.ak-payment-note p {
    margin: 0;
}

.ak-payment-note strong {
    color: #1e293b;
    font-weight: 500;
}

.ak-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    cursor: pointer;
    border: 0;
    border-radius: 8px;
    padding: 12px 20px;
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    transition: background-color .18s ease, opacity .18s ease, box-shadow .18s ease;
}

.ak-submit-button:hover {
    transform: none;
}

.ak-submit-button:disabled,
.ak-submit-button.is-loading {
    cursor: wait;
    opacity: .72;
    transform: none;
}

.ak-submit-button-primary {
    background: #4f46e5;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}

.ak-submit-button-primary:hover {
    background: #4338ca;
    color: #fff;
}

.ak-submit-button-dark {
    background: #0f172a;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}

.ak-submit-button-dark:hover {
    background: #020617;
    color: #fff;
}

.ak-submit-button-ghost {
    width: auto;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
}

.ak-submit-button-ghost:hover {
    background: #f8fafc;
    color: #0f172a;
}

.ak-submit-footnote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 12px 0 0;
    color: #64748b;
    font-size: 12px;
    text-align: center;
}

.ak-friend-notice {
    margin-bottom: 24px;
    border: 1px solid #ffedd5;
    border-radius: 8px;
    background: #fff7ed;
    padding: 16px;
}

.ak-friend-notice h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    color: #7c2d12;
    font-size: 14px;
    font-weight: 500;
}

.ak-friend-notice h3 i {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #f97316;
}

.ak-friend-notice > p {
    margin: 0 0 16px;
    color: #9a3412;
    font-size: 12px;
    line-height: 1.7;
}

.ak-friend-code {
    border: 1px solid #ffedd5;
    border-radius: 4px;
    background: #fff;
    padding: 12px;
    color: #334155;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
}

.ak-friend-code p {
    display: flex;
    gap: 10px;
    margin: 0 0 6px;
}

.ak-friend-code p:last-child {
    margin-bottom: 0;
}

.ak-friend-code span {
    flex: 0 0 64px;
    color: #94a3b8;
}

.ak-friend-code strong {
    color: #0f172a;
    font-weight: 500;
}

.ak-friend-code b {
    color: #4f46e5;
    font-weight: 500;
}

.ak-benefits-card {
    padding: 24px;
}

.ak-benefits-card h3 {
    margin: 0 0 24px;
    color: #0f172a;
    font-size: 18px;
    font-weight: 700;
}

.ak-benefit-list {
    display: grid;
    gap: 24px;
}

.ak-benefit-item {
    display: flex;
    gap: 16px;
}

.ak-benefit-icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-top: 2px;
    border: 1px solid #f1f5f9;
    border-radius: 4px;
    background: #f8fafc;
    font-size: 20px;
}

.ak-benefit-icon.yellow { color: #eab308; }
.ak-benefit-icon.indigo { color: #6366f1; }
.ak-benefit-icon.green { color: #22c55e; }
.ak-benefit-icon.purple { color: #a855f7; }

.ak-benefit-item h4 {
    margin: 0;
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.ak-benefit-item p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.75;
}

.ak-ai-note {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    border: 1px solid #e0e7ff;
    border-radius: 8px;
    background: rgba(238, 242, 255, .5);
    padding: 16px;
}

.ak-ai-note svg {
    flex: 0 0 auto;
    color: #4f46e5;
    font-size: 20px;
}

.ak-ai-note p {
    margin: 0;
    color: #312e81;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.75;
}

.ak-ai-note strong {
    color: #4338ca;
    font-weight: 600;
}

.ak-faq-section {
    max-width: 896px;
    margin: 64px auto 48px;
}

.ak-faq-head {
    margin-bottom: 40px;
    text-align: center;
}

.ak-faq-head h2 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 24px;
    font-weight: 700;
}

.ak-faq-head p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.ak-faq-list {
    display: grid;
    gap: 16px;
}

.ak-faq-item {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ak-faq-question {
    display: flex;
    width: 100%;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 0;
    background: transparent;
    padding: 16px 20px;
    color: #0f172a;
    font: inherit;
    text-align: left;
}

.ak-faq-question span {
    font-size: 16px;
    font-weight: 500;
}

.ak-faq-question svg {
    flex: 0 0 auto;
    color: #94a3b8;
    font-size: 20px;
    transition: transform .18s ease;
}

.ak-faq-item.is-open .ak-faq-question svg {
    transform: rotate(180deg);
}

.ak-faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows .22s ease, opacity .22s ease;
}

.ak-faq-item.is-open .ak-faq-answer {
    grid-template-rows: 1fr;
    opacity: 1;
}

.ak-faq-answer p {
    overflow: hidden;
    margin: 0 20px 0;
    border-top: 1px solid #f1f5f9;
    padding: 12px 0 16px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.75;
}

.ak-result-shell {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
}

.ak-result-shell-pay-success {
    min-height: auto;
    align-items: flex-start;
    padding-top: 72px;
    padding-bottom: 120px;
}

.ak-result-card {
    width: min(640px, 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    padding: 42px 28px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(15, 23, 42, .08);
    animation: akFadeUp .32s ease both;
}

.ak-result-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    margin-bottom: 18px;
    font-size: 28px;
}

.ak-result-icon.success {
    background: #ecfdf5;
    color: #16a34a;
}

.ak-result-icon.pending {
    background: #eef2ff;
    color: #4f46e5;
}

.ak-result-icon.error {
    background: #fef2f2;
    color: #dc2626;
}

.ak-result-kicker {
    margin: 0 0 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ak-result-card h1 {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.ak-result-card > p:not(.ak-result-kicker) {
    max-width: 520px;
    margin: 0 auto 28px;
    color: #64748b;
    font-size: 16px;
    line-height: 1.8;
}

.ak-result-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.ak-result-actions .ak-submit-button {
    width: auto;
    min-width: 132px;
}

.ak-result-card-pay-success {
    margin-top: 0;
}

.ak-scan-card {
    width: min(540px, 100%);
}

.ak-scan-card-paid {
    padding-top: 48px;
    padding-bottom: 48px;
}

.ak-scan-card h1 {
    margin-bottom: 16px;
    font-size: clamp(19px, 3vw, 24px);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.ak-scan-card-paid h1 {
    margin-bottom: 12px;
    color: #15803d;
    font-size: clamp(28px, 5vw, 38px);
    font-weight: 700;
}

.ak-scan-card > p:not(.ak-result-kicker) {
    margin-bottom: 18px;
    font-size: 14px;
}

.ak-scan-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 999px;
    background: #dcfce7;
    color: #16a34a;
    font-size: 34px;
    font-weight: 800;
}

.ak-scan-amount {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 12px;
    border-radius: 999px;
    background: #f8fafc;
    padding: 10px 20px;
}

.ak-scan-amount span {
    color: #64748b;
    font-size: 14px;
}

.ak-scan-amount strong {
    color: #4f46e5;
    font-size: clamp(30px, 7vw, 42px);
    font-weight: 800;
    line-height: 1;
}

.ak-scan-qrcode {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 252px;
    height: 252px;
    margin: 4px auto 12px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    padding: 16px;
    box-shadow: 0 12px 36px rgba(15, 23, 42, .08);
}

.ak-scan-qrcode canvas,
.ak-scan-qrcode img {
    display: block;
    width: 220px;
    height: 220px;
}

.ak-scan-open {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    width: max-content;
    max-width: 100%;
    min-height: 38px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.ak-scan-open:hover {
    background: #e0e7ff;
    color: #3730a3;
}

.ak-scan-status {
    margin: 16px 0 0 !important;
    color: #64748b !important;
    font-size: 14px !important;
}

.ak-scan-status-paid {
    color: #15803d !important;
}

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

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

@media (min-width: 768px) {
    .ak-submit-shell {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .ak-submit-card-head,
    .ak-submit-card-body,
    .ak-benefits-card {
        padding: 32px;
    }
}

@media (max-width: 767px) {
    .ak-submit-hero {
        margin-bottom: 44px;
    }

    .ak-submit-hero p {
        font-size: 16px;
    }

    .ak-submit-type-grid,
    .ak-form-grid {
        grid-template-columns: 1fr;
    }

    .ak-payment-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .ak-payment-note {
        max-width: none;
    }

    .ak-result-actions {
        flex-direction: column;
    }

    .ak-result-actions .ak-submit-button {
        width: 100%;
    }
}
