/* Jailbreak Finder - iOS Glass UI (single theme) */
:root{
  --font-sf: -apple-system, BlinkMacSystemFont, "SF Pro Display","SF Pro Text","Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --shadow: 0 18px 45px rgba(15, 23, 42, .08);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, .06);
  --ring: 0 0 0 .22rem rgba(0,122,255,.16);

  /* Dark glass base (like iOS glass UI) */
  --bg0: #141414;
  --bg1: #141414;
  --card: rgba(255,255,255,.08);
  --card-solid: rgba(255,255,255,.10);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.62);
  --border: rgba(255,255,255,.14);
  --border-strong: rgba(255,255,255,.18);
  --primary: #0a84ff;
  --primary-2: #0a84ff;
  --danger: #ff453a;
  --success: #30d158;

  --chip-green-bg: rgba(52,199,89,.16);
  --chip-green-text: #0f6b2c;

  --chip-teal-bg: rgba(48,209,88,.00); /* not used */
  --chip-teal-alt-bg: rgba(90,200,250,.18);
  --chip-teal-alt-text: #0b4d68;
  --chip-green-bg: rgba(48,209,88,.22);
  --chip-green-text: rgba(255,255,255,.88);
  --chip-teal-alt-bg: rgba(90,200,250,.20);
  --chip-teal-alt-text: rgba(255,255,255,.90);

  --shadow: 0 18px 55px rgba(0,0,0,.55);
  --shadow-soft: 0 12px 30px rgba(0,0,0,.45);
}

*{ box-sizing: border-box; }
body{
  font-family: var(--font-sf);
  color: var(--text);
  background: radial-gradient(700px 420px at 50% 120%, rgba(48,209,88,.28), transparent 60%),
              radial-gradient(850px 520px at 20% 0%, rgba(10,132,255,.18), transparent 55%),
              linear-gradient(180deg, var(--bg0), var(--bg0));
  min-height: 100vh;
  padding-bottom: 140px; /* space for bottom glass tabbar */
}

a{ color: inherit; }
.container-narrow{ max-width: 920px; }

.ios-nav{
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: rgba(20,20,20,.55);
  border-bottom: 1px solid var(--border);
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-badge{
  width: 46px; height: 46px;
  border-radius: 13px;
  background: rgba(255,255,255,.10);
  border: 1px solid var(--border);
  box-shadow: 0 10px 20px rgba(0,0,0,.35);
  overflow: hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.brand-badge img{ width: 100%; height: 100%; object-fit: cover; }

.surface{
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.surface-inner{ padding: 18px; }

.title-lg{
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}
.subtle{
  color: var(--muted);
  font-size: .95rem;
}

.ios-card{
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card-solid);
  box-shadow: var(--shadow-soft);
}

/* Main step cards */
.glass-card{
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  margin-bottom: 30px;
  margin-left: 10px;
  margin-right: 10px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
}

.form-select, .form-control{
  border-radius: 14px !important;
  border: 1px solid var(--border-strong) !important;
  padding: 12px 12px !important;
  background-color: rgba(255,255,255,.08) !important;
  color: var(--text) !important;
}

/*
  Dropdown option readability
  --------------------------
  Many browsers render the native <option> menu using a light system background.
  Since our glass theme uses light text on the <select>, the menu can become
  "light text on light background" and look invisible.

  Setting option colors here keeps the dropdown readable across iOS Safari,
  Chrome, and desktop.
*/
.form-select option,
.form-select optgroup{
  background: #ffffff;
  color: #111111;
}

/* Keep disabled placeholder readable inside the closed select */
.form-select:disabled{ opacity: .65; }
.form-select:focus, .form-control:focus{
  box-shadow: var(--ring) !important;
  border-color: rgba(10,132,255,.55) !important;
}

.btn-primary{
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
  border: none !important;
  border-radius: 999px !important;
  padding: 12px 18px !important;
  font-weight: 800 !important;
  box-shadow: 0 12px 24px rgba(10,132,255,.22);
}
.btn-primary:disabled{
  opacity: .55;
  box-shadow: none;
}
.btn-outline-secondary{
  border-radius: 999px !important;
  padding: 12px 16px !important;
  border-color: var(--border-strong) !important;
  color: var(--text) !important;
}
.btn-outline-secondary:hover{
  background: rgba(10,132,255,.08) !important;
  border-color: rgba(10,132,255,.35) !important;
}

/* Glassy outline button (used for Download buttons to match Cancel style) */
.btn-glass{
    background: rgb(87 85 85 / 54%) !important
    border-color: rgb(55 55 55 / 7%) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 14px 28px rgb(0 0 0 / 9%);
}
.btn-glass:hover{
  background: rgba(255,255,255,.14) !important;
  border-color: rgba(255,255,255,.24) !important;
}
.btn-glass:active{ transform: scale(.99); }

.step-pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.08);
}

.divider{ height:1px; background: var(--border); }

.status-emoji{
  width: 56px; height: 56px;
  border-radius: 999px;
  display:flex; align-items:center; justify-content:center;
  font-size: 28px;
  font-weight: 900;
}
.status-ok{ background: rgba(52,199,89,.16); color: var(--success); }
.status-bad{ background: rgba(255,59,48,.16); color: var(--danger); }

.tool-card{
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card-solid);
  padding: 14px;
}
.tool-logo{
  width: 56px; height: 56px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--border);
}
.kv{
  display:flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: .92rem;
}

.chip{
  display:inline-flex;
  align-items:center;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,.0);
  margin: 4px 6px 0 0;
  line-height: 1;
}
.chip-green{ 
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow); 
  color: rgb(255 255 255 / 88%);
}
.chip-teal{ 
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow); 
  color: #fff;
}
.models-details {
  background: #9c9c9c33;
  padding: 4px 10px;
  border-radius: 10px;
}
.promo-card{
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--card-solid);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}
.promo-logo{
  width: 132px; height: 132px;
  border-radius: 30px;
  object-fit: cover;
  border: 1px solid var(--border);
}
.promo-title{
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 10px 0 4px 0;
}
.promo-sub{
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 12px 0;
}

.include-row{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.15rem;
  margin-top: 8px;
  margin-bottom: 10px;
}
.include-arrow{
  width: 30px; height: 30px;
  border-radius: 10px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(10,132,255,.14);
  border: 1px solid rgba(10,132,255,.20);
}

.footer-note{
  color: var(--muted);
  font-size: .9rem;
}

/* Bottom Glass Tabbar (iOS-like) */
.glass-tabbar-wrap{
  position: fixed;
  left: 0; right: 0; bottom: 18px;
  z-index: 40;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.glass-tabbar{
  width: min(520px, calc(100% - 28px));
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 18px 40px rgba(0,0,0,.55);
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  pointer-events: auto;
}
.tab-item{
  text-decoration: none;
  color: rgba(255,255,255,.78);
  border-radius: 20px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background .15s ease, transform .15s ease;
}
.tab-item:active{ transform: scale(.98); }
.tab-item.active,
.tab-item:hover{
  background: rgba(255,255,255,.14);
  color: rgba(255,255,255,.95);
}
.tab-ico{
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tab-ico svg{ width: 22px; height: 22px; }
.tab-label{ font-size: .8rem; font-weight: 700; }

.capture-pill{
  position: fixed;
  left: 0; right: 0;
  bottom: 92px;
  z-index: 41;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.capture-pill button{
  pointer-events: auto;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(0,0,0,.45);
}
.capture-pill button:active{ transform: scale(.98); }

.glass-modal{ background: rgba(20,20,20,.82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,.14); }
.glass-modal .modal-header, .glass-modal .modal-footer{ border-color: rgba(255,255,255,.12); }


@media (max-width: 420px){
  .promo-logo{ width: 112px; height: 112px; border-radius: 26px; }
  .promo-title{ font-size: 1.35rem; }
}
/* Compatibility with previous markup (kept for stability) */
.app-shell{ border-radius: var(--radius-xl); border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow); overflow:hidden; }
.inner-pad{ padding: 18px; }
.hint{ color: var(--muted); font-size: .92rem; margin-left: 4px; margin-right: 4px; }
.btn-pill{ border-radius: 999px !important; padding: 12px 18px !important; font-weight: 800 !important; }
.soft-input{ /* alias */ }

/* Bottom glass tab bar (matches provided reference image) */
.glass-tabbar-wrap{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 60;
  display: flex;
  justify-content: center;
  pointer-events: none; /* allow only children */
}

.capture-pill{
  pointer-events: auto;
  position: absolute;
  bottom: 86px;
  padding: 10px 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  background: rgba(255,255,255,.10);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 18px 45px rgba(0,0,0,.55);
}
.capture-pill svg{ width: 18px; height: 18px; opacity: .92; }

.glass-tabbar{
  pointer-events: auto;
  width: min(560px, calc(100vw - 28px));
  border-radius: 999px;
  padding: 8px;
  background: rgba(255,255,255,.10);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 18px 55px rgba(0,0,0,.55);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.tab-item{
  flex: 1;
  text-decoration: none;
  color: rgba(255,255,255,.88);
  border-radius: 999px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background .18s ease, transform .18s ease;
}
.tab-item:hover{ background: rgba(255,255,255,.08); transform: translateY(-1px); }

.tab-item.active{
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
}

.tab-ico{
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tab-ico svg{ width: 22px; height: 22px; opacity: .92; }
.tab-label{
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.glass-modal{
  background: rgba(30,30,30,.65);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
}

/* Small toast for Capture tip */
.capture-toast{
  position: fixed;
  left: 50%;
  bottom: 118px;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  padding: 10px 14px;
  border-radius: 14px;
  max-width: min(560px, calc(100vw - 28px));
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 18px 55px rgba(0,0,0,.55);
  font-weight: 700;
  font-size: .92rem;
  text-align: center;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 70;
}
.capture-toast.show{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.modal-header, .modal-footer{ border-color: rgba(255,255,255,.10) !important; }

/* App Store-style glass action button (Find Jailbreak) */
.glass-action{
  width: 100px;
  height: 50px;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  color: rgba(255,255,255,.96);
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow:
    0 18px 55px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .14s ease, background .14s ease, opacity .14s ease;
}
.glass-action:active{ transform: scale(.98); }
.glass-action:hover{ background: rgba(255,255,255,.14); }
.glass-action:disabled{
  opacity: .45;
  cursor: not-allowed;
}
.glass-action-icon{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}
.glass-action-text{
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.05;
}
.glass-action-sub{
  font-weight: 700;
  font-size: .92rem;
  line-height: 1;
  opacity: .88;
  margin-top: -2px;
}

@media (max-width: 420px){
  .glass-action{ width: 100px; height: 50px; }
  .glass-action-icon{ width: 40px; height: 40px; }
}

@media (max-width: 420px){
  body{ padding-bottom: 160px; }
  .capture-pill{ bottom: 92px; }
  .tab-label{ font-size: .78rem; }
}
