.merge-hero{margin:24px 0;background:linear-gradient(135deg,#eff6ff,#f7fbff 64%,#e8fdf5);border:1px solid #dbe8f5;border-radius:24px;padding:35px 28px;text-align:center}
.merge-hero h1{font-size:clamp(23px,3.5vw,34px);font-weight:900;color:#0f2746;margin:11px 0}.merge-hero p{max-width:800px;margin:0 auto 22px;line-height:1.95;color:#53647d}.merge-label{font-size:12px;font-weight:800;color:#0d62a8;background:#fff;display:inline-block;padding:7px 15px;border:1px solid #e0eaf7;border-radius:30px}
.merge-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;max-width:800px;margin:auto}.merge-stats>div{border:1px solid #e2eaf5;background:#fff;border-radius:14px;padding:13px 8px}.merge-stats strong{display:block;font-weight:900;color:#113b66;font-size:19px}.merge-stats span{display:block;color:#66778a;font-size:12px;margin-top:5px}
.merge-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(290px,1fr);gap:19px;align-items:start}.merge-card,.merge-plan-card,.merge-help,.merge-seo,.merge-process,.merge-result{background:#fff;border:1px solid #e2e8f1;border-radius:20px;box-shadow:0 10px 35px #2343670a;padding:24px}.merge-section-head{display:flex;justify-content:space-between;align-items:start;gap:12px}.merge-section-head h2{font-size:21px;font-weight:900;margin:0 0 7px}.merge-section-head p{color:#64748b;font-size:13px;margin:0 0 18px;line-height:1.7}.merge-mini{white-space:nowrap;border-radius:15px;background:#eaf8f2;color:#0c7651;padding:6px 10px;font-size:11px;font-weight:800}
.merge-drop{text-align:center;cursor:pointer;outline:none;padding:28px 18px;border:2px dashed #90b5ec;border-radius:17px;background:#f8fbff;transition:background .15s,border .15s}.merge-drop:hover,.merge-drop.is-over,.merge-drop:focus-visible{background:#eef6ff;border-color:#2779e8}.merge-drop-icon{width:58px;height:58px;margin:0 auto 9px;display:grid;place-items:center;background:#e2efff;color:#1c6ddb;border-radius:16px;font-size:31px;font-weight:bold}.merge-drop strong,.merge-drop span{display:block}.merge-drop strong{font-weight:900;color:#14365b}.merge-drop span{font-size:13px;color:#6b7c90;margin:6px 0 14px}
.merge-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:12px;padding:11px 20px;min-height:43px;text-decoration:none;font-size:14px;font-weight:800;border:1px solid transparent;cursor:pointer}.merge-button-primary{color:#fff!important;background:linear-gradient(120deg,#1769d3,#0c81d7)}.merge-button-primary:hover{background:#175ab1}.merge-button-outline{background:#fff;color:#155fa7;border-color:#bfdaef}.merge-button-outline:hover{background:#f2f7ff}.merge-button-pro{background:#103e6d;color:#fff!important;width:100%;margin-top:15px}.merge-button:disabled{opacity:.55;cursor:not-allowed}.merge-submit{display:flex;width:100%;margin-top:20px;justify-content:center;font-size:16px;padding:14px}.merge-submit span{font-size:20px}
.merge-files-head{display:flex;justify-content:space-between;align-items:center;margin:20px 0 9px;font-size:13px}.merge-clear{border:0;background:none;color:#b4534c;cursor:pointer;font-weight:bold;font-size:13px}.merge-file-list{list-style:none;list-style-position:outside;padding:0;margin:0;display:grid;gap:8px}.merge-file-item{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid #e0e9f2;border-radius:13px;padding:11px}.merge-file-item[draggable=true]{cursor:grab}.merge-file-item.is-dragging{opacity:.5}.merge-file-name{font-weight:800;min-width:0;overflow-wrap:anywhere;color:#233f59;font-size:13px;flex:1}.merge-file-size{font-size:11px;color:#7b8998;white-space:nowrap}.merge-file-icon{background:#fff2f0;color:#dc5348;border-radius:9px;padding:6px;font-size:17px}.merge-file-action{border:1px solid #e2e8f1;border-radius:8px;background:#f8fafc;min-width:27px;height:28px;cursor:pointer;color:#476078}.merge-file-action:hover{background:#eaf3fe}.merge-file-num{font-size:12px;font-weight:800;color:#55728e;min-width:18px}.merge-totals{color:#64748b;font-size:12px;line-height:1.9;margin-top:11px}.merge-note{font-size:12px;line-height:1.9;color:#738298;margin:15px 0 0}.merge-feedback,.merge-alert{margin:12px 0;color:#9b2e27;background:#fff0ed;border:1px solid #ffcac2;border-radius:12px;padding:13px;line-height:1.8}.merge-success{background:#eaf9ee;color:#207143;border:1px solid #a9e5bb;border-radius:12px;padding:12px;margin-bottom:15px}.merge-feedback a{color:#0c63ad;font-weight:bold}
.merge-side{display:grid;gap:14px}.merge-pro-label{color:#235ea9;font-size:12px;font-weight:900}.merge-plan-card h2{font-weight:900;font-size:23px;margin:11px 0}.merge-plan-card p{font-size:13px;line-height:1.9;color:#69788b}.merge-price{font-size:30px;font-weight:900;direction:ltr;text-align:right;color:#143b68}.merge-price small{font-size:13px}.merge-plan-detail{color:#6a7991;font-size:12px}.merge-perks{display:grid;gap:9px;border-top:1px solid #e7ecf2;margin-top:20px;padding-top:16px;color:#237256;font-size:12px;font-weight:800}.merge-help strong{font-size:15px}.merge-help p{font-size:12px;line-height:1.9;color:#718096;margin:7px 0 0}
.merge-process,.merge-result{margin-top:20px;text-align:center;padding:35px 18px}.merge-process[hidden],.merge-result[hidden],.merge-feedback[hidden],#retryPoll[hidden]{display:none!important}.merge-process-icon{width:70px;height:70px;margin:0 auto 17px;background:#ebf4ff;display:grid;place-items:center;border-radius:50%}.merge-spinner{width:34px;height:34px;border:4px solid #c5dbf8;border-top-color:#2476e6;border-radius:50%;animation:mergeSpin 1s linear infinite}.merge-process-heading{font-size:21px;color:#163757;font-weight:900}.merge-process>p{color:#63748b;margin:8px 0}.merge-clock{margin:22px 0 18px}.merge-clock strong{font-size:32px;font-variant-numeric:tabular-nums;direction:ltr;display:block;color:#163e6d}.merge-clock span{font-size:12px;color:#718098}.merge-stages{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.merge-stages span{border:1px solid #dde7f3;border-radius:13px;padding:11px 5px;font-size:12px;color:#8a9db2;font-weight:800}.merge-stages .is-active{background:#eef6ff;color:#185fbd;border-color:#b4d0f0}.merge-stages .is-done{background:#edfaf3;color:#17815d;border-color:#c5eeda}.merge-bar{height:6px;background:#e7ecf4;border-radius:20px;overflow:hidden;margin-top:18px}.merge-bar>div{width:33%;height:100%;background:linear-gradient(90deg,#1769dd,#1cae85);animation:mergeSweep 2s ease-in-out infinite alternate;border-radius:10px}
.merge-result-check{display:grid;place-items:center;width:66px;height:66px;border-radius:50%;background:#eaf9ef;color:#219062;font-weight:900;font-size:34px;margin:0 auto 13px}.merge-result h2{font-size:23px;font-weight:900}.merge-result p{color:#6a7b8d}.merge-result-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:20px 0}.merge-result-stats div{border:1px solid #e2e9f0;background:#f8fafc;border-radius:12px;padding:13px 7px}.merge-result-stats strong{font-size:16px;color:#173d6d;display:block;font-weight:900}.merge-result-stats span{display:block;font-size:11px;color:#7c8da0;margin-top:5px}.merge-result-actions{display:flex;gap:9px;justify-content:center;flex-wrap:wrap}
.merge-seo{margin:23px 0;line-height:1.95}.merge-seo h2{font-weight:900;font-size:21px;margin:20px 0 9px}.merge-seo>h2:first-child{margin-top:0}.merge-seo>p{color:#556a80}.merge-faq{border-top:1px solid #e6edf4;padding:13px 0}.merge-faq summary{cursor:pointer;font-weight:800;color:#233f59}.merge-faq p{margin:9px 0;color:#63748b;font-size:13px}.merge-related{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-top:22px}.merge-related strong{flex-basis:100%}.merge-related a{font-size:12px;color:#185ca3;border:1px solid #dae8f8;background:#f6faff;border-radius:20px;padding:7px 12px;text-decoration:none}
@keyframes mergeSpin{to{transform:rotate(360deg)}}@keyframes mergeSweep{from{transform:translateX(-120%)}to{transform:translateX(240%)}}@media(prefers-reduced-motion:reduce){.merge-spinner,.merge-bar>div{animation:none}}
@media(max-width:850px){.merge-layout{grid-template-columns:1fr}.merge-hero{padding:26px 16px}.merge-card,.merge-plan-card,.merge-help,.merge-seo{padding:19px}}@media(max-width:570px){.merge-stats{grid-template-columns:repeat(2,1fr)}.merge-file-item{flex-wrap:wrap}.merge-result-stats{gap:5px}.merge-result-stats strong{font-size:13px}.merge-stages span{font-size:10px}.merge-result-actions>*{width:100%}.merge-section-head{align-items:start}}

/* Additional current page styles, moved out of index.php */

body{font-family:Tajawal,Tahoma,Arial,sans-serif;background:#f7f9fc;color:#10253e}
.merge-main{max-width:1180px;margin:auto;padding:0 16px 30px}
/* Related tool cards: same presentation as Compress PDF, using CPAdmin link data only. */
.merge-related-tools{margin:24px 0;padding:28px;border:1px solid #e2e8f0;border-radius:20px;background:#fff;text-align:right}
.merge-related-tools h2{font-size:24px;font-weight:800;margin:0 0 8px;color:#0f172a}
.merge-related-tools>p{margin:0 0 17px;color:#64748b;line-height:1.8}
.merge-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.merge-related-card{display:block;padding:15px 16px;min-height:110px;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc;color:#0f172a;text-decoration:none;font-weight:700;transition:background .18s ease,border-color .18s ease,color .18s ease}
.merge-related-card:hover,.merge-related-card:focus-visible{border-color:#2563eb;color:#1d4ed8;background:#fff}
.merge-related-card span{display:block;margin-top:5px;color:#64748b;font-size:13px;font-weight:400;line-height:1.7;overflow-wrap:anywhere}
@media(max-width:768px){.merge-related-tools{padding:20px}.merge-related-grid{grid-template-columns:1fr}.merge-related-card{min-height:auto}}

/* Free-first upgrade / account dialog. Scoped to merge page. */
#mergeUpgradeNotice[hidden], #mergeUpgradeCard[hidden], #mergeLoginButton[hidden], #mergeAuthNameRow[hidden], #mergeAuthConfirmRow[hidden], #mergeAuthTermsRow[hidden], #mergeAuthError[hidden], #mergeAuthGoogle[hidden] {display:none!important}
.merge-upgrade-notice{padding:18px;border:1px solid #bfdbfe;border-radius:16px;background:#eff6ff;line-height:1.8;color:#173b6d}
.merge-upgrade-notice strong{font-size:16px}.merge-upgrade-notice p{margin:8px 0 14px;line-height:1.8;color:#475569}
.merge-upgrade-notice #mergeUpgradeCard{margin-top:14px;border-top:1px solid #bfdbfe;padding-top:14px}
.merge-upgrade-notice #mergeUpgradeCard h3{font-size:17px;font-weight:900;color:#153d68}
.merge-plan-info{padding-bottom:15px}.merge-plan-info .merge-perks{margin-top:10px}
.merge-editorial{margin:22px 0;line-height:1.95;background:#fff;padding:22px;border:1px solid #e2e8f1;border-radius:17px}
.merge-editorial h2{font-size:21px;font-weight:850;margin:20px 0 8px}.merge-editorial h2:first-child{margin-top:0}
.merge-editorial p,.merge-editorial li{line-height:1.95;color:#475569}
.merge-auth-dialog{border:0;padding:0;border-radius:20px;max-width:min(460px,calc(100vw - 30px));width:100%;max-height:92dvh;overflow:auto;color:#0f172a;box-shadow:0 22px 70px rgba(15,23,42,.28)}
.merge-auth-dialog::backdrop{background:rgba(15,23,42,.58)}
.merge-auth-inner{direction:rtl;padding:25px}.merge-auth-head{display:flex;gap:12px;align-items:start;justify-content:space-between;margin-bottom:15px}
.merge-auth-head h2{font-weight:900;font-size:22px;margin:0 0 6px}.merge-auth-head p{color:#64748b;font-size:13px;margin:0;line-height:1.7}
#mergeAuthClose{border:0;border-radius:10px;padding:3px 10px;background:#e9eef5;font-size:24px;line-height:1.2;cursor:pointer}
.merge-auth-tabs{display:flex;gap:8px;margin:12px 0 15px}.merge-auth-tabs button{flex:1;padding:10px;background:#fff;border:1px solid #cbd5e1;border-radius:11px;font-weight:800;cursor:pointer}
.merge-auth-tabs .is-active{background:#2563eb;color:#fff;border-color:#2563eb}
#mergeAuthForm{display:grid;gap:10px}#mergeAuthForm label:not(.merge-auth-terms){display:grid;gap:5px;font-size:13px;font-weight:800}
#mergeAuthForm input:not([type=checkbox]){width:100%;padding:11px;border:1px solid #cbd5e1;border-radius:10px;min-height:42px;direction:auto}
#mergeAuthForm .merge-auth-terms{display:flex;align-items:start;gap:9px;font-size:13px}.merge-auth-terms input{margin-top:3px}
#mergeAuthForm #mergeAuthSubmit{width:100%}.merge-auth-trap{position:absolute!important;left:-99999px!important;opacity:0}
.merge-auth-error{padding:9px 10px;border:1px solid #fecaca;border-radius:9px;color:#991b1b;background:#fef2f2;font-size:13px}
.merge-auth-google{display:block;text-align:center;margin:12px 0 0;padding:11px;border:1px solid #cbd5e1;border-radius:10px;color:#334155;text-decoration:none;font-weight:800}
.merge-auth-note{font-size:12px;line-height:1.8;margin:12px 0;color:#64748b}.merge-auth-options{text-align:center;font-size:12px}
#mergeAuthForm.is-working{opacity:.6;pointer-events:none}
@media(max-width:570px){.merge-auth-inner{padding:19px}.merge-related-grid{grid-template-columns:1fr}}
