@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Noto+Nastaliq+Urdu:wght@400;500;600;700&display=swap');
:root{--navy:#101a2d;--teal:#17b89a;--mint:#dff8f1;--ink:#182235;--muted:#718096;--line:#e6ebf1;--paper:#f7f9fc;--warn:#956b24;--warnbg:#fff8e8}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:"Noto Nastaliq Urdu",serif;line-height:2}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit}
.skip-link{position:absolute;right:-9999px;background:var(--teal);color:#062a28;padding:8px 14px;border-radius:8px;z-index:99}
.skip-link:focus{right:12px;top:12px}
.topbar{min-height:82px;padding:12px max(5vw,20px);display:flex;align-items:center;justify-content:space-between;gap:20px;background:#fff;border-bottom:1px solid var(--line);direction:rtl;position:sticky;top:0;z-index:50}
.brand{display:flex;align-items:center;gap:11px;font:800 19px "DM Sans",sans-serif;direction:ltr;line-height:1.25}
.brand small{display:block;font:11px "Noto Nastaliq Urdu",serif;color:var(--muted);text-align:right}
.brand-mark{width:40px;height:40px;display:grid;place-items:center;background:var(--teal);color:#062a28;border-radius:12px;font-size:23px}
.brand-accent{color:var(--teal)}
.nav{display:flex;gap:22px;font-size:13px;color:#596579}
.nav a:hover,footer a:hover{color:var(--teal)}
.tools{display:flex;align-items:center;gap:8px;font-size:12px}
.tools select,.lang-btn{border:1px solid var(--line);background:#fff;border-radius:9px;padding:7px 10px;color:var(--ink);font-family:inherit;font-size:12px}
.lang-btn{cursor:pointer}
.hero{background:radial-gradient(ellipse at 75% 35%,#263f58 0%,transparent 40%),linear-gradient(115deg,#101a2d,#172d43);color:#fff;min-height:485px;padding:60px max(9vw,24px);display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:50px;direction:ltr;overflow:hidden}
.hero-copy{direction:rtl;text-align:right;max-width:600px}
.eyebrow{color:var(--teal);font-size:12px;font-weight:700}
.eyebrow i{display:inline-block;width:7px;height:7px;background:var(--teal);border-radius:50%;margin-left:6px}
.hero h1{font-size:clamp(34px,5vw,54px);line-height:1.7;margin:14px 0 10px}
.hero h1 em{font-style:normal;color:#4be0c0}
.hero-copy>p{color:#c2cfdd;font-size:15px;max-width:520px;line-height:2.2}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:14px}
.primary-btn{display:inline-flex;align-items:center;justify-content:center;gap:14px;background:var(--teal);color:#062a28;border:0;border-radius:11px;padding:11px 23px;font-weight:700;font-size:14px;cursor:pointer;transition:.2s}
.primary-btn:hover{background:#43d9bc;transform:translateY(-1px)}
.primary-btn span{font-size:20px}
.ghost-btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid #4be0c060;color:#fff;border-radius:11px;padding:11px 22px;font-size:14px;font-weight:700}
.ghost-btn:hover{background:#ffffff14}
.trust-line{font-size:11px;color:#b6c5d4;margin-top:17px}
.trust-line span{color:#4be0c0}
.hero-stats{display:flex;gap:26px;margin-top:18px}
.hero-stats div{background:#ffffff10;border:1px solid #ffffff18;border-radius:12px;padding:8px 18px;text-align:center}
.hero-stats b{display:block;font:800 18px "DM Sans",sans-serif}
.hero-stats small{font-size:11px;color:#b6c5d4}
.hero-art{height:330px;position:relative;direction:ltr}
.glow{position:absolute;width:270px;height:270px;background:#12b89b30;filter:blur(40px);border-radius:50%;top:20px;left:50px}
.phone{position:absolute;border:5px solid #718296;border-radius:35px;background:#0b1423;box-shadow:0 28px 70px #0008}
.phone-back{width:145px;height:270px;top:37px;left:65px;transform:rotate(-13deg);background:linear-gradient(140deg,#40556d,#111d30)}
.phone-front{width:160px;height:300px;top:12px;left:170px;transform:rotate(9deg);padding:8px}
.screen{height:100%;border-radius:25px;background:linear-gradient(160deg,#163a48,#0c182b);position:relative;overflow:hidden}
.screen-camera{position:absolute;top:9px;left:62px;width:24px;height:6px;background:#07101c;border-radius:8px}
.screen-wave{position:absolute;width:190px;height:190px;border:1px solid #45d8bc80;border-radius:42%;top:85px;left:-25px;transform:rotate(35deg);box-shadow:0 0 0 20px #45d8bc10,0 0 0 40px #45d8bc08}
.screen-dot{position:absolute;width:80px;height:80px;border-radius:50%;background:radial-gradient(circle,#4be0c0,#147e78 65%,transparent 67%);top:110px;left:35px}
.float-tag{position:absolute;background:#fff;color:var(--ink);border-radius:12px;padding:8px 13px;box-shadow:0 12px 30px #0003;font-size:11px}
.tag-top{top:40px;right:5px}
.tag-top b{display:block;color:var(--teal)}
.tag-bottom{bottom:28px;left:40px}
.tag-bottom span{color:var(--teal)}
.section{padding:64px max(8vw,22px)}
.section-heading{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:24px;flex-wrap:wrap}
.section-heading h2{font-size:27px;margin:5px 0 0;line-height:1.8}
.section-heading p{margin:0;color:var(--muted);font-size:13px;max-width:620px}
.search-section,.catalogue,.faq-section{background:#fff}
.search-tabs{display:flex;gap:7px;border-bottom:1px solid var(--line);max-width:900px}
.tab{padding:11px 20px;background:transparent;border:0;border-bottom:3px solid transparent;color:var(--muted);cursor:pointer;font-size:13px}
.tab.active{color:var(--teal);border-color:var(--teal);font-weight:700}
.search-panel{max-width:900px;background:#f8fafc;border:1px solid var(--line);border-radius:0 0 16px 16px;padding:25px;position:relative}
.tab-panel label{display:block;font-size:13px;font-weight:700;margin-bottom:8px}
.search-row{display:flex;gap:9px}
.search-row input,.search-row select{flex:1;min-width:0;border:1px solid #dce3eb;border-radius:10px;background:#fff;padding:10px 14px;outline:none;font-size:13px;direction:ltr;text-align:left;font-family:"DM Sans",sans-serif}
.search-row input:focus,.search-row select:focus{border-color:var(--teal);box-shadow:0 0 0 3px #17b89a18}
.hint{font-size:11px;color:var(--muted);margin:7px 0 0}
.hint.warning{color:var(--warn)}
.hint code{background:#eef3f7;padding:1px 6px;border-radius:6px}
.result-note{font-size:12px;color:#65758a;background:#eef3f7;border-radius:9px;padding:11px 14px;margin-top:18px}
.suggest-list{position:absolute;z-index:20;background:#fff;border:1px solid var(--line);border-radius:12px;margin-top:8px;max-width:560px;width:calc(100% - 50px);box-shadow:0 18px 40px #0e2a3a18;overflow:hidden}
.suggest-item{display:flex;justify-content:space-between;align-items:center;width:100%;text-align:right;background:#fff;border:0;border-bottom:1px solid #f0f3f6;padding:10px 14px;cursor:pointer;font-size:13px}
.suggest-item:hover{background:var(--mint)}
.suggest-item small{color:var(--muted);font-family:"DM Sans",sans-serif}
.feature-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;padding:32px max(8vw,22px);background:#f0f6f7}
.feature-strip article{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid #e6efed;padding:17px;border-radius:13px}
.feature-icon{width:43px;height:43px;display:grid;place-items:center;border-radius:12px;background:var(--mint);color:#087f6d;font-size:23px;flex-shrink:0}
.feature-strip h3,.how-grid h3{font-size:14px;margin:0}
.feature-strip p{font-size:11px;color:var(--muted);margin:0}
.catalogue-tools input{border:1px solid var(--line);border-radius:10px;padding:10px 14px;min-width:240px;font-size:13px;font-family:"DM Sans",sans-serif;direction:ltr;text-align:left}
.brand-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-bottom:6px}
.brand-card{display:flex;flex-direction:column;align-items:center;gap:3px;background:#fff;border:1px solid var(--line);border-radius:13px;padding:16px 8px;cursor:pointer;transition:.2s;color:var(--ink)}
.brand-card:hover{border-color:var(--teal);transform:translateY(-3px);box-shadow:0 10px 25px #0e5a4810}
.brand-card.active{border-color:var(--teal);background:var(--mint)}
.brand-symbol{width:42px;height:42px;border-radius:13px;background:#e8f1ff;color:#2464c5;display:grid;place-items:center;font:800 23px "DM Sans",sans-serif}
.brand-symbol.apple{background:#edf0f3;color:#111}
.brand-symbol.xiaomi{background:#fff0e5;color:#ed741a;font-size:15px}
.brand-symbol.oppo{background:#e7f8ed;color:#15954a}
.brand-symbol.vivo{background:#e8f0ff;color:#2762c4}
.brand-symbol.infinix{background:#edf0ff;color:#4e54b6}
.brand-symbol.tecno{background:#e6f5ff;color:#1277b4}
.brand-symbol.realme{background:#fff8d8;color:#9b8100}
.brand-symbol.oneplus{background:#ffe8e8;color:#c53a3a;font-size:18px}
.brand-card b{font:700 13px "DM Sans",sans-serif}
.brand-card small{font-size:10px;color:var(--muted)}
.phone-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:18px}
.phone-card{background:#fbfdff;border:1px solid var(--line);border-radius:14px;padding:16px;cursor:pointer;transition:.2s;text-align:right}
.phone-card:hover{border-color:var(--teal);transform:translateY(-2px);box-shadow:0 12px 28px #0e2a3a12}
.phone-card h3{margin:0 0 2px;font:700 15px "DM Sans",sans-serif;direction:ltr;text-align:left}
.phone-card .urdu-name{font-size:12px;color:var(--muted);margin:0}
.phone-card .meta{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0;font-size:11px}
.phone-card .meta span{background:#eef3f7;border-radius:20px;padding:3px 10px;color:#4b5b70}
.phone-card .spec-line{font-size:11px;color:var(--muted);margin:0;direction:ltr;text-align:left;font-family:"DM Sans",sans-serif}
.phone-card .card-btn{margin-top:10px;width:100%;border:1px solid var(--teal);background:#fff;color:#087f6d;border-radius:9px;padding:8px;cursor:pointer;font-size:12px;font-weight:700}
.phone-card .card-btn:hover{background:var(--mint)}
.calc-section{background:linear-gradient(180deg,#f3f7fa,#eef6f3)}
.calc-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}
.calc-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.form-field{margin-bottom:12px}
.form-field label{display:block;font-size:12px;font-weight:700;margin-bottom:6px}
.form-field input,.form-field select{width:100%;border:1px solid #dce3eb;border-radius:10px;padding:10px 12px;font-size:13px;background:#fff;outline:none}
.form-field input:focus,.form-field select:focus{border-color:var(--teal);box-shadow:0 0 0 3px #17b89a18}
.check-group{border:1px dashed var(--line);border-radius:12px;padding:12px 14px;margin:8px 0 14px;display:grid;grid-template-columns:1fr 1fr;gap:6px 12px}
.check-group legend{font-size:12px;font-weight:700;padding:0 8px}
.check-group label{font-size:12px;display:flex;gap:8px;align-items:center;background:#f8fafc;border-radius:8px;padding:6px 9px;cursor:pointer}
.calc-btn{width:100%}
.calc-result{background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px;min-height:380px}
.empty-result{text-align:center;color:var(--muted);padding:60px 10px}
.empty-icon{display:inline-grid;place-items:center;width:60px;height:60px;border-radius:18px;background:var(--mint);color:#087f6d;font-size:28px;margin-bottom:10px}
.result-hero{background:var(--navy);color:#fff;border-radius:14px;padding:18px;margin-bottom:14px}
.result-hero small{color:#9fb3c8;font-size:11px}
.result-hero h3{margin:4px 0;font-size:22px;font-family:"DM Sans",sans-serif;direction:ltr;text-align:left}
.result-hero h3 small{font-size:13px;color:#4be0c0}
.result-rows{display:grid;gap:8px;margin:12px 0}
.result-rows div{display:flex;justify-content:space-between;background:#f8fafc;border:1px solid var(--line);border-radius:10px;padding:8px 12px;font-size:12px}
.result-rows b{font-family:"DM Sans",sans-serif}
.factor-list{margin:10px 0;padding-right:18px;font-size:12px;color:#4b5b70}
.factor-list li{margin-bottom:4px}
.conf-badge{display:inline-block;font-size:11px;border-radius:20px;padding:3px 12px;background:#fff3d6;color:#7a5b12;border:1px solid #f0dfae}
.how-section{padding:70px max(8vw,22px);background:#f3f7fa}
.how-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.how-grid>div{background:#fff;border:1px solid var(--line);border-radius:14px;padding:22px}
.how-grid>div>span{font:700 12px "DM Sans",sans-serif;color:var(--teal)}
.how-grid h3{margin:8px 0}
.how-grid p{font-size:12px;color:var(--muted);margin:0}
.method-box{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px 22px;margin-top:18px}
.method-box h3{margin:0 0 8px;font-size:15px}
.method-box ol{margin:0;padding-right:20px;font-size:12px;color:#3d4c61}
.method-box li{margin-bottom:5px}
.disclaimer{font-size:11px;color:#806a3c;background:var(--warnbg);border:1px solid #f4e5be;padding:12px 15px;border-radius:10px;margin-top:20px}
.faq-list{display:grid;gap:10px;max-width:860px}
.faq-list details{background:#f8fafc;border:1px solid var(--line);border-radius:12px;padding:14px 18px}
.faq-list summary{cursor:pointer;font-weight:700;font-size:14px}
.faq-list p{font-size:13px;color:#4b5b70;margin:8px 0 0}
.modal{position:fixed;inset:0;background:#0b142399;display:grid;place-items:center;padding:18px;z-index:100}
.modal-card{background:#fff;border-radius:18px;max-width:560px;width:100%;padding:26px;position:relative;max-height:88vh;overflow:auto}
.modal-close{position:absolute;top:12px;left:12px;border:0;background:#eef3f7;width:34px;height:34px;border-radius:50%;cursor:pointer;font-size:20px;line-height:1}
.modal-card h3{margin:0;font-family:"DM Sans",sans-serif;direction:ltr;text-align:left}
.modal-meta{font-size:12px;color:var(--muted);margin:4px 0 12px}
.spec-table{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.spec-table div{background:#f8fafc;border:1px solid var(--line);border-radius:10px;padding:8px 12px;font-size:12px}
.spec-table small{display:block;color:var(--muted);font-size:10px}
.spec-table b{font-family:"DM Sans",sans-serif}
.modal-actions{margin-top:14px}
footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px max(5vw,20px);background:#101a2d;color:#c3cfdb;font-size:11px}
footer>div{display:flex;gap:18px}
.footer-brand{color:#fff;font-size:16px}
footer p{margin:0}
.static-page{max-width:820px;margin:0 auto}
.static-page h1{font-size:30px;line-height:1.9;margin:10px 0}
.static-page h2{font-size:18px;margin:26px 0 6px}
.static-page p{font-size:14px;color:#3d4c61}
@media(max-width:1020px){.phone-grid{grid-template-columns:repeat(2,1fr)}.calc-grid{grid-template-columns:1fr}.brand-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:850px){.nav{display:none}.hero{padding:48px 7vw;gap:10px}.hero-art{transform:scale(.85);transform-origin:center}.section{padding:55px 6vw}}
@media(max-width:600px){
.topbar{padding:10px 15px;min-height:70px}.brand{font-size:16px}.brand-mark{width:35px;height:35px}
.tools{gap:5px}.country-label{display:none}.tools select,.lang-btn{font-size:10px;padding:6px}
.hero{grid-template-columns:1fr;padding:42px 22px 25px;min-height:auto}.hero h1{font-size:37px}.hero-copy>p{font-size:13px}
.hero-art{height:250px;transform:scale(.76);transform-origin:top center;margin:0 auto -45px;width:100%;max-width:390px}
.hero-stats{gap:10px}.section{padding:46px 18px}.section-heading h2{font-size:22px}.section-heading p{font-size:11px}
.search-tabs{gap:0;justify-content:space-between}.tab{padding:9px 8px;font-size:11px}.search-panel{padding:16px}
.search-row{flex-direction:column}.search-row .primary-btn{width:100%}
.feature-strip{grid-template-columns:1fr;padding:22px 18px}.feature-strip article{padding:13px}
.brand-grid{grid-template-columns:repeat(3,1fr);gap:8px}.phone-grid{grid-template-columns:1fr;gap:10px}
.form-row{grid-template-columns:1fr}.check-group{grid-template-columns:1fr}.spec-table{grid-template-columns:1fr}
.how-section{padding:46px 18px}.how-grid{grid-template-columns:1fr;gap:10px}.how-grid>div{padding:16px}
footer{flex-wrap:wrap;padding:20px 16px}footer p{order:3;width:100%}
}
/* English layout */
html[lang="en"] body{font-family:"DM Sans",Arial,sans-serif;line-height:1.65}
html[lang="en"] .brand small{text-align:left;font-family:"DM Sans",Arial,sans-serif}
html[lang="en"] .hero-copy{direction:ltr;text-align:left}
html[lang="en"] .eyebrow i{margin-left:0;margin-right:6px}
html[lang="en"] .section-heading,.how-grid>div,.phone-card{text-align:left}
html[lang="en"] .phone-card h3{text-align:left}
html[lang="en"] .search-row input,html[lang="en"] .search-row select{text-align:left}
html[lang="en"] .hint,html[lang="en"] .result-note,html[lang="en"] .disclaimer{text-align:left}
html[lang="en"] .feature-strip article{direction:ltr}
html[lang="en"] .brand-card{font-family:"DM Sans",Arial,sans-serif}
html[lang="en"] footer{direction:ltr}
html[lang="en"] .suggest-item{text-align:left}
html[lang="en"] .factor-list{padding-right:0;padding-left:18px}

/* Keep closed dialogs hidden; .modal uses display:grid and must not override the HTML hidden attribute. */
.modal[hidden]{display:none!important}
