/* Fast URL Shortener — light, Persian RTL interface */
.fus-wrap {
  --fus-ink: #172554;
  --fus-muted: #64748b;
  --fus-line: #e2e8f0;
  --fus-blue: #3659d9;
  --fus-blue-dark: #2746bd;
  --fus-soft: #f6f8ff;
  width: min(100% - 32px, 860px);
  margin: 38px auto;
  padding: clamp(20px, 4vw, 38px);
  direction: rtl;
  color: var(--fus-ink);
  text-align: right;
  font: inherit;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(30, 50, 100, .10), 0 3px 12px rgba(30, 50, 100, .04);
  box-sizing: border-box;
  overflow: hidden;
}
.fus-wrap *, .fus-wrap *::before, .fus-wrap *::after { box-sizing: border-box; }
.fus-hero { position: relative; padding: 8px 2px 24px; }
.fus-kicker {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 10px;
  padding: 6px 11px; color: var(--fus-blue); background: #eef2ff;
  border-radius: 999px; font-size: .83em; font-weight: 700;
}
.fus-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #6579ed; }
.fus-hero h2 { margin: 0 0 8px; color: #172554; font-size: clamp(1.55rem, 3vw, 2rem); line-height: 1.4; letter-spacing: -.035em; }
.fus-hero p { margin: 0; color: var(--fus-muted); line-height: 1.9; }
.fus-tabs {
  display: flex; flex-wrap: nowrap; gap: 7px; width: 100%; padding: 7px;
  overflow-x: auto; scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent;
  background: #f3f5fb; border: 1px solid #e9edf5; border-radius: 16px;
  -webkit-overflow-scrolling: touch;
}
.fus-tab {
  flex: 1 0 auto; min-width: 0; padding: 11px 13px; border: 1px solid transparent;
  border-radius: 11px; color: #53627e; background: transparent; font: inherit;
  font-size: .94em; font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.fus-tab:hover { color: var(--fus-blue); background: #fff; }
.fus-tab.active { color: var(--fus-blue-dark); background: #fff; border-color: #e6eaff; box-shadow: 0 3px 10px rgba(40, 64, 130, .09); }
.fus-tab:focus-visible, .fus-wrap button:focus-visible, .fus-wrap a:focus-visible { outline: 3px solid rgba(54, 89, 217, .25); outline-offset: 2px; }
.fus-panel { padding: 17px 2px 7px; animation: fus-enter .22s ease both; }
.fus-panel[hidden], .fus-result[hidden], .fus-alert[hidden] { display: none !important; }
@keyframes fus-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.fus-label { display: block; margin: 18px 0 7px; color: #263653; font-weight: 700; }
.fus-label span { color: #8994a8; font-size: .88em; font-weight: 400; }
.fus-input {
  display: block; width: 100%; min-height: 48px; padding: 12px 14px;
  color: #182640; background: #fff; border: 1px solid #dce3ee; border-radius: 12px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .025); font: inherit; line-height: 1.7;
  direction: rtl; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.fus-input::placeholder { color: #a4adbd; opacity: 1; }
.fus-input:focus { outline: 0; border-color: #7188ed; background: #fff; box-shadow: 0 0 0 4px rgba(74, 103, 220, .12); }
textarea.fus-input { min-height: 140px; resize: vertical; }
.fus-hint, .fus-empty { margin: 8px 0 14px; color: var(--fus-muted); font-size: .9em; line-height: 1.9; }
.fus-check { display: flex; align-items: center; gap: 9px; margin: 17px 1px; color: #465571; cursor: pointer; }
.fus-check input { width: 17px; height: 17px; accent-color: var(--fus-blue); }
.fus-btn {
  display: inline-flex; justify-content: center; align-items: center; width: 100%; min-height: 50px;
  margin-top: 19px; padding: 12px 20px; color: #fff; border: 0; border-radius: 13px;
  background: linear-gradient(120deg, #5474ed, #3557d4 72%, #304dc2); box-shadow: 0 8px 18px rgba(53, 87, 212, .22);
  font: inherit; font-weight: 700; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.fus-btn:hover { transform: translateY(-2px); filter: saturate(1.08); box-shadow: 0 11px 24px rgba(53, 87, 212, .28); }
.fus-btn:active { transform: translateY(0); }
.fus-btn:disabled { opacity: .65; cursor: wait; transform: none; }
.fus-result {
  margin: 15px 0 2px; padding: 19px; color: #1e315e; background: linear-gradient(135deg, #f4f7ff, #edf3ff);
  border: 1px solid #dce5ff; border-radius: 17px; box-shadow: 0 8px 22px rgba(41, 69, 146, .07);
}
.fus-result-title { display: block; margin-bottom: 12px; }
.fus-result-row { display: flex; align-items: stretch; gap: 9px; }
.fus-result-row input {
  flex: 1; min-width: 0; padding: 11px 13px; color: #233b78; background: #fff;
  border: 1px solid #d5def6; border-radius: 11px; direction: ltr; text-align: left; font: inherit;
}
.fus-copy, .fus-item-copy {
  flex: 0 0 auto; padding: 9px 16px; color: #fff; background: var(--fus-blue); border: 0;
  border-radius: 10px; font: inherit; font-size: .91em; font-weight: 700; cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.fus-copy:hover, .fus-item-copy:hover { background: var(--fus-blue-dark); transform: translateY(-1px); }
.fus-copy.is-copied { background: #15805d; }
.fus-result .fus-hint { margin: 12px 0 0; }
.fus-wrap a { color: var(--fus-blue); text-decoration: none; }
.fus-wrap a:hover { color: var(--fus-blue-dark); text-decoration: underline; }
.fus-multi-item, .fus-link-item {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 10px 0; padding: 14px 15px;
  background: #fff; border: 1px solid var(--fus-line); border-radius: 14px;
  box-shadow: 0 4px 13px rgba(15, 35, 75, .035); overflow-wrap: anywhere;
}
.fus-multi-item { justify-content: space-between; }
.fus-multi-item small { color: var(--fus-muted); }
.fus-link-item { justify-content: space-between; }
.fus-link-info { display: grid; gap: 5px; min-width: 0; }
.fus-link-url { overflow-wrap: anywhere; }
.fus-link-info small { color: var(--fus-muted); font-size: .82em; }
.fus-link-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.fus-stats-link { padding: 7px 9px; background: #eff4ff; border-radius: 8px; font-size: .88em; }
.fus-delete { padding: 7px 10px; color: #b4233c; background: #fff1f2; border: 1px solid #ffe0e4; border-radius: 9px; font: inherit; font-size: .88em; cursor: pointer; }
.fus-delete:hover { background: #ffe4e7; }
.fus-alert { margin: 15px 0 2px; padding: 12px 15px; color: #9f2637; background: #fff1f2; border: 1px solid #ffdce2; border-radius: 12px; line-height: 1.8; }
.fus-bookmarklet { display: inline-flex; align-items: center; margin-top: 8px; padding: 11px 18px; color: #fff !important; background: var(--fus-blue); border-radius: 11px; font-weight: 700; text-decoration: none !important; box-shadow: 0 6px 15px rgba(53, 87, 212, .18); }
.fus-bookmarklet:hover { background: var(--fus-blue-dark); }
.fus-wrap [dir="ltr"] { unicode-bidi: isolate; }
@media (min-width: 768px) {
  .fus-tabs { overflow-x: hidden; }
  .fus-tab { flex: 1 1 0; padding-inline: 8px; font-size: clamp(12px, 1.1vw, 15px); }
}
@media (max-width: 600px) {
  .fus-wrap { width: min(100% - 20px, 860px); margin: 18px auto; padding: 18px 15px; border-radius: 20px; }
  .fus-hero { padding-bottom: 18px; }
  .fus-tabs { gap: 4px; padding: 5px; }
  .fus-tab { padding: 9px 11px; font-size: 13px; }
  .fus-panel { padding-top: 12px; }
  .fus-result { padding: 14px; }
  .fus-result-row { flex-wrap: wrap; }
  .fus-result-row input { flex-basis: 100%; }
  .fus-copy { flex: 1; }
  .fus-link-item { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .fus-wrap *, .fus-wrap *::before, .fus-wrap *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Password eye toggle: integrated at the left inside RTL password fields */
.fus-password-field {
    position: relative !important;
    display: block !important;
    width: 100% !important;
}
.fus-password-field input[type="password"],
.fus-password-field input[type="text"] {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 42px !important;
}
.fus-password-field .fus-toggle-password {
    position: absolute !important;
    left: 10px !important;
    right: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    flex: none !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #8c98a4 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    line-height: 1 !important;
    cursor: pointer !important;
    transition: color .2s ease !important;
    z-index: 2 !important;
}
.fus-password-field .fus-toggle-password:hover,
.fus-password-field .fus-toggle-password:focus {
    color: #3b5998 !important;
    background: transparent !important;
    outline: 0 !important;
    box-shadow: none !important;
}
.fus-password-field .fus-toggle-password svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    pointer-events: none !important;
}
