:root {
    --green: #4cbd60;
    --teal: #27a89a;
    --ink: #555;
    --muted: #858585;
    --line: #e7e7e7;
    --shadow: 0 2px 9px #00000016;
    --warning: #fff2a8
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: #fafafa;
    color: var(--ink);
    font: 15px/1.5 "Segoe UI", Arial, sans-serif
}

.confirmText{
    font-size: smaller;
}

.headi1{
    font-weight: 600;
    font-size: small
}

.hidden {
    display: none !important
}

.demo-ribbon {
    background: #fff3cd;
    color: #775d00;
    text-align: center;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    border-bottom: 1px solid #f0d982
}

.scrollto {
    border: 0;
    border-radius: 3px;
    padding: 10px 16px;
    font: inherit;
    cursor: pointer;
    transition: filter .15s, transform .15s, box-shadow .15s;
    background: #8271ee;
    color: #fff;
    width: 200%;
}

.btn {
    border: 0;
    border-radius: 3px;
    padding: 10px 16px;
    font: inherit;
    cursor: pointer;
    transition: filter .15s, transform .15s, box-shadow .15s
}

.btn:hover {
    filter: brightness(.96);
    box-shadow: 0 2px 7px #0002
}

.btn:active {
    transform: translateY(1px)
}

.btn-green {
    background: var(--green);
    color: #fff
}

.btn-primary {
    background: #b9e7c2;
    color: #fff
}

.btn-light {
    background: #fff;
    color: #4b9b63
}

.btn-purple {
    background: #8271ee;
    color: #fff;
}

.btn-outline {
    background: #fff;
    border: 1px solid var(--green);
    color: var(--green)
}

.btn-contact {
    background: #fff;
    color: #4b9b63;
    border-radius: 30px;
    box-shadow: var(--shadow);
    font-size: 11px;
    letter-spacing: .08em
}

.full {
    width: 100%
}

.btn-small {
    font-size: 11px;
    padding: 6px 10px;
    margin: 5px 0 12px
}

.login-wrap {
    max-width: 760px;
    margin: 40px auto 0;
    padding: 0 16px
}

.login-card {
    background: #fff;
    padding: 30px 34px 34px;
    box-shadow: var(--shadow);
    border: 1px solid #eee
}

.institution {
    text-align: center;
    color: #333;
    margin: 0 auto 44px
}

.institution p {
    margin: 6px 0
}

.demo-emblem {
    width: 88px;
    height: 88px;
    border: 3px double #5a9a68;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 12px;
    color: #328b59;
    font-weight: 800;
    font-size: 26px;
    background: #f7fff8
}

.login-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px
}

.login-form {
    padding-right: 30px;
    border-right: 1px solid var(--line)
}

h2 {
    font-size: 19px;
    font-weight: 400;
    margin: 0 0 22px;
    color: #555
}

.login-form input,
.admin-gate input,
.editor-form input,
.editor-form select,
.editor-form textarea {
    height: 14%;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #aaa;
    border-radius: 5px;
    margin: 0 0 14px;
    font: inherit;
    background: white
}

.hint {
    font-size: 12px;
    color: #888;
    text-decoration: underline
}

.signup-panel p {
    font-size: 13px;
    margin: 20px 0
}

.text-link,
.site-footer a,
.bottom-links a {
    color: #4caa69;
    text-decoration: none
}

.site-footer {
    text-align: center;
    font-size: 12px;
    margin: 18px auto 50px
}

.site-footer span,
.bottom-links span {
    margin: 0 12px;
    color: #999
}

.site-footer p {
    color: #999
}

.error {
    color: #c44;
    font-size: 13px
}

.topbar {
    height: 200px;
    background: linear-gradient(110deg, #2cae9b, #4cc65a);
    position: relative;
    color: white;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 55px 20px
}

.topbar-title {
    font-size: 18px;
    text-align: center
}

.logout {
    position: absolute;
    right: max(6%, calc((100% - 1120px)/2));
    top: 105px;
    color: #c44;
    font-weight: 600
}

.dashboard-shell {
    max-width: 960px;
    margin: -1px auto 50px;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    padding: 0 12px
}

.profile-column {
    position: relative;
    text-align: center;
    padding: 0 0 20px;
    margin-top: -75px
}

.avatar {
    width: 136px;
    height: 136px;
    border-radius: 50%;
    border: 13px solid #fff;
    background: linear-gradient(140deg, #28a99a, #42c55d);
    margin: 0 auto 30px;
    color: #fff;
    font-size: 60px;
    line-height: 105px
}

.profile-column h1 {
    font-size: 23px;
    font-weight: 500;
    color: #444;
    margin: 0 0 24px
}

.meta-label {
    font-size: 10px;
    letter-spacing: .09em;
    color: #888;
    margin: 20px 0 5px
}

.profile-column strong {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin-bottom: 10px
}

.qr-placeholder {
    height: 108px;
    width: 108px;
    margin: 16px auto;
    background: repeating-conic-gradient(#111 0 25%, #fff 0 50%) 0/12px 12px;
    display: grid;
    place-items: center
}

.qr-placeholder span {
    background: white;
    padding: 8px;
    font-size: 10px;
    font-weight: 800;
    color: #333
}

.progress-heading {
    display: flex;
    justify-content: space-between;
    margin: 18px 0 10px
}

.progress-track {
    height: 13px;
    background: #e9eaed;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 20px
}

.progress-track span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #2aa99b, #4ac65d)
}

.progress-steps {
    text-align: left;
    font-size: 12px;
    margin: 12px 0 18px
}

.step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0
}

.step-dot {
    width: 22px;
    height: 22px;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: none
}

.step.complete .step-dot {


    border: 0
}

.step.pending .step-dot {
    background: #f3ae27;
    color: white;
    border: 0
}

.profile-column>.btn {
    margin: 6px 0
}

.content-column {
    padding-top: 30px;
    min-width: 0
}

.alert {
    display: flex;
    gap: 14px;
    padding: 13px 18px;
    margin: 0 0 14px;
    box-shadow: var(--shadow);
    border-left: 5px solid #f4a12c
}

.alert-warning {
    background: var(--warning)
}

.alert p {
    margin: 4px 0;
    font-size: 13px
}

.alert-icon {
    width: 40px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: none
}

.panel {
    background: #fff;
    box-shadow: var(--shadow);
    border: 1px solid #eee;
    margin-bottom: 16px
}

.personal-panel {
    padding: 20px 22px
}

.panel-heading {
    width: 100%;
    display: flex;
    justify-content: space-between;
    background: none;
    border: 0;
    text-align: left;
    color: #555;
    font: inherit;
    cursor: pointer;
    padding: 10px 0
}

.inline-warning {
    font-size: 12px;
    color: #d9953a;
    margin: 0 0 18px;
}

.inlwarning1 {
    font-size: 12px;
    color: #d9953a;
    margin: 0 0 18px;
    display: flex;
}

.personal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    padding: 12px 0
}

.personal-grid small {
    display: block;
    font-size: 10px;
    color: #888;
    margin: 10px 0 3px
}

.personal-grid strong {
    font-size: 15px;
    font-weight: 400;
    display: block;
    overflow-wrap: anywhere
}

.notice-box {
    background: #fff2a8;
    border-left: 4px solid #f4a12c;
    padding: 5px;
    text-align: center;
    color: #ff3838;
    font-size: 13px;
    font-weight: 700;
    margin-top: 10px
}

.service-list {
    display: grid;
    gap: 14px
}

.service-card {
    background: white;
    box-shadow: var(--shadow);
    border: 1px solid #eee
}

.service-head {
    width: 100%;
    background: #fff;
    border: 0;
    padding: 24px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #555;
    font: inherit;
    cursor: pointer
}

.status-icon {
    width: 22px;
    height: 22px;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: grid;
    place-items: center
}

.status-icon.complete {
    background: var(--green);
    color: #fff;
    border: 0
}

.status-icon.pending {
    background: #f3ae27;
    color: #fff;
    border: 0
}

.service-body {
    padding: 4px 24px 22px;
    border-top: 1px solid #f4f4f4
}

.service-body small {
    font-size: 10px;
    color: #888;
    display: block;
    margin: 12px 0 8px
}

.service-body p {
    font-size: 13px
}

.service-action {
    width: 100%;
    background: #069889;
    color: #fff
}

.bottom-links {
    text-align: center;
    font-size: 12px;
    margin: 20px 0 40px
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: #0007;
    z-index: 10;
    align-items: center;
    justify-content: center;
    padding: 16px
}

.modal.open {
    display: flex
}

.modal-card {
    width: min(600px, 100%);
    background: #fff;
    padding: 24px;
    border-radius: 3px;
    box-shadow: 0 8px 35px #0003
}

.modal-card h3 {
    margin: 0 0 20px;
    font-size: 17px;
    font-weight: 600
}

.modal-card p {
    font-size: 14px
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px
}

.payment-summary {
    display: flex;
    justify-content: space-between;
    background: #f7f7f7;
    padding: 14px
}

.success {
    color: #299a50
}

.admin-body {
    background: #f4f6f8
}

.admin-header {
    background: linear-gradient(110deg, #2cae9b, #4cc65a);
    color: white;
    padding: 30px max(20px, calc((100% - 1100px)/2));
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px
}

.admin-header h1 {
    margin: 4px 0;
    font-weight: 500
}

.admin-header p {
    margin: 0;
    opacity: .9
}

.admin-kicker {
    font-size: 11px;
    letter-spacing: .15em
}

.admin-main {
    max-width: 1100px;
    margin: 28px auto;
    padding: 0 16px
}

.admin-gate {
    padding: 24px
}

.admin-gate form {
    display: flex;
    gap: 12px;
    max-width: 600px
}

.admin-gate input {
    margin: 0
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 18px
}

.stat-card {
    background: white;
    padding: 20px;
    box-shadow: var(--shadow)
}

.stat-card small {
    display: block;
    color: #888;
    font-size: 11px
}

.stat-card strong {
    font-size: 24px;
    color: #399c63
}

.admin-section {
    padding: 22px;
    margin-bottom: 20px
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px
}

.section-title h2 {
    margin: 0 0 4px
}

.section-title p {
    margin: 0;
    color: #888;
    font-size: 13px
}

.editor-form {
    background: #f8faf9;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px
}

.editor-form input,
.editor-form select,
.editor-form textarea {
    margin: 0
}

.editor-form textarea {
    grid-column: 1/-1;
    min-height: 75px
}

.editor-form button {
    justify-self: start
}

.table-wrap {
    overflow-x: auto
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px
}

th,
td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #eee;
    font-size: 13px
}

th {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    background: #fafafa
}

td .btn {
    padding: 6px 9px;
    font-size: 11px;
    margin: 2px
}

.status-pill {
    display: inline-block;
    border-radius: 20px;
    padding: 3px 9px;
    background: #eee;
    font-size: 11px
}

.status-pill.complete {
    background: #e2f5e7;
    color: #27884b
}

.status-pill.pending {
    background: #fff2ce;
    color: #98701c
}

@media(max-width:760px) {
    .login-wrap {
        margin: 18px auto
    }

    .scrollto {
        width: 100%;
    }

    .login-card {
        padding: 24px 18px
    }

    .login-columns {
        grid-template-columns: 1fr;
        gap: 24px
    }

    .login-form {
        padding: 0;
        border: 0
    }

    .institution {
        margin-bottom: 30px
    }

    .topbar {
        height: 150px;
        padding-top: 35px
    }

    .logout {
        top: 85px;
        right: 16px
    }

    .dashboard-shell {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 0
    }

    .profile-column {
        margin-top: -40px;
        width: min(100%, 360px);
        padding: 0 12px
    }

    .content-column {
        padding-top: 10px
    }

    .personal-grid {
        gap: 12px
    }

    .admin-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 24px 18px
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr
    }

    .admin-main {
        margin-top: 16px
    }

    .section-title {
        align-items: flex-start;
        flex-direction: column
    }

    .editor-form {
        grid-template-columns: 1fr
    }

    .editor-form textarea {
        grid-column: auto
    }

    .admin-gate form {
        flex-direction: column
    }

    .admin-gate input {
        width: 100%
    }
}

@media(max-width:420px) {
    .personal-panel {
        padding: 14px
    }

    .scrollto {
        width: 100%;
    }

    .personal-grid {
        grid-template-columns: 1fr
    }

    .bottom-links {
        display: flex;
        flex-direction: column;
        gap: 8px
    }

    .bottom-links span {
        display: none
    }

    .stats-grid {
        grid-template-columns: 1fr
    }

    .modal-actions {
        flex-direction: column-reverse
    }

    .modal-actions .btn {
        width: 100%
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}
/* Focused styles for the self-service change dialogs. */
.modal-card label {
    display: block;
    margin: 14px 0 6px;
    color: #777;
    font-size: 10px;
    letter-spacing: .06em;
    font-weight: 600
}

.modal-card input,
.modal-card select {
    display: block;
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #b8b8b8;
    border-radius: 5px;
    background: #fff;
    color: #555;
    font: inherit
}

.modal-card input:focus,
.modal-card select:focus {
    outline: 2px solid #b8e5c5;
    border-color: #35b96b
}

.modal-card .current-value {
    margin: 6px 0 18px;
    color: #777
}

.modal-card .error {
    min-height: 18px;
    margin: 8px 0 0
}

#visaModal .modal-card {
    width: min(680px, 100%);
    border-top: 3px solid #35b96b;
    border-bottom: 3px solid #35b96b;
    border-radius: 0
}

#phoneModal .modal-card,
#emailModal .modal-card {
    width: min(360px, 100%);
    border-top: 3px solid #35b96b;
    border-bottom: 3px solid #35b96b;
    border-radius: 0
}

@media(max-width:420px) {
    .modal-card {
        padding: 18px
    }

    .scrollto {
        width: 100%;
    }
}

/* Green separator lines span the full inner width of each pop-up. */
.modal-card {
    border-top: 1px solid #35b96b;
    border-bottom: 1px solid #35b96b;
}

.modal-card h3 {
    position: relative;
    padding-bottom: 14px;
    border-bottom: 0;
}

.modal-card h3::after {
    content: "";
    position: absolute;
    left: -24px;
    right: -24px;
    bottom: 0;
    height: 1px;
    background: #35b96b;
}

.modal-actions {
    position: relative;
    padding-top: 14px;
    border-top: 0;
}

.modal-actions::before {
    content: "";
    position: absolute;
    left: -24px;
    right: -24px;
    top: 0;
    height: 1px;
    background: #35b96b;
}

@media(max-width:420px) {
    .modal-card h3::after,
    .modal-actions::before {
        left: -18px;
        right: -18px;
    }

    .scrollto {
        width: 100%;
    }
}

.service-action:disabled {
    cursor: not-allowed;
    opacity: .45;
    filter: grayscale(.25);
    box-shadow: none;
}


/* Staff notes attached to service articles are displayed prominently in red. */
.service-note {
    margin: 14px 0 16px;
    padding: 10px 13px;
    border-left: 4px solid #d93025;
    background: #fff1f0;
    color: #c62828;
}
.service-note strong {
    display: block;
    margin-bottom: 4px;
    color: #b71c1c;
    font-size: 10px;
    letter-spacing: .08em;
}
.service-note p {
    margin: 0;
    color: #c62828;
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* Keep status artwork centered inside the article and progress indicators. */
.status-icon img {
    display: block;
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* Phone-only confirmation layout: match cancelconfirm.JPG.
   Larger screens retain the original modal layout above. */
@media(max-width:600px) {
    #confirmModal .modal-card {
        width: min(324px, calc(100vw - 24px));
        padding: 20px 24px 16px;
        border: 0;
        border-radius: 2px;
        box-shadow: 0 8px 28px rgba(0,0,0,.22);
    }
    #confirmModal .modal-card h3 {
        margin: -20px -24px 24px;
        padding: 17px 24px 14px;
        border-bottom: 2px solid #35b96b;
        color: #555;
        font-size: 15px;
        font-weight: 600;
    }
    #confirmModal .modal-card h3::after { display: none; }
    #confirmModal .modal-card p {
        margin: 0 0 26px;
        color: #777;
        font-size: 13px;
        line-height: 1.45;
    }
    #confirmModal .modal-actions {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        margin: 0 -24px;
        padding: 14px 24px 0;
        border-top: 2px solid #35b96b;
    }
    #confirmModal .modal-actions::before { display: none; }
    #confirmModal .modal-actions .btn {
        width: auto;
        min-width: 0;
        flex: 1 1 0;
        min-height: 42px;
        padding: 9px 8px;
        border-radius: 2px;
        font-size: 12px;
        white-space: nowrap;
    }
    #confirmModal .modal-actions .btn-outline {
        color: #35a965;
        border: 1px solid #35b96b;
        background: #fff;
    }
    #confirmModal .modal-actions .btn-green {
        color: #fff;
        border: 1px solid #35b96b;
        background: #42b85e;
    }
}


/* Card2Crypto payment confirmation state */
.payment-status {
    margin: 10px 0;
    padding: 10px 12px;
    border-left: 3px solid #35b889;
    border-radius: 4px;
    background: #effaf4;
    color: #216b46;
    font-size: 13px;
    line-height: 1.45;
}
.payment-status[hidden] { display: none; }


/* Persistent independent-service disclosure, visible on login and dashboard. */
.independent-disclosure {
    width: 100%;
    padding: 11px 16px;
    background: #fff3cd;
    color: #624b00;
    border-bottom: 2px solid #e4b33c;
    text-align: center;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 700;
}
