/* =========================================================
   ADVN PASSWORD GATE
   ========================================================= */

.advn-pg,
.advn-pg * {
    box-sizing: border-box;
}

.advn-pg {
    width: 100%;
    max-width: 760px;
    margin: 32px auto;
    padding: 0 16px;

    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity .4s ease,
        transform .4s ease;
}

.advn-pg.advn-pg--visible {
    opacity: 1;
    transform: translateY(0);
}

.advn-pg__card {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 18px;

    padding: 24px;

    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.06);
}

.advn-pg__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;
    min-width: 52px;

    border-radius: 14px;

    background: #f5f7fa;

    font-size: 25px;
    line-height: 1;
}

.advn-pg__content {
    flex: 1 1 auto;
    min-width: 0;
}

.advn-pg__title {
    margin: 0 0 7px;

    color: #111827;

    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.advn-pg__description {
    margin: 0 0 17px;

    color: #667085;

    font-size: 15px;
    line-height: 1.65;
}

.advn-pg__button {
    appearance: none;
    -webkit-appearance: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;
    padding: 11px 22px;

    border: 0;
    border-radius: 10px;

    background: #111827;
    color: #ffffff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;

    cursor: pointer;

    transition:
        transform .2s ease,
        opacity .2s ease;
}

.advn-pg__button:hover {
    transform: translateY(-1px);
    opacity: .9;
}

.advn-pg__button:active {
    transform: translateY(0);
}

.advn-pg__button:focus-visible {
    outline: 3px solid rgba(17, 24, 39, .2);
    outline-offset: 3px;
}

.advn-pg__button:disabled {
    cursor: not-allowed;
    opacity: .6;
    transform: none;
}

.advn-pg__status {
    display: none;

    margin-top: 14px;

    color: #667085;

    font-size: 14px;
    line-height: 1.5;
}

.advn-pg__status:not(:empty) {
    display: block;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 549px) {

    .advn-pg {
        margin: 24px auto;
        padding: 0 12px;
    }

    .advn-pg__card {
        gap: 13px;
        padding: 18px;
        border-radius: 14px;
    }

    .advn-pg__icon {
        width: 44px;
        height: 44px;
        min-width: 44px;

        border-radius: 12px;

        font-size: 21px;
    }

    .advn-pg__title {
        font-size: 18px;
    }

    .advn-pg__description {
        margin-bottom: 14px;

        font-size: 14px;
        line-height: 1.6;
    }

    .advn-pg__button {
        width: 100%;
        min-height: 48px;

        padding: 12px 16px;
    }
}
/* =========================================================
   ADVN PASSWORD GATE — TIMER
   ========================================================= */

.advn-pg__timer {
    width: 100%;
    max-width: 420px;

    margin-top: 4px;
}

.advn-pg__timer[hidden] {
    display: none !important;
}

.advn-pg__timer-label {
    margin-bottom: 5px;

    color: #667085;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.advn-pg__countdown {
    margin: 3px 0 10px;

    color: #111827;

    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;

    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
}

.advn-pg__progress {
    position: relative;

    width: 100%;
    height: 8px;

    overflow: hidden;

    background: #edf0f4;

    border-radius: 999px;
}

.advn-pg__progress span {
    display: block;

    width: 0%;
    height: 100%;

    background: #111827;

    border-radius: inherit;

    transition: width .35s linear;
}


/* Mobile */

@media (max-width: 549px) {

    .advn-pg__timer {
        max-width: 100%;
    }

    .advn-pg__countdown {
        font-size: 32px;
    }
}
/* =========================================================
   ADVN PASSWORD GATE — PASSWORD RESULT
   ========================================================= */

.advn-pg__result {
    width: 100%;
    max-width: 520px;

    margin-top: 4px;
}

.advn-pg__result[hidden] {
    display: none !important;
}

.advn-pg__result-label {
    margin-bottom: 8px;

    color: #667085;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}


/* PASSWORD BOX */

.advn-pg__password-row {
    display: flex;
    align-items: stretch;

    width: 100%;

    overflow: hidden;

    border: 1px solid #dfe3e8;
    border-radius: 12px;

    background: #f8fafc;
}


/* PASSWORD TEXT */

.advn-pg__password {
    display: flex;
    align-items: center;

    flex: 1 1 auto;
    min-width: 0;

    padding: 14px 16px;

    background: transparent;

    color: #111827;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;

    word-break: break-all;
}


/* COPY BUTTON */

.advn-pg__copy {
    appearance: none;
    -webkit-appearance: none;

    flex: 0 0 auto;

    min-width: 120px;

    padding: 12px 18px;

    border: 0;
    border-left: 1px solid #dfe3e8;

    background: #111827;
    color: #ffffff;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition:
        opacity .2s ease,
        background .2s ease;
}

.advn-pg__copy:hover {
    opacity: .9;
}


/* COPY STATUS */

.advn-pg__copy-status {
    min-height: 20px;

    margin-top: 8px;

    color: #16803c;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 549px) {

    .advn-pg__result {
        max-width: 100%;
    }

    .advn-pg__password-row {
        flex-direction: column;
    }

    .advn-pg__password {
        width: 100%;

        padding: 14px;

        font-size: 16px;

        justify-content: center;
        text-align: center;
    }

    .advn-pg__copy {
        width: 100%;
        min-height: 46px;

        border-left: 0;
        border-top: 1px solid #dfe3e8;
    }
}