:root{--brand:#ff3b30;--bg:#f5f6f7}
html,body{height:100%;margin:0;font-family:Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;color:#222;background:var(--bg)}
/* Header */
.header{background:var(--brand);color:white;display:flex;align-items:center;justify-content:space-between;padding:14px 16px}
.header .left,.header .center,.header .right{display:flex;align-items:center}
.header img{height:22px}
.header .center{flex:1;justify-content:center;font-weight:600}

/* red blank area */
.div-blank{background:var(--brand);height:70px;border-bottom-left-radius:18px;border-bottom-right-radius:18px;overflow:hidden;display:flex;align-items: center;justify-content:center;}

.div-blank .logo-info{color:rgba(255,255,255,0.95);font-size:13px;margin-top:6px;text-align:center;max-width:86%;line-height:1.2}

/* main card */
.wrap{max-width:420px;margin:0 auto;padding:16px}
.card{background:white;border-radius:12px;box-shadow:0 8px 20px rgba(0,0,0,0.08);padding:20px;margin-top:-41px}
h1.title{font-size:20px;margin:5px;color: white;}
form .field{margin-bottom:14px}
label{display:block;font-size:15px;color:#444;margin-bottom:8px}
input[type="text"],input[type="tel"],input[type="email"],input[type="password"]{width:100%;padding:14px 12px;border:1px solid #e3e5e8;border-radius:10px;font-size:16px;box-sizing:border-box}
/* phone-row: flag toggle + phone input look unified */
.phone-row{display:flex;gap:8px;align-items:center}
.country-select{display:flex;align-items:center}
.country-select #country_toggle{display:flex;align-items:center;gap:6px;border:1px solid #e3e5e8;background:#fff;padding:0 8px;border-radius:10px;height:44px;min-width:68px;cursor:pointer}
.country-select #country_toggle img{width:20px;height:auto;display:block}
.country-select #country_code_label{font-weight:600;color:#222}
.phone-row input[type="tel"]{padding:12px 12px;font-size:16px;border-radius:10px;height:44px}


/* modal (alerts/info) */
.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,0.45);z-index:1200}
.modal{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:1201;max-width:92%;width:420px}
.modal .modal-content{background:#fff;border-radius:12px;padding:18px;box-shadow:0 12px 32px rgba(0,0,0,0.18)}
.modal .modal-title{margin:0 0 8px 0;font-size:18px}
.modal .modal-body{color:#333;font-size:15px}
.modal .modal-close{position:absolute;right:10px;top:6px;border:none;background:transparent;font-size:26px;line-height:1;cursor:pointer}

/* password visibility */
.password-wrapper{position:relative}
.password-wrapper input{padding-right:44px}
.toggle-password{position:absolute;right:6px;top:50%;transform:translateY(-50%);background:transparent;border:none;padding:6px;display:flex;align-items:center;justify-content:center;border-radius:8px;cursor:pointer;color:var(--brand)}
.toggle-password svg{width:22px;height:22px;display:block}
.toggle-password:focus{outline:2px solid rgba(255,59,48,0.12);border-radius:8px}
.terms{display:flex;align-items:center;gap:8px;font-size:13px;color:#444}
.btn{display:inline-block;width:100%;background:var(--brand);color:white;border:none;padding:14px;border-radius:10px;font-weight:700;font-size:16px;cursor:pointer}
.meta{margin-top:12px;text-align:center;font-size:13px;color:#666}
.meta a{color:var(--brand);text-decoration:none;font-weight:600}
/* small screens adjustments */

/* KYC upload styles */
.upload-area{background:#fff;border:2px dashed rgba(0,0,0,0.06);border-radius:12px;padding:18px;display:flex;flex-direction:column;align-items:center;gap:12px;cursor:pointer;min-height:140px}
.upload-area:hover{box-shadow:0 6px 18px rgba(0,0,0,0.04)}
.upload-area .hint{color:#666;font-size:14px;text-align:center}
.upload-area .icon{width:40px;height:40px;color:var(--brand);display:block}
.upload-input{position:relative;width:100%}
.upload-input input[type=file]{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}
.upload-preview{width:100%;max-width:320px;border-radius:8px;overflow:hidden;border:1px solid #eee;background:#fafafa}
.upload-preview img{display:block;width:100%;height:auto}
.upload-area{position:relative;overflow:hidden}
.upload-area .preview-img{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;z-index:1}
.upload-area .preview-img img{width:100%;height:100%;object-fit:cover;display:block}
.upload-area.previewing .hint{display:none}
.upload-area.previewing .icon{display:none}
.upload-area.previewing .upload-input{position:relative;z-index:2}
.upload-row{display:flex;flex-direction:column;gap:12px}
.upload-label{font-weight:600;color:#333}

