File size: 73,975 Bytes
81ccb26 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>SIMPLILEARN — by Devil Developers</title>
<link rel="icon" type="image/png" href="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS4rV2QL0PdHVm8PZAQbPKvure_YQSl_Et2oKeJMK8U5g&s=10">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap" rel="stylesheet">
<style>
/* ============================================================
SIMPLILEARN — Created by Devil Developers
============================================================ */
*{box-sizing:border-box;margin:0;padding:0}
:root{
--bg:#f6f7fb;
--surface:#ffffff;
--ink:#0b0d17;
--ink-2:#1c2033;
--muted:#697089;
--line:#e7e9f2;
--line-2:#dfe2ee;
--brand:#5b4bff;
--brand-2:#8b6bff;
--cyan:#00b8ff;
--pink:#ff4d9d;
--ok:#0eab7a;
--gold:#ffb020;
--danger:#ef4444;
--shadow-lg:0 40px 90px -45px rgba(20,24,70,.35);
--shadow-md:0 24px 60px -34px rgba(20,24,70,.28);
--shadow-sm:0 8px 24px -12px rgba(20,24,70,.18);
--r-lg:28px;--r-md:20px;--r-sm:14px;
}
html{scroll-behavior:smooth}
body{
background:var(--bg);color:var(--ink);
font-family:'Plus Jakarta Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
-webkit-font-smoothing:antialiased;min-height:100vh;overflow-x:hidden;
}
button,input{font-family:inherit}
button{cursor:pointer}
a{color:inherit}
img{max-width:100%}
.mono{font-family:'JetBrains Mono',monospace}
/* background */
.bg{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
.bg::before{content:'';position:absolute;width:820px;height:820px;border-radius:50%;
background:radial-gradient(circle,rgba(123,97,255,.16),transparent 65%);top:-320px;left:-220px;filter:blur(18px)}
.bg::after{content:'';position:absolute;width:720px;height:720px;border-radius:50%;
background:radial-gradient(circle,rgba(0,184,255,.14),transparent 65%);bottom:-320px;right:-180px;filter:blur(18px)}
.bg .orb{position:absolute;width:560px;height:560px;border-radius:50%;
background:radial-gradient(circle,rgba(255,77,157,.10),transparent 65%);top:36%;left:56%}
.bg .grid{position:absolute;inset:0;
background-image:linear-gradient(rgba(11,13,23,.024) 1px,transparent 1px),
linear-gradient(90deg,rgba(11,13,23,.024) 1px,transparent 1px);
background-size:64px 64px;
-webkit-mask-image:radial-gradient(ellipse at 50% 0%,#000 20%,transparent 72%);
mask-image:radial-gradient(ellipse at 50% 0%,#000 20%,transparent 72%)}
/* topbar */
.topbar{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.78);
-webkit-backdrop-filter:blur(20px) saturate(180%);backdrop-filter:blur(20px) saturate(180%);
border-bottom:1px solid rgba(231,233,242,.9)}
.topbar-in{max-width:1180px;margin:auto;padding:12px 24px;display:flex;align-items:center;
justify-content:space-between;gap:16px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit}
.logo{width:42px;height:42px;border-radius:13px;background:linear-gradient(135deg,#f0f1ff,#e6f7ff);
display:grid;place-items:center;border:1px solid var(--line);overflow:hidden;box-shadow:var(--shadow-sm);flex:0 0 auto}
.logo img{width:30px;height:30px;object-fit:contain}
.brand b{display:block;font-size:15px;letter-spacing:1.8px;font-weight:800;line-height:1.1}
.brand small{display:block;font-size:9px;letter-spacing:1.7px;color:var(--muted);
font-weight:800;text-transform:uppercase;margin-top:2px}
.top-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.top-note{font-size:9.5px;letter-spacing:2px;font-weight:800;color:var(--muted);text-transform:uppercase}
.id-pill{display:inline-flex;align-items:center;gap:8px;padding:8px 13px;border-radius:999px;
background:#fff;border:1px solid var(--line);font-size:11px;font-weight:800;letter-spacing:.4px;
box-shadow:var(--shadow-sm);max-width:240px;overflow:hidden}
.id-pill b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:120px}
.id-pill .dot{width:7px;height:7px;border-radius:50%;background:var(--ok);
box-shadow:0 0 0 3px rgba(14,171,122,.18);flex:0 0 auto}
.id-pill .v{font-size:8px;letter-spacing:1.4px;color:var(--ok);background:#ecfdf5;
border:1px solid #c7f2df;padding:3px 6px;border-radius:999px}
/* layout */
.wrap{max-width:1180px;margin:0 auto;padding:28px 24px 80px}
.eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:10.5px;letter-spacing:2.4px;
font-weight:800;color:var(--brand);text-transform:uppercase}
.eyebrow.danger{color:var(--danger)}
.spark{width:7px;height:7px;border-radius:50%;background:var(--brand);
box-shadow:0 0 0 4px rgba(91,75,255,.15)}
.grad{background:linear-gradient(120deg,#5b4bff,#00b8ff 55%,#ff4d9d);
-webkit-background-clip:text;background-clip:text;color:transparent}
.mut{color:var(--muted)}
/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;
padding:12px 19px;border-radius:14px;border:1px solid transparent;font-size:13.5px;
font-weight:800;letter-spacing:.2px;transition:transform .2s,box-shadow .2s,background .2s;
text-decoration:none;line-height:1;white-space:nowrap}
.btn:disabled{opacity:.6;cursor:not-allowed;transform:none!important}
.btn-primary{background:linear-gradient(135deg,#5b4bff,#8b6bff 48%,#00b8ff);color:#fff;
box-shadow:0 14px 32px -12px rgba(91,75,255,.65)}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 20px 42px -14px rgba(91,75,255,.75)}
.btn-ghost{background:#fff;border-color:var(--line);color:var(--ink);box-shadow:var(--shadow-sm)}
.btn-ghost:hover{background:#f8f9fe;transform:translateY(-2px)}
.btn-soft{background:#f1f2fa;color:var(--ink);border-color:transparent}
.btn-soft:hover{background:#e8eaf7}
.btn-sm{padding:9px 14px;font-size:11.5px;border-radius:11px}
.btn-block{width:100%;justify-content:center}
/* auth */
.auth{display:grid;grid-template-columns:1.06fr .94fr;background:#fff;border:1px solid var(--line);
border-radius:34px;overflow:hidden;box-shadow:var(--shadow-lg);margin:26px 0 10px}
.auth-art{position:relative;padding:48px 46px;background:#0a0b14;color:#fff;overflow:hidden;
display:flex;flex-direction:column;justify-content:space-between;min-height:610px}
.auth-art::before{content:'';position:absolute;width:560px;height:560px;border-radius:50%;
background:radial-gradient(circle,rgba(123,97,255,.62),transparent 65%);top:-200px;left:-160px;filter:blur(28px)}
.auth-art::after{content:'';position:absolute;width:460px;height:460px;border-radius:50%;
background:radial-gradient(circle,rgba(0,184,255,.42),transparent 65%);bottom:-180px;right:-140px;filter:blur(28px)}
.art-grid{position:absolute;inset:0;
background-image:linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),
linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px);
background-size:48px 48px;
-webkit-mask-image:radial-gradient(ellipse at 50% 30%,#000 10%,transparent 76%);
mask-image:radial-gradient(ellipse at 50% 30%,#000 10%,transparent 76%)}
.auth-art > *{position:relative;z-index:2}
.art-brand{display:flex;align-items:center;gap:12px}
.logo.on-dark{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.18);box-shadow:none}
.logo.on-dark img{filter:none}
.art-brand b{display:block;font-size:15px;letter-spacing:2px;font-weight:800}
.art-brand small{display:block;font-size:9px;letter-spacing:1.8px;color:#9aa1c4;font-weight:800;margin-top:2px}
.art-copy{margin:30px 0 24px}
.art-eyebrow{font-size:10px;letter-spacing:3.2px;font-weight:800;color:#b7a8ff}
.art-title{font-size:clamp(34px,3.5vw,48px);line-height:1.04;letter-spacing:-1.8px;
font-weight:800;margin:16px 0 14px}
.art-sub{font-size:13.5px;line-height:1.7;color:#aab0d0;max-width:420px}
.art-features{display:grid;gap:13px;margin-top:24px}
.art-feature{display:flex;gap:11px;align-items:flex-start;font-size:12.5px;line-height:1.55;color:#c6c9dd}
.art-feature i{width:20px;height:20px;border-radius:7px;background:rgba(14,171,122,.16);
border:1px solid rgba(14,171,122,.3);color:#4ade80;display:grid;place-items:center;
font-size:10px;font-style:normal;font-weight:800;flex:0 0 auto}
.art-bottom{display:flex;gap:8px;flex-wrap:wrap}
.art-chip{padding:8px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.15);
background:rgba(255,255,255,.06);font-size:9px;letter-spacing:1.5px;font-weight:800;color:#dfe2ff}
.auth-form{padding:48px 46px;display:flex;flex-direction:column;justify-content:center}
.form-eyebrow{font-size:10px;letter-spacing:2.6px;font-weight:800;color:var(--brand)}
.auth-form h2{font-size:clamp(24px,2.6vw,32px);letter-spacing:-1px;margin:10px 0 8px}
.form-sub{font-size:13px;line-height:1.65;color:var(--muted);margin-bottom:8px}
.field{display:block;margin-top:22px}
.field > span{display:block;font-size:10px;letter-spacing:2px;font-weight:800;color:var(--muted);margin-bottom:9px}
.input-wrap{position:relative}
.input-wrap svg{position:absolute;left:16px;top:50%;transform:translateY(-50%);
width:18px;height:18px;color:var(--muted);pointer-events:none}
.field input{width:100%;padding:16px 16px 16px 48px;border-radius:16px;border:1.5px solid var(--line);
background:#fbfbfe;font-size:15px;font-weight:700;color:var(--ink);outline:none;transition:.2s}
.field input::placeholder{color:#a3a8c0;font-weight:600}
.field input:focus{border-color:var(--brand);background:#fff;
box-shadow:0 0 0 4px rgba(91,75,255,.12)}
#loginForm .btn{margin-top:22px}
.form-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:16px;
font-size:11.5px;color:var(--muted);font-weight:700}
.link-btn{background:none;border:none;color:var(--brand);font-weight:800;font-size:11.5px;padding:0}
.link-btn:hover{text-decoration:underline}
.secure-note{display:flex;align-items:center;gap:8px;margin-top:24px;padding-top:18px;
border-top:1px solid var(--line);font-size:10px;letter-spacing:.6px;color:var(--muted);font-weight:700}
.secure-note svg{width:14px;height:14px;flex:0 0 auto}
/* denied */
.denied{max-width:640px;margin:54px auto;text-align:center;background:#fff;border:1px solid var(--line);
border-radius:32px;padding:48px 38px;box-shadow:var(--shadow-lg)}
.denied-icon{width:84px;height:84px;border-radius:26px;margin:0 auto 22px;display:grid;place-items:center;
background:linear-gradient(135deg,#fff1f0,#fff7ed);border:1px solid #ffe0dc;font-size:34px}
.denied h1{font-size:clamp(24px,3.4vw,34px);line-height:1.15;letter-spacing:-1px;margin:14px 0 12px}
.denied h1 span{color:var(--danger)}
.denied p{font-size:13.5px;line-height:1.7;color:var(--muted)}
.denied p b{color:var(--ink)}
.denied-status{display:inline-flex;align-items:center;gap:8px;margin:18px 0 22px;padding:9px 14px;
border-radius:999px;background:#fff7ed;border:1px solid #ffe0b2;font-size:10px;letter-spacing:1.6px;
font-weight:800;color:#b45309}
.denied .row{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.denied small{display:block;margin-top:20px;font-size:10.5px;color:var(--muted);line-height:1.6}
/* dashboard */
.dash-hero{display:flex;justify-content:space-between;align-items:flex-end;gap:28px;flex-wrap:wrap;
padding:14px 0 8px}
.dash-title{font-size:clamp(34px,4.6vw,56px);line-height:1.03;letter-spacing:-2.2px;
font-weight:800;margin:12px 0 12px}
.dash-sub{max-width:520px;font-size:13.5px;line-height:1.7;color:var(--muted)}
.dash-stats{display:flex;gap:10px;flex-wrap:wrap}
.stat{min-width:104px;padding:16px 18px;border-radius:18px;background:#fff;border:1px solid var(--line);
text-align:center;box-shadow:var(--shadow-sm)}
.stat b{display:block;font-size:23px;font-weight:800;letter-spacing:-1px;line-height:1}
.stat span{display:block;font-size:8.5px;letter-spacing:1.8px;font-weight:800;color:var(--muted);margin-top:6px}
/* continue banner */
.continue{display:flex;align-items:center;gap:18px;background:#fff;border:1px solid var(--line);
border-radius:22px;padding:18px 20px;margin-top:24px;box-shadow:var(--shadow-md);flex-wrap:wrap}
.continue-empty{background:linear-gradient(120deg,#fff,#f8f9ff)}
.continue-info{display:flex;align-items:center;gap:13px;flex:1;min-width:220px}
.continue-icon{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;font-size:23px;
background:var(--c-soft,#f1f2fa);border:1px solid var(--c-line,#e7e9f2);flex:0 0 auto}
.continue-icon.empty{background:#f1f2fa;border-color:var(--line);font-size:20px}
.continue-tag{display:block;font-size:8.5px;letter-spacing:1.8px;font-weight:800;color:var(--brand);margin-bottom:2px}
.continue-info b{display:block;font-size:14.5px;letter-spacing:-.2px}
.continue-info small{display:block;font-size:10.5px;color:var(--muted);font-weight:600;margin-top:2px}
.continue-progress{display:flex;align-items:center;gap:10px;min-width:170px;flex:0 0 auto}
.continue-track{width:120px;height:7px;border-radius:99px;background:#eef0f8;overflow:hidden}
.continue-track i{display:block;height:100%;border-radius:99px;
background:linear-gradient(90deg,#5b4bff,#00b8ff);transition:width .6s}
.continue-progress span{font-size:11px;font-weight:800;color:var(--muted);font-family:'JetBrains Mono',monospace}
/* section head */
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;
margin:38px 0 16px;flex-wrap:wrap}
.section-head h2{font-size:clamp(22px,2.6vw,30px);letter-spacing:-1px;margin-top:6px}
.section-note{font-size:10px;letter-spacing:1.8px;font-weight:800;color:var(--muted);text-transform:uppercase}
/* courses */
.courses{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.course{--c:#5b4bff;--c-soft:rgba(91,75,255,.1);--c-line:rgba(91,75,255,.22);
position:relative;background:#fff;border:1px solid var(--line);border-radius:26px;padding:22px;
cursor:pointer;display:flex;flex-direction:column;min-height:250px;overflow:hidden;
transition:transform .28s cubic-bezier(.2,.8,.2,1),box-shadow .28s,border-color .28s}
.course::before{content:'';position:absolute;width:240px;height:240px;border-radius:50%;
background:radial-gradient(circle,var(--c),transparent 65%);opacity:.07;top:-110px;right:-90px;
transition:opacity .3s;pointer-events:none}
.course:hover{transform:translateY(-6px);box-shadow:0 34px 70px -38px rgba(20,24,70,.4);
border-color:var(--c-line)}
.course:hover::before{opacity:.16}
.course-main{display:flex;flex-direction:column;height:100%;position:relative;z-index:1}
.course-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.course-icon{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;font-size:25px;
background:var(--c-soft);border:1px solid var(--c-line);flex:0 0 auto}
.course-tag{font-size:8.5px;letter-spacing:1.5px;font-weight:800;color:var(--muted);
text-transform:uppercase;text-align:right;padding-top:4px}
.course h3{font-size:19px;letter-spacing:-.5px;line-height:1.2;margin-bottom:7px}
.course p{font-size:12px;line-height:1.6;color:var(--muted);min-height:38px}
.stars{display:flex;align-items:center;gap:6px;margin-top:12px;font-size:15px;color:var(--gold);
letter-spacing:2px}
.stars span{font-size:9.5px;letter-spacing:1px;color:var(--muted);font-weight:800}
.card-progress{display:flex;align-items:center;gap:9px;margin-top:14px}
.card-track{flex:1;height:6px;border-radius:99px;background:#eef0f8;overflow:hidden}
.card-track i{display:block;height:100%;border-radius:99px;
background:linear-gradient(90deg,#5b4bff,#00b8ff)}
.card-progress span{font-size:10px;font-weight:800;color:var(--muted);
font-family:'JetBrains Mono',monospace}
.course-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;
margin-top:auto;padding-top:18px}
.course-state{font-size:9.5px;font-weight:800;letter-spacing:1.4px;text-transform:uppercase;color:var(--muted)}
.course-state.locked{color:#b45309}
.course-state.unlocked{color:var(--ok)}
.course-arrow{width:34px;height:34px;border-radius:50%;background:#f3f4fb;display:grid;place-items:center;
font-size:15px;transition:.22s;flex:0 0 auto}
.course:hover .course-arrow{background:var(--c);color:#fff;transform:rotate(-45deg)}
.course.is-locked{opacity:.62;filter:saturate(.55)}
.course.is-locked:hover{transform:none;box-shadow:none;border-color:var(--line)}
.course.is-locked .course-arrow{background:#f3f4fb;color:inherit;transform:none}
/* featured */
.course.featured{grid-column:span 2;flex-direction:row;align-items:center;gap:20px;min-height:260px;
background:
radial-gradient(720px 320px at 100% 0%,rgba(123,97,255,.38),transparent 62%),
radial-gradient(520px 320px at 0% 100%,rgba(0,184,255,.22),transparent 62%),
#0b0d17;
border-color:#1e2235;color:#fff}
.course.featured::before{display:none}
.course.featured:hover{box-shadow:0 42px 90px -46px rgba(91,75,255,.75);border-color:#3a3f66}
.course.featured .course-main{flex:1}
.course.featured .course-icon{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.18)}
.course.featured h3{font-size:clamp(22px,2.3vw,27px);color:#fff;letter-spacing:-.8px}
.course.featured p{color:#aeb3cf;font-size:12.5px;min-height:auto}
.course.featured .course-tag{color:#b7a8ff}
.course.featured .course-state{color:#c7c9e0}
.course.featured .course-arrow{background:rgba(255,255,255,.1);color:#fff}
.course.featured:hover .course-arrow{background:var(--c);transform:rotate(-45deg)}
.feat-visual{position:relative;width:190px;height:190px;flex:0 0 auto;display:grid;place-items:center}
.feat-visual > span{font-size:64px;position:relative;z-index:2;filter:drop-shadow(0 20px 30px rgba(0,0,0,.4))}
.feat-visual small{position:absolute;bottom:2px;font-size:8px;letter-spacing:2px;font-weight:800;
color:#c7c9e0;z-index:2}
.feat-ring{position:absolute;inset:6px;border-radius:50%;border:1px solid rgba(255,255,255,.14)}
.feat-ring.r2{inset:28px;border-color:rgba(255,255,255,.1)}
.feat-ring::before{content:'';position:absolute;width:8px;height:8px;border-radius:50%;
background:var(--cyan);top:14px;left:22px;box-shadow:0 0 16px var(--cyan)}
.feat-ring.r2::before{background:var(--pink);top:auto;bottom:10px;left:auto;right:18px;
box-shadow:0 0 16px var(--pink)}
/* footer */
.foot{text-align:center;margin-top:52px;font-size:11px;letter-spacing:.4px;color:var(--muted);line-height:1.7}
.foot b{color:var(--brand)}
/* player */
.player-wrap{max-width:1180px;margin:0 auto;padding:24px 24px 70px}
.player-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;
flex-wrap:wrap;margin-bottom:16px}
.player-head h1{font-size:clamp(24px,3.2vw,36px);letter-spacing:-1.4px;margin-top:6px}
.player-progress-pill{padding:9px 14px;border-radius:999px;background:#fff;border:1px solid var(--line);
font-size:11px;font-weight:800;color:var(--muted);box-shadow:var(--shadow-sm)}
.player-progress-pill b{color:var(--brand);font-size:13px}
.player-grid{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:18px;align-items:start}
.video-card{background:#0b0d17;border-radius:28px;overflow:hidden;
box-shadow:0 40px 90px -50px rgba(0,0,0,.55);border:1px solid #171a29}
.video-shell{position:relative;aspect-ratio:16/9;background:#0b0d17;overflow:hidden}
.video-shell iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.yt-mount{position:absolute;inset:0}
.yt-mount iframe{width:100%;height:100%}
.poster{position:absolute;inset:0;z-index:3;display:grid;place-items:center;cursor:pointer;
background:#0b0d17;transition:opacity .45s ease,visibility .45s;overflow:hidden}
.poster.hide{opacity:0;visibility:hidden;pointer-events:none}
.poster-bg{position:absolute;inset:0;background:
radial-gradient(620px 320px at 15% 10%,rgba(91,75,255,.55),transparent 60%),
radial-gradient(520px 320px at 90% 90%,rgba(0,184,255,.4),transparent 60%),
radial-gradient(420px 320px at 80% 20%,rgba(255,77,157,.25),transparent 60%),
#0b0d17}
.poster-bg::after{content:'';position:absolute;inset:0;
background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),
linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);
background-size:42px 42px;
-webkit-mask-image:radial-gradient(ellipse at center,#000 20%,transparent 76%);
mask-image:radial-gradient(ellipse at center,#000 20%,transparent 76%)}
.poster-center{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;
gap:22px;padding:24px;text-align:center}
.play-orb{width:104px;height:104px;border-radius:50%;background:#fff;display:grid;place-items:center;
position:relative;box-shadow:0 0 0 12px rgba(255,255,255,.12),0 30px 60px -20px rgba(0,0,0,.6);
transition:transform .25s}
.poster:hover .play-orb{transform:scale(1.06)}
.orb-fallback{font-size:38px;font-weight:800;color:var(--brand);position:absolute}
.play-orb img{width:52px;height:52px;object-fit:contain;position:relative;z-index:1}
.play-tri{position:absolute;right:-4px;bottom:-4px;width:36px;height:36px;border-radius:50%;
background:linear-gradient(135deg,#5b4bff,#00b8ff);display:grid;place-items:center;
box-shadow:0 8px 20px rgba(91,75,255,.5);z-index:2}
.play-tri::before{content:'';width:0;height:0;border-left:9px solid #fff;
border-top:6px solid transparent;border-bottom:6px solid transparent;margin-left:2px}
.poster-text span{display:block;font-size:9.5px;letter-spacing:3px;color:#aab0d0;font-weight:800}
.poster-text b{display:block;font-size:17px;color:#fff;margin:6px 0 4px;font-weight:700;max-width:420px}
.poster-text small{font-size:10.5px;color:#8b93b8;letter-spacing:1.4px;text-transform:uppercase;font-weight:700}
.poster.loading .play-orb::after{content:'';position:absolute;inset:-6px;border-radius:50%;
border:2px solid rgba(91,75,255,.3);border-top-color:var(--brand);animation:spin 1s linear infinite}
.video-foot{padding:16px 20px;display:flex;align-items:center;justify-content:space-between;gap:14px;
background:#0e1120;border-top:1px solid rgba(255,255,255,.06);flex-wrap:wrap}
.video-foot b{display:block;color:#fff;font-size:13.5px;margin-top:3px}
.vf-tag{font-size:8.5px;letter-spacing:2.4px;color:#8b93b8;font-weight:800}
.vf-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.done-chip{font-size:9px;font-weight:800;letter-spacing:1.2px;color:#4ade80;
background:rgba(14,171,122,.12);border:1px solid rgba(14,171,122,.25);padding:6px 10px;
border-radius:999px;white-space:nowrap}
.player-note{margin-top:14px;font-size:11px;line-height:1.7;color:var(--muted);
display:flex;gap:8px;align-items:flex-start}
.player-note svg{width:15px;height:15px;flex:0 0 auto;margin-top:2px;color:var(--brand)}
/* sidebar */
.side-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:20px;
box-shadow:var(--shadow-sm);margin-bottom:14px}
.ring{--p:0;width:112px;height:112px;border-radius:50%;
background:conic-gradient(var(--brand) calc(var(--p)*1%),#eef0f8 0);
display:grid;place-items:center;position:relative;margin:4px auto 0}
.ring::before{content:'';position:absolute;inset:9px;border-radius:50%;background:#fff}
.ring-in{position:relative;z-index:1;text-align:center}
.ring-in b{display:block;font-size:21px;letter-spacing:-.8px}
.ring-in span{display:block;font-size:8px;letter-spacing:1.6px;color:var(--muted);font-weight:800;margin-top:2px}
.side-caption{text-align:center;font-size:10.5px;color:var(--muted);font-weight:600;margin-top:12px}
.side-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:4px}
.side-head b{font-size:12.5px}
.side-head span{font-size:9.5px;font-weight:800;color:var(--muted);font-family:'JetBrains Mono',monospace}
.lessons{display:grid;gap:7px;margin-top:12px}
.lesson{display:flex;align-items:center;gap:11px;padding:11px;border-radius:14px;
border:1px solid var(--line);background:#fff;cursor:pointer;text-align:left;transition:.2s;width:100%}
.lesson:hover{background:#f8f9fe;border-color:var(--line-2)}
.lesson.active{border-color:var(--brand);
background:linear-gradient(90deg,rgba(91,75,255,.07),rgba(0,184,255,.03))}
.lesson.done .lesson-num{background:var(--ok);color:#fff;border-color:var(--ok)}
.lesson-num{width:30px;height:30px;border-radius:10px;border:1px solid var(--line);
display:grid;place-items:center;font-size:10.5px;font-weight:800;flex:0 0 auto;
color:var(--muted);background:#fff}
.lesson-body b{display:block;font-size:12px;line-height:1.35;font-weight:700}
.lesson-body small{font-size:8.5px;letter-spacing:1.2px;color:var(--muted);font-weight:800;
text-transform:uppercase;display:block;margin-top:2px}
/* certificate */
.cert-page{max-width:1040px;margin:0 auto}
.cert-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;
flex-wrap:wrap;margin-bottom:18px}
.cert-head h1{font-size:clamp(26px,3.4vw,40px);letter-spacing:-1.4px;margin-top:8px}
.cert-head p{font-size:12.5px;color:var(--muted);margin-top:6px;line-height:1.6}
.cert{position:relative;background:#fff;border-radius:30px;border:1px solid var(--line);
box-shadow:0 50px 120px -50px rgba(20,24,70,.45);overflow:hidden}
.cert-bar{height:7px;background:linear-gradient(90deg,#5b4bff 0%,#00b8ff 42%,#ff4d9d 78%,#ffb020 100%)}
.cert-inner{padding:38px 44px 30px;position:relative;overflow:hidden}
.cert-inner::before{content:'';position:absolute;inset:0;
background-image:radial-gradient(rgba(91,75,255,.10) 1px,transparent 1px);
background-size:18px 18px;opacity:.5;
-webkit-mask-image:linear-gradient(180deg,#000,transparent 62%);
mask-image:linear-gradient(180deg,#000,transparent 62%)}
.cert-inner > *{position:relative;z-index:1}
.cert-top{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}
.cert-brand{display:flex;align-items:center;gap:11px}
.cert-logo{width:46px;height:46px;border-radius:14px;background:linear-gradient(135deg,#5b4bff,#00b8ff);
display:grid;place-items:center;position:relative;overflow:hidden;color:#fff;font-weight:800;font-size:20px}
.cert-logo img{position:absolute;inset:0;margin:auto;width:32px;height:32px;object-fit:contain;
background:#fff;border-radius:8px;padding:3px}
.cert-brand b{display:block;letter-spacing:2px;font-size:13.5px}
.cert-brand small{display:block;font-size:8.5px;letter-spacing:1.8px;color:var(--muted);
font-weight:800;margin-top:2px}
.cert-verified{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border-radius:999px;
background:#ecfdf5;border:1px solid #c7f2df;color:#0e8a62;font-size:9px;font-weight:800;
letter-spacing:1.4px;white-space:nowrap}
.v-dot{width:7px;height:7px;border-radius:50%;background:#0eab7a;
box-shadow:0 0 0 3px rgba(14,171,122,.18)}
.cert-kicker{text-align:center;margin-top:30px;font-size:10px;letter-spacing:5px;font-weight:800;
color:var(--brand)}
.cert-name{text-align:center;font-size:clamp(36px,5vw,56px);font-weight:800;letter-spacing:-1.8px;
line-height:1.04;margin:12px 0 6px;color:var(--ink);word-break:break-word}
.cert-lead{text-align:center;color:var(--muted);font-size:12.5px}
.cert-course{text-align:center;font-size:clamp(17px,2.3vw,25px);font-weight:800;letter-spacing:-.4px;
margin:8px 0 28px;color:var(--cc,#5b4bff)}
.cert-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin:0 0 26px}
.cert-stats > div{background:#f8f9fe;border:1px solid var(--line);border-radius:14px;
padding:12px 10px;text-align:center;min-width:0}
.cert-stats span{display:block;font-size:7.5px;letter-spacing:1.5px;color:var(--muted);
font-weight:800;margin-bottom:5px}
.cert-stats b{font-size:11.5px;font-weight:800;word-break:break-word;display:block;line-height:1.35}
.cert-stats .ok{color:var(--ok)}
.cert-bottom{display:flex;align-items:center;justify-content:space-between;gap:18px;
padding-top:20px;border-top:1px dashed var(--line-2);flex-wrap:wrap}
.cert-sign{min-width:170px}
.sign-line{width:146px;height:1px;background:var(--ink);opacity:.35;margin-bottom:8px}
.cert-sign b{display:block;font-size:12.5px}
.cert-sign span{font-size:9px;color:var(--muted);letter-spacing:1.2px;font-weight:800}
.cert-qr{display:grid;grid-template-columns:repeat(11,1fr);gap:2px;width:74px;height:74px;
padding:6px;border:1px solid var(--line);border-radius:10px;background:#fff;flex:0 0 auto}
.cert-qr i{background:#eef0f8;border-radius:1px}
.cert-qr i.on{background:var(--ink)}
.cert-seal{width:84px;height:84px;border-radius:50%;
background:conic-gradient(from 0deg,#5b4bff,#00b8ff,#0eab7a,#ffb020,#ff4d9d,#5b4bff);
padding:4px;animation:spin 14s linear infinite;flex:0 0 auto}
.cert-seal > div{width:100%;height:100%;border-radius:50%;background:#fff;display:grid;
place-items:center;text-align:center;font-size:8px;font-weight:800;letter-spacing:1.1px;
color:var(--ok);line-height:1.45}
.cert-url{text-align:center;margin-top:18px;font-family:'JetBrains Mono',monospace;font-size:8px;
color:var(--muted);word-break:break-all;line-height:1.6}
.cert-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.cert-hint{text-align:center;margin-top:16px;font-size:10.5px;color:var(--muted);line-height:1.7}
.cert-hint b{color:var(--ink);font-family:'JetBrains Mono',monospace;font-size:10px}
/* modal */
#modal{position:fixed;inset:0;z-index:100;display:none;place-items:center;padding:18px;
background:rgba(11,13,23,.5);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
#modal.show{display:grid}
.modal{width:min(520px,100%);background:#fff;border-radius:26px;padding:28px;position:relative;
box-shadow:0 40px 100px -30px rgba(0,0,0,.4);animation:pop .3s cubic-bezier(.2,.8,.2,1)}
@keyframes pop{from{opacity:0;transform:scale(.94) translateY(10px)}to{opacity:1;transform:none}}
.modal-x{position:absolute;top:14px;right:14px;width:34px;height:34px;border-radius:50%;
border:1px solid var(--line);background:#fff;display:grid;place-items:center;font-size:13px;
color:var(--muted);transition:.2s}
.modal-x:hover{background:#f3f4fb;color:var(--ink)}
.modal-course{display:flex;gap:14px;align-items:flex-start;padding-right:26px}
.modal-icon{width:54px;height:54px;border-radius:16px;display:grid;place-items:center;font-size:26px;
background:var(--c-soft);border:1px solid var(--c-line);flex:0 0 auto}
.modal-tag{font-size:8.5px;letter-spacing:1.6px;font-weight:800;color:var(--muted);text-transform:uppercase}
.modal-course h3{font-size:20px;letter-spacing:-.5px;margin:3px 0 5px}
.modal-course p{font-size:11.5px;line-height:1.55;color:var(--muted)}
.modal-info{display:flex;gap:6px;flex-wrap:wrap;margin:16px 0 4px}
.modal-info span{font-size:9px;letter-spacing:1px;font-weight:800;color:var(--muted);
background:#f3f4fb;border:1px solid var(--line);padding:6px 9px;border-radius:999px}
.modal-warn{font-size:11px;line-height:1.6;color:#b45309;background:#fff7ed;border:1px solid #ffe0b2;
border-radius:12px;padding:11px 12px;margin:12px 0 16px}
.modal .btn-block{margin-top:8px}
.modal .field input{padding-left:16px}
/* toast */
#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:120;
display:flex;flex-direction:column;gap:8px;align-items:center;pointer-events:none;width:100%;
padding:0 16px}
.toast-item{background:#0b0d17;color:#fff;padding:12px 18px;border-radius:14px;font-size:12.5px;
font-weight:700;box-shadow:0 20px 50px -20px rgba(0,0,0,.5);animation:toastIn .3s;
max-width:520px;text-align:center;line-height:1.45}
.toast-item.ok{background:#0e8a62}
.toast-item.warn{background:#b45309}
.toast-item.err{background:#b42318}
.toast-item.out{opacity:0;transform:translateY(8px);transition:.4s}
@keyframes toastIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
/* confetti */
.confetti{position:fixed;inset:0;z-index:110;pointer-events:none;overflow:hidden}
.confetti i{position:absolute;top:-20px;width:9px;height:16px;border-radius:2px;
animation:fall linear forwards}
@keyframes fall{to{transform:translateY(112vh) rotate(var(--r,360deg));opacity:.9}}
/* spinner */
.spinner{width:14px;height:14px;border-radius:50%;border:2px solid rgba(255,255,255,.35);
border-top-color:#fff;animation:spin .8s linear infinite;display:inline-block}
@keyframes spin{to{transform:rotate(360deg)}}
/* responsive */
@media(max-width:980px){
.auth{grid-template-columns:1fr}
.auth-art{min-height:auto;padding:36px}
.auth-form{padding:36px}
.courses{grid-template-columns:repeat(2,1fr)}
.course.featured{grid-column:span 2;flex-direction:column;align-items:flex-start}
.feat-visual{display:none}
.player-grid{grid-template-columns:1fr}
.cert-inner{padding:30px 22px}
.cert-stats{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:640px){
.topbar-in{padding:10px 16px}
.wrap,.player-wrap{padding-left:16px;padding-right:16px}
.courses{grid-template-columns:1fr}
.course.featured{grid-column:span 1}
.dash-hero{flex-direction:column;align-items:flex-start}
.dash-stats{width:100%}
.stat{flex:1;min-width:90px}
.denied{padding:34px 22px;margin:30px auto}
.cert-bottom{justify-content:center;text-align:center}
.cert-sign{text-align:center;margin:auto}
.sign-line{margin:0 auto 8px}
.cert-seal{width:74px;height:74px}
.cert-qr{width:66px;height:66px}
.continue-progress{width:100%}
.continue-track{flex:1;width:auto}
}
@media(prefers-reduced-motion:reduce){
*{animation-duration:.001s!important;transition-duration:.001s!important}
}
</style>
</head>
<body>
<div class="bg">
<div class="grid"></div>
<div class="orb"></div>
</div>
<header class="topbar">
<div class="topbar-in">
<a class="brand" href="#" id="brandHome">
<span class="logo"><img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS4rV2QL0PdHVm8PZAQbPKvure_YQSl_Et2oKeJMK8U5g&s=10" alt="SIMPLILEARN" referrerpolicy="no-referrer" onerror="this.style.display='none';this.parentElement.innerHTML='<b style="color:#5b4bff;font-size:18px">S</b>'"></span>
<span>
<b>SIMPLILEARN</b>
<small>by Devil Developers</small>
</span>
</a>
<div class="top-actions" id="topActions"></div>
</div>
</header>
<main id="app"></main>
<div id="toast"></div>
<div id="modal"></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.1/html2canvas.min.js"></script>
<script>
/* =====================================================================
SIMPLILEARN — Created by Devil Developers
===================================================================== */
/* ---------- config ---------- */
const LOGO = 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS4rV2QL0PdHVm8PZAQbPKvure_YQSl_Et2oKeJMK8U5g&s=10';
const DB_URL = 'https://raw.githubusercontent.com/NEXURA-M/SIMPLILEARN/refs/heads/main/data.json';
const FALLBACK_DB = { "USER123": "VERIFIED", "TEST456": "PENDING", "TAQI@1122": "PENDING" };
/* ---------- courses ---------- */
const COURSES = [
{
id:'ai-nocode',
title:'AI Development Without Coding',
icon:'🤖',
color:'#7c5cff',
tag:'FEATURED · 5★',
featured:true,
desc:'Build and launch AI-powered products without writing a single line of code.',
lessons:[
{ vid:'mm3nuRgXsy8', title:'AI Development — Full Course by Muhammad Taqi' }
]
},
{
id:'python',
title:'Python',
icon:'🐍',
color:'#3776ab',
tag:'PYTHON',
desc:'From variables to functions — the complete Python foundation in Hindi.',
lessons:[
{ vid:'UrsmFxEIp5k', title:'Python for Beginners — Complete Course' }
]
},
{
id:'web',
title:'Web Development',
icon:'🌐',
color:'#e44d26',
tag:'HTML · CSS · JS',
desc:'HTML, CSS and JavaScript combined into one complete web development course.',
lessons:[
{ vid:'HcOc7P5BMi4', title:'HTML — Complete Course' },
{ vid:'ESnrn1kAD4E', title:'CSS — Complete Course' },
{ vid:'ajdRvxDWH4w', title:'JavaScript L1 — Variables & Data Types' },
{ vid:'Zg4-uSjxosE', title:'JavaScript L2 — Operators & Conditionals' },
{ vid:'UmRtFFSDSFo', title:'JavaScript L3 — Loops & Strings' },
{ vid:'gFWhbjzowrM', title:'JavaScript L4 — Arrays' },
{ vid:'P0XMXqDGttU', title:'JavaScript L5 — Functions & Methods' }
]
},
{
id:'ai',
title:'AI Development',
icon:'🧠',
color:'#00b8ff',
tag:'AI & DEEP LEARNING',
desc:'Learn AI and deep learning from scratch with hands-on concepts.',
lessons:[
{ vid:'bZxAKA69xqg', title:'AI & Deep Learning — Full Course' }
]
},
{
id:'git',
title:'Git & GitHub',
icon:'🔧',
color:'#f05033',
tag:'VERSION CONTROL',
desc:'Master version control, branching, pull requests and collaboration.',
lessons:[
{ vid:'Ez8F0nW6S-w', title:'Git & GitHub — Complete Tutorial' }
]
},
{
id:'prompt',
title:'Prompt Engineering',
icon:'✨',
color:'#ff4d9d',
tag:'PROMPT ENGINEERING',
desc:'Go from beginner to pro at designing prompts that get results.',
lessons:[
{ vid:'YhRfgYH_AoU', title:'Prompt Engineering — Beginner to Pro' }
]
},
{
id:'android',
title:'Android App Development',
icon:'📱',
color:'#3ddc84',
tag:'ANDROID',
desc:'Build real Android apps with a practical, project-based approach.',
lessons:[
{ vid:'u64gyCdqawU', title:'Android App Development — Full Course' }
]
},
{
id:'game',
title:'Game Development',
icon:'🎮',
color:'#ff7a00',
tag:'UNITY · GAME DEV',
desc:'Create games in Unity with a complete Hindi/Urdu game development course.',
lessons:[
{ vid:'YBRlwCjLNMQ', title:'Unity Game Development — Hindi/Urdu' }
]
},
{
id:'csharp',
title:'C#',
icon:'🎯',
color:'#9b4f96',
tag:'C# · .NET',
desc:'Learn C# programming from the ground up with clear Hindi tutorials.',
lessons:[
{ vid:'SuLiu5AK9Ps', title:'C# Tutorial in Hindi' }
]
}
];
/* ---------- helpers ---------- */
const $ = (s, r = document) => r.querySelector(s);
const $$ = (s, r = document) => Array.from(r.querySelectorAll(s));
const sleep = ms => new Promise(r => setTimeout(r, ms));
const esc = s => String(s == null ? '' : s).replace(/[&<>"']/g, c => ({'&':'&','<':'<','>':'>','"':'"',"'":'''}[c]));
const hexA = (hex, a) => {
const h = String(hex).replace('#', '');
const n = h.length === 3 ? h.split('').map(x => x + x).join('') : h;
const r = parseInt(n.slice(0,2),16), g = parseInt(n.slice(2,4),16), b = parseInt(n.slice(4,6),16);
return `rgba(${r},${g},${b},${a})`;
};
const getCourse = id => COURSES.find(c => c.id === id);
/* ---------- storage ---------- */
const K = {
session:'sl_session_v1',
unlock: id => `sl_unlock_v1_${encodeURIComponent(id)}`,
progress: (id, cid) => `sl_progress_v1_${encodeURIComponent(id)}_${cid}`,
cert: (id, cid) => `sl_cert_v1_${encodeURIComponent(id)}_${cid}`
};
const LS = {
get(key, d){ try { const v = localStorage.getItem(key); return v ? JSON.parse(v) : d; } catch(e){ return d; } },
set(key, v){ try { localStorage.setItem(key, JSON.stringify(v)); } catch(e){} },
del(key){ try { localStorage.removeItem(key); } catch(e){} }
};
/* ---------- state ---------- */
const App = {
db:null, session:null, unlock:null, courseId:null, lessonIndex:0,
progress:[], player:null, playerReady:false, wantPlay:false,
ytFailed:false, finishing:false
};
let ytPromise = null;
/* ---------- data ---------- */
async function loadDB(){
if (App.db) return App.db;
try {
const r = await fetch(DB_URL, { cache:'no-store' });
if (!r.ok) throw new Error('http');
const j = await r.json();
App.db = (j && typeof j === 'object') ? j : FALLBACK_DB;
} catch(e){
App.db = FALLBACK_DB;
}
return App.db;
}
function lookupStatus(db, id){
if (!id) return 'UNKNOWN';
if (db[id]) return String(db[id]).toUpperCase();
const key = Object.keys(db).find(k => k.toUpperCase() === id.toUpperCase());
return key ? String(db[key]).toUpperCase() : 'UNKNOWN';
}
/* ---------- user data ---------- */
function loadUserData(){
if (!App.session) return;
const u = LS.get(K.unlock(App.session.id), null);
App.unlock = (u && getCourse(u.courseId)) ? u : null;
}
function progressFor(courseId){
if (!App.session) return [];
const arr = LS.get(K.progress(App.session.id, courseId), []);
const c = getCourse(courseId);
if (!c || !Array.isArray(arr)) return [];
return arr.filter(i => Number.isInteger(i) && i >= 0 && i < c.lessons.length);
}
function saveProgress(){
if (!App.session || !App.courseId) return;
LS.set(K.progress(App.session.id, App.courseId), App.progress);
}
function defaultName(id){
const cleaned = String(id || '').replace(/[^A-Za-z ]/g, ' ').trim().replace(/\s+/g, ' ');
if (!cleaned) return 'Learner';
return cleaned.split(' ').map(w => w.charAt(0).toUpperCase() + w.slice(1).toLowerCase()).join(' ');
}
function displayName(){
return (App.unlock && App.unlock.name) ? App.unlock.name : defaultName(App.session && App.session.id);
}
/* ---------- topbar ---------- */
function setTopActions(html){ $('#topActions').innerHTML = html; }
/* ---------- hash / base64 ---------- */
function b64enc(obj){
const bytes = new TextEncoder().encode(JSON.stringify(obj));
let bin = '';
bytes.forEach(b => bin += String.fromCharCode(b));
return btoa(bin).replace(/\+/g,'-').replace(/\//g,'_').replace(/=+$/,'');
}
function b64dec(str){
let s = str.replace(/-/g,'+').replace(/_/g,'/');
const bin = atob(s);
const bytes = Uint8Array.from(bin, c => c.charCodeAt(0));
return JSON.parse(new TextDecoder().decode(bytes));
}
/* ---------- toast ---------- */
function toast(msg, type = 'info'){
const t = document.createElement('div');
t.className = 'toast-item ' + type;
t.textContent = msg;
$('#toast').appendChild(t);
setTimeout(() => t.classList.add('out'), 2800);
setTimeout(() => t.remove(), 3300);
}
/* ---------- confetti ---------- */
function confetti(){
const wrap = document.createElement('div');
wrap.className = 'confetti';
const colors = ['#5b4bff','#00b8ff','#ff4d9d','#ffb020','#0eab7a','#8b6bff'];
for (let i = 0; i < 70; i++){
const p = document.createElement('i');
p.style.left = Math.random() * 100 + '%';
p.style.background = colors[Math.floor(Math.random() * colors.length)];
p.style.animationDelay = (Math.random() * 0.7) + 's';
p.style.animationDuration = (2 + Math.random() * 1.6) + 's';
p.style.setProperty('--r', Math.floor(Math.random() * 720) + 'deg');
wrap.appendChild(p);
}
document.body.appendChild(wrap);
setTimeout(() => wrap.remove(), 4600);
}
/* ---------- login ---------- */
function renderLogin(){
destroyPlayer();
setTopActions('<span class="top-note">SECURE LEARNER PORTAL</span>');
$('#app').innerHTML = `
<div class="wrap">
<div class="auth">
<aside class="auth-art">
<div class="art-grid"></div>
<div class="art-brand">
<span class="logo on-dark">
<img src="${LOGO}" alt="" referrerpolicy="no-referrer"
onerror="this.style.display='none';this.parentElement.innerHTML='<b style="color:#fff;font-size:18px">S</b>'">
</span>
<div><b>SIMPLILEARN</b><small>by Devil Developers</small></div>
</div>
<div class="art-copy">
<div class="art-eyebrow">LEARN · BUILD · GET CERTIFIED</div>
<h1 class="art-title">One verified ID.<br><span class="grad">One course.</span><br>A lifetime of skill.</h1>
<p class="art-sub">Unlock a world-class course, track every lesson, and earn a modern verified certificate issued by SIMPLILEARN.</p>
<div class="art-features">
<div class="art-feature"><i>✓</i><span>ID-verified access — only approved learners get in</span></div>
<div class="art-feature"><i>✓</i><span>Unlock one full course permanently per ID</span></div>
<div class="art-feature"><i>✓</i><span>Auto-tracked progress and a shareable certificate</span></div>
</div>
</div>
<div class="art-bottom">
<span class="art-chip">☠ DEVIL DEVELOPERS</span>
<span class="art-chip">ID VERIFIED</span>
<span class="art-chip">CERTIFIED</span>
</div>
</aside>
<div class="auth-form">
<div class="form-eyebrow">WELCOME BACK</div>
<h2>Enter your learner ID</h2>
<p class="form-sub">Your ID is checked against the SIMPLILEARN registry. Only verified IDs can access courses.</p>
<form id="loginForm" novalidate>
<label class="field">
<span>LEARNER ID</span>
<div class="input-wrap">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="5" width="18" height="14" rx="3"/><circle cx="9" cy="11" r="2"/><path d="M15 10h3M15 14h3M6 16c.8-1.3 1.8-2 3-2s2.2.7 3 2"/></svg>
<input id="idInput" placeholder="e.g. USER123" autocomplete="off" spellcheck="false" maxlength="32" aria-label="Learner ID">
</div>
</label>
<button class="btn btn-primary btn-block" id="verifyBtn" type="submit">Verify & Continue →</button>
</form>
<div class="form-foot">
<span>Demo access</span>
<button class="link-btn" id="demoFill" type="button">Use demo ID →</button>
</div>
<div class="secure-note">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"><rect x="4" y="10" width="16" height="11" rx="2.5"/><path d="M8 10V7a4 4 0 0 1 8 0v3"/></svg>
256-bit ID verification · No password required
</div>
</div>
</div>
</div>`;
$('#loginForm').addEventListener('submit', e => {
e.preventDefault();
verifyId($('#idInput').value.trim());
});
$('#demoFill').onclick = () => {
const i = $('#idInput');
i.value = 'USER123';
i.focus();
};
setTimeout(() => $('#idInput').focus(), 80);
}
async function verifyId(id){
if (!id){
const i = $('#idInput');
i.style.borderColor = 'var(--danger)';
i.focus();
return;
}
const btn = $('#verifyBtn');
btn.disabled = true;
btn.innerHTML = '<span class="spinner"></span> Verifying…';
const db = await loadDB();
await sleep(650);
const status = lookupStatus(db, id);
btn.disabled = false;
btn.textContent = 'Verify & Continue →';
if (status === 'VERIFIED'){
App.session = { id };
LS.set(K.session, App.session);
loadUserData();
toast('ID verified — welcome to SIMPLILEARN', 'ok');
renderDashboard();
} else {
renderDenied(id, status);
}
}
/* ---------- denied ---------- */
function renderDenied(id, status){
setTopActions('<span class="top-note">ACCESS CHECK</span>');
const label = status === 'PENDING' ? 'PENDING APPROVAL'
: status === 'UNVERIFIED' ? 'UNVERIFIED'
: status === 'VERIFIED' ? 'VERIFIED'
: 'NOT FOUND';
$('#app').innerHTML = `
<div class="wrap">
<div class="denied">
<div class="denied-icon">🔒</div>
<div class="eyebrow danger">ACCESS RESTRICTED</div>
<h1>THIS TIME YOUR<br><span>ID IS NOT VERIFIED</span></h1>
<p>We could not verify <b>${esc(id)}</b> against the SIMPLILEARN registry.</p>
<div class="denied-status">STATUS: <b>${label}</b></div>
<div class="row">
<button class="btn btn-primary" id="retry">Try another ID →</button>
<button class="btn btn-ghost" id="demo">Use demo ID</button>
</div>
<small>If your ID is pending, please contact your program administrator.</small>
</div>
</div>`;
$('#retry').onclick = renderLogin;
$('#demo').onclick = () => {
renderLogin();
setTimeout(() => { const i = $('#idInput'); if (i){ i.value = 'USER123'; i.focus(); } }, 60);
};
}
/* ---------- dashboard ---------- */
function renderDashboard(){
destroyPlayer();
App.courseId = null;
App.finishing = false;
setTopActions(`
<span class="id-pill"><span class="dot"></span><b>${esc(App.session.id)}</b><span class="v">VERIFIED</span></span>
<button class="btn btn-ghost btn-sm" id="logoutBtn">Logout</button>`);
$('#logoutBtn').onclick = logout;
const name = displayName();
const unlockedCourse = App.unlock ? getCourse(App.unlock.courseId) : null;
const unlockedProgress = unlockedCourse ? progressFor(unlockedCourse.id) : [];
const unlockedDone = unlockedProgress.length;
const unlockedTotal = unlockedCourse ? unlockedCourse.lessons.length : 0;
const unlockedPct = unlockedTotal ? Math.round(unlockedDone / unlockedTotal * 100) : 0;
const completed = !!unlockedCourse && unlockedDone === unlockedTotal;
const featured = COURSES.find(c => c.featured);
const rest = COURSES.filter(c => !c.featured);
$('#app').innerHTML = `
<div class="wrap">
<section class="dash-hero">
<div class="dash-copy">
<div class="eyebrow"><span class="spark"></span> LEARNER DASHBOARD</div>
<h1 class="dash-title">Welcome back,<br><span class="grad">${esc(name)}</span></h1>
<p class="dash-sub">Your ID is verified. Unlock a course and learn at your own pace — your progress is saved automatically.</p>
</div>
<div class="dash-stats">
<div class="stat"><b>${COURSES.length}</b><span>COURSES</span></div>
<div class="stat"><b>${App.unlock ? 1 : 0}</b><span>UNLOCKED</span></div>
<div class="stat"><b>${completed ? 1 : 0}</b><span>COMPLETED</span></div>
</div>
</section>
${unlockedCourse ? `
<div class="continue">
<div class="continue-info">
<span class="continue-icon" style="--c:${unlockedCourse.color};--c-soft:${hexA(unlockedCourse.color,.12)};--c-line:${hexA(unlockedCourse.color,.22)}">${unlockedCourse.icon}</span>
<div>
<span class="continue-tag">${completed ? 'COURSE COMPLETED' : 'CONTINUE LEARNING'}</span>
<b>${esc(unlockedCourse.title)}</b>
<small>${unlockedDone} of ${unlockedTotal} lessons complete</small>
</div>
</div>
<div class="continue-progress">
<div class="continue-track"><i style="width:${unlockedPct}%"></i></div>
<span>${unlockedPct}%</span>
</div>
<button class="btn ${completed ? 'btn-ghost' : 'btn-primary'} btn-sm" id="continueBtn">
${completed ? 'View Certificate 🎓' : 'Continue →'}
</button>
</div>` : `
<div class="continue continue-empty">
<div class="continue-info">
<span class="continue-icon empty">🔓</span>
<div>
<b>No course unlocked yet</b>
<small>Pick a course below. You can unlock one course per verified ID.</small>
</div>
</div>
</div>`}
<div class="section-head">
<div><span class="eyebrow">CURRICULUM</span><h2>All courses</h2></div>
<span class="section-note">One course per verified ID</span>
</div>
<div class="courses">
${courseCard(featured)}
${rest.map(courseCard).join('')}
</div>
<footer class="foot">SIMPLILEARN · Created by <b>Devil Developers</b><br>Certificates verified by learner ID</footer>
</div>`;
if (unlockedCourse){
$('#continueBtn').onclick = () => {
if (completed) openStoredCert(unlockedCourse.id);
else openPlayer(unlockedCourse);
};
}
bindCourseCards();
}
function courseCard(c){
const isUnlocked = !!(App.unlock && App.unlock.courseId === c.id);
const isLocked = !!(App.unlock && !isUnlocked);
const prog = isUnlocked ? progressFor(c.id) : [];
const total = c.lessons.length;
const done = prog.length;
const pct = total ? Math.round(done / total * 100) : 0;
const complete = isUnlocked && done === total;
let state = 'Unlock course';
let stateClass = '';
if (isLocked){ state = 'Locked · one course per ID'; stateClass = 'locked'; }
else if (isUnlocked){ state = complete ? 'Certificate ready' : 'Continue learning'; stateClass = 'unlocked'; }
return `
<article class="course ${c.featured ? 'featured' : ''} ${isLocked ? 'is-locked' : ''}"
data-course="${c.id}"
style="--c:${c.color};--c-soft:${hexA(c.color,.1)};--c-line:${hexA(c.color,.22)}">
<div class="course-main">
<div class="course-top">
<span class="course-icon">${c.icon}</span>
<span class="course-tag">${c.tag || 'COURSE'}</span>
</div>
<h3>${esc(c.title)}</h3>
<p>${esc(c.desc)}</p>
${c.featured ? `<div class="stars">★★★★★ <span>5.0 · Beginner friendly</span></div>` : ''}
${isUnlocked ? `<div class="card-progress"><div class="card-track"><i style="width:${pct}%"></i></div><span>${done}/${total}</span></div>` : ''}
<div class="course-foot">
<span class="course-state ${stateClass}">${state}</span>
<span class="course-arrow">${isLocked ? '🔒' : '→'}</span>
</div>
</div>
${c.featured ? `
<div class="feat-visual">
<div class="feat-ring"></div>
<div class="feat-ring r2"></div>
<span>${c.icon}</span>
<small>${total} LESSON${total > 1 ? 'S' : ''}</small>
</div>` : ''}
</article>`;
}
function bindCourseCards(){
$$('.course').forEach(card => {
card.addEventListener('click', () => {
const c = getCourse(card.dataset.course);
if (!c) return;
if (App.unlock){
if (App.unlock.courseId === c.id) openPlayer(c);
else toast('One course per ID. You have already unlocked “' + getCourse(App.unlock.courseId).title + '”.', 'warn');
} else {
openUnlockModal(c);
}
});
});
}
/* ---------- unlock modal ---------- */
function openUnlockModal(c){
const name = defaultName(App.session.id);
$('#modal').innerHTML = `
<div class="modal">
<button class="modal-x" id="modalX" aria-label="Close">✕</button>
<div class="modal-course" style="--c:${c.color};--c-soft:${hexA(c.color,.12)};--c-line:${hexA(c.color,.22)}">
<span class="modal-icon">${c.icon}</span>
<div>
<span class="modal-tag">${c.tag || 'COURSE'}</span>
<h3>${esc(c.title)}</h3>
<p>${esc(c.desc)}</p>
</div>
</div>
<div class="modal-info">
<span>${c.lessons.length} lessons</span>
<span>Certificate on completion</span>
<span>Lifetime access</span>
</div>
<label class="field">
<span>NAME ON CERTIFICATE</span>
<input id="certName" value="${esc(name)}" maxlength="40" autocomplete="off" spellcheck="false">
</label>
<p class="modal-warn">⚠ You can unlock only <b>one course per ID</b>. This choice is permanent.</p>
<button class="btn btn-primary btn-block" id="confirmUnlock">Unlock this course →</button>
<button class="btn btn-ghost btn-block" id="cancelUnlock">Maybe later</button>
</div>`;
$('#modal').classList.add('show');
const close = () => { $('#modal').classList.remove('show'); $('#modal').innerHTML = ''; };
$('#modalX').onclick = close;
$('#cancelUnlock').onclick = close;
$('#modal').onclick = e => { if (e.target === $('#modal')) close(); };
$('#certName').focus();
$('#confirmUnlock').onclick = () => {
const nameInput = $('#certName');
const nameVal = nameInput.value.trim().replace(/\s+/g, ' ');
if (nameVal.length < 2){
nameInput.style.borderColor = 'var(--danger)';
nameInput.focus();
return;
}
unlockCourse(c, nameVal);
};
}
function unlockCourse(c, name){
App.unlock = {
courseId: c.id,
name: name,
date: new Date().toISOString()
};
LS.set(K.unlock(App.session.id), App.unlock);
$('#modal').classList.remove('show');
$('#modal').innerHTML = '';
toast('Course unlocked permanently 🎉', 'ok');
renderDashboard();
setTimeout(() => openPlayer(c), 420);
}
/* ---------- player ---------- */
function openPlayer(c){
App.courseId = c.id;
App.progress = progressFor(c.id);
App.lessonIndex = firstIncomplete(c);
App.finishing = false;
renderPlayer();
}
function firstIncomplete(c){
const i = c.lessons.findIndex((_, idx) => !App.progress.includes(idx));
return i === -1 ? 0 : i;
}
function renderPlayer(){
const c = getCourse(App.courseId);
if (!c) return renderDashboard();
const total = c.lessons.length;
const done = App.progress.length;
const pct = Math.round(done / total * 100);
setTopActions('<button class="btn btn-ghost btn-sm" id="backDash">← Dashboard</button>');
$('#backDash').onclick = renderDashboard;
$('#app').innerHTML = `
<div class="player-wrap">
<div class="player-head">
<div>
<div class="eyebrow">NOW LEARNING</div>
<h1>${esc(c.title)}</h1>
</div>
<div class="player-progress-pill"><b>${pct}%</b> complete</div>
</div>
<div class="player-grid">
<div>
<div class="video-card">
<div class="video-shell" id="videoShell"></div>
<div class="video-foot" id="videoFoot"></div>
</div>
<div class="player-note">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"><circle cx="12" cy="12" r="9"/><path d="M12 8v5l3 2"/></svg>
<span>Finish every lesson to unlock your verified certificate. Your progress is saved automatically.</span>
</div>
</div>
<aside>
<div class="side-card">
<div class="ring" style="--p:${pct}">
<div class="ring-in"><b>${pct}%</b><span>COMPLETE</span></div>
</div>
<p class="side-caption">${done} of ${total} lessons finished</p>
${pct === 100 ? `<button class="btn btn-primary btn-block" id="certBtn" style="margin-top:14px">🎓 View Certificate</button>` : ''}
</div>
<div class="side-card">
<div class="side-head"><b>Course lessons</b><span>${done}/${total}</span></div>
<div class="lessons" id="lessonList">${lessonListMarkup(c)}</div>
</div>
</aside>
</div>
</div>`;
bindLessonButtons();
if (pct === 100){
const cb = $('#certBtn');
if (cb) cb.onclick = () => openStoredCert(c.id);
}
mountLesson(App.lessonIndex);
}
function lessonListMarkup(c){
return c.lessons.map((l, i) => `
<button class="lesson ${i === App.lessonIndex ? 'active' : ''} ${App.progress.includes(i) ? 'done' : ''}" data-i="${i}">
<span class="lesson-num">${App.progress.includes(i) ? '✓' : String(i + 1).padStart(2, '0')}</span>
<span class="lesson-body">
<b>${esc(l.title)}</b>
<small>Lesson ${i + 1}</small>
</span>
</button>`).join('');
}
function bindLessonButtons(){
$$('#lessonList .lesson').forEach(b => {
b.onclick = () => mountLesson(Number(b.dataset.i));
});
}
function videoFootMarkup(c, i){
const l = c.lessons[i] || {};
return `
<div>
<span class="vf-tag">LESSON ${String(i + 1).padStart(2, '0')} / ${String(c.lessons.length).padStart(2, '0')}</span>
<b>${esc(l.title || '')}</b>
</div>
<div class="vf-actions">
${App.progress.includes(i) ? '<span class="done-chip">✓ COMPLETED</span>' : ''}
</div>`;
}
function updatePlayerSidebar(){
const c = getCourse(App.courseId);
if (!c) return;
const total = c.lessons.length;
const done = App.progress.length;
const pct = Math.round(done / total * 100);
const ring = $('.ring');
if (ring) ring.style.setProperty('--p', pct);
const ringB = $('.ring-in b');
if (ringB) ringB.textContent = pct + '%';
const cap = $('.side-caption');
if (cap) cap.textContent = `${done} of ${total} lessons finished`;
const pill = $('.player-progress-pill');
if (pill) pill.innerHTML = `<b>${pct}%</b> complete`;
const list = $('#lessonList');
if (list){
list.innerHTML = lessonListMarkup(c);
bindLessonButtons();
}
const foot = $('#videoFoot');
if (foot) foot.innerHTML = videoFootMarkup(c, App.lessonIndex);
if (pct === 100 && !$('#certBtn')){
const side = $('.side-card');
if (side){
side.insertAdjacentHTML('beforeend', '<button class="btn btn-primary btn-block" id="certBtn" style="margin-top:14px">🎓 View Certificate</button>');
const cb = $('#certBtn');
if (cb) cb.onclick = () => openStoredCert(c.id);
}
}
}
/* ---------- poster ---------- */
function posterMarkup(lesson, i){
return `
<div class="poster" id="poster">
<div class="poster-bg"></div>
<div class="poster-center">
<div class="play-orb">
<span class="orb-fallback">S</span>
<img src="${LOGO}" alt="" referrerpolicy="no-referrer"
onerror="this.style.display='none'">
<span class="play-tri"></span>
</div>
<div class="poster-text">
<span>LESSON ${String(i + 1).padStart(2, '0')}</span>
<b>${esc(lesson.title)}</b>
<small>Click to start</small>
</div>
</div>
</div>`;
}
function hidePoster(){
const p = $('#poster');
if (p){ p.classList.remove('loading'); p.classList.add('hide'); }
}
/* ---------- YouTube API ---------- */
function ensureYT(){
if (window.YT && window.YT.Player) return Promise.resolve();
if (ytPromise) return ytPromise;
ytPromise = new Promise((resolve) => {
const timeout = setTimeout(() => { App.ytFailed = true; resolve(); }, 9000);
window.onYouTubeIframeAPIReady = () => { clearTimeout(timeout); resolve(); };
const s = document.createElement('script');
s.src = 'https://www.youtube.com/iframe_api';
s.async = true;
s.onerror = () => { clearTimeout(timeout); App.ytFailed = true; resolve(); };
document.head.appendChild(s);
});
return ytPromise;
}
function destroyPlayer(){
try { if (App.player && App.player.destroy) App.player.destroy(); } catch(e){}
App.player = null;
App.playerReady = false;
}
function mountLesson(i){
const c = getCourse(App.courseId);
if (!c || !c.lessons[i]) return;
App.lessonIndex = i;
App.wantPlay = false;
App.playerReady = false;
App.ytFailed = false;
destroyPlayer();
const lesson = c.lessons[i];
const shell = $('#videoShell');
if (!shell) return;
shell.innerHTML = posterMarkup(lesson, i) + '<div id="ytMount" class="yt-mount"></div>';
bindPoster(lesson, i);
updatePlayerSidebar();
ensureYT().then(() => {
if (!App.courseId || App.lessonIndex !== i) return;
if (!window.YT || !window.YT.Player){ setupFallback(lesson, i); return; }
createPlayer(lesson, i);
});
}
function bindPoster(lesson, i){
const p = $('#poster');
if (!p) return;
p.onclick = () => {
if (p.classList.contains('hide')) return;
if (App.player && App.playerReady){
try { App.player.playVideo(); } catch(e){}
p.classList.add('hide');
} else {
App.wantPlay = true;
p.classList.add('loading');
}
};
}
function createPlayer(lesson, i){
try {
App.player = new YT.Player('ytMount', {
videoId: lesson.vid,
playerVars: {
autoplay: 0,
rel: 0,
modestbranding: 1,
showinfo: 0,
iv_load_policy: 3,
playsinline: 1,
fs: 1,
origin: location.origin
},
events: {
onReady: () => {
App.playerReady = true;
if (App.wantPlay){
try { App.player.playVideo(); } catch(e){}
hidePoster();
}
},
onStateChange: e => {
if (e.data === 0) onLessonEnded(i);
},
onError: () => setupFallback(lesson, i)
}
});
} catch(e){
setupFallback(lesson, i);
}
}
function setupFallback(lesson, i){
App.ytFailed = true;
const mount = $('#ytMount');
if (!mount) return;
mount.innerHTML = `<iframe
src="https://www.youtube-nocookie.com/embed/${lesson.vid}?autoplay=0&rel=0&modestbranding=1&iv_load_policy=3&playsinline=1"
title="${esc(lesson.title)}"
allow="autoplay; encrypted-media; picture-in-picture; fullscreen"
allowfullscreen></iframe>`;
const p = $('#poster');
if (p){
p.classList.remove('loading');
p.onclick = () => {
p.classList.add('hide');
const f = mount.querySelector('iframe');
if (f) f.src = `https://www.youtube-nocookie.com/embed/${lesson.vid}?autoplay=1&rel=0&modestbranding=1&iv_load_policy=3&playsinline=1`;
addFallbackComplete(i);
};
}
}
function addFallbackComplete(i){
if ($('#fallbackDone')) return;
const foot = $('#videoFoot');
if (!foot) return;
const b = document.createElement('button');
b.id = 'fallbackDone';
b.className = 'btn btn-soft btn-sm';
b.textContent = '✓ Mark lesson complete';
b.onclick = () => onLessonEnded(i);
foot.appendChild(b);
}
/* ---------- completion ---------- */
function onLessonEnded(i){
const c = getCourse(App.courseId);
if (!c) return;
const before = App.progress.length;
if (!App.progress.includes(i)){
App.progress.push(i);
saveProgress();
}
const after = App.progress.length;
updatePlayerSidebar();
if (after > before) toast('Lesson complete ✓', 'ok');
if (after >= c.lessons.length && before < c.lessons.length){
if (App.finishing) return;
App.finishing = true;
setTimeout(finishCourse, 700);
return;
}
if (after < c.lessons.length && after > before){
const next = c.lessons.findIndex((_, idx) => !App.progress.includes(idx));
if (next >= 0){
setTimeout(() => {
if (App.courseId === c.id && App.lessonIndex === i) mountLesson(next);
}, 1500);
}
}
}
function hash6(str){
let h = 2166136261;
for (let i = 0; i < str.length; i++){
h ^= str.charCodeAt(i);
h = Math.imul(h, 16777619) >>> 0;
}
return (h >>> 0).toString(36).toUpperCase().padStart(6, '0').slice(-6);
}
function finishCourse(){
const c = getCourse(App.courseId);
if (!c || !App.session || !App.unlock) return;
let cert = LS.get(K.cert(App.session.id, c.id), null);
if (!cert){
const date = new Date();
cert = {
name: App.unlock.name,
learnerId: App.session.id,
courseId: c.id,
courseTitle: c.title,
date: date.toISOString(),
certId: 'SL-' + c.id.replace(/[^a-z0-9]/gi, '').slice(0, 3).toUpperCase() + '-' +
hash6(App.session.id + '|' + c.id + '|' + date.toISOString())
};
LS.set(K.cert(App.session.id, c.id), cert);
}
confetti();
toast('Course complete! Certificate unlocked 🎓', 'ok');
setTimeout(() => {
if (App.courseId === c.id) renderCertificate(cert);
}, 1100);
}
function openStoredCert(courseId){
if (!App.session) return;
const cert = LS.get(K.cert(App.session.id, courseId), null);
if (!cert){ toast('Certificate not available yet', 'err'); return; }
renderCertificate(cert);
}
/* ---------- certificate ---------- */
function qrHTML(seed){
let h = 2166136261;
for (let i = 0; i < seed.length; i++){
h ^= seed.charCodeAt(i);
h = Math.imul(h, 16777619) >>> 0;
}
let out = '';
for (let i = 0; i < 121; i++){
h = (Math.imul(h, 1103515245) + 12345) >>> 0;
out += '<i class="' + (((h >>> 16) & 1) ? 'on' : '') + '"></i>';
}
return out;
}
function certMarkup(cert, url){
const dateStr = new Date(cert.date).toLocaleDateString('en-GB', {
day:'2-digit', month:'short', year:'numeric'
});
const c = getCourse(cert.courseId);
const color = c ? c.color : '#5b4bff';
return `
<div class="cert" id="certEl">
<div class="cert-bar"></div>
<div class="cert-inner">
<div class="cert-top">
<div class="cert-brand">
<span class="cert-logo">
<span>S</span>
<img src="${LOGO}" alt="" referrerpolicy="no-referrer" onerror="this.style.display='none'">
</span>
<div>
<b>SIMPLILEARN</b>
<small>by Devil Developers</small>
</div>
</div>
<div class="cert-verified"><span class="v-dot"></span> VERIFIED</div>
</div>
<div class="cert-kicker">CERTIFICATE OF COMPLETION</div>
<div class="cert-name">${esc(cert.name)}</div>
<p class="cert-lead">has successfully completed the course</p>
<div class="cert-course" style="--cc:${color}">${esc(cert.courseTitle)}</div>
<div class="cert-stats">
<div><span>VERIFIED ID</span><b>${esc(cert.learnerId)}</b></div>
<div><span>ISSUED ON</span><b>${esc(dateStr)}</b></div>
<div><span>CERTIFICATE ID</span><b>${esc(cert.certId)}</b></div>
<div><span>STATUS</span><b class="ok">VERIFIED</b></div>
</div>
<div class="cert-bottom">
<div class="cert-sign">
<div class="sign-line"></div>
<b>Devil Developers</b>
<span>Program Director</span>
</div>
<div class="cert-qr">${qrHTML(cert.certId + cert.learnerId)}</div>
<div class="cert-seal"><div>VERIFIED<br><small>SIMPLILEARN</small></div></div>
</div>
<div class="cert-url">${esc(url)}</div>
</div>
</div>`;
}
function renderCertificate(cert){
destroyPlayer();
App.courseId = null;
const publicMode = !App.session;
const url = location.href.split('#')[0] + '#verify=' + b64enc(cert);
setTopActions(publicMode
? '<button class="btn btn-ghost btn-sm" id="goPortal">Go to SIMPLILEARN →</button>'
: '<button class="btn btn-ghost btn-sm" id="backDash2">← Dashboard</button>');
if (publicMode){
$('#goPortal').onclick = () => {
history.replaceState(null, '', location.pathname + location.search);
renderLogin();
};
} else {
$('#backDash2').onclick = () => {
history.replaceState(null, '', location.pathname + location.search);
renderDashboard();
};
}
$('#app').innerHTML = `
<div class="wrap">
<div class="cert-page">
<div class="cert-head">
<div>
<div class="eyebrow">${publicMode ? 'PUBLIC VERIFICATION' : 'CERTIFICATE ISSUED'}</div>
<h1>${publicMode ? 'Verified certificate' : 'Your certificate is ready 🎓'}</h1>
<p>${publicMode
? 'This certificate was issued by SIMPLILEARN and verified against the learner ID.'
: 'Download it, share the verification link, or keep learning.'}</p>
</div>
</div>
${certMarkup(cert, url)}
<div class="cert-actions">
<button class="btn btn-primary" id="dlCert">⬇ Download Certificate</button>
<button class="btn btn-ghost" id="copyVerify">🔗 Copy Verification Link</button>
${publicMode
? '<button class="btn btn-ghost" id="goPortal2">Go to SIMPLILEARN →</button>'
: '<button class="btn btn-ghost" id="backDash3">← Dashboard</button>'}
</div>
<p class="cert-hint">Certificate ID <b>${esc(cert.certId)}</b> · The verification link embeds this certificate.</p>
</div>
</div>`;
$('#dlCert').onclick = () => downloadCert(cert);
$('#copyVerify').onclick = () => copyText(url);
if (publicMode){
$('#goPortal2').onclick = () => {
history.replaceState(null, '', location.pathname + location.search);
renderLogin();
};
} else {
$('#backDash3').onclick = renderDashboard;
}
}
async function downloadCert(cert){
const btn = $('#dlCert');
const original = btn.textContent;
btn.disabled = true;
btn.textContent = 'Rendering…';
try {
await (document.fonts ? document.fonts.ready : Promise.resolve());
const el = $('#certEl');
let canvas;
try {
canvas = await html2canvas(el, {
scale: 2,
useCORS: true,
backgroundColor: '#ffffff',
logging: false
});
canvas.toDataURL('image/png');
} catch(err){
el.querySelectorAll('img').forEach(im => { im.style.display = 'none'; });
canvas = await html2canvas(el, {
scale: 2,
backgroundColor: '#ffffff',
logging: false
});
}
const a = document.createElement('a');
a.download = 'SIMPLILEARN-' + cert.certId + '.png';
a.href = canvas.toDataURL('image/png');
a.click();
toast('Certificate downloaded', 'ok');
} catch(e){
toast('Download failed. Please try again.', 'err');
} finally {
btn.disabled = false;
btn.textContent = original;
}
}
async function copyText(text){
try {
await navigator.clipboard.writeText(text);
toast('Link copied', 'ok');
} catch(e){
const ta = document.createElement('textarea');
ta.value = text;
document.body.appendChild(ta);
ta.select();
try { document.execCommand('copy'); toast('Link copied', 'ok'); }
catch(err){ toast('Could not copy link', 'err'); }
ta.remove();
}
}
/* ---------- verify hash ---------- */
function handleVerifyHash(){
if (!location.hash.startsWith('#verify=')) return false;
try {
const cert = b64dec(location.hash.slice(8));
if (!cert || !cert.certId || !cert.name) return false;
renderCertificate(cert);
return true;
} catch(e){
return false;
}
}
/* ---------- logout ---------- */
function logout(){
LS.del(K.session);
App.session = null;
App.unlock = null;
App.courseId = null;
destroyPlayer();
history.replaceState(null, '', location.pathname + location.search);
renderLogin();
}
/* ---------- init ---------- */
$('#brandHome').addEventListener('click', e => {
e.preventDefault();
if (location.hash.startsWith('#verify=')){
history.replaceState(null, '', location.pathname + location.search);
renderLogin();
return;
}
if (App.session) renderDashboard();
else renderLogin();
});
window.addEventListener('hashchange', () => {
if (location.hash.startsWith('#verify=')){
handleVerifyHash();
} else if (App.session){
renderDashboard();
} else {
renderLogin();
}
});
(function init(){
if (handleVerifyHash()) return;
const s = LS.get(K.session, null);
if (s && s.id){
App.session = s;
loadUserData();
renderDashboard();
} else {
renderLogin();
}
})();
</script>
</body>
</html> |