/* =====================================================================
   Image Tools - dark theme matching pdf.openservicetools.com
   ===================================================================== */
:root {
  --bg: #0f0f1a;
  --card: #1a1a2e;
  --panel: #12122a;
  --border: #2a2a4a;
  --border-2: #3a3a5c;
  --accent: #6c63ff;
  --accent-hover: #5a52e0;
  --accent-soft: #8b83ff;
  --danger: #ff6b6b;
  --text: #e0e0e0;
  --white: #ffffff;
  --muted: #888888;
  --muted-2: #aaaaaa;
  --body-text: #b0b0b0;
  --dim: #666666;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { height: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-soft); }

h1, h2, h3, h4, h5, h6 { color: var(--white); font-weight: 600; }

button, input, select { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* =====================================================================
   Header
   ===================================================================== */
.header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 10px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 1100px;
  margin: 0 auto;
}
.header-main {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  cursor: pointer;
}
.logo-img {
  height: 34px;
  width: auto;
  display: block;
  border-radius: 8px;
}
.logo:hover { color: var(--accent); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-tab {
  padding: 8px 14px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  transition: all .15s;
}
.nav-tab:hover { color: #ccc; background: rgba(255,255,255,.05); }
.nav-tab.active { color: var(--white); background: var(--accent); }
.page-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.page-link {
  color: var(--dim);
  font-size: .78rem;
  font-weight: 400;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color .15s;
}
.page-link:hover { color: var(--muted-2); }
.page-link.active { color: var(--accent); }
.page-link-sep { color: var(--border); font-size: .7rem; }

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 1000;
  padding: 8px 16px;
  background: var(--accent);
  color: var(--white);
  font-size: .9rem;
  font-weight: 600;
  border-radius: 0 0 8px;
  transition: top .1s;
}
.skip-link:focus { top: 0; }

/* =====================================================================
   Main layout
   ===================================================================== */
.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 56px;
  flex: 1;
}
.container-wide { max-width: 1100px; }

/* =====================================================================
   Typography / page headers
   ===================================================================== */
.it-tool-header { margin-bottom: 28px; }
.it-tool-header h1 { font-size: 1.8rem; color: var(--white); margin-bottom: 8px; text-align: left; }
.it-tool-header p { color: var(--muted); font-size: 1rem; line-height: 1.6; margin: 0; }

/* =====================================================================
   Landing page
   ===================================================================== */
.page-title {
  font-size: 2.4rem;
  color: var(--white);
  text-align: center;
  font-weight: 700;
  margin-bottom: 8px;
}
.page-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 36px;
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.tool-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  height: 100%;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 14px;
}
.tool-card h3 { font-size: 1.1rem; color: var(--white); margin-bottom: 8px; }
.tool-card p { color: var(--body-text); font-size: .9rem; line-height: 1.6; margin: 0; }

/* =====================================================================
   Cards / panels
   ===================================================================== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.card-body { padding: 24px; }
.card-title { font-size: 1.1rem; margin-bottom: 8px; }
.card-text { color: var(--body-text); font-size: .9rem; line-height: 1.6; }

.it-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 992px) {
  .it-layout.with-sidebar { grid-template-columns: minmax(0, 1fr) 320px; }
  .it-layout.with-sidebar.wide-sidebar { grid-template-columns: minmax(0, 1fr) 380px; }
}
.it-workspace {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  min-height: 320px;
}
.it-sidebar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  align-self: start;
}
.it-sidebar h2 {
  font-size: .85rem;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* =====================================================================
   Dropzone
   ===================================================================== */
.it-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 48px 20px;
  border: 2px dashed var(--border-2);
  border-radius: 12px;
  cursor: pointer;
  transition: all .2s;
  color: var(--muted);
  text-align: center;
  background: transparent;
}
.it-dropzone:hover, .it-dropzone.it-dragover {
  border-color: var(--accent);
  color: #ccc;
  background: rgba(108,99,255,.05);
}
.it-dz-icon { font-size: 2.6rem; opacity: .5; }
.it-dropzone p { font-size: .95rem; margin: 0; }
.it-dropzone strong { color: var(--muted-2); }
.it-dropzone small { color: var(--dim); }

/* =====================================================================
   Buttons
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 28px;
  border: none;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
  text-decoration: none;
  line-height: 1.2;
  color: var(--white);
  background: transparent;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-outline-primary {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.btn-outline-primary:hover:not(:disabled) { background: rgba(108,99,255,.12); }
.btn-outline-secondary {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--muted-2);
}
.btn-outline-secondary:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(108,99,255,.06);
}
.btn-sm { padding: 8px 14px; font-size: .82rem; border-radius: 8px; }
.it-btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.it-btn-row .btn { flex: 1 1 auto; white-space: nowrap; }

/* =====================================================================
   Forms
   ===================================================================== */
.form-control, .form-select {
  width: 100%;
  padding: 11px 14px;
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: .9rem;
  outline: none;
  transition: border-color .15s;
}
.form-control:focus, .form-select:focus { border-color: var(--accent); }
.form-control::placeholder { color: var(--dim); }
.form-control:disabled { opacity: .6; }
.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888888' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
select option { background: var(--panel); color: var(--text); }
.form-control-color {
  width: 52px;
  height: 40px;
  padding: 3px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  cursor: pointer;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 24px;
}
.form-check-input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
  flex: none;
  background: var(--panel);
  border: 1px solid var(--border-2);
  border-radius: 4px;
  appearance: none;
  -webkit-appearance: none;
  transition: all .15s;
}
.form-check-input:checked { background: var(--accent); border-color: var(--accent); }
.form-check-input:checked::before {
  content: '✓';
  display: block;
  text-align: center;
  font-size: 12px;
  line-height: 16px;
  color: var(--white);
}
.form-check-label { color: #ccc; font-size: .88rem; cursor: pointer; }
.form-switch .form-check-input {
  width: 42px;
  height: 22px;
  border-radius: 22px;
  background: var(--border-2);
  border: none;
  position: relative;
  cursor: pointer;
}
.form-switch .form-check-input::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #888;
  top: 3px;
  left: 3px;
  transition: all .15s;
  font-size: 0;
}
.form-switch .form-check-input:checked { background: var(--accent); }
.form-switch .form-check-input:checked::before {
  left: 23px;
  background: var(--white);
}

/* Sliders */
.it-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
  margin: 6px 0;
}
.it-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
  transition: background .15s;
}
.it-slider::-webkit-slider-thumb:hover { background: var(--accent-hover); }
.it-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
}
.it-slider::-moz-range-progress { background: var(--accent); height: 6px; border-radius: 3px; }

/* Control groups */
.it-control-group { margin-bottom: 18px; }
.it-control-group label {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted-2);
  margin-bottom: 6px;
}
.it-control-group label .it-val {
  color: var(--dim);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.it-control-group .form-select,
.it-control-group .form-control { font-size: .875rem; }

/* =====================================================================
   Badges / chips / stats
   ===================================================================== */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  background: var(--panel);
  color: var(--muted-2);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.badge.bg-success { background: #16a34a; color: var(--white); border-color: #16a34a; }
.badge.bg-warning { background: #d97706; color: var(--white); border-color: #d97706; }
.it-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.it-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108,99,255,.12);
  color: var(--accent-soft);
  border: 1px solid rgba(108,99,255,.25);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: .82rem;
  margin-bottom: 14px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.it-status { font-size: .85rem; color: var(--muted); min-height: 1.2em; }
.it-progress { margin-top: 12px; }
.progress { height: 6px; background: var(--panel); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--accent); border-radius: 6px; transition: width .2s; }

/* =====================================================================
   Canvas stage
   ===================================================================== */
.it-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #16162a;
  background-image:
    linear-gradient(45deg, #20203a 25%, transparent 25%),
    linear-gradient(-45deg, #20203a 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #20203a 75%),
    linear-gradient(-45deg, transparent 75%, #20203a 75%);
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
  border-radius: 12px;
  min-height: 320px;
  overflow: hidden;
}
.it-stage canvas, .it-stage img {
  max-width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
  border-radius: 4px;
}
.it-passport-stage {
  position: relative;
  touch-action: none;
  cursor: grab;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.it-passport-stage.it-dragging { cursor: grabbing; }
.it-hidden { display: none !important; }

/* Brush cursor (advanced tool) */
.it-stage .it-brush {
  position: absolute;
  border: 2px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0,0,0,.5);
  pointer-events: none;
  display: none;
}

/* =====================================================================
   Filters grid
   ===================================================================== */
.it-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (min-width: 480px) { .it-filter-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 992px) { .it-filter-grid { grid-template-columns: repeat(6, 1fr); } }
.it-filter-thumb {
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  padding-bottom: 5px;
  transition: border-color .15s, box-shadow .15s;
}
.it-filter-thumb:hover { border-color: var(--border-2); }
.it-filter-thumb.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(108,99,255,.35);
}
.it-filter-thumb img { width: 100%; height: 56px; object-fit: cover; display: block; }
.it-filter-thumb span { font-size: .72rem; color: var(--muted-2); display: block; margin-top: 4px; }

/* =====================================================================
   File list (convert tool)
   ===================================================================== */
.file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 8px;
}
.file-row img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; flex: none; }
.file-row .file-info { flex: 1; min-width: 0; }
.file-row .fname { color: var(--text); font-weight: 500; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.file-row .fmeta { font-size: .75rem; color: var(--dim); margin-top: 2px; }
.icon-btn {
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all .15s;
  font-family: inherit;
  flex: none;
}
.icon-btn:hover:not(:disabled) { background: rgba(255,255,255,.08); color: #ccc; }
.icon-btn.danger:hover:not(:disabled) { background: rgba(255,107,107,.15); color: var(--danger); }

/* Mode buttons (advanced) */
.mode-btn { flex: 1 1 auto; }

/* =====================================================================
   Alerts / misc
   ===================================================================== */
.alert {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  color: var(--body-text);
  font-size: .9rem;
}
.alert-light { border-color: var(--border); }

/* =====================================================================
   Footer
   ===================================================================== */
.footer {
  margin-top: 60px;
  background: var(--panel);
  border-top: 1px solid var(--border);
  padding: 48px 24px 0;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 32px;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-logo { font-size: 1.2rem; font-weight: 700; color: var(--white); }
.footer-logo:hover, .footer-logo-accent { color: var(--accent); }
.footer-desc { color: #777; font-size: .85rem; line-height: 1.6; }
.footer-col h4 {
  color: var(--white);
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 14px;
}
.footer-link {
  display: block;
  color: #777;
  font-size: .85rem;
  padding: 4px 0;
  transition: color .15s;
}
.footer-link:hover { color: #ccc; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  text-align: center;
}
.footer-bottom p { color: #555; font-size: .8rem; max-width: 1100px; margin: 0 auto; }

/* =====================================================================
   Utilities
   ===================================================================== */
.d-flex { display: flex; }
.flex-grow-1 { flex: 1 1 0%; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.gap-2 { gap: .5rem; }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .25rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.w-100 { width: 100%; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-danger { color: var(--danger); }
.small { font-size: .85em; }
.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-decoration-none { text-decoration: none; }
.opacity-75 { opacity: .75; }
.border { border: 1px solid var(--border); }
.rounded { border-radius: 8px; }
.p-2 { padding: .5rem; }
.lead { font-size: 1.2rem; font-weight: 300; line-height: 1.5; }

/* Grid (landing cards) */
.row { display: flex; flex-wrap: wrap; margin: -12px -12px 0; }
.row > [class*="col-"] { flex: 0 0 auto; width: 100%; padding: 12px; }
@media (min-width: 576px) { .row > .col-sm-6 { width: 50%; } }
@media (min-width: 992px) { .row > .col-lg-3 { width: 25%; } }

/* =====================================================================
   Info pages (privacy, security, terms, cookies, about, contact)
   ===================================================================== */
.container-wide { max-width: 860px; }

.page-content h1 {
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 8px;
  text-align: left;
}
.page-subtitle { color: var(--muted); font-size: 1rem; margin-bottom: 28px; line-height: 1.6; }
.page-updated { color: var(--dim); font-size: .85rem; margin-bottom: 28px; }

.page-content section { margin-bottom: 28px; }
.page-content section:last-child { margin-bottom: 0; }
.page-content h2 { font-size: 1.25rem; color: var(--white); margin-bottom: 12px; margin-top: 0; font-weight: 600; }
.page-content h3 { font-size: 1.05rem; color: #ddd; margin-bottom: 8px; margin-top: 20px; font-weight: 600; }
.page-content p { color: var(--body-text); line-height: 1.75; margin-bottom: 12px; font-size: .95rem; }
.page-content ul, .page-content ol { color: var(--body-text); line-height: 1.75; margin-bottom: 12px; padding-left: 24px; font-size: .95rem; }
.page-content li { margin-bottom: 8px; }
.page-content li:last-child { margin-bottom: 0; }
.page-content a { color: var(--accent); text-decoration: none; transition: color .15s; }
.page-content a:hover { color: var(--accent-soft); text-decoration: underline; }
.page-content strong { color: #ccc; font-weight: 600; }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-field label {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted-2);
  margin-bottom: 6px;
}
.contact-field textarea.form-control { resize: vertical; min-height: 150px; }
.contact-note { font-size: .82rem; color: var(--dim); margin-top: 4px; }
.contact-success {
  background: rgba(22,163,74,.1);
  border: 1px solid #16a34a;
  color: #7ee2a8;
  border-radius: 12px;
  padding: 16px;
  font-size: .92rem;
}

/* =====================================================================
   Tool layout with ad sidebars (left / right)
   ===================================================================== */
.tool-layout {
  display: grid;
  grid-template-columns: 160px 1fr 160px;
  grid-template-areas: "left content right";
  gap: 24px;
  flex: 1;
  width: 100%;
  padding: 0 0 40px;
}
.ad-sidebar--left { grid-area: left; }
.ad-sidebar--right { grid-area: right; }
.tool-layout .container {
  grid-area: content;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  min-width: 0;
}
.ad-sidebar { display: flex; flex-direction: column; align-items: center; }
.ad-sidebar-label {
  font-size: .65rem;
  color: var(--dim);
  text-align: center;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding-top: 40px;
}
.ad-sidebar-unit {
  width: 160px;
  flex: 1;
  min-height: 600px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ad-sidebar-unit .adsbygoogle { min-width: 120px; }

/* =====================================================================
   Responsive tweaks
   ===================================================================== */
@media (max-width: 1100px) {
  .tool-layout {
    grid-template-columns: 1fr;
    grid-template-areas: "left" "content" "right";
    max-width: 720px;
    margin: 0 auto;
    padding: 0;
    gap: 0;
  }
  .ad-sidebar { padding: 24px 20px 0; }
  .ad-sidebar--right { padding-bottom: 24px; }
  .ad-sidebar-unit { width: 100%; min-height: 120px; }
  .ad-sidebar-label { padding-top: 0; }
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .container { padding: 24px 16px 40px; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .it-layout.with-sidebar,
  .it-layout.with-sidebar.wide-sidebar { grid-template-columns: 1fr; }
}
