/* =========================================================
   HIGH5 AGENT RANKINGS
   Elegant Dark + Gold Theme
   ========================================================= */


/* ---------------------------------------------------------
   Main Wrapper
   --------------------------------------------------------- */

.h5ar-wrapper {
    position: relative;

    width: 100%;
    min-width: 100%;
    min-height: 100vh;

    box-sizing: border-box;

    padding: 70px 30px;

    overflow: hidden;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(212, 175, 55, 0.08),
            transparent 38%
        ),
        radial-gradient(
            circle at 10% 90%,
            rgba(212, 175, 55, 0.04),
            transparent 30%
        ),
        #0b0b0c;

    color: #ffffff;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}


/* ---------------------------------------------------------
   Subtle Texture
   --------------------------------------------------------- */

.h5ar-wrapper::before {
    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    opacity: 0.035;

    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");

    z-index: 0;
}


.h5ar-wrapper > * {
    position: relative;

    z-index: 1;
}


/* ---------------------------------------------------------
   Centered Content
   --------------------------------------------------------- */

.h5ar-header,
.h5ar-cards {
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}


/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

.h5ar-header {
    margin: 0 auto 50px;

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 30px;
}


.h5ar-eyebrow {
    display: block;

    margin-bottom: 10px;

    color: #d4af37;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 3px;

    text-transform: uppercase;
}


.h5ar-heading h2 {
    margin: 0;

    color: #ffffff;

    font-size: 42px;
    font-weight: 500;

    line-height: 1.1;

    letter-spacing: -1px;
}


.h5ar-heading p {
    margin: 12px 0 0;

    color: #858585;

    font-size: 15px;
}


/* ---------------------------------------------------------
   Year Selector
   --------------------------------------------------------- */

.h5ar-year-form {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}


.h5ar-year-form label {
    font-size: 11px;
    font-weight: 600;

    letter-spacing: 0.14em;
    text-transform: uppercase;

    color: rgba(255, 255, 255, 0.55);
}


/* ---------------------------------------------------------
   Year Dropdown
   --------------------------------------------------------- */

.h5ar-year-form select {
    min-width: 150px;

    height: 46px;

    padding: 0 42px 0 16px;

    box-sizing: border-box;

    border: 1px solid rgba(212, 175, 55, 0.45);

    border-radius: 8px;

    background-color: #151516;

    color: #ffffff;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    outline: none;

    appearance: none;
    -webkit-appearance: none;

    background-image:
        linear-gradient(
            45deg,
            transparent 50%,
            #d4af37 50%
        ),
        linear-gradient(
            135deg,
            #d4af37 50%,
            transparent 50%
        );

    background-position:
        calc(100% - 18px) 19px,
        calc(100% - 12px) 19px;

    background-size:
        6px 6px,
        6px 6px;

    background-repeat: no-repeat;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}


/* ---------------------------------------------------------
   Hover
   --------------------------------------------------------- */

.h5ar-year-form select:hover {
    border-color: rgba(212, 175, 55, 0.8);

    background-color: #19191a;
}


/* ---------------------------------------------------------
   Focus
   --------------------------------------------------------- */

.h5ar-year-form select:focus {
    border-color: #d4af37;

    box-shadow:
        0 0 0 3px rgba(212, 175, 55, 0.10);
}


/* ---------------------------------------------------------
   Dropdown Options
   --------------------------------------------------------- */

.h5ar-year-form select option {
    background-color: #151516;

    color: #ffffff;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    font-size: 14px;
}

/* ---------------------------------------------------------
   Cards Container
   --------------------------------------------------------- */

.h5ar-cards {
    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 28px;
}


/* ---------------------------------------------------------
   General Card
   --------------------------------------------------------- */

.h5ar-card {
    position: relative;

    overflow: hidden;

    min-height: 480px;

    padding: 45px 40px;

    border: 1px solid rgba(212, 175, 55, 0.22);

    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            #181819 0%,
            #101011 55%,
            #0d0d0e 100%
        );

    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.45);

    text-align: center;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


.h5ar-card:hover {
    transform: translateY(-5px);

    border-color:
        rgba(212, 175, 55, 0.5);

    box-shadow:
        0 35px 80px rgba(0, 0, 0, 0.55),
        0 0 50px rgba(212, 175, 55, 0.05);
}


/* ---------------------------------------------------------
   Year Card
   Full Width / Top Position
   --------------------------------------------------------- */

.h5ar-year-card {
    grid-column: 1 / -1;
}


/* ---------------------------------------------------------
   Gold Glow
   --------------------------------------------------------- */

.h5ar-card-glow {
    position: absolute;

    width: 300px;
    height: 300px;

    top: -180px;
    left: 50%;

    transform: translateX(-50%);

    background:
        radial-gradient(
            circle,
            rgba(212, 175, 55, 0.18),
            transparent 68%
        );

    pointer-events: none;
}


/* ---------------------------------------------------------
   Award Icon
   --------------------------------------------------------- */

.h5ar-award-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    margin: 0 auto 20px;

    border: 1px solid rgba(212, 175, 55, 0.5);

    border-radius: 50%;

    color: #d4af37;

    font-size: 20px;

    box-shadow:
        0 0 25px rgba(212, 175, 55, 0.08);
}


.h5ar-card-label {
    color: #716e67;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 3px;

    text-transform: uppercase;
}


.h5ar-card h3 {
    margin: 6px 0 0;

    color: #ffffff;

    font-size: 30px;
    font-weight: 400;

    text-transform: uppercase;
}


/* =========================================================
   YEAR / MONTH DISPLAY
   ========================================================= */

.h5ar-year {
    margin-top: 8px;

    color: #888888;

    font-size: 13px;

    letter-spacing: 2px;
}





/* ---------------------------------------------------------
   Year Photo
   Large Perfect Circle
   --------------------------------------------------------- */

.h5ar-agent-photo {
    position: relative;

    width: 240px;
    height: 240px;

    margin: 32px auto 25px;

    box-sizing: border-box;

    border-radius: 50%;

    overflow: hidden;

    border: 1px solid rgba(212, 175, 55, 0.8);

    background: #151516;

    box-shadow:
        0 0 0 8px #101011,
        0 0 0 9px rgba(212, 175, 55, 0.25),
        0 0 0 16px #101011,
        0 0 0 17px rgba(212, 175, 55, 0.10);
}


/* ---------------------------------------------------------
   Year Photo Image
   --------------------------------------------------------- */

.h5ar-agent-photo img {
    width: 100%;
    height: 100%;

    display: block;

    margin: 0;
    padding: 0;

    border: 0;

    border-radius: 50%;

    object-fit: cover;
}


/* ---------------------------------------------------------
   Agent Photo Placeholder
   --------------------------------------------------------- */

.h5ar-agent-photo-placeholder {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    border-radius: 50%;

    background: #151516;

    color: #d4af37;
}


.h5ar-agent-photo-placeholder span {
    font-size: 32px;

    line-height: 1;
}


/* ---------------------------------------------------------
   Month Spacer
   --------------------------------------------------------- */

.h5ar-month-spacer {
    height: 75px;
}


/* ---------------------------------------------------------
   Agent
   --------------------------------------------------------- */

.h5ar-agent-name {

    color: #ffffff;

    font-size: 30px;
    font-weight: 700;

    line-height: 1.2;

    letter-spacing: 0.3px;
}


.h5ar-agent-title {
    margin-top: 6px;

    color: #d4af37;

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 2px;

    text-transform: uppercase;
}


/* ---------------------------------------------------------
   Divider
   --------------------------------------------------------- */

.h5ar-divider {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 15px;

    margin: 28px auto;
}


.h5ar-divider::before,
.h5ar-divider::after {
    content: "";

    width: 65px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(212, 175, 55, 0.45)
        );
}


.h5ar-divider::after {
    background:
        linear-gradient(
            90deg,
            rgba(212, 175, 55, 0.45),
            transparent
        );
}


.h5ar-divider span {
    color: #d4af37;

    font-size: 12px;
}


/* ---------------------------------------------------------
   Statistics
   --------------------------------------------------------- */

.h5ar-stat-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 10px;
}


.h5ar-stat {
    padding: 15px 8px;

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.025);
}


.h5ar-stat strong {
    display: block;

    color: #d4af37;

    font-size: 17px;
    font-weight: 600;

    line-height: 1.2;
}


.h5ar-stat span {
    display: block;

    margin-top: 5px;

    color: #777777;

    font-size: 9px;
    font-weight: 600;

    letter-spacing: 1px;

    text-transform: uppercase;
}


/* ---------------------------------------------------------
   Empty State
   --------------------------------------------------------- */

.h5ar-empty {
    width: 100%;
    max-width: 1180px;

    box-sizing: border-box;

    padding: 50px;

    border: 1px solid rgba(212, 175, 55, 0.2);

    border-radius: 16px;

    background: #101011;

    color: #999999;

    text-align: center;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */


/* ---------------------------------------------------------
   Tablet
   Year = Full Width
   Months = 2 Per Row
   --------------------------------------------------------- */

@media (max-width: 900px) {

    .h5ar-header {
        align-items: flex-start;

        flex-direction: column;
    }


    .h5ar-cards {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .h5ar-year-card {
        grid-column: 1 / -1;
    }


    .h5ar-card {
        min-height: auto;
    }

}


/* ---------------------------------------------------------
   Mobile
   Year = Full Width
   Months = 1 Per Row
   --------------------------------------------------------- */

@media (max-width: 600px) {

    .h5ar-wrapper {
        padding: 50px 18px;

        min-height: 100vh;
    }


    .h5ar-heading h2 {
        font-size: 32px;
    }


    .h5ar-cards {
        grid-template-columns: 1fr;
    }


    .h5ar-year-card {
        grid-column: auto;
    }


    .h5ar-card {
        padding: 35px 22px;
    }


    .h5ar-agent-photo {
        width: 200px;
        height: 200px;
    }


    .h5ar-stat-grid {
        grid-template-columns: 1fr;
    }


    .h5ar-stat {
        padding: 13px;
    }

}

/* =========================================================
   PREMIUM ONLY
   ========================================================= */

.h5ar-stat-grid {
    display: flex;
    justify-content: center;
}


.h5ar-stat-grid .h5ar-stat {
    width: 100%;
    max-width: 300px;
}


.h5ar-stat-grid .h5ar-stat strong {
    font-size: 22px;
}


.h5ar-stat-grid .h5ar-stat span {
    font-size: 10px;
}

/* =========================================================
   PREMIUM ONLY
   ========================================================= */

.h5ar-stat-grid {
    display: flex;
    justify-content: center;
    width: 100%;
}


.h5ar-stat-grid .h5ar-stat {
    width: 100%;
    max-width: 320px;
}


.h5ar-stat-grid .h5ar-stat strong {
    font-size: 22px;
}


/* =========================================================
   LARGE YEAR / MONTH
   ========================================================= */

.h5ar-year,
.h5ar-month {

    color: #d4af37;


    font-weight: 700;

    line-height: 1.2;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.h5ar-year {
    font-size: 48px;
}

.h5ar-month  {
    font-size: 24px;
}
/* =========================================================
   FORCE MONTHS INTO CALENDAR ORDER
   January → February → March → ... → December
   ========================================================= */

.h5ar-month-order {
    direction: ltr;
}


/* Year card */

.h5ar-month-order .h5ar-year-card {
    grid-column: 1 / -1;
    grid-row: 1;
}


/* January */

.h5ar-month-order .h5ar-month-1 {
    grid-row: 2;
    grid-column: 1;
}


/* February */

.h5ar-month-order .h5ar-month-2 {
    grid-row: 2;
    grid-column: 2;
}


/* March */

.h5ar-month-order .h5ar-month-3 {
    grid-row: 2;
    grid-column: 3;
}


/* April */

.h5ar-month-order .h5ar-month-4 {
    grid-row: 3;
    grid-column: 1;
}


/* May */

.h5ar-month-order .h5ar-month-5 {
    grid-row: 3;
    grid-column: 2;
}


/* June */

.h5ar-month-order .h5ar-month-6 {
    grid-row: 3;
    grid-column: 3;
}


/* July */

.h5ar-month-order .h5ar-month-7 {
    grid-row: 4;
    grid-column: 1;
}


/* August */

.h5ar-month-order .h5ar-month-8 {
    grid-row: 4;
    grid-column: 2;
}


/* September */

.h5ar-month-order .h5ar-month-9 {
    grid-row: 4;
    grid-column: 3;
}


/* October */

.h5ar-month-order .h5ar-month-10 {
    grid-row: 5;
    grid-column: 1;
}


/* November */

.h5ar-month-order .h5ar-month-11 {
    grid-row: 5;
    grid-column: 2;
}


/* December */

.h5ar-month-order .h5ar-month-12 {
    grid-row: 5;
    grid-column: 3;
}

.h5ar-agent-photo img {
    width: 100%;
    height: 100%;
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    object-fit: var(--h5ar-image-fit, cover);
    object-position: var(--h5ar-image-position, center center);
}

/* =========================================================
   RESPONSIVE MONTH CARD ORDER
   Keep existing desktop layout unchanged
   ========================================================= */

/* ---------------------------------------------------------
   Tablet
   2 Columns
   --------------------------------------------------------- */

@media (max-width: 900px) {

    .h5ar-month-order .h5ar-month-1 {
        grid-column: 1;
        grid-row: 2;
    }

    .h5ar-month-order .h5ar-month-2 {
        grid-column: 2;
        grid-row: 2;
    }

    .h5ar-month-order .h5ar-month-3 {
        grid-column: 1;
        grid-row: 3;
    }

    .h5ar-month-order .h5ar-month-4 {
        grid-column: 2;
        grid-row: 3;
    }

    .h5ar-month-order .h5ar-month-5 {
        grid-column: 1;
        grid-row: 4;
    }

    .h5ar-month-order .h5ar-month-6 {
        grid-column: 2;
        grid-row: 4;
    }

    .h5ar-month-order .h5ar-month-7 {
        grid-column: 1;
        grid-row: 5;
    }

    .h5ar-month-order .h5ar-month-8 {
        grid-column: 2;
        grid-row: 5;
    }

    .h5ar-month-order .h5ar-month-9 {
        grid-column: 1;
        grid-row: 6;
    }

    .h5ar-month-order .h5ar-month-10 {
        grid-column: 2;
        grid-row: 6;
    }

    .h5ar-month-order .h5ar-month-11 {
        grid-column: 1;
        grid-row: 7;
    }

    .h5ar-month-order .h5ar-month-12 {
        grid-column: 2;
        grid-row: 7;
    }

}


/* ---------------------------------------------------------
   Mobile
   1 Column
   --------------------------------------------------------- */

@media (max-width: 600px) {

    .h5ar-month-order .h5ar-month-1 {
        grid-column: 1;
        grid-row: 2;
    }

    .h5ar-month-order .h5ar-month-2 {
        grid-column: 1;
        grid-row: 3;
    }

    .h5ar-month-order .h5ar-month-3 {
        grid-column: 1;
        grid-row: 4;
    }

    .h5ar-month-order .h5ar-month-4 {
        grid-column: 1;
        grid-row: 5;
    }

    .h5ar-month-order .h5ar-month-5 {
        grid-column: 1;
        grid-row: 6;
    }

    .h5ar-month-order .h5ar-month-6 {
        grid-column: 1;
        grid-row: 7;
    }

    .h5ar-month-order .h5ar-month-7 {
        grid-column: 1;
        grid-row: 8;
    }

    .h5ar-month-order .h5ar-month-8 {
        grid-column: 1;
        grid-row: 9;
    }

    .h5ar-month-order .h5ar-month-9 {
        grid-column: 1;
        grid-row: 10;
    }

    .h5ar-month-order .h5ar-month-10 {
        grid-column: 1;
        grid-row: 11;
    }

    .h5ar-month-order .h5ar-month-11 {
        grid-column: 1;
        grid-row: 12;
    }

    .h5ar-month-order .h5ar-month-12 {
        grid-column: 1;
        grid-row: 13;
    }

}