.pngo-shell {
    width: 95%;
    max-width: 1600px !important;
    margin: 48px auto;
    padding: 0 16px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

.pngo-glass {
    background: linear-gradient(135deg, rgba(255,255,255,.82), rgba(255,255,255,.55));
    border: 1px solid rgba(255,255,255,.72);
    box-shadow: 0 24px 80px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.8);
    backdrop-filter: blur(26px) saturate(160%);
    -webkit-backdrop-filter: blur(26px) saturate(160%);
    border-radius: 32px;
}

.pngo-hero {
    padding: 34px 36px;
    margin-bottom: 22px;
    position: relative;
    overflow: hidden;
}

.pngo-hero::before {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    right: -80px;
    top: -90px;
    background: radial-gradient(circle, rgba(10,132,255,.24), transparent 65%);
    pointer-events: none;
}

.pngo-kicker {
    color: #0A84FF;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.pngo-hero h2 {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1;
    letter-spacing: -0.05em;
    margin: 0 0 12px;
    color: #0f172a;
}

.pngo-hero p {
    max-width: 680px;
    color: #64748b;
    font-size: 17px;
    margin: 0;
}

.pngo-grid {
    display: flex;
    gap: 22px;
    align-items: stretch;
}

.pngo-grid > .pngo-panel,
.pngo-grid > .pngo-preview {
    flex: 1 1 0;
}

.pngo-panel {
    padding: 28px;
}

.pngo-section {
    margin-bottom: 24px;
}

.pngo-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
}

.pngo-label h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #111827;
}

.pngo-label span {
    font-size: 12px;
    color: #94a3b8;
}

.pngo-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pngo-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,.68);
    border: 1px solid rgba(148,163,184,.30);
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    transition: .18s ease;
}

.pngo-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(10,132,255,.55);
}

.pngo-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pngo-chip:has(input:checked) {
    background: #0A84FF;
    border-color: #0A84FF;
    color: #fff;
    box-shadow: 0 12px 28px rgba(10,132,255,.25);
}

.pngo-select,
.pngo-number {
    width: 100%;
    box-sizing: border-box;
    appearance: none;
    border: 1px solid rgba(148,163,184,.28);
    background: rgba(255,255,255,.75);
    border-radius: 18px;
    padding: 15px 16px;
    font-size: 15px;
    color: #0f172a;
    outline: none;
}

.pngo-total-box {
    margin-top: 26px;
    padding: 22px;
    border-radius: 24px;
    background: rgba(15,23,42,.92);
    color: white;
}

.pngo-total-box small {
    display: block;
    color: rgba(255,255,255,.65);
    margin-bottom: 4px;
    font-weight: 600;
}

.pngo-total {
    font-size: 38px;
    font-weight: 850;
    letter-spacing: -0.04em;
}

.pngo-breakdown {
    margin-top: 12px;
    font-size: 13px;
    color: rgba(255,255,255,.70);
    line-height: 1.5;
}

.pngo-button {
    width: 100%;
    margin-top: 14px;
    border: none;
    border-radius: 20px;
    padding: 17px 20px;
    background: linear-gradient(135deg, #0A84FF, #006FE6);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 18px 30px rgba(10,132,255,.25);
    text-align: center;
    display: block;
    box-sizing: border-box;
    text-decoration: none;
}

.pngo-button[disabled] {
    cursor: not-allowed;
    opacity: .5;
}

.pngo-upload-button {
    margin-top: 0;
    margin-bottom: 14px;
}

.pngo-preview {
    min-height: 680px;
    padding: 28px;
    display: flex;
    flex-direction: column;
}

.pngo-preview-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.pngo-preview-top strong {
    font-size: 18px;
}

.pngo-pill {
    font-size: 12px;
    font-weight: 800;
    color: #0A84FF;
    background: rgba(10,132,255,.10);
    border-radius: 999px;
    padding: 8px 12px;
}

.pngo-file-info {
    margin-bottom: 18px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.45;
}

.pngo-warning {
    display: none;
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 13px;
    font-weight: 700;
}

.pngo-paper-stage {
    flex: 1;
    display: grid;
    place-items: center;
    border-radius: 28px;
    background: radial-gradient(circle at top left, rgba(10,132,255,.10), transparent 38%),
                linear-gradient(180deg, rgba(248,250,252,.90), rgba(241,245,249,.70));
    border: 1px solid rgba(148,163,184,.22);
    overflow: hidden;
    position: relative;
}

.pngo-paper {
    width: min(380px, 82%);
    aspect-ratio: 0.707 / 1;
    background: white;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(15,23,42,.18), 0 0 0 1px rgba(15,23,42,.06);
    display: grid;
    place-items: center;
    overflow: hidden;
}

#pngo-pdf-canvas {
    max-width: 100%;
    max-height: 100%;
    display: none;
}

.pngo-placeholder {
    width: 70%;
    aspect-ratio: 0.707 / 1;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fafc, #e2e8f0);
    display: grid;
    place-items: center;
    color: #94a3b8;
    font-weight: 800;
}

.pngo-preview-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    color: #64748b;
    font-size: 14px;
}

.pngo-mini-btn {
    border: 1px solid rgba(148,163,184,.28);
    background: rgba(255,255,255,.7);
    border-radius: 999px;
    padding: 9px 12px;
    cursor: pointer;
    color: #334155;
}

.pngo-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9998;
}

.pngo-modal-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(540px, 92vw);
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 28px;
    padding: 30px;
    z-index: 9999;
    box-shadow: 0 30px 90px rgba(15,23,42,.30);
    box-sizing: border-box;
}

.pngo-modal-box h2 {
    margin: 0 0 18px;
    font-size: 28px;
    letter-spacing: -0.04em;
    color: #0f172a;
}

.pngo-modal-content {
    display: grid;
    gap: 10px;
    color: #334155;
    font-size: 15px;
}

.pngo-modal-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(148,163,184,.22);
}

.pngo-modal-row strong {
    color: #0f172a;
    text-align: right;
}

.pngo-modal-total {
    margin-top: 18px;
    padding: 18px;
    border-radius: 20px;
    background: #0f172a;
    color: #fff;
    font-size: 28px;
    font-weight: 850;
    letter-spacing: -0.04em;
}

.pngo-modal-note {
    margin-top: 14px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.pngo-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.pngo-modal-actions button {
    flex: 1;
    border: none;
    border-radius: 16px;
    padding: 15px 16px;
    cursor: pointer;
    font-weight: 800;
    font-size: 15px;
}

#pngo-edit {
    background: #f1f5f9;
    color: #0f172a;
}

#pngo-confirm {
    background: #0A84FF;
    color: #fff;
}

@media (max-width: 900px) {
    .pngo-grid {
    flex-direction: column;
}

    .pngo-preview {
        min-height: 520px;
    }

    .pngo-shell {
        padding: 0 12px;
    }

    .pngo-hero h2 {
        font-size: 42px;
        line-height: 1.05;
    }

    .pngo-modal-actions {
        flex-direction: column;
    }
}
