/* =========================
   Registration + Login Form
========================= */

.nirbim-form,
.nirbim-login-form{
    max-width:900px;
    margin:40px auto;
    background:#fff;
    padding:30px;
    border-radius:12px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.nirbim-row{ margin-bottom:18px; }

.nirbim-row label{
    display:block;
    margin-bottom:8px;
    font-size:15px;
    font-weight:600;
    color:#333;
}

.nirbim-form input,
.nirbim-form select,
.nirbim-form textarea,
.nirbim-login-form input{
    width:100%;
    padding:12px 15px;
    border:1px solid #ddd;
    border-radius:8px;
    background:#fff;
    font-size:15px;
    box-sizing:border-box;
}

.nirbim-form textarea{ min-height:120px; resize:vertical; }

.nirbim-form input:focus,
.nirbim-form select:focus,
.nirbim-form textarea:focus,
.nirbim-login-form input:focus{
    outline:none;
    border-color:#ff7a1a;
}

.nirbim-form button,
.nirbim-form input[type="submit"],
.nirbim-login-form button{
    background:#ff7a1a;
    color:#fff;
    border:none;
    padding:14px 28px;
    border-radius:8px;
    cursor:pointer;
    font-weight:600;
    font-size:15px;
    width:100%;
    box-sizing:border-box;
}

.nirbim-form button:hover,
.nirbim-login-form button:hover{ opacity:.9; }

.nirbim-success{
    background:#d1fae5;
    color:#065f46;
    padding:15px;
    border-radius:8px;
    margin-bottom:20px;
}

.nirbim-error{
    background:#fee2e2;
    color:#991b1b;
    padding:15px;
    border-radius:8px;
    margin-bottom:20px;
}

.nirbim-section-title{
    font-size:16px;
    color:#ff7a1a;
    text-transform:uppercase;
    letter-spacing:.5px;
    border-bottom:2px solid #ffe3cc;
    padding-bottom:8px;
    margin:32px 0 18px;
}
.nirbim-section-title:first-of-type{ margin-top:0; }

.nirbim-checkbox-group{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px 20px;
    margin-bottom:18px;
}
.nirbim-checkbox-group label{
    font-weight:normal;
    font-size:14px;
    color:#444;
    display:flex;
    align-items:flex-start;
    gap:8px;
}
.nirbim-checkbox-group input[type="checkbox"]{ width:auto; margin-top:3px; }

.nirbim-declaration label{
    display:flex;
    align-items:flex-start;
    gap:10px;
    font-weight:normal;
    font-size:14px;
    line-height:1.6;
    color:#444;
}
.nirbim-declaration input[type="checkbox"]{ width:auto; margin-top:4px; flex-shrink:0; }

/* =========================
   Verification Page
========================= */

.nirbim-verification{
    max-width:700px;
    margin:40px auto;
    background:#fff;
    padding:30px;
    border-radius:12px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}
.nirbim-result{
    margin-top:25px;
    padding:20px;
    background:#f8f9fa;
    border-radius:10px;
}

/* =========================
   Modern Dashboard
========================= */

.ndb-wrap{
    display:flex;
    min-height:100vh;
    background:#f4f6fb;
    font-family:'Segoe UI',Arial,sans-serif;
    gap:0;
}

/* SIDEBAR */
.ndb-sidebar{
    width:260px;
    min-width:220px;
    background:linear-gradient(170deg,#1a1a2e 0%,#16213e 60%,#0f3460 100%);
    display:flex;
    flex-direction:column;
    padding:0;
    position:relative;
    flex-shrink:0;
}

.ndb-org-logo{
    display:flex;
    flex-direction:column;
    align-items:center;
    padding:28px 20px 20px;
    border-bottom:1px solid rgba(255,255,255,.08);
    gap:10px;
}
.ndb-org-logo img{
    width:56px;
    height:56px;
    object-fit:contain;
    border-radius:10px;
    background:#fff;
    padding:4px;
}
.ndb-org-initial{
    width:56px;
    height:56px;
    border-radius:10px;
    background:linear-gradient(135deg,#ff7a1a,#ffa14d);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:26px;
    font-weight:800;
    color:#fff;
}
.ndb-org-name{
    font-size:13px;
    font-weight:700;
    color:#fff;
    text-align:center;
    letter-spacing:.5px;
    opacity:.95;
}

.ndb-member-photo-wrap{
    display:flex;
    flex-direction:column;
    align-items:center;
    padding:20px 20px 16px;
    border-bottom:1px solid rgba(255,255,255,.08);
    gap:6px;
}
.ndb-member-photo{
    width:80px;
    height:80px;
    border-radius:50%;
    object-fit:cover;
    border:3px solid #ff7a1a;
    box-shadow:0 4px 14px rgba(0,0,0,.3);
}
.ndb-member-name{
    font-size:15px;
    font-weight:700;
    color:#fff;
    text-align:center;
    line-height:1.3;
}
.ndb-member-id{
    font-size:12px;
    color:rgba(255,255,255,.55);
    letter-spacing:.5px;
}

.ndb-badge{
    display:inline-block;
    padding:3px 12px;
    border-radius:20px;
    font-size:11px;
    font-weight:700;
    letter-spacing:.5px;
    text-transform:uppercase;
}
.ndb-badge-approved{ background:#d1fae5; color:#065f46; }
.ndb-badge-pending{ background:#fef3c7; color:#92400e; }
.ndb-badge-rejected{ background:#fee2e2; color:#991b1b; }

.ndb-nav{
    flex:1;
    padding:16px 12px;
    display:flex;
    flex-direction:column;
    gap:4px;
}
.ndb-nav-item{
    display:flex;
    align-items:center;
    gap:10px;
    padding:11px 14px;
    border-radius:10px;
    color:rgba(255,255,255,.6);
    text-decoration:none;
    font-size:14px;
    font-weight:500;
    transition:all .2s ease;
    cursor:pointer;
}
.ndb-nav-item:hover{
    background:rgba(255,122,26,.15);
    color:#fff;
}
.ndb-nav-item.active{
    background:linear-gradient(90deg,#ff7a1a,#ffa14d);
    color:#fff;
    font-weight:700;
    box-shadow:0 4px 12px rgba(255,122,26,.35);
}
.ndb-nav-item svg{ flex-shrink:0; }

.ndb-nav-separator{
    height:1px;
    background:rgba(255,255,255,.1);
    margin:10px 14px;
}
.ndb-nav-logout{
    color:rgba(252,165,165,.75) !important;
}
.ndb-nav-logout:hover{
    background:rgba(239,68,68,.15) !important;
    color:#fca5a5 !important;
}

/* MAIN */
.ndb-main{
    flex:1;
    padding:32px;
    overflow-y:auto;
    min-height:100vh;
}

.ndb-tab{ display:none; }
.ndb-tab.active{ display:block; }

.ndb-page-header{ margin-bottom:28px; }
.ndb-page-header h2{
    margin:0 0 4px;
    font-size:24px;
    font-weight:800;
    color:#1a1a2e;
}
.ndb-page-header p{
    margin:0;
    color:#888;
    font-size:14px;
}

/* Stats Row */
.ndb-stats-row{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:16px;
    margin-bottom:28px;
}
.ndb-stat-card{
    background:#fff;
    border-radius:14px;
    padding:18px;
    display:flex;
    align-items:center;
    gap:14px;
    box-shadow:0 2px 12px rgba(0,0,0,.06);
    border:1px solid #f0f0f0;
}
.ndb-stat-icon{
    width:46px;
    height:46px;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}
.ndb-icon-orange{ background:#fff3ea; }
.ndb-icon-orange svg{ stroke:#ff7a1a; }
.ndb-icon-green{ background:#d1fae5; }
.ndb-icon-green svg{ stroke:#059669; }
.ndb-icon-blue{ background:#dbeafe; }
.ndb-icon-blue svg{ stroke:#2563eb; }
.ndb-icon-purple{ background:#ede9fe; }
.ndb-icon-purple svg{ stroke:#7c3aed; }

.ndb-stat-label{ font-size:12px; color:#888; font-weight:500; margin-bottom:3px; }
.ndb-stat-value{ font-size:14px; font-weight:700; color:#1a1a2e; }

/* Info Grid */
.ndb-info-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}
.ndb-info-card{
    background:#fff;
    border-radius:14px;
    padding:22px;
    box-shadow:0 2px 12px rgba(0,0,0,.06);
    border:1px solid #f0f0f0;
}
.ndb-info-title{
    font-size:14px;
    font-weight:700;
    color:#1a1a2e;
    margin:0 0 16px;
    display:flex;
    align-items:center;
    gap:8px;
    padding-bottom:12px;
    border-bottom:2px solid #fff3ea;
}
.ndb-info-row{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    padding:8px 0;
    border-bottom:1px solid #f8f8f8;
    font-size:13px;
    gap:12px;
}
.ndb-info-row:last-child{ border-bottom:none; }
.ndb-info-row span{ color:#888; flex-shrink:0; }
.ndb-info-row strong{ color:#1a1a2e; text-align:right; }

/* Downloads */
.ndb-doc-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:24px;
    margin-bottom:20px;
}
.ndb-doc-card{
    background:#fff;
    border-radius:16px;
    padding:30px;
    box-shadow:0 2px 12px rgba(0,0,0,.06);
    border:1px solid #f0f0f0;
    text-align:center;
    transition:transform .2s ease, box-shadow .2s ease;
}
.ndb-doc-card:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 24px rgba(0,0,0,.1);
}
.ndb-doc-icon{
    width:80px;
    height:80px;
    background:#fff3ea;
    border-radius:50%;
    margin:0 auto 16px;
    display:flex;
    align-items:center;
    justify-content:center;
}
.ndb-doc-card h3{
    margin:0 0 8px;
    font-size:17px;
    color:#1a1a2e;
}
.ndb-doc-card p{
    font-size:13px;
    color:#888;
    margin:0 0 20px;
    line-height:1.6;
}
.ndb-dl-btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:12px 22px;
    border-radius:10px;
    font-size:14px;
    font-weight:700;
    text-decoration:none;
    transition:all .2s ease;
    cursor:pointer;
}
.ndb-dl-primary{
    background:linear-gradient(135deg,#ff7a1a,#ffa14d);
    color:#fff;
    box-shadow:0 4px 12px rgba(255,122,26,.35);
}
.ndb-dl-primary:hover{ opacity:.9; transform:translateY(-1px); color:#fff; }
.ndb-dl-outline{
    background:#fff;
    color:#ff7a1a;
    border:2px solid #ff7a1a;
}
.ndb-dl-outline:hover{ background:#fff3ea; color:#ff7a1a; }

.ndb-notice{
    display:flex;
    align-items:flex-start;
    gap:12px;
    padding:16px 20px;
    border-radius:12px;
    font-size:14px;
    line-height:1.6;
    margin-bottom:20px;
}
.ndb-notice-warning{
    background:#fef3c7;
    color:#92400e;
    border:1px solid #fde68a;
}
.ndb-dl-help{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:13px;
    color:#888;
    background:#f8f9fa;
    padding:12px 16px;
    border-radius:10px;
}

/* Account */
.ndb-account-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:24px;
}
.ndb-pwd-form{ display:flex; flex-direction:column; gap:0; }
.ndb-form-row{ margin-bottom:16px; }
.ndb-form-row label{
    display:block;
    font-size:13px;
    font-weight:600;
    color:#444;
    margin-bottom:6px;
}
.ndb-form-row input{
    width:100%;
    padding:11px 14px;
    border:1px solid #ddd;
    border-radius:8px;
    font-size:14px;
    box-sizing:border-box;
    transition:border-color .2s;
}
.ndb-form-row input:focus{
    outline:none;
    border-color:#ff7a1a;
    box-shadow:0 0 0 3px rgba(255,122,26,.1);
}
.ndb-submit-btn{
    background:linear-gradient(135deg,#ff7a1a,#ffa14d);
    color:#fff;
    border:none;
    padding:13px 22px;
    border-radius:10px;
    font-size:14px;
    font-weight:700;
    cursor:pointer;
    width:100%;
    box-shadow:0 4px 12px rgba(255,122,26,.3);
    transition:opacity .2s;
    margin-top:4px;
}
.ndb-submit-btn:hover{ opacity:.9; }

.ndb-logout-card{
    display:flex;
    flex-direction:column;
    justify-content:center;
}
.ndb-logout-card-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:13px 22px;
    background:#fee2e2;
    color:#991b1b;
    border:2px solid #fca5a5;
    border-radius:10px;
    font-size:14px;
    font-weight:700;
    text-decoration:none;
    transition:all .2s;
    margin-top:16px;
}
.ndb-logout-card-btn:hover{
    background:#ef4444;
    color:#fff;
    border-color:#ef4444;
}

/* =========================
   Mobile Responsive
========================= */

@media(max-width:1024px){
    .ndb-stats-row{ grid-template-columns:repeat(2,1fr); }
    .ndb-info-grid{ grid-template-columns:1fr 1fr; }
}

@media(max-width:768px){
    .ndb-wrap{ flex-direction:column; }
    .ndb-sidebar{
        width:100%;
        min-width:unset;
    }
    .ndb-member-photo-wrap{ flex-direction:row; align-items:center; gap:14px; padding:16px 20px; }
    .ndb-nav{ flex-direction:row; flex-wrap:wrap; padding:12px; gap:8px; }
    .ndb-nav-item{ flex:1; min-width:100px; justify-content:center; font-size:13px; }
    .ndb-nav-separator{ display:none; }
    .ndb-main{ padding:20px 16px; min-height:unset; }
    .ndb-stats-row{ grid-template-columns:1fr 1fr; gap:12px; }
    .ndb-info-grid{ grid-template-columns:1fr; }
    .ndb-doc-grid{ grid-template-columns:1fr; }
    .ndb-account-grid{ grid-template-columns:1fr; }

    .nirbim-form,
    .nirbim-login-form{ padding:20px 16px; margin:16px 8px; }
    .nirbim-verification{ margin:16px 8px; padding:20px 16px; }
}

@media(max-width:480px){
    .ndb-stats-row{ grid-template-columns:1fr; }
    .ndb-member-photo-wrap{ flex-direction:column; }
    .ndb-org-logo{ flex-direction:row; padding:16px; }
    .ndb-nav-item span{ display:none; }

    .nirbim-checkbox-group{ grid-template-columns:1fr; }
}

/* =========================
   Centered Login Portal Page
========================= */

.nlp-center-wrap {
    min-height: 100vh;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 55%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
    font-family: 'Segoe UI', Arial, sans-serif;
    position: relative;
    overflow: hidden;
}

/* decorative circles */
.nlp-center-wrap::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 360px; height: 360px;
    border-radius: 50%;
    background: rgba(255,122,26,.10);
    pointer-events: none;
}
.nlp-center-wrap::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -80px;
    width: 280px; height: 280px;
    border-radius: 50%;
    background: rgba(255,122,26,.07);
    pointer-events: none;
}

.nlp-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    overflow: hidden;
}

/* Top header strip inside card */
.nlp-card-header {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    text-align: center;
    padding: 38px 28px 28px;
}

.nlp-logo {
    width: 96px;
    height: 96px;
    object-fit: contain;
    border-radius: 20px;
    background: #fff;
    padding: 10px;
    box-shadow: 0 10px 28px rgba(0,0,0,.3);
    margin-bottom: 16px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.nlp-logo-initial {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ff7a1a, #ffa14d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    margin: 0 auto 16px;
    box-shadow: 0 10px 28px rgba(255,122,26,.45);
}

.nlp-org-name {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: .5px;
}

.nlp-org-sub {
    margin: 0;
    font-size: 12px;
    color: rgba(255,255,255,.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nlp-divider {
    height: 4px;
    background: linear-gradient(90deg, #ff7a1a, #ffa14d);
}

/* Form section */
.nlp-form-section {
    padding: 28px 32px 32px;
}

.nlp-welcome {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 800;
    color: #1a1a2e;
    text-align: center;
}
.nlp-welcome-sub {
    margin: 0 0 22px;
    font-size: 13px;
    color: #888;
    text-align: center;
}

.nlp-error {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    margin-bottom: 18px;
}

.nlp-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    margin-bottom: 18px;
}

.nlp-form { display: flex; flex-direction: column; }

.nlp-field { margin-bottom: 16px; }
.nlp-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #444;
    margin-bottom: 7px;
}

.nlp-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    isolation: isolate;
}
.nlp-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    z-index: 5;
    width: 17px;
    height: 17px;
    opacity: 1;
    transition: opacity .15s ease;
}
.nlp-input-wrap input:focus ~ .nlp-input-icon,
.nlp-input-wrap input:not(:placeholder-shown) ~ .nlp-input-icon{
    opacity: 0;
}
.nlp-input-wrap input {
    width: 100%;
    padding: 13px 16px 13px 46px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: #1a1a2e;
    background: #fafafa;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s, padding-left .15s ease;
    position: relative;
    z-index: 1;
    line-height: normal;
}
.nlp-input-wrap input:focus,
.nlp-input-wrap input:not(:placeholder-shown){
    padding-left: 16px;
}
.nlp-input-wrap input:focus {
    outline: none;
    border-color: #ff7a1a;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255,122,26,.12);
}
.nlp-input-wrap:focus-within .nlp-input-icon {
    color: #ff7a1a;
}
.nlp-toggle-pwd {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    color: #bbb;
    padding: 4px;
    display: flex;
    align-items: center;
    z-index: 5;
}
.nlp-toggle-pwd:hover { color: #ff7a1a; }
.nlp-input-wrap input#nlp_pwd {
    padding-right: 44px;
}

@media (max-width: 480px) {
    .nlp-input-wrap input {
        font-size: 16px;
    }
    .nlp-input-icon {
        left: 14px;
    }
    .nlp-input-wrap input#nlp_pwd {
        padding-right: 42px;
    }
    .nlp-toggle-pwd {
        right: 12px;
    }
}

.nlp-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ff7a1a, #ffa14d);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(255,122,26,.38);
    transition: opacity .2s, transform .1s;
    margin-top: 4px;
    letter-spacing: .3px;
}
.nlp-submit-btn:hover {
    opacity: .92;
    transform: translateY(-1px);
}

.nlp-register-link {
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
    color: #888;
}
.nlp-register-link a {
    color: #ff7a1a;
    font-weight: 700;
    text-decoration: none;
}
.nlp-register-link a:hover { text-decoration: underline; }

@media (max-width: 480px) {
    .nlp-form-section { padding: 22px 20px 26px; }
    .nlp-card-header { padding: 24px 20px 18px; }
    .nlp-org-name { font-size: 18px; }
}

/* =========================
   Donate Tab
========================= */

.ndb-donate-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:24px;
}

.ndb-select{
    width:100%;
    padding:11px 14px;
    border:1px solid #ddd;
    border-radius:8px;
    font-size:14px;
    box-sizing:border-box;
    background:#fff;
    transition:border-color .2s;
}
.ndb-select:focus{
    outline:none;
    border-color:#ff7a1a;
    box-shadow:0 0 0 3px rgba(255,122,26,.1);
}

.ndb-donate-info{
    display:flex;
    flex-direction:column;
}

.ndb-donate-steps{
    list-style:none;
    padding:0;
    margin:0 0 22px;
    display:flex;
    flex-direction:column;
    gap:12px;
}
.ndb-donate-steps li{
    font-size:13px;
    color:#555;
    line-height:1.6;
    background:#f8f9fa;
    padding:12px 14px;
    border-radius:10px;
    border-left:3px solid #ff7a1a;
}
.ndb-donate-steps li strong{
    color:#1a1a2e;
    display:block;
    margin-bottom:2px;
}

.ndb-donate-bank{
    background:linear-gradient(135deg,#fff3ea,#fff);
    border:1px solid #ffe3cc;
    border-radius:12px;
    padding:16px 18px;
    margin-top:auto;
}
.ndb-donate-bank-title{
    font-size:12px;
    font-weight:700;
    color:#ff7a1a;
    text-transform:uppercase;
    letter-spacing:.5px;
    margin-bottom:10px;
}

@media(max-width:768px){
    .ndb-donate-grid{ grid-template-columns:1fr; }
}
