/* =========================================================
   IMO / ARYANIMO RECHARGE PORTAL
   FINAL COMPLETE CSS
   DESKTOP + TABLET + MOBILE
   ========================================================= */


/* =========================================================
   GLOBAL RESET
   ========================================================= */

html,
body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}


/* =========================================================
   BODY
   ========================================================= */

body {
    background: #eaf6ff;
    font-family: Arial, Helvetica, sans-serif;
}


/* =========================================================
   MAIN PORTAL
   ========================================================= */

.ary-portal {
    width: 100vw;
    max-width: 100vw;

    position: relative;
    left: 50%;

    transform: translateX(-50%);

    margin: 0;
    padding: 0;

    background: #eaf6ff;
}


/* =========================================================
   NOTICE
   ========================================================= */

.ary-notice {
    width: 100%;

    margin: 0;
    padding: 5px 15px;

    font-size: 14px;
    font-weight: 600;

    color: #0a4d8f;
    background: #fff;

    overflow: hidden;
}


/* =========================================================
   HEADER
   ========================================================= */

.ary-header {
    width: 100%;

    min-height: 62px;

    margin: 0;
    padding: 0 70px;

    background: #0b66a8;

    border-radius: 0 0 18px 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    color: #fff;
    text-align: center;
}


/* =========================================================
   TITLE
   ========================================================= */

.ary-title {
    width: 100%;

    margin: 0;

    text-align: center;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    font-size: 34px;
    line-height: 1.2;

    font-weight: 600;

    color: #fff;
}


/* =========================================================
   REFRESH
   ========================================================= */

.ary-refresh {
    position: absolute;

    right: 25px;

    width: 48px;
    height: 48px;

    border-radius: 50%;

    background: rgba(255, 255, 255, .12);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 26px;

    cursor: pointer;
}


/* =========================================================
   MAIN CONTAINER
   ========================================================= */

.ary-container {
    width: 100%;

    margin: 30px 0 0;
    padding: 0 25px;

    display: grid;

    grid-template-columns:
        minmax(0, 1.2fr)
        minmax(0, 0.8fr);

    gap: 22px;

    align-items: start;
}


/* =========================================================
   LEFT PANEL
   ========================================================= */

.ary-left {
    width: 100%;
    min-width: 0;

    min-height: 700px;

    background: #fff;

    border-radius: 25px;

    padding: 30px;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, .08);
}


/* =========================================================
   RIGHT PANEL
   ========================================================= */

.ary-right {
    width: 100%;
    min-width: 0;
}


/* =========================================================
   HELP + HISTORY
   ========================================================= */

.ary-help,
.ary-history {
    width: 100%;

    background: #fff;

    border-radius: 25px;

    padding: 35px;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, .08);
}

.ary-help {
    margin-bottom: 30px;
}


/* =========================================================
   COMMON CARD
   ========================================================= */

.ary-card {
    width: 100%;

    background: #fff;

    border-radius: 26px;

    padding: 22px;

    margin-bottom: 24px;

    box-shadow:
        0 10px 35px rgba(0, 123, 255, .08);
}


/* =========================================================
   LABEL
   ========================================================= */

.ary-label {
    display: block;

    margin-bottom: 10px;

    font-size: 15px;
    font-weight: 600;

    color: #222;
}


/* =========================================================
   PROFILE BOX
   ========================================================= */

.ary-profile-box {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 12px;

    position: relative;
}

.ary-profile-box .ary-input {
    flex: 1;
}


/* =========================================================
   INPUT + SELECT
   ========================================================= */

.ary-input,
.ary-select {
    width: 100%;
    max-width: 100%;

    height: 48px;

    padding: 0 15px;

    border: 1px solid #dbe8f7;

    border-radius: 12px;

    background: #fff;

    font-size: 15px;

    outline: none;
}


/* =========================================================
   PROFILE HELP BUTTON
   ========================================================= */

.ary-help-btn {
    width: 54px;
    height: 54px;

    min-width: 54px;

    padding: 0;
    margin: 0;

    border: none;

    border-radius: 50%;

    background: #edf6ff;

    color: #1168a5;

    font-size: 28px;
    font-weight: 700;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
    z-index: 20;

    transition:
        transform .2s ease,
        background .2s ease;
}

.ary-help-btn:hover {
    background: #dceeff;

    transform: scale(1.05);
}

.ary-help-btn:active {
    transform: scale(.97);
}


/* =========================================================
   SMALL TEXT
   ========================================================= */

.ary-small {
    margin-top: 12px;

    color: #777;

    font-size: 14px;
}


/* =========================================================
   CARD HEADER
   ========================================================= */

.ary-card-head {
    width: 100%;

    display: flex;

    justify-content: space-between;
    align-items: center;

    margin-bottom: 20px;

    font-size: 24px;
    font-weight: 700;

    color: #0b4f82;
}


/* =========================================================
   PACKAGE GRID
   ========================================================= */

.ary-pack-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}


/* =========================================================
   PACKAGE
   ========================================================= */

.ary-pack {
    width: 100%;
    min-width: 0;

    height: 155px;

    position: relative;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    background: #fff;

    border: 1px solid #dce8f5;

    border-radius: 20px;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, .05);

    cursor: pointer;

    transition: .3s;
}

.ary-pack:hover {
    transform: translateY(-3px);

    box-shadow:
        0 15px 30px rgba(0, 0, 0, .08);
}

.ary-pack.active {
    border: 2px solid #1677ff;

    box-shadow:
        0 10px 25px rgba(22, 119, 255, .15);
}


/* =========================================================
   SELECTED / POPULAR
   ========================================================= */

.selected {
    position: absolute;

    left: 12px;
    top: 12px;

    padding: 5px 12px;

    border-radius: 14px;

    background: #167fd5;

    color: #fff;

    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   TICK
   ========================================================= */

.tick {
    position: absolute;

    top: 10px;
    right: 10px;

    width: 28px;
    height: 28px;

    border-radius: 50%;

    background: #0b66a8;

    color: #fff;

    display: none;

    align-items: center;
    justify-content: center;
}

.ary-pack.active .tick {
    display: flex;
}


/* =========================================================
   DIAMOND
   ========================================================= */

.diamond {
    font-size: 22px;

    font-weight: 700;

    color: #0b3766;
}

.diamond span {
    font-size: inherit;

    font-weight: 700;
}


/* =========================================================
   PRICE
   ========================================================= */

.price {
    margin-top: 16px;

    font-size: 16px;

    color: #555;
}


/* =========================================================
   QUANTITY
   ========================================================= */

.ary-qty-wrap {
    width: 100%;

    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 20px;

    flex-wrap: wrap;
}

.ary-qty {
    display: flex;

    align-items: center;

    gap: 10px;
}

.ary-qty button {
    width: 40px;
    height: 40px;

    border: none;

    border-radius: 12px;

    background: #eaf4ff;

    color: #0b66a8;

    font-size: 20px;

    cursor: pointer;

    transition: .25s;
}

.ary-qty button:hover {
    background: #d9ebff;
}

.ary-qty input {
    width: 70px;
    height: 40px;

    border: 1px solid #dbe8f7;

    border-radius: 12px;

    text-align: center;

    font-size: 15px;

    outline: none;
}


/* =========================================================
   TOTAL
   ========================================================= */

.ary-total {
    text-align: right;

    font-size: 15px;

    font-weight: 600;

    line-height: 28px;
}

.ary-total strong {
    color: #0b66a8;
}


/* =========================================================
   PAYMENT BUTTON
   ========================================================= */

.ary-pay-btn {
    width: 100%;

    height: 56px;

    margin-top: 20px;

    border: none;

    border-radius: 16px;

    background: #2f86e8;

    color: #fff;

    font-size: 18px;

    font-weight: 700;

    cursor: pointer;

    transition: .3s;
}

.ary-pay-btn:hover {
    background: #1976d2;
}

.ary-pay-btn:disabled {
    background: #9dbfe2;

    color: #fff;

    cursor: not-allowed;

    opacity: .9;
}


/* =========================================================
   OPEN REQUEST
   ========================================================= */

.ary-open-request {
    margin-top: 15px;

    text-align: center;

    font-size: 14px;
}

.ary-open-request a {
    color: #1976d2;

    font-weight: 700;

    text-decoration: none;
}


/* =========================================================
   RIGHT PANEL HEADINGS
   ========================================================= */

.ary-help h2,
.ary-history h2 {
    margin: 0 0 12px;

    color: #0b66a8;

    font-size: 28px;

    font-weight: 700;
}


/* =========================================================
   HELP TEXT
   ========================================================= */

.ary-help p {
    margin-bottom: 20px;

    color: #666;

    font-size: 14px;
}


/* =========================================================
   HELP ITEM
   ========================================================= */

.ary-help-item {
    width: 100%;

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 14px;

    margin-bottom: 12px;

    border: 1px solid #dcecff;

    border-radius: 14px;

    color: #222;

    text-decoration: none;

    cursor: pointer;

    transition: .25s;
}

.ary-help-item:hover {
    background: #f5faff;

    border-color: #2f86e8;
}


/* =========================================================
   HELP ICON
   ========================================================= */

.ary-help-item .icon {
    width: 45px;
    height: 45px;

    min-width: 45px;

    border-radius: 50%;

    background: #eef6ff;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 20px;
}

.ary-help-item .icon img {
    width: 26px;
    height: 26px;

    object-fit: contain;
}

.ary-help-item strong {
    color: #0b66a8;
}


/* =========================================================
   HISTORY
   ========================================================= */

.ary-history label {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;

    font-weight: 600;
}

.ary-search-btn {
    width: 100%;

    height: 50px;

    border: none;

    border-radius: 14px;

    background: #2f86e8;

    color: #fff;

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;
}

#ary-history-result {
    width: 100%;

    margin-top: 20px;

    border: 1px solid #e5eefb;

    border-radius: 14px;

    overflow-x: auto;
}

.ary-history-table {
    width: 100%;

    min-width: 600px;

    border-collapse: collapse;
}

.ary-history-table th,
.ary-history-table td {
    padding: 14px;

    border-bottom: 1px solid #eef2f7;

    text-align: left;

    font-size: 14px;
}

.ary-history-table th {
    background: #f8fbff;

    color: #0b66a8;
}


/* =========================================================
   COUPON
   ========================================================= */

.ary-coupon-box {
    display: flex;

    align-items: center;

    gap: 10px;

    width: 100%;
}

.ary-coupon-box .ary-input {
    flex: 1;

    width: auto;

    min-width: 0;

    height: 52px;
}

.ary-coupon-btn {
    width: 90px;

    min-width: 90px;

    height: 52px;

    border: none;

    border-radius: 14px;

    background: #1677d2;

    color: #fff;

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;
}

.ary-coupon-btn:hover {
    background: #1266b7;
}

.ary-coupon-btn:active {
    transform: scale(.98);
}

.ary-coupon-message {
    margin-top: 10px;

    font-size: 14px;

    font-weight: 600;
}


/* =========================================================
   PROFILE HELP POPUP
   IMPORTANT:
   HIDDEN BY DEFAULT
========================================================= */

#ary-profile-help-popup {
    display: none;

    position: fixed;

    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    margin: 0;
    padding: 0;

    z-index: 999999;

    align-items: center;
    justify-content: center;
}

#ary-profile-help-popup.active {
    display: flex;
}


/* =========================================================
   POPUP OVERLAY
========================================================= */

#ary-profile-help-overlay {
    position: fixed;

    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    background: rgba(0, 0, 0, .65);

    z-index: 1;

    cursor: pointer;
}


/* =========================================================
   POPUP MODAL
========================================================= */

#ary-profile-help-popup .ary-profile-help-modal {
    position: relative;

    z-index: 2;

    width: 520px;

    max-width: calc(100vw - 30px);

    max-height: 90vh;

    padding: 10px;

    background: #fff;

    border-radius: 20px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, .35);

    overflow: hidden;
}


/* =========================================================
   CLOSE BUTTON
========================================================= */

#ary-profile-help-popup .ary-profile-help-close {
    position: absolute;

    top: 10px;
    right: 10px;

    width: 38px;
    height: 38px;

    padding: 0;

    border: 1px solid #d9e3ed;

    border-radius: 50%;

    background: #fff;

    color: #173d61;

    font-size: 25px;
    font-weight: 400;

    line-height: 36px;

    text-align: center;

    cursor: pointer;

    z-index: 10;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, .10);

    transition: .2s ease;
}

#ary-profile-help-popup .ary-profile-help-close:hover {
    background: #edf6ff;

    transform: scale(1.05);
}


/* =========================================================
   GIF CONTAINER
========================================================= */

#ary-profile-help-popup .ary-profile-video {
    width: 100%;

    max-height: calc(90vh - 20px);

    background: #fff;

    border-radius: 14px;

    overflow: hidden;

    display: flex;

    align-items: center;
    justify-content: center;
}


/* =========================================================
   GIF IMAGE
========================================================= */

#ary-profile-help-popup .ary-profile-help-gif {
    display: block;

    width: 100%;
    height: auto;

    max-width: 100%;

    max-height: calc(90vh - 20px);

    object-fit: contain;

    border-radius: 12px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .ary-notice {
        padding: 5px 8px;

        font-size: 12px;
    }


    .ary-header {
        min-height: 44px;

        padding: 0 10px;

        border-radius: 0;
    }


    .ary-title {
        font-size: 20px;

        font-weight: 700;
    }


    .ary-container {
        width: 100%;

        display: block;

        margin: 1px 0 0;

        padding: 0 2px;
    }


    .ary-left {
        width: 100%;

        min-height: auto;

        margin: 0;

        padding: 0;

        background: transparent;

        box-shadow: none;
    }


    .ary-right {
        width: 100%;

        margin: 12px 0 0;

        padding: 0;
    }


    .ary-card {
        width: 100%;

        padding: 15px;

        margin-bottom: 12px;

        border-radius: 18px;

        box-shadow:
            0 4px 12px rgba(0, 0, 0, .04);
    }


    .ary-help,
    .ary-history {
        width: 100%;

        padding: 16px;

        margin-bottom: 12px;

        border-radius: 18px;

        box-shadow:
            0 4px 12px rgba(0, 0, 0, .04);
    }


    .ary-profile-box {
        width: 100%;

        gap: 8px;
    }


    .ary-input,
    .ary-select {
        width: 100%;

        min-width: 0;

        height: 50px;

        padding: 0 15px;

        border-radius: 16px;

        font-size: 15px;
    }


    .ary-help-btn {
        width: 50px;
        height: 50px;

        min-width: 50px;

        font-size: 25px;
    }


    .ary-card-head {
        font-size: 17px;

        margin-bottom: 14px;
    }


    .ary-help h2,
    .ary-history h2 {
        font-size: 20px;
    }


    .ary-pack-grid {
        width: 100%;

        display: grid;

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 8px;
    }


    .ary-pack {
        width: 100%;

        height: 100px;

        padding: 6px;

        border-radius: 16px;
    }


    .selected {
        left: 6px;
        top: 6px;

        padding: 3px 7px;

        font-size: 8px;

        border-radius: 10px;
    }


    .tick {
        width: 23px;
        height: 23px;

        top: 6px;
        right: 6px;

        font-size: 11px;
    }


    .diamond {
        font-size: 12px;

        margin-bottom: 4px;
    }


    .diamond span {
        font-size: 16px;
    }


    .price {
        font-size: 11px;

        margin-top: 4px;
    }


    .ary-qty-wrap {
        width: 100%;

        gap: 12px;
    }


    .ary-qty button {
        width: 40px;
        height: 40px;
    }


    .ary-qty input {
        width: 55px;
        height: 40px;
    }


    .ary-total {
        font-size: 14px;

        line-height: 24px;
    }


    .ary-pay-btn {
        width: 100%;

        height: 50px;

        margin-top: 15px;

        border-radius: 22px;

        font-size: 17px;
    }


    .ary-search-btn {
        width: 100%;

        height: 50px;
    }


    .ary-help-item {
        width: 100%;

        padding: 12px;

        gap: 12px;

        border-radius: 14px;

        margin-bottom: 10px;
    }


    .ary-help-item .icon {
        width: 42px;
        height: 42px;

        min-width: 42px;
    }


    .ary-help-item .icon img {
        width: 24px;
        height: 24px;
    }


    #ary-history-result {
        width: 100%;

        overflow-x: auto;

        -webkit-overflow-scrolling: touch;
    }


    .ary-history-table {
        min-width: 520px;
    }


    /* COUPON MOBILE */

    .ary-coupon-box {
        gap: 8px;
    }

    .ary-coupon-btn {
        width: 82px;

        min-width: 82px;

        height: 50px;

        font-size: 14px;
    }


    /* PROFILE HELP POPUP MOBILE */

    #ary-profile-help-popup {
        padding: 12px;
    }


    #ary-profile-help-popup .ary-profile-help-modal {
        width: calc(100vw - 24px);

        max-width: 520px;

        max-height: 90vh;

        padding: 8px;

        border-radius: 18px;
    }


    #ary-profile-help-popup .ary-profile-video {
        max-height: calc(90vh - 16px);

        border-radius: 12px;
    }


    #ary-profile-help-popup .ary-profile-help-gif {
        width: 100%;

        height: auto;

        max-height: calc(90vh - 16px);
    }


    #ary-profile-help-popup .ary-profile-help-close {
        width: 36px;
        height: 36px;

        top: 8px;
        right: 8px;

        font-size: 23px;

        line-height: 34px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .ary-profile-help-btn {
        width: 50px;
        height: 50px;
    }


    #ary-profile-help-popup .ary-profile-help-modal {
        width: calc(100vw - 16px);

        padding: 8px;
    }


    #ary-profile-help-popup .ary-profile-video {
        max-height: 88vh;
    }


    #ary-profile-help-popup .ary-profile-help-gif {
        max-height: 88vh;
    }
}


/* =========================================================
   EXTRA SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .ary-container {
        padding: 0 5px;
    }


    .ary-card {
        padding: 12px;

        border-radius: 16px;
    }


    .ary-help,
    .ary-history {
        padding: 13px;

        border-radius: 16px;
    }


    .ary-pack-grid {
        gap: 6px;
    }


    .ary-pack {
        height: 90px;

        border-radius: 14px;
    }


    .diamond span {
        font-size: 14px;
    }


    .price {
        font-size: 10px;
    }


    .ary-title {
        font-size: 18px;
    }


    .ary-coupon-btn {
        width: 78px;

        min-width: 78px;

        font-size: 14px;
    }
}


/* =========================================================
   EXTRA EXTRA SMALL MOBILE
========================================================= */

@media (max-width: 340px) {

    .ary-container {
        padding: 0 3px;
    }


    .ary-pack-grid {
        gap: 5px;
    }


    .ary-pack {
        height: 86px;

        padding: 4px;
    }


    .diamond {
        font-size: 11px;
    }


    .diamond span {
        font-size: 13px;
    }


    .price {
        font-size: 9px;
    }


    .selected {
        font-size: 7px;

        padding: 2px 5px;
    }


    .tick {
        width: 20px;
        height: 20px;

        font-size: 9px;
    }
}
/* =========================================================
   PROFILE HELP GIF
========================================================= */

.ary-profile-help-gif {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 14px;
    object-fit: contain;
}

.ary-profile-video {
    width: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
}

.ary-profile-help-modal {
    width: min(560px, calc(100vw - 30px));
}