* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;

    min-height: 100%;

    background: #0b0b0b;

    color: #f5f5f5;

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}

body {
    min-height: 100vh;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}


/* =========================================================
   APP
   ========================================================= */

.ap-staff-app {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(111,239,255,.035),
            transparent 40%
        ),
        #0b0b0b;
}


/* =========================================================
   LOGIN
   ========================================================= */

.ap-login {
    min-height: 100vh;

    display: grid;
    place-items: center;

    padding: 40px 20px;
}

.ap-login-inner {
    width: min(620px, 100%);

    padding: 45px;

    background: #141414;

    border: 1px solid rgba(255,255,255,.09);

    box-shadow:
        0 35px 100px rgba(0,0,0,.45);
}


/* =========================================================
   BRAND
   ========================================================= */

.ap-brand {
    display: flex;

    align-items: center;

    gap: 14px;

    padding-bottom: 30px;

    border-bottom:
        1px solid rgba(255,255,255,.08);
}

.ap-brand-mark {
    width: 46px;
    height: 46px;

    display: grid;

    place-items: center;

    border:
        1px solid #6FEFFF;

    color: #6FEFFF;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: .08em;
}

.ap-brand-name {
    font-size: 13px;

    font-weight: 700;

    letter-spacing: .18em;
}

.ap-brand-sub {
    margin-top: 5px;

    color: #666;

    font-size: 9px;

    letter-spacing: .22em;
}


/* =========================================================
   HEADING
   ========================================================= */

.ap-login-heading {
    padding: 45px 0 28px;
}

.ap-eyebrow {
    color: #6FEFFF;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: .20em;
}

.ap-login-heading h1 {
    margin: 10px 0 9px;

    font-size: 44px;

    line-height: 1;

    font-weight: 500;
}

.ap-login-heading p {
    margin: 0;

    color: #777;

    font-size: 14px;
}


/* =========================================================
   TABS
   ========================================================= */

.ap-tabs {
    display: grid;

    grid-template-columns: 1fr 1fr;

    margin-bottom: 20px;

    border:
        1px solid rgba(255,255,255,.09);
}

.ap-tab {
    height: 48px;

    border: 0;

    background: transparent;

    color: #666;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: .17em;
}

.ap-tab.active {
    background: #1b1b1b;

    color: #6FEFFF;
}


/* =========================================================
   ALERT
   ========================================================= */

.ap-alert {
    margin-bottom: 18px;

    padding: 13px 15px;

    font-size: 12px;

    line-height: 1.5;
}

.ap-alert.error {
    border:
        1px solid rgba(255,80,80,.25);

    background:
        rgba(255,80,80,.05);

    color: #ff9d9d;
}

.ap-alert.success {
    border:
        1px solid rgba(111,239,255,.25);

    background:
        rgba(111,239,255,.04);

    color: #6FEFFF;
}


/* =========================================================
   PANELS
   ========================================================= */

.ap-login-panel {
    display: none;
}

.ap-login-panel.active {
    display: block;
}


/* =========================================================
   FORM
   ========================================================= */

.ap-login-panel label {
    display: block;

    margin-bottom: 8px;

    color: #999;

    font-size: 10px;

    font-weight: 600;

    letter-spacing: .10em;
}

.ap-login-panel input {
    width: 100%;

    height: 52px;

    margin-bottom: 18px;

    padding: 0 15px;

    border:
        1px solid rgba(255,255,255,.12);

    outline: none;

    background: #0d0d0d;

    color: #fff;
}

.ap-login-panel input:focus {
    border-color: #6FEFFF;
}


/* =========================================================
   BUTTON
   ========================================================= */

.ap-login-button {
    width: 100%;

    height: 54px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 17px;

    border:
        1px solid #6FEFFF;

    background: #6FEFFF;

    color: #071012;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: .15em;
}

.ap-login-button:hover {
    filter: brightness(.93);
}


/* =========================================================
   OTP
   ========================================================= */

.ap-divider {
    margin: 28px 0 22px;

    padding-top: 22px;

    border-top:
        1px solid rgba(255,255,255,.08);

    color: #555;

    font-size: 9px;

    letter-spacing: .16em;
}

.ap-security {
    margin: 15px 0 0;

    color: #555;

    font-size: 11px;

    line-height: 1.5;
}


/* =========================================================
   FOOTER
   ========================================================= */

.ap-login-footer {
    display: flex;

    gap: 9px;

    margin-top: 28px;

    color: #444;

    font-size: 9px;

    letter-spacing: .13em;
}


/* =========================================================
   DASHBOARD
   ========================================================= */

.ap-dashboard {
    width: min(1180px, calc(100% - 40px));

    margin: 0 auto;

    padding: 60px 0;
}

.ap-dashboard-header {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 30px;

    padding-bottom: 28px;

    border-bottom:
        1px solid rgba(255,255,255,.09);
}

.ap-dashboard-header h1 {
    margin: 10px 0 8px;

    font-size: 48px;

    line-height: 1;

    font-weight: 500;
}

.ap-dashboard-header p {
    margin: 0;

    color: #777;

    font-size: 14px;
}


/* LOGOUT */

.ap-logout {
    display: inline-block;

    padding: 12px 16px;

    border:
        1px solid rgba(111,239,255,.30);

    color: #6FEFFF;

    text-decoration: none;

    font-size: 9px;

    letter-spacing: .15em;
}


/* ACCESS */

.ap-access-card {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 25px;

    margin-top: 28px;

    padding: 30px;

    background: #141414;

    border:
        1px solid rgba(255,255,255,.08);
}

.ap-card-label {
    color: #6FEFFF;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: .18em;
}

.ap-access-card h2 {
    margin: 10px 0 7px;

    font-size: 22px;

    font-weight: 500;
}

.ap-access-card p {
    margin: 0;

    color: #666;

    font-size: 13px;
}

.ap-active {
    color: #6FEFFF;

    white-space: nowrap;

    font-size: 9px;

    letter-spacing: .14em;
}

.ap-active span {
    display: inline-block;

    width: 6px;
    height: 6px;

    margin-right: 7px;

    border-radius: 50%;

    background: #6FEFFF;
}


/* =========================================================
   MODULES
   ========================================================= */

.ap-modules {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 12px;

    margin-top: 20px;
}

.ap-module {
    min-height: 170px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    padding: 22px;

    background: #141414;

    border:
        1px solid rgba(255,255,255,.08);
}

.ap-module > span {
    color: #6FEFFF;

    font-size: 10px;
}

.ap-module strong {
    font-size: 12px;

    letter-spacing: .10em;
}

.ap-module small {
    color: #555;

    font-size: 10px;
}


/* =========================================================
   DASHBOARD FOOTER
   ========================================================= */

.ap-dashboard-footer {
    display: flex;

    justify-content: space-between;

    margin-top: 20px;

    color: #444;

    font-size: 9px;

    letter-spacing: .13em;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 750px) {

    .ap-login-inner {
        padding: 30px 22px;
    }

    .ap-login-heading h1 {
        font-size: 35px;
    }

    .ap-dashboard {
        width: min(
            100% - 30px,
            1180px
        );

        padding: 30px 0;
    }

    .ap-dashboard-header {
        flex-direction: column;

        align-items: flex-start;
    }

    .ap-dashboard-header h1 {
        font-size: 36px;
    }

    .ap-access-card {
        flex-direction: column;
    }

    .ap-modules {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


@media (max-width: 450px) {

    .ap-modules {
        grid-template-columns: 1fr;
    }

    .ap-dashboard-footer {
        flex-direction: column;

        gap: 8px;
    }

    .ap-login-footer {
        flex-wrap: wrap;
    }

}











/* =========================================================
   OTP FLOW
   ========================================================= */

.ap-otp-step {
    animation: apOtpFade .35s ease;
}

@keyframes apOtpFade {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


.ap-step-label {
    margin-bottom: 12px;

    color: #6FEFFF;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: .18em;
}


.ap-otp-step h3 {
    margin: 0 0 8px;

    color: #f5f5f5;

    font-size: 22px;

    font-weight: 500;
}


.ap-step-description {
    margin: 0 0 22px;

    color: #666;

    font-size: 12px;

    line-height: 1.6;
}


.ap-otp-sent {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    margin-bottom: 15px;

    color: #6FEFFF;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: .15em;
}


.ap-otp-sent-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #6FEFFF;

    box-shadow:
        0 0 10px rgba(111,239,255,.55);
}


.ap-otp-email {
    margin: -8px 0 25px;

    color: #aaa;

    font-size: 13px;

    word-break: break-all;
}


.ap-otp-input {
    text-align: center;

    font-size: 24px !important;

    font-weight: 600;

    letter-spacing: .35em;

    padding-left: .35em !important;
}


.ap-otp-actions {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    margin-top: 18px;

    color: #555;

    font-size: 11px;
}


.ap-resend-form {
    display: inline;
}


.ap-resend-button {
    padding: 0;

    border: 0;

    background: transparent;

    color: #6FEFFF;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: .08em;
}


.ap-resend-button:hover {
    text-decoration: underline;
}


.ap-change-email {
    display: block;

    width: fit-content;

    margin: 20px auto 0;

    color: #555;

    text-decoration: none;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: .13em;
}


.ap-change-email:hover {
    color: #6FEFFF;
}


/* =========================================================
   PREMIUM OTP SECONDARY ACTIONS
   ========================================================= */

.ap-otp-secondary {
    width: 100%;

    margin-top: 20px;

    text-align: center;
}


/* ---------------------------------------------------------
   RESEND LINE
   --------------------------------------------------------- */

.ap-otp-resend-line {
    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    gap: 7px !important;

    width: 100% !important;

    margin: 0 !important;

    padding: 0 !important;

    font-family:
        Arial,
        Helvetica,
        sans-serif !important;

    font-size: 11px !important;

    line-height: 1.5 !important;
}


.ap-otp-resend-text {
    display: inline !important;

    margin: 0 !important;

    padding: 0 !important;

    color: #555 !important;

    font-size: 11px !important;

    font-weight: 400 !important;

    line-height: 1.5 !important;
}


/* ---------------------------------------------------------
   RESEND FORM
   --------------------------------------------------------- */

.ap-otp-secondary .ap-resend-form {
    display: inline-flex !important;

    width: auto !important;

    height: auto !important;

    margin: 0 !important;

    padding: 0 !important;

    border: 0 !important;

    background: transparent !important;
}


/* ---------------------------------------------------------
   RESEND
   --------------------------------------------------------- */

.ap-otp-secondary button.ap-resend-link {
    appearance: none !important;

    -webkit-appearance: none !important;

    display: inline !important;

    width: auto !important;

    min-width: 0 !important;

    height: auto !important;

    min-height: 0 !important;

    margin: 0 !important;

    padding: 0 !important;

    border: 0 !important;

    border-radius: 0 !important;

    outline: none !important;

    background: transparent !important;

    box-shadow: none !important;

    color: #6FEFFF !important;

    font-family:
        Arial,
        Helvetica,
        sans-serif !important;

    font-size: 10px !important;

    font-weight: 700 !important;

    line-height: 1.5 !important;

    letter-spacing: .12em !important;

    text-transform: uppercase !important;

    cursor: pointer !important;

    transition:
        color .2s ease;
}


.ap-otp-secondary button.ap-resend-link:hover {
    color: #ffffff !important;

    background: transparent !important;

    box-shadow: none !important;
}


/* ---------------------------------------------------------
   CHANGE EMAIL
   --------------------------------------------------------- */

.ap-otp-secondary .ap-change-email-link {
    display: inline-block !important;

    width: auto !important;

    margin: 15px 0 0 !important;

    padding: 0 0 3px !important;

    border: 0 !important;

    border-bottom:
        1px solid rgba(255,255,255,.12) !important;

    outline: none !important;

    background: transparent !important;

    color: #666 !important;

    font-family:
        Arial,
        Helvetica,
        sans-serif !important;

    font-size: 9px !important;

    font-weight: 600 !important;

    line-height: 1.5 !important;

    letter-spacing: .12em !important;

    text-decoration: none !important;

    cursor: pointer !important;

    transition:
        color .2s ease,
        border-color .2s ease;
}


.ap-otp-secondary .ap-change-email-link:hover {
    color: #6FEFFF !important;

    border-bottom-color:
        rgba(111,239,255,.45) !important;

    text-decoration: none !important;
}


/* ---------------------------------------------------------
   SECURITY
   --------------------------------------------------------- */

.ap-otp-secondary .ap-security {
    margin: 15px 0 0 !important;

    padding: 0 !important;

    color: #3f3f3f !important;

    font-family:
        Arial,
        Helvetica,
        sans-serif !important;

    font-size: 9px !important;

    font-weight: 400 !important;

    line-height: 1.5 !important;

    text-align: center !important;
}







/* =========================================================
   APPOINTMENTS — PHASE 3
   ========================================================= */

.ap-appointment-stats {
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:12px;
    margin-top:25px;
}

.ap-appointment-stat {
    padding:22px;
    background:#121212;
    border:1px solid #292929;
}

.ap-appointment-stat span {
    display:block;
    color:#555;
    font-size:8px;
    font-weight:700;
    letter-spacing:.16em;
}

.ap-appointment-stat strong {
    display:block;
    margin-top:12px;
    color:#f5f5f5;
    font-size:30px;
    font-weight:500;
}


.ap-appointment-filters {
    display:grid;
    grid-template-columns:2fr 1fr 1fr 1fr auto;
    gap:10px;
    margin-top:20px;
    padding:18px;
    background:#121212;
    border:1px solid #292929;
}

.ap-filter-field {
    min-width:0;
}

.ap-filter-field label {
    display:block;
    margin-bottom:7px;
    color:#555;
    font-size:8px;
    font-weight:700;
    letter-spacing:.14em;
}

.ap-filter-field input,
.ap-filter-field select,
.ap-appointment-status-form select,
.ap-detail-status-control select {
    width:100%;
    height:46px;
    padding:0 12px;
    border:1px solid #303030;
    border-radius:0;
    outline:none;
    background:#0d0d0d;
    color:#eee;
    font-size:11px;
}

.ap-filter-field input:focus,
.ap-filter-field select:focus,
.ap-appointment-status-form select:focus,
.ap-detail-status-control select:focus {
    border-color:#6FEFFF;
}

.ap-filter-actions {
    display:flex;
    align-items:flex-end;
    gap:7px;
}

.ap-filter-actions .ap-primary-button,
.ap-filter-actions .ap-secondary-button {
    min-height:46px;
}


.ap-appointment-list {
    margin-top:20px;
}

.ap-appointment-card {
    display:grid;
    grid-template-columns:1fr auto;
    gap:25px;
    margin-bottom:10px;
    padding:22px;
    background:#121212;
    border:1px solid #292929;
    transition:border-color .2s ease;
}

.ap-appointment-card:hover {
    border-color:#3c4c4f;
}

.ap-appointment-top {
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
}

.ap-appointment-booking {
    color:#6FEFFF;
    font-size:12px;
    font-weight:700;
    letter-spacing:.13em;
}

.ap-appointment-service {
    margin-top:7px;
    color:#f1f1f1;
    font-size:17px;
    font-weight:500;
}

.ap-appointment-status {
    display:inline-flex;
    align-items:center;
    gap:7px;
    white-space:nowrap;
    font-size:8px;
    font-weight:700;
    letter-spacing:.13em;
}

.ap-appointment-status span {
    width:5px;
    height:5px;
    border-radius:50%;
    background:#555;
}

.ap-status-pending {
    color:#d7bd72;
}

.ap-status-pending span {
    background:#d7bd72;
}

.ap-status-confirmed,
.ap-status-in-progress,
.ap-status-completed {
    color:#6FEFFF;
}

.ap-status-confirmed span,
.ap-status-in-progress span,
.ap-status-completed span {
    background:#6FEFFF;
}

.ap-status-cancelled {
    color:#d98a8a;
}

.ap-status-cancelled span {
    background:#d98a8a;
}


.ap-appointment-grid {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
    margin-top:25px;
}

.ap-appointment-grid > div {
    min-width:0;
}

.ap-appointment-grid span {
    display:block;
    color:#555;
    font-size:8px;
    font-weight:700;
    letter-spacing:.14em;
}

.ap-appointment-grid strong {
    display:block;
    margin-top:8px;
    color:#ddd;
    font-size:11px;
    font-weight:600;
}

.ap-appointment-grid small {
    display:block;
    margin-top:5px;
    color:#555;
    font-size:10px;
}

.ap-appointment-message {
    margin-top:20px;
    padding:14px;
    border-left:2px solid #303030;
    background:#0d0d0d;
    color:#777;
    font-size:10px;
    line-height:1.7;
}

.ap-appointment-actions {
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:8px;
    min-width:145px;
}

.ap-appointment-status-form {
    display:flex;
    flex-direction:column;
    gap:7px;
    margin:0;
}

.ap-appointment-actions .ap-primary-button,
.ap-appointment-actions .ap-secondary-button {
    width:100%;
}


.ap-detail-header {
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:25px;
    margin-top:25px;
    padding:30px;
    background:#121212;
    border:1px solid #292929;
}

.ap-detail-label {
    color:#555;
    font-size:8px;
    font-weight:700;
    letter-spacing:.16em;
}

.ap-detail-booking {
    margin-top:8px;
    color:#6FEFFF;
    font-size:25px;
    font-weight:600;
    letter-spacing:.12em;
}


.ap-detail-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin-top:10px;
}

.ap-detail-card {
    padding:25px;
    background:#121212;
    border:1px solid #292929;
}

.ap-detail-card-kicker {
    color:#6FEFFF;
    font-size:8px;
    font-weight:700;
    letter-spacing:.16em;
}

.ap-detail-card h3 {
    margin:10px 0 20px;
    color:#eee;
    font-size:18px;
    font-weight:500;
}

.ap-detail-line {
    display:flex;
    justify-content:space-between;
    gap:20px;
    padding:11px 0;
    border-top:1px solid #222;
    color:#555;
    font-size:8px;
    font-weight:700;
    letter-spacing:.12em;
}

.ap-detail-line strong {
    color:#aaa;
    font-size:10px;
    font-weight:500;
    letter-spacing:0;
    text-align:right;
}

.ap-detail-message {
    margin:0;
    color:#777;
    font-size:11px;
    line-height:1.8;
}


.ap-detail-status-control {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:25px;
    margin-top:10px;
    padding:25px;
    background:#121212;
    border:1px solid #292929;
}

.ap-detail-status-control p {
    margin:7px 0 0;
    color:#555;
    font-size:10px;
}

.ap-detail-status-control form {
    display:flex;
    gap:8px;
    width:min(420px,100%);
}

.ap-detail-status-control select {
    flex:1;
}


@media(max-width:900px) {

    .ap-appointment-filters {
        grid-template-columns:1fr 1fr;
    }

    .ap-filter-actions {
        grid-column:1 / -1;
    }

    .ap-appointment-card {
        grid-template-columns:1fr;
    }

    .ap-appointment-actions {
        flex-direction:row;
        align-items:center;
    }

    .ap-appointment-status-form {
        flex-direction:row;
        flex:1;
    }

    .ap-appointment-status-form select {
        flex:1;
    }

    .ap-appointment-actions .ap-secondary-button {
        width:auto;
    }

}


@media(max-width:700px) {

    .ap-appointment-stats {
        grid-template-columns:1fr 1fr;
    }

    .ap-appointment-filters {
        grid-template-columns:1fr;
    }

    .ap-filter-actions {
        grid-column:auto;
    }

    .ap-appointment-grid {
        grid-template-columns:1fr;
        gap:15px;
    }

    .ap-appointment-top {
        flex-direction:column;
    }

    .ap-detail-grid {
        grid-template-columns:1fr;
    }

    .ap-detail-header {
        flex-direction:column;
        align-items:flex-start;
    }

    .ap-detail-status-control {
        flex-direction:column;
        align-items:stretch;
    }

    .ap-detail-status-control form {
        width:100%;
    }

}


@media(max-width:450px) {

    .ap-appointment-stats {
        grid-template-columns:1fr 1fr;
    }

    .ap-appointment-stat strong {
        font-size:24px;
    }

    .ap-appointment-card {
        padding:17px;
    }

    .ap-appointment-actions {
        flex-direction:column;
        align-items:stretch;
    }

    .ap-appointment-status-form {
        flex-direction:column;
    }

    .ap-appointment-actions .ap-secondary-button {
        width:100%;
    }

    .ap-detail-status-control form {
        flex-direction:column;
    }

}

















