/* repo.deplaocongnghe.com: web năm 2007 + Apple bóng bẩy (images/old_1.2 sáng, old_2.x tối).
   Đích chính: Safari iPhone 4S (iOS 5–6, A5, màn 320×480 @2x). Quy tắc:
   - không biến CSS, flex, grid, calc; gradient viết kèm cú pháp -webkit-gradient cũ;
   - nền sọc là ảnh PNG 4 px (rẻ hơn repeating-gradient), không background-attachment: fixed (iOS vẽ lại cả trang khi cuộn);
   - màn hẹp: danh sách gói kiểu App Store iOS 6, ít bóng đổ (cuộn mượt trên A5), vùng bấm ≥ 32 px, ô nhập 16 px (không tự phóng to). */

html {
  -webkit-text-size-adjust: 100%;
  background: #c4d8e0 url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAABCAYAAAD5PA/NAAAAEUlEQVR42mP4//+/HggzQAEAUbcGV0va2I0AAAAASUVORK5CYII=);
}
body {
  margin: 0;
  font: 15px/1.4 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #1d2a33;
  -webkit-tap-highlight-color: rgba(47,160,240,0.25);
}
a { color: #1a6fb5; text-decoration: none; }
img { border: 0; }
code { font: 13px Menlo, Consolas, monospace; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 12px; }
.wrap--narrow { max-width: 640px; }

/* ---------- Thanh trên: bạc chải + dải xanh ngọc ---------- */
.top {
  border-top: 8px solid #4fc3cf;
  border-bottom: 1px solid #66737a;
  background: #b9c3c8;
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#eef2f4), color-stop(0.45, #cfd7db), color-stop(0.46, #c0cacf), to(#a4b0b6));
  background-image: linear-gradient(#eef2f4, #cfd7db 45%, #c0cacf 46%, #a4b0b6);
  -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 2px 6px rgba(0,0,0,0.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 2px 6px rgba(0,0,0,0.35);
}
.top__row { position: relative; padding: 14px 140px 10px 0; min-height: 36px; }
.top__row--search { padding-right: 480px; }
.logo { display: inline-block; vertical-align: middle; white-space: nowrap; }
.logo__text {
  font-size: 30px; font-weight: bold; font-style: italic; letter-spacing: -0.5px;
  color: #33e3ef;
  text-shadow: 0 1px 0 #0b5560, 0 0 8px rgba(47,224,236,0.85), 0 0 2px #0a3d44;
  vertical-align: middle;
}
.logo__icon { vertical-align: middle; margin-left: 6px; -webkit-border-radius: 8px; border-radius: 8px; -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.4); box-shadow: 0 1px 2px rgba(0,0,0,0.4); }
.top__host { display: inline-block; vertical-align: middle; margin-left: 10px; color: #33434b; font-size: 15px; text-shadow: 0 1px 0 rgba(255,255,255,0.8); }
.top__search { position: absolute; right: 140px; top: 15px; width: 320px; }

/* Ô tìm bo tròn có kính lúp (vẽ bằng CSS, không cần ảnh). */
.search {
  display: block; width: 100%; margin: 0; padding: 7px 14px 7px 32px;
  -webkit-box-sizing: border-box; box-sizing: border-box;
  font: 16px 'Helvetica Neue', Helvetica, Arial, sans-serif; color: #222;
  border: 1px solid #7e8b91; -webkit-border-radius: 18px; border-radius: 18px;
  background: #fff;
  -webkit-box-shadow: inset 0 2px 3px rgba(0,0,0,0.3), 0 1px 0 rgba(255,255,255,0.8);
  box-shadow: inset 0 2px 3px rgba(0,0,0,0.3), 0 1px 0 rgba(255,255,255,0.8);
  -webkit-appearance: none; outline: none;
}
.top__search:before {
  content: ''; position: absolute; left: 12px; top: 9px; width: 9px; height: 9px; z-index: 1;
  border: 2px solid #7a868c; -webkit-border-radius: 7px; border-radius: 7px;
}
.top__search:after {
  content: ''; position: absolute; left: 23px; top: 21px; width: 6px; height: 2px; z-index: 1;
  background: #7a868c; -webkit-transform: rotate(45deg); transform: rotate(45deg);
}

/* Công tắc «Tối» kiểu iOS 6: TẮT = sáng, BẬT = tối. */
.sw { position: absolute; right: 0; top: 18px; color: #33434b; font-size: 14px; font-weight: bold; text-shadow: 0 1px 0 rgba(255,255,255,0.8); white-space: nowrap; }
.sw__txt { vertical-align: middle; margin-right: 7px; }
.sw__track {
  display: inline-block; vertical-align: middle; position: relative; width: 74px; height: 27px; overflow: hidden;
  border: 1px solid #7d878c; -webkit-border-radius: 15px; border-radius: 15px;
  -webkit-box-shadow: 0 1px 0 rgba(255,255,255,0.7); box-shadow: 0 1px 0 rgba(255,255,255,0.7);
}
.sw__on, .sw__off {
  position: absolute; top: 0; left: 0; width: 100%; height: 27px; line-height: 27px;
  font-size: 12px; font-weight: bold; -webkit-box-sizing: border-box; box-sizing: border-box;
  -webkit-box-shadow: inset 0 2px 3px rgba(0,0,0,0.3); box-shadow: inset 0 2px 3px rgba(0,0,0,0.3);
}
.sw__on {
  display: none; padding-left: 10px; color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,0.4);
  background: #2f86d6;
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#1d6cc4), color-stop(0.5, #3c90e0), to(#62aff0));
  background-image: linear-gradient(#1d6cc4, #3c90e0 50%, #62aff0);
}
.sw__off {
  padding-right: 10px; text-align: right; color: #7b858a;
  background: #eceeef;
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#d4d7d9), to(#fafafa));
  background-image: linear-gradient(#d4d7d9, #fafafa);
}
.sw__knob {
  position: absolute; left: -1px; top: -1px; width: 27px; height: 27px;
  border: 1px solid #8f979b; -webkit-border-radius: 15px; border-radius: 15px;
  background: #eee;
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#cfd3d5));
  background-image: linear-gradient(#ffffff, #cfd3d5);
  -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.35); box-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
html.dark .sw__on { display: block; }
html.dark .sw__off { display: none; }
html.dark .sw__knob { left: auto; right: -1px; }

/* Thanh mục: các ô chia đều, vạch ngăn mảnh, mục đang mở lõm xuống. */
.nav {
  width: 100%; margin: 0 0 10px; table-layout: fixed; border-collapse: separate; border-spacing: 0;
  border: 1px solid #7a878d; -webkit-border-radius: 10px; border-radius: 10px;
  background: #aab5ba;
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#a1acb1), to(#c8d0d3));
  background-image: linear-gradient(#a1acb1, #c8d0d3);
  -webkit-box-shadow: inset 0 1px 3px rgba(0,0,0,0.35), 0 1px 0 rgba(255,255,255,0.65);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.35), 0 1px 0 rgba(255,255,255,0.65);
}
.nav td { padding: 3px; text-align: center; border-left: 1px solid rgba(80,95,102,0.35); -webkit-box-shadow: inset 1px 0 0 rgba(255,255,255,0.35); box-shadow: inset 1px 0 0 rgba(255,255,255,0.35); }
.nav td.first { border-left: 0; -webkit-box-shadow: none; box-shadow: none; }
.nav a {
  display: block; padding: 6px 4px; font-size: 18px; color: #1f97a6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 0 rgba(255,255,255,0.75);
  -webkit-border-radius: 7px; border-radius: 7px;
}
.nav a.on {
  color: #e9fdff; text-shadow: 0 -1px 0 rgba(0,0,0,0.4);
  background: #8d999f;
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#7c888e), to(#a4afb4));
  background-image: linear-gradient(#7c888e, #a4afb4);
  -webkit-box-shadow: inset 0 1px 4px rgba(0,0,0,0.55), 0 1px 0 rgba(255,255,255,0.4);
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.55), 0 1px 0 rgba(255,255,255,0.4);
}

/* ---------- Khối thêm nguồn ---------- */
.source {
  margin: 16px 0 0; padding: 12px 14px;
  border: 1px solid #6fa3b1; -webkit-border-radius: 12px; border-radius: 12px;
  background: #e9f3f6;
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fbfdfe), to(#d8e8ee));
  background-image: linear-gradient(#fbfdfe, #d8e8ee);
  -webkit-box-shadow: inset 0 1px 0 #fff, 0 0 0 3px rgba(120,190,205,0.3), 0 2px 5px rgba(0,0,0,0.2);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 3px rgba(120,190,205,0.3), 0 2px 5px rgba(0,0,0,0.2);
}
.source__text b { display: block; font-size: 17px; text-shadow: 0 1px 0 #fff; }
.source__row { position: relative; padding-right: 200px; min-height: 48px; }
.source__row .btn { position: absolute; right: 0; top: 50%; margin-top: -24px; width: 180px; padding-left: 0; padding-right: 0; font-size: 18px; }
.source__url {
  display: block; width: 100%; margin: 5px 0 0; padding: 6px 9px; font: 16px Menlo, Consolas, monospace; color: #1a6fb5;
  border: 1px solid #9fb9c3; -webkit-border-radius: 7px; border-radius: 7px; background: #fff;
  -webkit-box-sizing: border-box; box-sizing: border-box; -webkit-appearance: none;
  -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.18); box-shadow: inset 0 1px 2px rgba(0,0,0,0.18);
}
.source__alt { margin: 10px 0 0; font-size: 14px; }
.source__hint { margin: 8px 0 0; font-size: 13px; color: #3f525b; }
html.dark .source__hint { color: #9fb0ba; }
.mgr {
  display: inline-block; margin: 0 6px 6px 0; padding: 5px 13px; color: #17465a; font-weight: bold; text-shadow: 0 1px 0 #fff;
  border: 1px solid #8eacb7; -webkit-border-radius: 14px; border-radius: 14px; background: #f4f9fb;
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), color-stop(0.5, #f0f5f7), color-stop(0.51, #e2ebef), to(#d6e3e8));
  background-image: linear-gradient(#ffffff, #f0f5f7 50%, #e2ebef 51%, #d6e3e8);
  -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.2); box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.steps-toggle { display: none; }
.steps { margin: 6px 0 0; padding: 0 0 0 20px; font-size: 14px; line-height: 1.45; }
.steps li { margin: 4px 0; }
.steps code { word-break: break-all; }
.js-note { margin: 6px 0; padding: 6px 9px; font-size: 13px; line-height: 1.4; border: 1px solid #e0c97a; -webkit-border-radius: 6px; border-radius: 6px; background: #fff8dc; color: #5a4a12; }
.card__foot .js-note { position: relative; z-index: 2; text-align: left; }
.dep__note { margin: 8px 0 0; font-size: 13px; color: #5e6d75; text-align: center; }

/* ---------- Bộ lọc: viên thuốc aqua ---------- */
.tools { margin: 16px 0 0; text-align: center; }
.pills { white-space: normal; }
.pill {
  display: inline-block; margin: 0 4px 9px; padding: 7px 20px;
  font-size: 17px; color: #23404c; text-shadow: 0 1px 0 rgba(255,255,255,0.85);
  border: 1px solid #66899a; -webkit-border-radius: 20px; border-radius: 20px;
  background: #dce9ef;
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), color-stop(0.5, #e4eff4), color-stop(0.51, #cadde6), to(#bcd4de));
  background-image: linear-gradient(#ffffff, #e4eff4 50%, #cadde6 51%, #bcd4de);
  -webkit-box-shadow: inset 0 1px 0 #fff, 0 0 0 2px rgba(120,160,180,0.35), 0 2px 3px rgba(0,0,0,0.3);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 2px rgba(120,160,180,0.35), 0 2px 3px rgba(0,0,0,0.3);
}
.pill.on {
  color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,0.35);
  border-color: #145d9c;
  background: #2f86d6;
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#7dc0f5), color-stop(0.5, #3a93e0), color-stop(0.51, #2479cc), to(#2a8ee0));
  background-image: linear-gradient(#7dc0f5, #3a93e0 50%, #2479cc 51%, #2a8ee0);
  -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 0 7px rgba(47,160,240,0.8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 0 7px rgba(47,160,240,0.8);
}
.pill.on2 {
  border-color: #2a8f99;
  background: #6fdde6;
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#c8f6fa), color-stop(0.5, #7fe3eb), color-stop(0.51, #4fd0dc), to(#6fdde6));
  background-image: linear-gradient(#c8f6fa, #7fe3eb 50%, #4fd0dc 51%, #6fdde6);
  -webkit-box-shadow: inset 0 1px 0 #fff, 0 0 7px rgba(47,224,236,0.9);
  box-shadow: inset 0 1px 0 #fff, 0 0 7px rgba(47,224,236,0.9);
}

.h { margin: 10px 0 8px; font-size: 21px; text-shadow: 0 1px 0 rgba(255,255,255,0.75); }
.h span { font-size: 14px; font-weight: normal; color: #4f626b; }

/* ---------- Lưới gói (máy tính, iPad) ---------- */
.grid { margin: 0 -7px; font-size: 0; }
.cell { display: inline-block; vertical-align: top; width: 25%; padding: 7px; -webkit-box-sizing: border-box; box-sizing: border-box; font-size: 15px; }
.card {
  position: relative; padding: 10px;
  border: 1px solid #4f93a3; -webkit-border-radius: 12px; border-radius: 12px;
  background: #e3f0f4;
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f6fbfc), color-stop(0.5, #e0eef2), color-stop(0.51, #d0e5ec), to(#c3dde5));
  background-image: linear-gradient(#f6fbfc, #e0eef2 50%, #d0e5ec 51%, #c3dde5);
  -webkit-box-shadow: inset 0 1px 0 #fff, 0 0 0 3px rgba(110,185,200,0.4), 0 3px 6px rgba(0,0,0,0.28);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 3px rgba(110,185,200,0.4), 0 3px 6px rgba(0,0,0,0.28);
}
.card__main { display: block; min-height: 64px; padding-left: 72px; position: relative; color: #1d2a33; }
.card__main .icon { position: absolute; left: 0; top: 0; }
.card__name { display: block; font-size: 18px; font-weight: bold; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 0 #fff; }
.card__line { display: block; font-size: 14px; color: #34464f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__foot { margin-top: 8px; text-align: right; }
.card__foot .tag { float: left; margin-top: 6px; }

/* Icon kiểu iOS 6: bo góc + lớp bóng nửa trên. */
.icon { display: inline-block; position: relative; width: 57px; height: 57px; -webkit-border-radius: 12px; border-radius: 12px; overflow: hidden; -webkit-box-shadow: 0 2px 3px rgba(0,0,0,0.45); box-shadow: 0 2px 3px rgba(0,0,0,0.45); background: #555; }
.icon img { display: block; width: 57px; height: 57px; }
.icon i {
  position: absolute; left: 0; top: 0; width: 100%; height: 50%;
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(rgba(255,255,255,0.45)), to(rgba(255,255,255,0.08)));
  background-image: linear-gradient(rgba(255,255,255,0.45), rgba(255,255,255,0.08));
  -webkit-border-radius: 12px 12px 50% 50% / 12px 12px 10px 10px; border-radius: 12px 12px 50% 50% / 12px 12px 10px 10px;
}
.icon b { display: block; line-height: 57px; text-align: center; font-size: 30px; color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,0.4); }
.icon--app { background: #2a7fd4; background-image: -webkit-linear-gradient(top, #59a8f0, #1a5fae); background-image: linear-gradient(#59a8f0, #1a5fae); }
.icon--tweak { background: #e08a1c; background-image: -webkit-linear-gradient(top, #f6b54f, #c0650c); background-image: linear-gradient(#f6b54f, #c0650c); }
.icon--theme { background: #8a46c8; background-image: -webkit-linear-gradient(top, #b67ae8, #5d2a9c); background-image: linear-gradient(#b67ae8, #5d2a9c); }
.icon--util { background: #4b5a63; background-image: -webkit-linear-gradient(top, #7f8f99, #2e3a41); background-image: linear-gradient(#7f8f99, #2e3a41); }
.icon--big { width: 72px; height: 72px; -webkit-border-radius: 16px; border-radius: 16px; }
.icon--big img { width: 72px; height: 72px; }
.icon--big b { line-height: 72px; font-size: 38px; }

/* Nhãn hình thức */
.tag {
  display: inline-block; padding: 1px 10px; font-size: 13px; font-weight: bold; color: #fff;
  -webkit-border-radius: 9px; border-radius: 9px; text-shadow: 0 -1px 0 rgba(0,0,0,0.35);
  background: #56626a;
  -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.35); box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}
.tag--free { background: #56626a; background-image: -webkit-linear-gradient(top, #7d8a92, #48545b); background-image: linear-gradient(#7d8a92, #48545b); }
.tag--deep { background: #d8741a; background-image: -webkit-linear-gradient(top, #f6a24a, #c35f0c); background-image: linear-gradient(#f6a24a, #c35f0c); }
.tag--assist { background: #3a9a2a; background-image: -webkit-linear-gradient(top, #7ad25a, #2f8420); background-image: linear-gradient(#7ad25a, #2f8420); }

/* Nút bóng aqua: nửa trên sáng, nửa dưới đậm. */
.btn {
  display: inline-block; padding: 6px 15px; font-size: 15px; font-weight: bold; color: #fff; white-space: nowrap;
  text-shadow: 0 -1px 0 rgba(0,0,0,0.35);
  border: 1px solid #1d5f9f; -webkit-border-radius: 16px; border-radius: 16px;
  background: #2f86d6;
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#8ccaf7), color-stop(0.5, #3f97e2), color-stop(0.51, #2479cc), to(#3a95e4));
  background-image: linear-gradient(#8ccaf7, #3f97e2 50%, #2479cc 51%, #3a95e4);
  -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), 0 2px 3px rgba(0,0,0,0.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), 0 2px 3px rgba(0,0,0,0.3);
}
.btn:active { background: #1f6fbd; background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#5aa6e6), color-stop(0.5, #2b80cf), color-stop(0.51, #1a65b3), to(#2a7fcc)); background-image: linear-gradient(#5aa6e6, #2b80cf 50%, #1a65b3 51%, #2a7fcc); }
.btn--ask {
  border-color: #3d7f12;
  background: #59b62a;
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#b9ee7d), color-stop(0.5, #6fc93a), color-stop(0.51, #4fae1f), to(#68c534));
  background-image: linear-gradient(#b9ee7d, #6fc93a 50%, #4fae1f 51%, #68c534);
}
.btn--alt {
  color: #1f3340; text-shadow: 0 1px 0 rgba(255,255,255,0.8); border-color: #7d8b92;
  background: #dfe5e8;
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), color-stop(0.5, #eef2f3), color-stop(0.51, #dce3e6), to(#cdd6da));
  background-image: linear-gradient(#ffffff, #eef2f3 50%, #dce3e6 51%, #cdd6da);
}
a.btn--alt { color: #1f3340; }
html.dark a.btn--alt { color: #e3ecf0; text-shadow: 0 -1px 0 #000; border-color: #05080a; background: #3a4550; background-image: -webkit-linear-gradient(top, #56636f, #2c353e); background-image: linear-gradient(#56636f, #2c353e); }
.btn--big { display: block; padding: 11px 16px; font-size: 19px; text-align: center; -webkit-border-radius: 24px; border-radius: 24px; }

.empty { padding: 30px 10px; text-align: center; color: #3f525b; font-size: 16px; text-shadow: 0 1px 0 rgba(255,255,255,0.6); }

/* ---------- Trang mô tả gói (cũng mở trong Cydia, rộng 320 px) ---------- */
.dep__head { position: relative; margin: 18px 0 14px; padding-left: 88px; min-height: 74px; }
.dep__head .icon { position: absolute; left: 0; top: 0; }
.dep__head h1 { margin: 2px 0 2px; font-size: 23px; line-height: 1.2; text-shadow: 0 1px 0 rgba(255,255,255,0.75); }
.dep__sub { margin: 0 0 4px; color: #3f525b; font-size: 14px; }
.dep__act { margin-bottom: 14px; }
.dep__act .btn { margin-bottom: 9px; }
.dep__deb { display: inline-block; padding: 6px 10px; font-size: 15px; }
.dep__act { text-align: center; }
.group-title { margin: 18px 10px 6px; font-size: 16px; color: #3c4f59; text-shadow: 0 1px 0 rgba(255,255,255,0.85); }
.group {
  margin: 0; padding: 2px 12px; width: 100%; -webkit-box-sizing: border-box; box-sizing: border-box;
  border: 1px solid #a3b3ba; -webkit-border-radius: 10px; border-radius: 10px; background: #fff;
  -webkit-box-shadow: 0 1px 0 rgba(255,255,255,0.85); box-shadow: 0 1px 0 rgba(255,255,255,0.85);
  border-collapse: separate; border-spacing: 0;
}
.group p { margin: 10px 0; }
.info th, .info td { padding: 11px 0; border-bottom: 1px solid #e0e6e9; font-size: 15px; vertical-align: top; }
.info tr:last-child th, .info tr:last-child td { border-bottom: 0; }
.info th { text-align: left; font-weight: bold; width: 40%; color: #22313a; }
.info td { text-align: right; color: #3f6e9a; word-break: break-all; }
.shots { margin: 14px -12px 0; padding: 0 12px; white-space: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.shots img { height: 300px; margin-right: 8px; -webkit-border-radius: 8px; border-radius: 8px; border: 1px solid #8a979d; }
/* Trong Cydia: bỏ thanh trên, nút tải (Cydia có nút Cài sẵn); nền sọc xám như bảng nhóm iOS. */
.in-cydia .dep__web { display: none; }
html.light .in-cydia, .in-cydia { background: #c5ccd4; }

/* ---------- Chân trang ---------- */
.foot {
  margin-top: 30px; padding: 16px 0 24px; text-align: center; font-size: 13px; color: #3f525b; text-shadow: 0 1px 0 rgba(255,255,255,0.65);
  border-top: 1px solid #93a7b0; -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.5); box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}
.foot p { margin: 4px 0; }
.foot__links a { display: inline-block; padding: 4px 2px; }
.foot__copy { color: #5b6c74; }
.foot__soc a { display: inline-block; padding: 4px 2px; font-weight: bold; }
/* Màu từng kênh (chữ). */
.soc--facebook { color: #1877f2; } .soc--youtube { color: #e00030; } .soc--zalo { color: #0068ff; }
.soc--instagram { color: #d62e6a; } .soc--telegram { color: #1f8fc4; }
html.dark .soc--facebook { color: #6aa9ff; } html.dark .soc--youtube { color: #ff4d6a; } html.dark .soc--zalo { color: #5c9dff; }
html.dark .soc--instagram { color: #f06292; } html.dark .soc--telegram { color: #5bc0ef; }

/* ---------- Màn vừa ---------- */
@media (max-width: 1100px) {
  .top__row--search { padding-right: 140px; }
  .top__search { position: relative; right: auto; top: auto; width: auto; margin: 10px -140px 0 0; }
  .nav a { font-size: 16px; }
}
@media (max-width: 1000px) { .cell { width: 33.333%; } }
@media (max-width: 760px) { .cell { width: 50%; } .top__host { display: none; } }

/* ---------- iPhone (320 dọc, 480 ngang) ---------- */
@media (max-width: 600px) {
  body { font-size: 15px; }
  .wrap { padding: 0 8px; }
  .top { border-top-width: 5px; }
  .top__row, .top__row--search { padding: 8px 96px 6px 0; min-height: 30px; }
  .logo__text { font-size: 21px; }
  .logo__icon { width: 26px; height: 26px; -webkit-border-radius: 6px; border-radius: 6px; }
  .sw { top: 10px; font-size: 13px; }
  .sw__txt { margin-right: 4px; }
  .sw__track { width: 58px; height: 25px; }
  .sw__on, .sw__off { height: 25px; line-height: 25px; font-size: 11px; }
  .sw__on { padding-left: 7px; }
  .sw__off { padding-right: 7px; }
  .sw__knob { width: 25px; height: 25px; }
  .top__row--search .top__search { margin: 8px -96px 0 0; }
  .search { padding: 6px 12px 6px 30px; }
  .top__search:before { top: 8px; }
  .top__search:after { top: 20px; }

  /* Thanh mục 2 hàng × 3 ô. */
  .nav, .nav tbody, .nav tr { display: block; }
  .nav { margin-bottom: 8px; -webkit-border-radius: 8px; border-radius: 8px; }
  .nav tr { font-size: 0; }
  .nav td { display: inline-block; width: 33.333%; padding: 2px; -webkit-box-sizing: border-box; box-sizing: border-box; }
  .nav td:nth-child(3n+1) { border-left: 0; -webkit-box-shadow: none; box-shadow: none; }
  .nav td:nth-child(n+4) { border-top: 1px solid rgba(80,95,102,0.3); }
  .nav a { padding: 6px 2px; font-size: 14px; -webkit-border-radius: 6px; border-radius: 6px; }

  .source { margin-top: 10px; padding: 10px; -webkit-box-shadow: inset 0 1px 0 #fff, 0 1px 3px rgba(0,0,0,0.25); box-shadow: inset 0 1px 0 #fff, 0 1px 3px rgba(0,0,0,0.25); }
  .source__row { padding-right: 0; min-height: 0; }
  .source__row .btn { position: static; width: auto; margin-top: 10px; }
  .source__alt { margin-top: 10px; }
  .mgr { padding: 6px 12px; margin: 0 3px 6px 0; }
  .js .steps-toggle { display: block; margin: 2px 0 0; padding: 8px 0 2px; font-size: 15px; font-weight: bold; border-top: 1px solid #c3d5dc; }
  .js .steps-toggle:after { content: ' ▸'; }
  .js .steps-toggle.open:after { content: ' ▾'; }
  .js .steps { display: none; }
  .js .steps.open { display: block; }

  /* Bộ lọc: một hàng cuộn ngang. */
  .tools { margin: 12px -8px 0; }
  .pills { white-space: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 4px 8px 6px; text-align: left; }
  .pill { margin: 0 2px; padding: 6px 14px; font-size: 15px; -webkit-box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0,0,0,0.3); box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0,0,0,0.3); }
  .h { margin: 10px 2px 6px; font-size: 18px; }

  /* Danh sách gói kiểu App Store iOS 6: một khối bo góc, mỗi gói một hàng. */
  .grid {
    margin: 0; overflow: hidden;
    border: 1px solid #8fa7b1; -webkit-border-radius: 10px; border-radius: 10px; background: #f4f8fa;
    -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.25); box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  }
  .cell { display: block; width: auto; padding: 0; }
  .card {
    padding: 9px 9px 9px 10px; border: 0; border-top: 1px solid #fff; border-bottom: 1px solid #c9d6dc;
    -webkit-border-radius: 0; border-radius: 0; -webkit-box-shadow: none; box-shadow: none;
    background: #eef4f7;
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fbfdfe), to(#e7eff3));
    background-image: linear-gradient(#fbfdfe, #e7eff3);
  }
  .card__main { min-height: 57px; padding: 0 78px 0 67px; }
  .card__name { font-size: 16px; padding-top: 3px; }
  .card__line { font-size: 13px; }
  .card__foot { position: absolute; right: 9px; top: 50%; margin: -16px 0 0; }
  .card__foot .tag, .card__foot .btn__more { display: none; }
  .card__foot .btn { min-width: 44px; padding: 6px 12px; font-size: 14px; text-align: center; -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), 0 1px 2px rgba(0,0,0,0.3); box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), 0 1px 2px rgba(0,0,0,0.3); }
  .card__foot .js-note { position: absolute; right: 0; top: 36px; width: 240px; }

  .dep__head { margin: 14px 0 12px; padding-left: 84px; }
  .dep__head h1 { font-size: 21px; }
  .btn--big { padding: 10px 14px; font-size: 18px; }
  .group-title { margin: 16px 8px 6px; font-size: 15px; }
  .info th, .info td { font-size: 14px; }
  .foot { margin-top: 20px; }
}
@media (max-width: 360px) {
  .logo__text { font-size: 19px; }
  .logo__icon { display: none; }
}

/* ---------- Tối (old_2.x) ---------- */
html.dark { background: #1a2127 url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAAGklEQVR42mP4//8/BwgzoANsgjgVYkhQJggAsB4kPW6KxWwAAAAASUVORK5CYII=); }
html.dark body { color: #e3ecf0; }
html.dark a { color: #5cc8f5; }
html.dark a.btn { color: #fff; }
html.dark .top {
  border-top-color: #2fe0ec; border-bottom-color: #05080a;
  background: #222b33;
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#3d4955), color-stop(0.45, #2b343d), color-stop(0.46, #222a31), to(#1a2127));
  background-image: linear-gradient(#3d4955, #2b343d 45%, #222a31 46%, #1a2127);
  -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 2px 6px rgba(0,0,0,0.6); box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 2px 6px rgba(0,0,0,0.6);
}
html.dark .top__host { color: #9fb0ba; text-shadow: none; font-family: Menlo, Consolas, monospace; }
html.dark .sw { color: #dfe8ec; text-shadow: 0 -1px 0 #000; }
html.dark .sw__track { border-color: #05080a; -webkit-box-shadow: 0 1px 0 rgba(255,255,255,0.1); box-shadow: 0 1px 0 rgba(255,255,255,0.1); }
html.dark .search { color: #e3ecf0; border-color: #05080a; background: #12171b; -webkit-box-shadow: inset 0 2px 3px #000, 0 1px 0 rgba(255,255,255,0.1); box-shadow: inset 0 2px 3px #000, 0 1px 0 rgba(255,255,255,0.1); }
html.dark .top__search:before { border-color: #7f8f99; }
html.dark .top__search:after { background: #7f8f99; }
html.dark .nav { border-color: #05080a; background: #161c21; background-image: none; -webkit-box-shadow: inset 0 1px 3px #000, 0 1px 0 rgba(255,255,255,0.08); box-shadow: inset 0 1px 3px #000, 0 1px 0 rgba(255,255,255,0.08); }
html.dark .nav td { border-color: rgba(255,255,255,0.08); -webkit-box-shadow: none; box-shadow: none; }
html.dark .nav a { color: #dfe8ec; text-shadow: 0 -1px 0 #000; }
html.dark .nav a.on { color: #fff; background: #1aa8e0; background-image: -webkit-linear-gradient(top, #5fd8f8, #0f86c4); background-image: linear-gradient(#5fd8f8, #0f86c4); -webkit-box-shadow: 0 0 8px rgba(47,200,240,0.8), inset 0 1px 0 rgba(255,255,255,0.4); box-shadow: 0 0 8px rgba(47,200,240,0.8), inset 0 1px 0 rgba(255,255,255,0.4); }
html.dark .source, html.dark .card { border-color: #46535e; background: #252e36; background-image: -webkit-linear-gradient(top, #303a44, #1f272e); background-image: linear-gradient(#303a44, #1f272e); -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 3px 6px rgba(0,0,0,0.5); box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 3px 6px rgba(0,0,0,0.5); }
html.dark .source__text b, html.dark .card__name { text-shadow: 0 -1px 0 #000; }
html.dark .source__url { color: #5cc8f5; border-color: #05080a; background: #12171b; }
html.dark .mgr { color: #e3ecf0; text-shadow: 0 -1px 0 #000; border-color: #05080a; background: #3a4550; background-image: -webkit-linear-gradient(top, #56636f, #2c353e); background-image: linear-gradient(#56636f, #2c353e); }
html.dark .steps-toggle { border-top-color: #3a4651; }
html.dark .js-note { border-color: #6b5a1c; background: #2f2a14; color: #f0e2a8; }
html.dark .pill { color: #e3ecf0; text-shadow: 0 -1px 0 #000; border-color: #05080a; background: #3a4550; background-image: -webkit-linear-gradient(top, #56636f, #2c353e); background-image: linear-gradient(#56636f, #2c353e); -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 2px 3px #000; box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 2px 3px #000; }
html.dark .pill.on { background: #1aa8e0; background-image: -webkit-linear-gradient(top, #5fd8f8, #0f86c4); background-image: linear-gradient(#5fd8f8, #0f86c4); -webkit-box-shadow: 0 0 8px rgba(47,200,240,0.8), inset 0 1px 0 rgba(255,255,255,0.4); box-shadow: 0 0 8px rgba(47,200,240,0.8), inset 0 1px 0 rgba(255,255,255,0.4); }
html.dark .pill.on2 { color: #062a30; text-shadow: 0 1px 0 rgba(255,255,255,0.4); background: #2fd0dc; background-image: -webkit-linear-gradient(top, #8ff2f8, #1fb7c4); background-image: linear-gradient(#8ff2f8, #1fb7c4); }
html.dark .h, html.dark .dep__head h1 { text-shadow: 0 -1px 0 #000; }
html.dark .h span, html.dark .card__line, html.dark .dep__sub, html.dark .dep__note, html.dark .empty, html.dark .foot, html.dark .foot__copy { color: #9fb0ba; text-shadow: none; }
html.dark .card__main { color: #e3ecf0; }
html.dark .btn { border-color: #0e5f8a; background: #1aa0d8; background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#7fe0fb), color-stop(0.5, #27b0e6), color-stop(0.51, #0f8fcb), to(#1ea6dc)); background-image: linear-gradient(#7fe0fb, #27b0e6 50%, #0f8fcb 51%, #1ea6dc); }
html.dark .btn--ask { border-color: #3f7a0e; background: #6cc22a; background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#d4f58e), color-stop(0.5, #8fd43a), color-stop(0.51, #64b81c), to(#7dcc2c)); background-image: linear-gradient(#d4f58e, #8fd43a 50%, #64b81c 51%, #7dcc2c); }
html.dark .group-title { color: #9fb0ba; text-shadow: none; }
html.dark .group { border-color: #3a4651; background: #222a31; -webkit-box-shadow: none; box-shadow: none; }
html.dark .info th { color: #e3ecf0; }
html.dark .info td { color: #9fb0ba; }
html.dark .info th, html.dark .info td { border-bottom-color: #33404a; }
html.dark .foot { border-top-color: #33404a; -webkit-box-shadow: none; box-shadow: none; }
@media (max-width: 600px) {
  html.dark .grid { border-color: #05080a; background: #1f272e; -webkit-box-shadow: 0 1px 3px #000; box-shadow: 0 1px 3px #000; }
  html.dark .card { border-top-color: rgba(255,255,255,0.06); border-bottom-color: #10161a; background: #252e36; background-image: -webkit-linear-gradient(top, #2c363f, #222a31); background-image: linear-gradient(#2c363f, #222a31); -webkit-box-shadow: none; box-shadow: none; }
  html.dark .source { -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 1px 3px #000; box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 1px 3px #000; }
}
