@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');
:root{--purple:#6c4bd2;--navy:#202748;--muted:#858ba1;--bg:#f4f5fa;--card:#fff;--line:#eceef5;--shadow:0 8px 30px #262a4f0e}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--navy);font:14px Cairo,Tahoma,sans-serif}.topbar{height:80px;background:linear-gradient(110deg,#7253dc,#6242c7);color:white;display:flex;align-items:center;justify-content:space-between;padding:0 max(calc((100vw - 1180px)/2),22px)}.brand,.top-actions,.card-heading,.results-title,.rate-actions,.dialog-heading,.dialog-actions{display:flex;align-items:center;gap:12px}.brand-icon{width:43px;height:43px;border-radius:13px;background:#ffffff22;display:grid;place-items:center;font-size:28px}.brand h1{font-size:20px;margin:0}.brand p{margin:0;color:#e3dcff;font-size:11px}.top-actions{gap:9px}.demo-pill{font-size:10px;background:#ffffff20;border-radius:20px;padding:6px 10px}.icon-button{background:#ffffff20;color:white;border:1px solid #ffffff35;border-radius:10px;padding:8px}.page{max-width:1180px;margin:auto;padding:30px 22px}.welcome{display:flex;justify-content:space-between;align-items:center;margin:0 0 24px;min-height:120px}.eyebrow{color:var(--purple);font-weight:700;font-size:12px;margin:0}.welcome h2{font-size:25px;margin:2px 0}.welcome h2 span{color:var(--purple)}.welcome-sub,.card-heading p{color:var(--muted);font-size:12px;margin:4px 0}.welcome-art{display:flex;gap:10px;direction:ltr}.welcome-art span{padding:16px 20px;border-radius:15px;background:#e9e3ff;color:var(--purple);font-weight:800;font-size:24px;box-shadow:var(--shadow)}.welcome-art span:nth-child(2){background:#d9f7ed;color:#159b73}.welcome-art span:nth-child(3){background:#fff0d9;color:#c78018;font-size:16px}.dashboard{display:grid;grid-template-columns:1fr 1fr;gap:22px}.card{background:var(--card);border:1px solid #eef0f6;border-radius:18px;padding:24px;box-shadow:var(--shadow);min-width:0}.card-heading{margin-bottom:22px}.heading-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;font-size:23px}.purple{background:#eee9ff;color:var(--purple)}.green{background:#e1f8ef;color:#169e72}.card-heading h3{font-size:17px;margin:0}.card label,.auth-dialog label,#ratesDialog label{display:block;font-size:12px;font-weight:700;margin:12px 0 7px}.amount-wrap,.select-wrap{position:relative;margin-bottom:16px}.amount-wrap input,.select-wrap select,#ratesDialog input,.auth-dialog input{width:100%;height:49px;border:1px solid #e5e7f0;border-radius:10px;background:#fbfbfe;color:var(--navy);font:inherit;padding:0 13px}.amount-wrap input{direction:ltr;text-align:right;font-weight:800;font-size:18px;padding-left:70px}.amount-wrap span{position:absolute;left:13px;top:14px;color:var(--muted);font-size:10px}.select-wrap select{cursor:pointer}.results-title{justify-content:space-between;font-size:12px;font-weight:800;margin:12px 0}.live-dot{width:7px;height:7px;border-radius:50%;background:#1db887}.results{display:grid;gap:8px}.result-row{display:flex;align-items:center;justify-content:space-between;background:#f8f8fc;border:1px solid #f0f0f7;border-radius:11px;padding:12px}.result-currency{display:flex;align-items:center;gap:9px}.currency-flag{width:33px;height:33px;border-radius:9px;background:white;display:grid;place-items:center;font-size:18px}.currency-name{font-size:12px;font-weight:700}.currency-code{display:block;font-size:10px;color:var(--muted)}.result-value{direction:ltr;text-align:left;font-weight:800;font-size:15px}.result-value small{color:var(--muted);font-size:10px}.base-rate{display:flex;justify-content:space-between;align-items:center;padding:13px 15px;background:#f5f1ff;border:1px solid #eee8ff;border-radius:12px;margin-bottom:16px}.base-rate small{display:block;color:var(--muted);font-size:10px}.base-rate strong{font-size:13px}.base-symbol{background:#e8e0ff;color:var(--purple);padding:6px 13px;border-radius:10px;font-size:23px}table{width:100%;border-collapse:collapse}th{text-align:right;color:#989db0;font-size:10px;background:#fafaff;padding:11px}td{padding:14px 10px;border-bottom:1px solid var(--line);font-size:12px}tbody tr:last-child td{border:0}.rate-num{direction:ltr;text-align:left;font-weight:800}.rate-actions{margin-top:18px}.button{font:inherit;font-size:11px;font-weight:700;border:0;border-radius:10px;padding:11px 14px;cursor:pointer;display:inline-flex;justify-content:center;align-items:center;gap:7px}.primary{background:var(--purple);color:white}.secondary{background:#f1edff;color:var(--purple);border:1px solid #e5ddff}.rate-actions .primary{flex:1}.hint{font-size:10px;color:#969bb0;line-height:1.8;margin:13px 0 0}footer{display:flex;justify-content:space-between;color:#a0a4b5;font-size:10px;padding:24px 3px}.toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%,20px);opacity:0;background:#242943;color:white;border-radius:12px;padding:12px 18px;transition:.2s;z-index:20;pointer-events:none}.toast.show{opacity:1;transform:translate(-50%,0)}dialog{border:0;border-radius:17px;width:min(430px,calc(100% - 28px));padding:24px;color:var(--navy);box-shadow:0 25px 80px #20274830}dialog::backdrop{background:#1a1c35a6;backdrop-filter:blur(3px)}.dialog-actions{margin-top:20px}.dialog-actions>*{flex:1}.dialog-heading{justify-content:space-between}.dialog-heading h3{margin:0}.dialog-heading p{color:var(--muted);font-size:11px}.close-dialog{border:0;border-radius:8px;font-size:22px}.dark{--navy:#f1f2ff;--muted:#a7acc4;--bg:#17192a;--card:#22253a;--line:#373a50;--shadow:0 8px 30px #0002}.dark .card{border-color:#30334a}.dark .amount-wrap input,.dark .select-wrap select,.dark dialog input{background:#292c42;color:#f1f2ff;border-color:#3c3f56}.dark .result-row,.dark th{background:#292c42;border-color:#363950}.dark .base-rate{background:#2c2844}.dark .currency-flag{background:#34374d}
@media(max-width:800px){.page{padding:22px 16px}.dashboard{grid-template-columns:1fr}.welcome-art{transform:scale(.8);transform-origin:left center}.card{padding:20px}}
@media(max-width:480px){.topbar{height:72px;padding:0 12px}.brand h1{font-size:16px}.brand-icon{width:36px;height:36px}.welcome h2{font-size:20px}.welcome-art{display:none}.demo-pill{display:none}.rate-actions{flex-direction:column}.rate-actions>*{width:100%}.card{padding:17px}footer{font-size:9px}}

.demo-pill{font-size:12px}.account-strip span{font-size:13px}.admin-user{font-size:13px}.card label{font-size:14px}.result-value small{font-size:13px}
