:root {
    --n1-account-teal: #066168;
    --n1-account-teal-dark: #03484e;
    --n1-account-lime: #85d200;
    --n1-account-yellow: #ffaa0d;
    --n1-account-bg: #edffff;
    --n1-account-text: #163e43;
    --n1-account-muted: #71878a;
    --n1-account-line: #d5e8e9;
    --n1-account-white: #fff;
}

.n1account-page {
    font-family: "Figtree", sans-serif;
    color: var(--n1-account-text);
    background: var(--n1-account-bg);
}

.n1account-page h1,
.n1account-page h2,
.n1account-page h3,
.n1account-page h4 {
    font-family: "Afacad", sans-serif;
    color: var(--n1-account-teal);
}

.n1auth-shell {
    position: relative;
    min-height: 760px;
    padding: 150px 0 100px;
    overflow: hidden;
    background:
        linear-gradient(
            110deg,
            rgba(237, 255, 255, 0.98),
            rgba(237, 255, 255, 0.88)
        ),
        url("../images/banner-tour-package.png") center bottom / cover no-repeat;
}

.n1auth-shell::before,
.n1auth-shell::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.n1auth-shell::before {
    width: 330px;
    height: 330px;
    right: -110px;
    top: 70px;
    border: 70px solid rgba(133, 210, 0, 0.1);
}

.n1auth-shell::after {
    width: 210px;
    height: 210px;
    left: -80px;
    bottom: 80px;
    border: 45px solid rgba(255, 170, 13, 0.1);
}

.n1auth-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(390px, 500px);
    gap: 80px;
    align-items: center;
}

.n1auth-story {
    padding: 30px 0;
}

.n1account-eyebrow,
.n1account-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--n1-account-yellow);
    font-family: "Afacad", sans-serif;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.02em;
}

.n1auth-story h1 {
    max-width: 660px;
    margin: 18px 0 18px;
    font-size: clamp(44px, 5vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.035em;
}

.n1auth-story > p {
    max-width: 610px;
    margin: 0;
    color: #53777b;
    font-size: 18px;
    line-height: 1.75;
}

.n1auth-benefits {
    display: grid;
    gap: 14px;
    max-width: 580px;
    margin-top: 34px;
}

.n1auth-benefits > div {
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 15px;
    align-items: center;
    padding: 15px 18px;
    border: 1px solid rgba(6, 97, 104, 0.11);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 12px 35px rgba(6, 97, 104, 0.05);
    backdrop-filter: blur(8px);
}

.n1auth-benefits > div > span {
    grid-row: 1 / 3;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    color: var(--n1-account-teal);
    background: #eafbd1;
    font-size: 22px;
}

.n1auth-benefits strong {
    color: var(--n1-account-teal);
    font-size: 15px;
}

.n1auth-benefits small {
    margin-top: 3px;
    color: var(--n1-account-muted);
    line-height: 1.45;
}

.n1auth-card-wrap {
    position: relative;
}

.n1auth-card-wrap::before {
    content: "";
    position: absolute;
    inset: 22px -18px -20px 22px;
    border-radius: 36px;
    background: var(--n1-account-lime);
    opacity: 0.18;
    transform: rotate(2deg);
}

.n1auth-card {
    position: relative;
    padding: 42px;
    border: 1px solid rgba(6, 97, 104, 0.12);
    border-radius: 34px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(6, 97, 104, 0.14);
}

.n1auth-card::before {
    content: "";
    position: absolute;
    width: 74px;
    height: 5px;
    left: 42px;
    top: 0;
    border-radius: 0 0 20px 20px;
    background: linear-gradient(
        90deg,
        var(--n1-account-yellow),
        var(--n1-account-lime)
    );
}

.n1auth-card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border-radius: 22px;
    color: #fff;
    background: var(--n1-account-teal);
    box-shadow: 0 14px 26px rgba(6, 97, 104, 0.22);
    font-size: 26px;
}

.n1auth-card h2 {
    margin: 6px 0 5px;
    font-size: 38px;
    line-height: 1.05;
}

.n1auth-subtitle,
.n1profile-card-heading p,
.n1history-heading p {
    color: var(--n1-account-muted);
}

.n1auth-subtitle {
    margin-bottom: 26px;
}

.n1account-alert {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 15px;
    margin-bottom: 20px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.n1account-alert-info {
    color: #0a6670;
    background: #e8fafa;
    border: 1px solid #c4e7e9;
}

.n1account-alert-success {
    color: #347000;
    background: #f0fbdc;
    border: 1px solid #cde99d;
}

.n1account-form {
    display: grid;
    gap: 18px;
}

.n1account-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--n1-account-teal);
    font-size: 13px;
    font-weight: 700;
}

.n1account-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.n1account-input-wrap > i {
    position: absolute;
    z-index: 1;
    left: 17px;
    color: #6e9ca0;
    font-size: 17px;
}

.n1account-input-wrap input,
.n1account-input-wrap select,
.n1account-input-wrap textarea {
    width: 100%;
    min-height: 53px;
    padding: 12px 48px;
    color: var(--n1-account-text);
    border: 1px solid var(--n1-account-line);
    border-radius: 15px;
    background: #fbfefe;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.n1account-input-wrap select {
    appearance: none;
    padding-right: 35px;
}

.n1account-input-wrap textarea {
    min-height: 90px;
    padding-top: 15px;
    resize: vertical;
}

.n1account-input-wrap input:focus,
.n1account-input-wrap select:focus,
.n1account-input-wrap textarea:focus {
    border-color: var(--n1-account-lime);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(133, 210, 0, 0.12);
}

.n1account-field.has-error .n1account-input-wrap input,
.n1account-field.has-error .n1account-input-wrap select,
.n1account-field.has-error .n1account-input-wrap textarea {
    border-color: #dc4a4a;
}

.n1account-field > small {
    display: block;
    margin-top: 6px;
    color: #c53939;
    font-size: 12px;
}

.n1password-toggle {
    position: absolute;
    right: 8px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    color: #6e8d90;
    background: transparent;
}

.n1account-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    color: #617a7e;
    font-size: 13px;
    cursor: pointer;
}

.n1account-check input {
    width: 17px;
    height: 17px;
    margin-top: 1px;
    accent-color: var(--n1-account-teal);
}

.n1account-primary-btn,
.n1account-secondary-btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none !important;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.n1account-primary-btn {
    color: #fff !important;
    background: var(--n1-account-teal);
    box-shadow: 0 14px 26px rgba(6, 97, 104, 0.18);
}

.n1account-primary-btn:hover {
    color: #fff !important;
    background: var(--n1-account-teal-dark);
    transform: translateY(-2px);
}

.n1account-secondary-btn {
    color: var(--n1-account-teal) !important;
    border-color: #c8e0e2;
    background: #fff;
}

.n1account-secondary-btn:hover {
    color: var(--n1-account-teal) !important;
    border-color: var(--n1-account-lime);
    transform: translateY(-2px);
}

.n1account-full-btn {
    width: 100%;
}

.n1auth-switch {
    margin-top: 24px;
    padding-top: 22px;
    text-align: center;
    border-top: 1px solid #e5efef;
    color: var(--n1-account-muted);
    font-size: 14px;
}

.n1auth-switch a {
    color: var(--n1-account-teal);
    font-weight: 800;
}

.n1auth-secure {
    margin-top: 15px;
    text-align: center;
    color: #91a3a5;
    font-size: 11px;
}

.n1profile-hero {
    position: relative;
    padding: 155px 0 68px;
    overflow: hidden;
    background:
        linear-gradient(96deg, rgba(6, 97, 104, 0.97), rgba(6, 97, 104, 0.87)),
        url("../images/banner-tour-package.png") center / cover no-repeat;
}

.n1profile-hero::after {
    content: "";
    position: absolute;
    right: -50px;
    bottom: -145px;
    width: 410px;
    height: 410px;
    border: 85px solid rgba(133, 210, 0, 0.14);
    border-radius: 50%;
}

.n1profile-hero-grid,
.n1profile-identity,
.n1profile-hero-actions {
    display: flex;
    align-items: center;
}

.n1profile-hero-grid {
    position: relative;
    z-index: 1;
    justify-content: space-between;
    gap: 30px;
}

.n1profile-identity {
    gap: 22px;
}

.n1profile-avatar {
    width: 92px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 92px;
    border: 5px solid rgba(255, 255, 255, 0.28);
    border-radius: 29px;
    color: var(--n1-account-teal);
    background: var(--n1-account-lime);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.14);
    font-family: "Afacad", sans-serif;
    font-size: 46px;
    font-weight: 800;
}

.n1profile-identity .n1account-eyebrow {
    color: #d7ff97;
}

.n1profile-identity h1 {
    margin: 5px 0 2px;
    color: #fff;
    font-size: 52px;
    line-height: 1;
}

.n1profile-identity p {
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
}

.n1profile-hero-actions {
    gap: 12px;
}

.n1profile-hero-actions .n1account-primary-btn {
    color: #123d40 !important;
    background: var(--n1-account-lime);
}

.n1profile-content {
    padding: 0 0 100px;
}

.n1profile-top-alert {
    margin: 28px 0 0;
}

.n1profile-stats {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: -28px 0 28px;
}

.n1profile-stat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 19px 22px;
    border: 1px solid rgba(6, 97, 104, 0.1);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(6, 97, 104, 0.1);
}

.n1profile-stat > span {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: var(--n1-account-teal);
    background: #effbdc;
    font-size: 20px;
}

.n1profile-stat strong,
.n1profile-stat small {
    display: block;
}

.n1profile-stat strong {
    color: var(--n1-account-teal);
    font-family: "Afacad", sans-serif;
    font-size: 29px;
    line-height: 1;
}

.n1profile-stat small {
    margin-top: 4px;
    color: var(--n1-account-muted);
}

.n1profile-card {
    height: 100%;
    padding: 30px;
    border: 1px solid rgba(6, 97, 104, 0.1);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(6, 97, 104, 0.08);
}

.n1profile-card-heading,
.n1history-heading {
    margin-bottom: 26px;
}

.n1profile-card-heading h2,
.n1history-heading h2 {
    margin: 4px 0 4px;
    font-size: 33px;
}

.n1profile-card-heading p,
.n1history-heading p {
    margin: 0;
    font-size: 14px;
}

.n1account-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.n1history-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.n1history-tabs {
    display: inline-flex;
    gap: 5px;
    padding: 5px;
    border-radius: 999px;
    background: #edf7f7;
}

.n1history-tabs button {
    padding: 8px 14px;
    border: 0;
    border-radius: 999px;
    color: #698287;
    background: transparent;
    font-size: 12px;
    font-weight: 800;
}

.n1history-tabs button.is-active {
    color: #fff;
    background: var(--n1-account-teal);
    box-shadow: 0 6px 15px rgba(6, 97, 104, 0.18);
}

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

.n1history-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 17px;
    align-items: center;
    padding: 19px;
    border: 1px solid #dcebec;
    border-radius: 21px;
    background: #fcfefe;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.n1history-item:hover {
    transform: translateY(-2px);
    border-color: #b9dadc;
    box-shadow: 0 14px 30px rgba(6, 97, 104, 0.07);
}

.n1history-type-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 22px;
}

.n1history-type-icon.is-tour {
    color: #8a5700;
    background: #fff1d5;
}

.n1history-type-icon.is-bus {
    color: var(--n1-account-teal);
    background: #eafbd1;
}

.n1history-topline {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 4px;
}

.n1history-type-label,
.n1history-status {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.n1history-type-label {
    color: #829699;
}

.n1history-status {
    padding: 4px 8px;
    border-radius: 999px;
    color: #397900;
    background: #ebf9d7;
}

.n1history-status.is-cancelled {
    color: #9d3838;
    background: #ffe5e5;
}

.n1history-status.is-payment_pending {
    color: #926000;
    background: #fff1cf;
}

.n1history-main h3 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.1;
}

.n1history-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 15px;
    color: #748a8d;
    font-size: 12px;
}

.n1history-meta i {
    color: var(--n1-account-teal);
}

.n1history-side {
    min-width: 130px;
    text-align: right;
}

.n1history-side strong,
.n1history-side small,
.n1history-side a {
    display: block;
}

.n1history-side strong {
    color: var(--n1-account-teal);
    font-size: 17px;
}

.n1history-side small {
    margin: 2px 0 8px;
    color: #95a5a7;
    font-size: 10px;
}

.n1history-side a {
    color: var(--n1-account-teal);
    font-size: 12px;
    font-weight: 800;
}

.n1history-empty {
    padding: 65px 20px;
    text-align: center;
    border: 1px dashed #bdd9dc;
    border-radius: 24px;
    background: #f8fdfd;
}

.n1history-empty > span {
    width: 74px;
    height: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    color: var(--n1-account-teal);
    background: #eafbd1;
    font-size: 29px;
}

.n1history-empty h3 {
    margin: 18px 0 6px;
    font-size: 28px;
}

.n1history-empty p {
    margin: 0 0 22px;
    color: var(--n1-account-muted);
}

.n1history-no-filter {
    padding: 30px;
    text-align: center;
    color: var(--n1-account-muted);
}

.n1-account-nav > a {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
}

.n1-account-nav .sub-menu form {
    margin: 0;
}

.n1-account-nav .sub-menu button {
    width: 100%;
    display: block;
    padding: 12px 25px;
    border: 0;
    color: #555;
    background: transparent;
    text-align: left;
    font: inherit;
}

.n1-account-nav .sub-menu button:hover {
    color: var(--n1-account-teal);
    background: #f5fbfb;
}

@media (max-width: 1199px) {
    .n1auth-layout {
        grid-template-columns: minmax(0, 1fr) 440px;
        gap: 45px;
    }

    .n1profile-hero {
        padding-top: 125px;
    }
}

@media (max-width: 991px) {
    .n1auth-shell {
        padding: 120px 0 75px;
    }

    .n1auth-layout {
        grid-template-columns: 1fr;
        max-width: 700px;
        margin: 0 auto;
    }

    .n1auth-story {
        text-align: center;
    }

    .n1auth-story > p,
    .n1auth-benefits {
        margin-left: auto;
        margin-right: auto;
    }

    .n1auth-benefits {
        text-align: left;
    }

    .n1profile-hero-grid,
    .n1history-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .n1profile-hero-actions {
        width: 100%;
    }

    .n1profile-hero-actions a {
        flex: 1;
    }

    .n1profile-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .n1auth-shell {
        padding: 95px 0 55px;
    }

    .n1auth-story h1 {
        font-size: 43px;
    }

    .n1auth-card {
        padding: 30px 22px;
        border-radius: 25px;
    }

    .n1auth-card::before {
        left: 22px;
    }

    .n1profile-hero {
        padding: 105px 0 50px;
    }

    .n1profile-identity {
        align-items: flex-start;
    }

    .n1profile-avatar {
        width: 70px;
        height: 70px;
        flex-basis: 70px;
        border-radius: 22px;
        font-size: 35px;
    }

    .n1profile-identity h1 {
        font-size: 39px;
    }

    .n1profile-hero-actions {
        flex-direction: column;
    }

    .n1profile-hero-actions a {
        width: 100%;
    }

    .n1profile-stats {
        grid-template-columns: 1fr;
        margin-top: 22px;
    }

    .n1profile-card {
        padding: 22px 16px;
        border-radius: 23px;
    }

    .n1account-grid-2 {
        grid-template-columns: 1fr;
    }

    .n1history-tabs {
        width: 100%;
    }

    .n1history-tabs button {
        flex: 1;
    }

    .n1history-item {
        grid-template-columns: 50px minmax(0, 1fr);
    }

    .n1history-type-icon {
        width: 50px;
        height: 50px;
    }

    .n1history-side {
        grid-column: 2;
        min-width: 0;
        text-align: left;
    }
}

/* Profile select: dedicated icon and chevron prevent theme/global select overlap. */
.n1account-select-wrap {
    position: relative;
}

.n1account-select-wrap > select#profileGender {
    min-height: 53px;
    padding: 12px 48px 12px 48px !important;
    line-height: 1.3;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    cursor: pointer;
}

.n1account-select-wrap > i:first-child {
    left: 17px;
    pointer-events: none;
}

.n1account-select-arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #557e82;
    pointer-events: none;
    transform: translateY(-50%);
}

.n1account-select-arrow i {
    font-size: 14px;
    line-height: 1;
}

.n1account-select-wrap:focus-within .n1account-select-arrow {
    color: var(--n1-account-teal);
}

/* Clean profile select: same form-field treatment, without icon/value overlap. */
.n1account-select-wrap > i:first-child {
    display: none !important;
}
.n1account-select-wrap > select#profileGender {
    display: block;
    width: 100%;
    min-height: 53px;
    margin: 0;
    padding: 0 46px 0 16px !important;
    color: var(--n1-account-text);
    background: #fff;
    border: 1px solid var(--n1-account-line);
    border-radius: 15px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 51px;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.n1account-select-wrap > select#profileGender:focus {
    border-color: var(--n1-account-teal);
    box-shadow: 0 0 0 4px rgba(6, 97, 104, 0.1);
}
.n1account-select-arrow {
    right: 16px;
}
