.pdfstamp-page {
    min-height: 100%;
    background: #f6f7fb;
}

.pdfstamp-hero-panel {
    min-height: 560px;
}

.pdfstamp-hero-title {
    font-size: 56px;
    max-width: 980px;
    margin-top: 36px;
}

.pdfstamp-upload-wrap {
    text-align: center;
    margin-top: 26px;
}

.upload-tip-text {
    margin-top: 22px;
    font-size: 18px;
    color: #222222;
}

.pdfstamp-preview-panel {
    padding: 16px 18px 8px;
}

.pdfstamp-preview-header {
    margin-bottom: 14px;
}

.pdfstamp-preview-header__title {
    font-size: 20px;
    font-weight: 700;
    color: #222222;
    line-height: 1.4;
}

.pdfstamp-preview-header__desc {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.7;
    color: #666666;
}

.pdfstamp-preview-shell {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pdfstamp-preview-board {
    width: 100%;
    max-width: 920px;
    min-height: 440px;
    border: 1px solid #dbe4f3;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.pdfstamp-demo-invoice {
    position: relative;
    width: 760px;
    max-width: 100%;
    background: #ffffff;
    border: 1px solid #ececec;
    overflow: hidden;
}

.pdfstamp-demo-invoice img {
    width: 100%;
    display: block;
    opacity: 0.70;
}

.pdfstamp-demo-effective-box {
    position: absolute;
    left: 48px;
    top: 36px;
    right: 52px;
    bottom: 42px;
    border: 1px dashed rgba(70, 120, 220, 0.55);
    pointer-events: none;
}

.pdfstamp-demo-stamp {
    position: absolute;
    width: 170px;
    height: 110px;
    right: 10px;
    bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdfstamp-demo-stamp__outer {
    width: 100%;
    height: 100%;
    border: 4px solid #df1b1b;
    border-radius: 50%;
    color: #df1b1b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.06);
}

.pdfstamp-demo-stamp__company {
    max-width: 136px;
    font-size: 12px;
    line-height: 1.1;
    text-align: center;
    font-weight: 700;
    word-break: break-all;
}

.pdfstamp-demo-stamp__tax {
    max-width: 140px;
    font-size: 11px;
    line-height: 1.1;
    text-align: center;
    word-break: break-all;
}

.pdfstamp-demo-stamp__center {
    font-size: 18px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: 1px;
}

.pdfstamp-settings-panel {
    padding-top: 18px;
    padding-bottom: 18px;
}

.pdfstamp-settings-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px 26px;
    margin-bottom: 16px;
}

.pdfstamp-form-item input[type="text"] {
    background: #dff0d7;
}

.pdfstamp-slider-row {
    display: grid;
    grid-template-columns: 1fr 1fr 260px;
    gap: 18px;
    align-items: center;
}

.pdfstamp-slider-item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 54px;
}

.pdfstamp-slider-item label {
    min-width: 78px;
    font-size: 15px;
    color: #333333;
    font-weight: 600;
}

.pdfstamp-slider-item input[type="range"] {
    flex: 1;
}

.pdfstamp-slider-item span {
    min-width: 34px;
    text-align: center;
    font-size: 18px;
    color: #222222;
}

.pdfstamp-start-wrap {
    display: flex;
    justify-content: flex-end;
}

.pdfstamp-setting-note {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.7;
    color: #6b7280;
}

.pdfstamp-files-panel {
    padding-top: 18px;
}

.pdfstamp-files-head {
    margin-bottom: 14px;
}

.pdfstamp-files-head__summary {
    font-size: 18px;
    color: #222222;
}

.pdfstamp-files-body {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 28px;
    align-items: start;
}

.pdfstamp-table-wrap {
    overflow-x: auto;
}

.pdfstamp-table {
    width: 100%;
    border-collapse: collapse;
}

.pdfstamp-table th,
.pdfstamp-table td {
    padding: 10px 8px;
    font-size: 16px;
    line-height: 1.4;
    color: #222222;
    text-align: center;
    border-bottom: 1px solid #e9edf4;
}

.pdfstamp-table__name {
    text-align: left;
    word-break: break-all;
}

.pdfstamp-side-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 48px;
}

.pdfstamp-side-btn {
    width: 96px;
    height: 40px;
    border: none;
    border-radius: 18px;
    background: #cde8ca;
    color: #1f1f1f;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.pdfstamp-side-btn:hover {
    opacity: 0.92;
}

.pdfstamp-error {
    margin-bottom: 12px;
    color: #c62828;
    font-size: 15px;
    line-height: 1.6;
    white-space: pre-line;
}

.pdfstamp-result-panel {
    min-height: 620px;
}

.pdfstamp-result-success__title {
    font-size: 68px;
    line-height: 1.2;
    color: #79b54a;
    font-weight: 800;
}

.pdfstamp-result-success__desc {
    font-size: 24px;
    line-height: 1.6;
    color: #222222;
}

.pdfstamp-result-success__file {
    font-size: 18px;
    line-height: 1.6;
    color: #222222;
}

.pdfstamp-result-btns {
    display: flex;
    gap: 28px;
    align-items: center;
    justify-content: center;
}

.pdfstamp-link-btn {
    text-decoration: none;
}

.tool-loading-text {
    font-size: 16px;
    color: #222222;
}

@media (max-width: 1200px) {
    .pdfstamp-settings-grid {
        grid-template-columns: 1fr;
    }

    .pdfstamp-slider-row {
        grid-template-columns: 1fr;
    }

    .pdfstamp-files-body {
        grid-template-columns: 1fr;
    }

    .pdfstamp-side-actions {
        flex-direction: row;
        padding-top: 0;
    }
}