.dnc-tools-page {
    --o: #ff7a00;
    --y: #ffc928;
    --ink: #000000;
    --muted: #7b6c5b;
    background: radial-gradient(circle at 10% 0%, #b59c5e 0, transparent 27%), radial-gradient(circle at 95% 15%, #ffe6b8 0, transparent 25%), #e0cdb0;
    min-height: 72vh;
    padding: 150px 0 72px;
    color: var(--ink)
}

.dnc-tools-shell {
    width: min(1180px,calc(100% - 30px));
    margin: auto
}

.dnc-tools-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 48px
}

.dnc-tools-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #2b2116!important;
    text-decoration: none!important
}

.dnc-tools-brand span {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg,var(--o),var(--y));
    color: #fff;
    box-shadow: 0 9px 25px #ff9b2438
}

.dnc-tools-brand b {
    font-size: 15px;
    letter-spacing: .7px
}

.dnc-tools-nav {
    display: flex;
    gap: 8px;
    background: #fff;
    padding: 6px;
    border: 1px solid #f1e5d4;
    border-radius: 16px;
    box-shadow: 0 10px 30px #633c1110
}

.dnc-tools-nav a {
    padding: 9px 15px;
    border-radius: 11px;
    color: #5f5142!important;
    text-decoration: none!important;
    font-size: 13px;
    font-weight: 700
}

.dnc-tools-nav a:hover {
    background: #fff3dc;
    color: #e86600!important
}

.dnc-tools-hero {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 42px
}

.dnc-tools-kicker {
    display: inline-block;
    color: #e96800;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 12px
}

.dnc-tools-hero h1,.dnc-tools-heading h1 {
    font-size: clamp(34px,5vw,58px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -2px;
    margin: 0 0 16px
}

.dnc-tools-hero h1 span,.dnc-tools-heading h1 span {
    background: linear-gradient(90deg,#f46600,#ffb900);
    -webkit-background-clip: text;
    color: transparent
}

.dnc-tools-hero p,.dnc-tools-heading p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7
}

.dnc-tool-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px
}

.dnc-tool-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 26px;
    background: #fff;
    border: 1px solid #f1e1cc;
    border-radius: 27px;
    padding: 28px;
    color: var(--ink)!important;
    text-decoration: none!important;
    box-shadow: 0 20px 55px #6d3c0710;
    transition: .25s;
    overflow: hidden
}

.dnc-tool-card:before {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg,#ff7a0018,#ffc92820);
    right: -50px;
    top: -50px
}

.dnc-tool-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 25px 60px #a25b1420;
    border-color: #ffc976
}

.dnc-tool-icon {
    width: 62px;
    height: 62px;
    border-radius: 19px;
    display: grid;
    place-items: center;
    font-size: 25px;
    background: linear-gradient(135deg,#ff7900,#ffc52a);
    color: #fff;
    box-shadow: 0 12px 25px #ff8c3035
}

.dnc-tool-card span {
    font-size: 11px;
    font-weight: 900;
    color: #e66a00;
    letter-spacing: 1.4px
}

.dnc-tool-card h2 {
    font-size: 24px;
    font-weight: 900;
    margin: 6px 0 9px
}

.dnc-tool-card p {
    color: #7a6c5c;
    line-height: 1.65;
    min-height: 78px
}

.dnc-tool-card b {
    font-size: 14px;
    color: #ed7000
}

.dnc-tool-card b i {
    margin-left: 6px
}

.dnc-tools-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px
}

.dnc-tools-heading h1 {
    font-size: clamp(32px,4vw,48px);
    margin-bottom: 8px
}

.dnc-tools-heading p {
    margin: 0
}

.dnc-tools-back {
    white-space: nowrap;
    padding: 12px 17px;
    background: #fff;
    border: 1px solid #f0dfc9;
    border-radius: 14px;
    color: #705c46!important;
    text-decoration: none!important;
    font-weight: 700
}

.compress-layout,.qr-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) 340px;
    gap: 22px
}

.tool-panel,.tool-settings,.qr-preview-card {
    background: #fff;
    border: 1px solid #f0dfca;
    border-radius: 25px;
    padding: 22px;
    box-shadow: 0 18px 55px #75400b0e
}

.drop-zone {
    min-height: 390px;
    border: 2px dashed #ffc66f;
    border-radius: 20px;
    background: linear-gradient(145deg,#fffaf0,#fff6e6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: .2s
}

.drop-zone.dragover {
    background: #fff0cc;
    border-color: #f37800;
    transform: scale(.995)
}

.drop-orb {
    width: 80px;
    height: 80px;
    border-radius: 25px;
    display: grid;
    place-items: center;
    font-size: 31px;
    color: #fff;
    background: linear-gradient(135deg,#ff7400,#ffc82e);
    box-shadow: 0 16px 35px #f7863038;
    margin-bottom: 18px
}

.drop-zone h2 {
    font-size: 24px;
    font-weight: 900;
    margin: 0 0 8px
}

.drop-zone p {
    color: #786957;
    margin: 0 0 10px
}

.drop-zone p b {
    color: #e96b00
}

.drop-zone small {
    color: #aa9680;
    font-weight: 700;
    letter-spacing: 1px
}

.settings-title {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid #f3e8da;
    margin-bottom: 17px
}

.settings-title>i {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #fff1d9;
    color: #ed7100
}

.settings-title div {
    display: flex;
    flex-direction: column
}

.settings-title b {
    font-size: 16px
}

.settings-title small {
    color: #9b8873
}

.tool-settings label,.qr-form label {
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin: 17px 0;
    color: #4e4031
}

.tool-settings label>b {
    float: right;
    color: #e96b00
}

.tool-settings select,.tool-settings input[type=number],.qr-form textarea,.qr-form select {
    width: 100%;
    margin-top: 8px;
    border: 1px solid #eadbc8;
    background: #fffaf4;
    border-radius: 12px;
    padding: 12px;
    outline: none
}

.tool-settings input[type=range] {
    width: 100%;
    accent-color: #f57b00;
    margin-top: 12px
}

.tool-settings label small {
    display: block;
    color: #a18e78;
    margin-top: 5px;
    font-weight: 500
}

.tool-primary,.tool-secondary,.copy-ip {
    width: 100%;
    border: 0;
    border-radius: 13px;
    padding: 13px 16px;
    font-weight: 900;
    cursor: pointer
}

.tool-primary {
    background: linear-gradient(90deg,#f56f00,#ffbd20);
    color: #fff;
    box-shadow: 0 10px 25px #ff8b2b35;
    margin-top: 10px
}

.tool-secondary {
    background: #fff4e3;
    color: #d96500;
    margin-top: 10px;
    border: 1px solid #ffdfad
}

.tool-secondary:disabled {
    opacity: .45;
    cursor: not-allowed
}

.privacy-note {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    padding: 13px;
    background: #fffaf2;
    border-radius: 13px;
    color: #887560
}

.privacy-note i {
    color: #ed7700;
    margin-top: 3px
}

.privacy-note span {
    display: flex;
    flex-direction: column;
    font-size: 12px
}

.privacy-note b {
    color: #4a3b2b
}

.image-list {
    display: grid;
    gap: 10px;
    margin-top: 14px
}

.image-item {
    display: grid;
    grid-template-columns: 58px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid #f0e2d0;
    border-radius: 14px
}

.image-item img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 10px
}

.image-item b {
    display: block;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 420px
}

.image-item small {
    color: #998774
}

.image-item .saving {
    color: #18a15f;
    font-weight: 800
}

.image-download {
    border: 0;
    background: #fff0d9;
    color: #df6900;
    border-radius: 10px;
    padding: 9px 11px;
    cursor: pointer
}

.qr-layout {
    grid-template-columns: minmax(0,1fr) 420px
}

.qr-form {
    padding: 30px
}

.qr-form textarea {
    resize: vertical;
    min-height: 145px;
    font-size: 15px
}

.qr-options {
    display: grid;
    grid-template-columns: 1fr 110px;
    gap: 14px
}

.qr-form input[type=color] {
    display: block;
    width: 100%;
    height: 45px;
    margin-top: 8px;
    border: 1px solid #eadbc8;
    border-radius: 12px;
    background: #fff;
    padding: 5px
}

.qr-preview-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.qr-preview-label {
    font-size: 11px;
    letter-spacing: 2px;
    color: #d76600;
    font-weight: 900;
    margin-bottom: 16px
}

.qr-box {
    width: min(100%,300px);
    aspect-ratio: 1;
    margin: 0 auto 18px;
    padding: 18px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid #f0dfc9;
    display: grid;
    place-items: center;
    box-shadow: inset 0 0 0 7px #fff8ed
}

.qr-box img,.qr-box canvas {
    max-width: 100%;
    height: auto!important
}

.qr-empty {
    color: #c3aa8c;
    display: flex;
    flex-direction: column;
    gap: 12px
}

.qr-empty i {
    font-size: 70px;
    color: #ecd9bd
}

.ip-hero-card {
    text-align: center;
    background: linear-gradient(135deg,#ff7200,#ffb500 62%,#ffd13a);
    padding: 42px 20px;
    border-radius: 28px;
    color: #fff;
    box-shadow: 0 24px 60px #e76f0030
}

.ip-icon {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    background: #ffffff26;
    font-size: 24px
}

.ip-hero-card>span {
    display: block;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
    opacity: .85
}

.ip-hero-card strong {
    display: block;
    font-size: clamp(27px,5vw,48px);
    margin: 8px 0 20px;
    word-break: break-all
}

.copy-ip {
    width: auto;
    background: #fff;
    color: #dc6500;
    padding: 11px 18px
}

.ip-info-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 14px;
    margin-top: 20px
}

.ip-info-grid>div {
    background: #fff;
    border: 1px solid #f0dfc9;
    border-radius: 19px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 7px
}

.ip-info-grid i {
    color: #e97000;
    font-size: 21px
}

.ip-info-grid span {
    font-size: 12px;
    color: #9a8873
}

.ip-info-grid b {
    font-size: 14px;
    word-break: break-word
}

.ip-note {
    display: flex;
    gap: 13px;
    background: #fff4df;
    border: 1px solid #ffe0a9;
    border-radius: 17px;
    padding: 17px;
    margin-top: 18px;
    color: #6d5941
}

.ip-note i {
    color: #ec7100;
    margin-top: 3px
}

.ip-note p {
    margin: 4px 0 0;
    font-size: 13px
}

.toast-tool {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: #251b11;
    color: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    z-index: 99999;
    box-shadow: 0 12px 35px #0002
}

@media(max-width: 850px) {
    .dnc-tools-top {
        align-items:flex-start;
        gap: 15px;
        flex-direction: column;
        margin-bottom: 30px
    }

    .dnc-tools-nav {
        width: 100%;
        overflow: auto
    }

    .dnc-tools-nav a {
        white-space: nowrap
    }

    .dnc-tool-grid,.ip-info-grid {
        grid-template-columns: 1fr 1fr
    }

    .compress-layout,.qr-layout {
        grid-template-columns: 1fr
    }

    .tool-settings {
        order: -1
    }

    .dnc-tools-heading {
        align-items: flex-start;
        flex-direction: column
    }

    .drop-zone {
        min-height: 300px
    }

    .qr-preview-card {
        min-height: 430px
    }
}

@media(max-width: 560px) {
    .dnc-tools-page {
        padding-top:22px
    }

    .dnc-tools-shell {
        width: min(100% - 20px,1180px)
    }

    .dnc-tools-hero h1 {
        letter-spacing: -1px
    }

    .dnc-tool-grid,.ip-info-grid {
        grid-template-columns: 1fr
    }

    .dnc-tool-card p {
        min-height: auto
    }

    .dnc-tools-back {
        display: none
    }

    .tool-panel,.tool-settings,.qr-preview-card {
        border-radius: 19px;
        padding: 15px
    }

    .qr-options {
        grid-template-columns: 1fr
    }

    .image-item {
        grid-template-columns: 50px 1fr auto
    }

    .image-item img {
        width: 50px;
        height: 50px
    }

    .image-item b {
        max-width: 180px
    }
}

.dnc-edit-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) 330px;
    gap: 22px
}

.dnc-edit-settings {
    align-self: start
}

.dnc-edit-preview {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #f3dcc2;
    border-radius: 20px;
    background: #fff
}

.dnc-edit-preview-title,.dnc-edit-arrows {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px
}

.dnc-edit-preview canvas {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    background: repeating-conic-gradient(#f5f5f5 0% 25%,#fff 0% 50%) 50%/18px 18px;
    margin: 14px auto;
    border-radius: 12px
}

.dnc-edit-arrows button,.dnc-edit-secondary {
    background: #fff6e9;
    color: #a34a00;
    border: 1px solid #f8cf97;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer
}

.dnc-edit-settings .dnc-field {
    display: block;
    margin: 15px 0;
    font-weight: 650;
    font-size: 13px
}

.dnc-edit-settings .dnc-field input:not([type=range]):not([type=color]),.dnc-edit-settings select {
    display: block;
    width: 100%;
    margin-top: 7px;
    padding: 12px;
    border: 1px solid #eed9c1;
    border-radius: 10px;
    background: #fff
}

.dnc-edit-settings input[type=range] {
    width: 100%;
    display: block;
    accent-color: #fa7900
}

.dnc-edit-settings input[type=color] {
    display: block;
    width: 100%;
    height: 40px;
    border: 1px solid #eed9c1;
    border-radius: 10px;
    background: white
}

.dnc-edit-settings strong {
    float: right;
    color: #ef7200
}

.dnc-edit-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.dnc-edit-main {
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(110deg,#ff6a00,#ffba16);
    color: white;
    font-weight: 800;
    padding: 15px;
    cursor: pointer
}

.dnc-edit-secondary {
    width: 100%;
    margin-top: 10px
}

.dnc-edit-status {
    font-size: 12px;
    color: #806b56;
    margin-top: 10px
}

.dnc-edit-preview-title span {
    font-size: 12px;
    color: #9b7450
}

@media(max-width: 850px) {
    .dnc-edit-layout {
        grid-template-columns:1fr
    }
}

@media(max-width: 560px) {
    .dnc-tools-page {
        padding-top:115px
    }
}

.dnc-bg-controls {
    border: 1px solid #f7d7b3;
    background: linear-gradient(135deg,#fff9ef,#fff);
    border-radius: 16px;
    padding: 16px;
    margin: 12px 0
}

.dnc-bg-controls>b {
    display: block;
    color: #b74d00;
    margin-bottom: 12px
}

.dnc-bg-controls input[type=checkbox] {
    accent-color: #f97316;
    width: 17px;
    height: 17px;
    vertical-align: middle;
    margin-right: 7px
}

.dnc-bg-controls input[type=color] {
    min-height: 40px
}

.dnc-extra-panel {
    max-width: 960px;
    margin: auto;
    padding: 30px
}

.dnc-extra-panel form {
    display: flex;
    gap: 14px;
    align-items: end;
    flex-wrap: wrap
}

.dnc-extra-panel form label {
    flex: 1;
    min-width: 230px
}

.dnc-extra-item {
    background: #fffaf3;
    border: 1px solid #f4dfc2;
    border-radius: 13px;
    padding: 13px 16px;
    margin: 10px 0;
    overflow-wrap: anywhere
}

.dnc-extra-item p {
    margin: 6px 0 0
}

.dnc-extra-panel #seoResult {
    margin-top: 22px
}

.dnc-extra-panel input {
    width: 100%;
    padding: 13px;
    border: 1px solid #edceaa;
    border-radius: 9px
}

/* DNC Media - Compress tool controls (desktop drop zone only) */
@media(min-width: 769px) {
    .dnc-tools-page #dropZone {
        min-height:195px;
        padding: 14px 18px
    }

    .dnc-tools-page #dropZone .drop-orb {
        width: 48px;
        height: 48px;
        border-radius: 15px;
        font-size: 22px;
        margin-bottom: 8px
    }

    .dnc-tools-page #dropZone h2 {
        font-size: 20px;
        margin-bottom: 4px
    }

    .dnc-tools-page #dropZone p {
        margin-bottom: 5px
    }
}

.compress-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 700;
    color: #7d6650
}

.compress-list-toolbar[hidden] {
    display: none!important
}

.compress-clear-all {
    border: 1px solid #ffd1bf;
    background: #fff4ee;
    color: #c84621;
    border-radius: 10px;
    padding: 9px 13px;
    font-weight: 700;
    cursor: pointer
}

.compress-clear-all:hover {
    background: #ffe7db
}

.compress-image-item {
    grid-template-columns: 58px minmax(0,1fr) auto
}

.compress-image-info {
    min-width: 0
}

.compress-image-actions {
    display: flex;
    align-items: center;
    gap: 8px
}

.compress-remove-one {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid #f3d5ca;
    border-radius: 9px;
    background: #fff7f4;
    color: #c83b24;
    font-size: 23px;
    line-height: 1;
    cursor: pointer
}

.compress-remove-one:hover {
    background: #ffe7df
}

.compress-remove-one:disabled,.compress-clear-all:disabled {
    opacity: .5;
    cursor: not-allowed
}

@media(max-width: 560px) {
    .compress-image-item {
        grid-template-columns:50px minmax(0,1fr) auto
    }

    .compress-image-actions {
        gap: 5px
    }

    .compress-remove-one {
        width: 30px;
        height: 30px
    }
}
