/* =====================================================
   MICKEY LIVE — ADMIN PANEL
   PREMIUM DARK / RED DESIGN
===================================================== */


/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}


html,
body {
    width: 100%;
    min-height: 100%;
}


body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(255, 30, 30, 0.13),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 90%,
            rgba(255, 20, 20, 0.08),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #050507 0%,
            #0a0a0f 50%,
            #030304 100%
        );

    color: #ffffff;

    overflow-x: hidden;
}


/* =====================================================
   LOGIN PAGE
===================================================== */

.admin-login-page {

    position: relative;

    width: 100%;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 25px;

    overflow: hidden;
}


/* =====================================================
   BACKGROUND GLOWS
===================================================== */

.admin-bg-glow {

    position: absolute;

    border-radius: 50%;

    pointer-events: none;

    filter: blur(2px);
}


.admin-glow-one {

    width: 420px;
    height: 420px;

    top: -220px;
    left: -190px;

    background:
        radial-gradient(
            circle,
            rgba(255, 30, 25, 0.16),
            transparent 68%
        );
}


.admin-glow-two {

    width: 360px;
    height: 360px;

    right: -180px;
    bottom: -190px;

    background:
        radial-gradient(
            circle,
            rgba(255, 30, 25, 0.12),
            transparent 68%
        );
}


/* =====================================================
   LOGIN CARD
===================================================== */

.admin-login-card {

    position: relative;

    z-index: 2;

    width: 100%;
    max-width: 450px;

    padding: 38px 32px 28px;

    background:
        linear-gradient(
            145deg,
            rgba(24, 24, 32, 0.98),
            rgba(8, 8, 12, 0.99)
        );

    border: 1px solid rgba(255, 55, 45, 0.23);

    border-radius: 24px;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.75),
        0 0 55px rgba(255, 25, 20, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);

    overflow: hidden;

    backdrop-filter: blur(18px);
}


/* =====================================================
   TOP RED LINE
===================================================== */

.admin-login-card::before {

    content: "";

    position: absolute;

    top: 0;
    left: 7%;

    width: 86%;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #ff1d1d,
            #ff5a4e,
            #ff1d1d,
            transparent
        );

    box-shadow:
        0 0 16px rgba(255, 30, 25, 0.70);
}


/* =====================================================
   BRAND
===================================================== */

.admin-brand {

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 13px;

    margin-bottom: 28px;
}


.admin-brand-icon {

    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #ff1717,
            #a90000
        );

    color: #ffffff;

    font-size: 23px;

    font-weight: 900;

    box-shadow:
        0 8px 25px rgba(255, 25, 20, 0.24),
        0 0 22px rgba(255, 25, 20, 0.14);
}


.admin-brand-text h1 {

    font-size: 22px;

    line-height: 1.1;

    font-weight: 900;

    letter-spacing: -0.3px;
}


.admin-brand-text h1 span {

    color: #ff3b32;

    text-shadow:
        0 0 12px rgba(255, 35, 30, 0.25);
}


.admin-brand-text p {

    margin-top: 4px;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 2px;

    color: #777780;
}


/* =====================================================
   LOGIN HEADING
===================================================== */

.admin-login-heading {

    text-align: center;

    margin-bottom: 27px;
}


.admin-login-label {

    display: inline-block;

    padding: 5px 10px;

    margin-bottom: 11px;

    border: 1px solid rgba(255, 55, 45, 0.20);

    border-radius: 20px;

    background: rgba(255, 35, 30, 0.06);

    color: #ff4a42;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 1.5px;
}


.admin-login-heading h2 {

    font-size: 29px;

    line-height: 1.2;

    font-weight: 900;

    color: #ffffff;

    letter-spacing: -0.5px;
}


.admin-login-heading p {

    margin-top: 7px;

    color: #85858f;

    font-size: 12px;

    line-height: 1.5;
}


/* =====================================================
   INPUT GROUP
===================================================== */

.admin-input-group {

    margin-bottom: 17px;
}


.admin-input-group label {

    display: block;

    margin-bottom: 7px;

    color: #777780;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 1.2px;
}


/* =====================================================
   INPUT BOX
===================================================== */

.admin-input-box {

    position: relative;

    width: 100%;
    height: 53px;

    display: flex;
    align-items: center;

    background:
        linear-gradient(
            135deg,
            rgba(31, 31, 41, 0.96),
            rgba(18, 18, 25, 0.96)
        );

    border: 1px solid rgba(255, 255, 255, 0.07);

    border-radius: 12px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}


.admin-input-box:hover {

    border-color:
        rgba(255, 65, 55, 0.25);
}


.admin-input-box:focus-within {

    border-color: #ff3932;

    box-shadow:
        0 0 0 3px rgba(255, 45, 35, 0.07),
        0 0 20px rgba(255, 40, 30, 0.12);

    transform: translateY(-1px);
}


/* =====================================================
   INPUT ICON
===================================================== */

.admin-input-icon {

    width: 48px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #777780;

    font-size: 15px;

    transition: color 0.2s ease;
}


.admin-input-box:focus-within
.admin-input-icon {

    color: #ff4038;
}


/* =====================================================
   INPUT
===================================================== */

.admin-input-box input {

    width: 100%;
    height: 100%;

    padding: 0 48px 0 0;

    border: none;
    outline: none;

    background: transparent;

    color: #ffffff;

    font-size: 14px;

    font-weight: 500;
}


.admin-input-box input::placeholder {

    color: #666670;
}


/* =====================================================
   PASSWORD TOGGLE
===================================================== */

.password-toggle {

    position: absolute;

    right: 8px;

    top: 50%;

    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    border: none;

    border-radius: 9px;

    background: transparent;

    color: #777780;

    cursor: pointer;

    font-size: 14px;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}


.password-toggle:hover {

    color: #ff4038;

    background:
        rgba(255, 45, 35, 0.07);
}


/* =====================================================
   LOGIN BUTTON
===================================================== */

.admin-login-btn {

    position: relative;

    width: 100%;

    min-height: 52px;

    margin-top: 5px;

    border: none;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #ff1717,
            #ff3025 50%,
            #ff482e
        );

    color: #ffffff;

    font-size: 13px;

    font-weight: 900;

    letter-spacing: 0.7px;

    cursor: pointer;

    overflow: hidden;

    box-shadow:
        0 10px 27px rgba(255, 25, 20, 0.20),
        0 0 20px rgba(255, 30, 25, 0.12);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        opacity 0.18s ease;
}


/* =====================================================
   BUTTON SHINE
===================================================== */

.admin-login-btn::before {

    content: "";

    position: absolute;

    top: 0;
    left: -110%;

    width: 55%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.20),
            transparent
        );

    transform: skewX(-20deg);

    transition: left 0.55s ease;
}


.admin-login-btn:hover::before {

    left: 140%;
}


.admin-login-btn:hover {

    transform: translateY(-2px);

    box-shadow:
        0 14px 34px rgba(255, 30, 25, 0.28),
        0 0 27px rgba(255, 30, 25, 0.18);
}


.admin-login-btn:active {

    transform: scale(0.985);
}


.admin-login-btn:disabled {

    opacity: 0.60;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;
}


/* =====================================================
   MESSAGE
===================================================== */

.admin-login-message {

    width: 100%;

    min-height: 20px;

    margin-top: 14px;

    text-align: center;

    color: #ff4b42;

    font-size: 12px;

    font-weight: 600;

    line-height: 1.5;
}


/* =====================================================
   SECURITY NOTE
===================================================== */

.admin-security-note {

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: 21px;

    padding-top: 17px;

    border-top: 1px solid rgba(255, 255, 255, 0.055);
}


.admin-security-note span {

    font-size: 12px;
}


.admin-security-note p {

    color: #686871;

    font-size: 10px;

    font-weight: 600;
}


/* =====================================================
   FOOTER
===================================================== */

.admin-login-footer {

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: 20px;

    color: #4f4f57;

    font-size: 9px;

    letter-spacing: 0.3px;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    .admin-login-page {

        padding: 15px;
    }


    .admin-login-card {

        max-width: 430px;

        padding: 34px 24px 26px;

        border-radius: 20px;
    }


    .admin-brand {

        margin-bottom: 24px;
    }


    .admin-brand-icon {

        width: 44px;
        height: 44px;

        border-radius: 12px;

        font-size: 21px;
    }


    .admin-brand-text h1 {

        font-size: 20px;
    }


    .admin-login-heading h2 {

        font-size: 27px;
    }


    .admin-login-heading p {

        font-size: 11px;
    }


    .admin-input-box {

        height: 50px;
    }


    .admin-login-btn {

        min-height: 50px;
    }
}


/* =====================================================
   SMALL PHONES
===================================================== */

@media (max-width: 360px) {

    .admin-login-page {

        padding: 10px;
    }


    .admin-login-card {

        padding: 29px 18px 22px;

        border-radius: 18px;
    }


    .admin-brand {

        margin-bottom: 21px;
    }


    .admin-brand-icon {

        width: 41px;
        height: 41px;

        border-radius: 11px;

        font-size: 19px;
    }


    .admin-brand-text h1 {

        font-size: 18px;
    }


    .admin-login-heading {

        margin-bottom: 22px;
    }


    .admin-login-heading h2 {

        font-size: 24px;
    }


    .admin-input-group {

        margin-bottom: 13px;
    }


    .admin-input-box {

        height: 47px;

        border-radius: 10px;
    }


    .admin-input-icon {

        width: 43px;
    }


    .admin-input-box input {

        font-size: 13px;
    }


    .admin-login-btn {

        min-height: 47px;

        border-radius: 10px;

        font-size: 12px;
    }


    .admin-security-note {

        margin-top: 17px;

        padding-top: 14px;
    }


    .admin-login-footer {

        margin-top: 16px;

        font-size: 8px;
    }
}


/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        transition: none !important;

        animation: none !important;
    }
}

/* =====================================================
   MICKEY LIVE — ADMIN DASHBOARD
   PREMIUM RED / BLACK
===================================================== */


/* =====================================================
   ADMIN APP
===================================================== */

.admin-app {
    min-height: 100vh;
    display: flex;
}


/* =====================================================
   SIDEBAR
===================================================== */

.admin-sidebar {
    position: fixed;
    z-index: 1000;

    top: 0;
    left: 0;

    width: 255px;
    height: 100vh;

    display: flex;
    flex-direction: column;

    padding: 24px 15px 16px;

    background:
        linear-gradient(
            180deg,
            #0d0d12 0%,
            #08080c 100%
        );

    border-right: 1px solid rgba(255, 255, 255, 0.06);
}


/* =====================================================
   SIDEBAR BRAND
===================================================== */

.admin-sidebar-brand {
    display: flex;
    align-items: center;

    gap: 11px;

    padding: 3px 9px 25px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}


.admin-sidebar-brand .admin-brand-icon {
    width: 43px;
    height: 43px;

    border-radius: 12px;

    flex-shrink: 0;
}


.admin-sidebar-brand h1 {
    font-size: 19px;
    line-height: 1.1;

    font-weight: 900;
}


.admin-sidebar-brand h1 span {
    color: #ff3b32;
}


.admin-sidebar-brand p {
    margin-top: 4px;

    color: #65656e;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.6px;
}


/* =====================================================
   NAVIGATION
===================================================== */

.admin-nav {
    flex: 1;

    padding-top: 22px;

    overflow-y: auto;
}


.admin-nav-title {
    padding: 0 11px;

    margin: 18px 0 8px;

    color: #55555e;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 1.5px;
}


.admin-nav-title:first-child {
    margin-top: 0;
}


.admin-nav-item {
    position: relative;

    width: 100%;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 11px 12px;

    margin-bottom: 4px;

    border: 1px solid transparent;

    border-radius: 10px;

    background: transparent;

    color: #85858f;

    font-size: 12px;
    font-weight: 700;

    text-align: left;

    cursor: pointer;

    transition:
        color 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}


.admin-nav-item:hover {
    color: #ffffff;

    background: rgba(255, 255, 255, 0.035);

    transform: translateX(2px);
}


.admin-nav-item.active {
    color: #ffffff;

    background:
        linear-gradient(
            90deg,
            rgba(255, 35, 30, 0.14),
            rgba(255, 35, 30, 0.04)
        );

    border-color:
        rgba(255, 55, 45, 0.13);
}


.admin-nav-item.active::before {
    content: "";

    position: absolute;

    left: -1px;
    top: 20%;

    width: 3px;
    height: 60%;

    border-radius: 0 5px 5px 0;

    background: #ff3b32;

    box-shadow:
        0 0 12px rgba(255, 45, 35, 0.5);
}


.nav-icon {
    width: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;
}


/* =====================================================
   SIDEBAR BOTTOM
===================================================== */

.admin-sidebar-bottom {
    padding-top: 15px;

    border-top: 1px solid rgba(255, 255, 255, 0.06);
}


.admin-mini-profile {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 8px 7px 12px;
}


.admin-avatar {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #ff2922,
            #8e0000
        );

    color: #ffffff;

    font-size: 13px;
    font-weight: 900;

    box-shadow:
        0 5px 16px rgba(255, 25, 20, 0.20);
}


.admin-mini-profile strong {
    display: block;

    max-width: 150px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #eeeeef;

    font-size: 11px;
}


.admin-mini-profile small {
    display: block;

    max-width: 150px;

    margin-top: 3px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #62626b;

    font-size: 9px;
}


/* =====================================================
   LOGOUT
===================================================== */

.admin-logout-btn {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 10px;

    border: 1px solid rgba(255, 55, 45, 0.12);

    border-radius: 9px;

    background: rgba(255, 35, 30, 0.035);

    color: #d45b56;

    font-size: 10px;
    font-weight: 800;

    cursor: pointer;

    transition:
        background 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease;
}


.admin-logout-btn:hover {
    color: #ffffff;

    background: rgba(255, 35, 30, 0.10);

    border-color:
        rgba(255, 55, 45, 0.25);
}


/* =====================================================
   MAIN
===================================================== */

.admin-main {
    width: calc(100% - 255px);

    min-height: 100vh;

    margin-left: 255px;

    background:
        radial-gradient(
            circle at 85% 0%,
            rgba(255, 35, 30, 0.07),
            transparent 28%
        );
}


/* =====================================================
   TOPBAR
===================================================== */

.admin-topbar {
    position: sticky;

    top: 0;

    z-index: 500;

    min-height: 75px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 13px 30px;

    background:
        rgba(8, 8, 12, 0.90);

    border-bottom: 1px solid rgba(255, 255, 255, 0.055);

    backdrop-filter: blur(18px);
}


.admin-topbar-left {
    display: flex;
    align-items: center;

    gap: 13px;
}


.admin-menu-btn {
    display: none;

    width: 38px;
    height: 38px;

    border: 1px solid rgba(255, 255, 255, 0.07);

    border-radius: 9px;

    background: rgba(255, 255, 255, 0.035);

    color: #ffffff;

    cursor: pointer;
}


.admin-topbar-label {
    margin-bottom: 3px;

    color: #5f5f68;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 1.6px;
}


.admin-topbar h2 {
    color: #ffffff;

    font-size: 19px;
    font-weight: 900;
}


.admin-status {
    display: flex;
    align-items: center;

    gap: 7px;

    padding: 8px 11px;

    border: 1px solid rgba(30, 210, 120, 0.12);

    border-radius: 20px;

    background: rgba(30, 210, 120, 0.035);

    color: #777780;

    font-size: 9px;
    font-weight: 700;
}


.status-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #24ca79;

    box-shadow:
        0 0 10px rgba(36, 202, 121, 0.65);
}


/* =====================================================
   CONTENT
===================================================== */

.admin-content {
    padding: 30px;
}


.admin-section {
    display: none;

    animation: adminFadeIn 0.22s ease;
}


.admin-section.active {
    display: block;
}


@keyframes adminFadeIn {

    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =====================================================
   SECTION HEADING
===================================================== */

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 25px;
}


.section-eyebrow {
    display: block;

    margin-bottom: 6px;

    color: #ff433a;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 1.7px;
}


.section-heading h3 {
    color: #ffffff;

    font-size: 25px;
    font-weight: 900;

    letter-spacing: -0.4px;
}


.section-heading p {
    margin-top: 5px;

    color: #696972;

    font-size: 11px;
}


/* =====================================================
   STAT GRID
===================================================== */

.admin-stat-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 15px;

    margin-bottom: 18px;
}


.admin-stat-card {
    position: relative;

    min-height: 145px;

    padding: 19px;

    background:
        linear-gradient(
            145deg,
            rgba(24, 24, 32, 0.97),
            rgba(12, 12, 17, 0.98)
        );

    border: 1px solid rgba(255, 255, 255, 0.055);

    border-radius: 15px;

    overflow: hidden;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.22);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}


.admin-stat-card::after {
    content: "";

    position: absolute;

    width: 90px;
    height: 90px;

    right: -45px;
    bottom: -45px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255, 35, 30, 0.12),
            transparent 70%
        );
}


.admin-stat-card:hover {
    transform: translateY(-3px);

    border-color:
        rgba(255, 55, 45, 0.18);
}


.stat-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.stat-icon {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: rgba(255, 35, 30, 0.08);

    font-size: 15px;
}


.stat-label {
    color: #5f5f68;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 1.1px;
}


.stat-value {
    display: block;

    margin-top: 17px;

    color: #ffffff;

    font-size: 25px;
    font-weight: 900;

    letter-spacing: -0.5px;
}


.stat-description {
    display: block;

    margin-top: 4px;

    color: #60606a;

    font-size: 9px;
}


/* =====================================================
   PANELS
===================================================== */

.admin-panel {
    margin-bottom: 18px;

    padding: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(21, 21, 29, 0.97),
            rgba(10, 10, 15, 0.98)
        );

    border: 1px solid rgba(255, 255, 255, 0.055);

    border-radius: 15px;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.18);
}


.admin-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 18px;
}


.admin-panel-header h3 {
    color: #ffffff;

    font-size: 15px;
    font-weight: 800;
}


.admin-panel-header small {
    display: block;

    margin-top: 3px;

    color: #5f5f68;

    font-size: 9px;
}


/* =====================================================
   QUICK ACTIONS
===================================================== */

.quick-action-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;
}


.quick-action {
    display: flex;
    align-items: center;

    gap: 13px;

    width: 100%;

    padding: 14px;

    border: 1px solid rgba(255, 255, 255, 0.055);

    border-radius: 11px;

    background: rgba(255, 255, 255, 0.018);

    color: #ffffff;

    text-align: left;

    cursor: pointer;

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}


.quick-action:hover {
    transform: translateY(-2px);

    background:
        rgba(255, 35, 30, 0.055);

    border-color:
        rgba(255, 55, 45, 0.16);
}


.quick-action > span {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 10px;

    background: rgba(255, 35, 30, 0.08);

    font-size: 16px;
}


.quick-action strong {
    display: block;

    font-size: 11px;
}


.quick-action small {
    display: block;

    margin-top: 4px;

    color: #60606a;

    font-size: 9px;
}


/* =====================================================
   EMPTY ACTIVITY
===================================================== */

.activity-empty {
    padding: 45px 20px;

    text-align: center;

    border: 1px dashed rgba(255, 255, 255, 0.06);

    border-radius: 12px;
}


.empty-icon {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 12px;

    border-radius: 13px;

    background: rgba(255, 255, 255, 0.035);

    color: #676770;

    font-size: 19px;
}


.activity-empty strong {
    color: #888891;

    font-size: 11px;
}


.activity-empty p {
    max-width: 350px;

    margin: 6px auto 0;

    color: #55555e;

    font-size: 9px;

    line-height: 1.5;
}


/* =====================================================
   SEARCH
===================================================== */

.admin-search {
    width: 190px;

    height: 36px;

    padding: 0 11px;

    border: 1px solid rgba(255, 255, 255, 0.07);

    border-radius: 8px;

    outline: none;

    background: rgba(255, 255, 255, 0.025);

    color: #ffffff;

    font-size: 10px;
}


.admin-search::placeholder {
    color: #55555e;
}


.admin-search:focus {
    border-color:
        rgba(255, 55, 45, 0.35);

    box-shadow:
        0 0 0 3px rgba(255, 45, 35, 0.05);
}


/* =====================================================
   SELECT
===================================================== */

.admin-select {
    height: 36px;

    padding: 0 10px;

    border: 1px solid rgba(255, 255, 255, 0.07);

    border-radius: 8px;

    outline: none;

    background: #15151c;

    color: #bbbbc2;

    font-size: 10px;
}


/* =====================================================
   TABLE
===================================================== */

.admin-table-wrapper {
    width: 100%;

    overflow-x: auto;

    border: 1px solid rgba(255, 255, 255, 0.045);

    border-radius: 11px;
}


.admin-table {
    width: 100%;

    min-width: 700px;

    border-collapse: collapse;
}


.admin-table th {
    padding: 12px 13px;

    background: rgba(255, 255, 255, 0.018);

    border-bottom: 1px solid rgba(255, 255, 255, 0.055);

    color: #5e5e67;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 1px;

    text-align: left;
}


.admin-table td {
    padding: 13px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.04);

    color: #a1a1a9;

    font-size: 10px;
}


.admin-table tr:last-child td {
    border-bottom: none;
}


.admin-table tbody tr {
    transition:
        background 0.15s ease;
}


.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.018);
}


.table-empty {
    padding: 35px !important;

    color: #55555e !important;

    text-align: center;
}


/* =====================================================
   REDEEM GENERATOR
===================================================== */

.redeem-form {
    display: flex;
    align-items: flex-end;

    gap: 12px;
}


.redeem-amount-box {
    width: 220px;
}


.redeem-amount-box label {
    display: block;

    margin-bottom: 7px;

    color: #666670;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 1px;
}


.amount-input {
    height: 45px;

    display: flex;
    align-items: center;

    border: 1px solid rgba(255, 255, 255, 0.07);

    border-radius: 9px;

    background: rgba(255, 255, 255, 0.025);

    overflow: hidden;
}


.amount-input > span {
    padding-left: 12px;

    color: #ff4a42;

    font-size: 11px;
    font-weight: 800;
}


.amount-input input {
    width: 100%;

    height: 100%;

    padding: 0 12px;

    border: none;
    outline: none;

    background: transparent;

    color: #ffffff;

    font-size: 12px;
}


.admin-primary-btn {
    height: 45px;

    padding: 0 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    border: none;

    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            #ff1717,
            #e52018
        );

    color: #ffffff;

    font-size: 10px;
    font-weight: 900;

    cursor: pointer;

    box-shadow:
        0 7px 20px rgba(255, 30, 25, 0.16);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}


.admin-primary-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 26px rgba(255, 30, 25, 0.25);
}


/* =====================================================
   GENERATED CODE
===================================================== */

.generated-code-box {
    display: flex;
    align-items: center;

    gap: 14px;

    margin-top: 18px;

    padding: 14px;

    border: 1px solid rgba(255, 55, 45, 0.16);

    border-radius: 11px;

    background:
        rgba(255, 35, 30, 0.045);
}


.generated-code-box > span {
    color: #777780;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 1px;
}


.generated-code-box strong {
    color: #ffffff;

    font-size: 15px;

    letter-spacing: 1.2px;
}


.copy-code-btn {
    margin-left: auto;

    padding: 8px 11px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 7px;

    background: rgba(255, 255, 255, 0.035);

    color: #aaaaaf;

    font-size: 8px;
    font-weight: 800;

    cursor: pointer;
}


.copy-code-btn:hover {
    color: #ffffff;

    border-color:
        rgba(255, 55, 45, 0.25);
}


.admin-message {
    min-height: 18px;

    margin-top: 10px;

    color: #ff4b42;

    font-size: 9px;
    font-weight: 600;
}


/* =====================================================
   SETTINGS
===================================================== */

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 17px 0;

    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}


.setting-row:first-child {
    padding-top: 0;
}


.setting-row:last-child {
    padding-bottom: 0;

    border-bottom: none;
}


.setting-row strong {
    color: #dddddf;

    font-size: 11px;
}


.setting-row p {
    margin-top: 4px;

    color: #5d5d66;

    font-size: 9px;
}


.setting-badge,
.setting-online {
    padding: 6px 9px;

    border-radius: 20px;

    font-size: 7px;
    font-weight: 900;

    letter-spacing: 0.8px;
}


.setting-badge {
    background: rgba(255, 35, 30, 0.08);

    color: #ff554c;
}


.setting-online {
    background: rgba(30, 210, 120, 0.06);

    color: #29c97c;
}


/* =====================================================
   SIDEBAR OVERLAY
===================================================== */

.admin-sidebar-overlay {
    display: none;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1100px) {

    .admin-sidebar {
        width: 225px;
    }


    .admin-main {
        width: calc(100% - 225px);

        margin-left: 225px;
    }


    .admin-stat-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .admin-content {
        padding: 25px;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 760px) {

    .admin-sidebar {
        width: 255px;

        transform: translateX(-100%);

        transition:
            transform 0.25s ease;
    }


    .admin-sidebar.open {
        transform: translateX(0);
    }


    .admin-sidebar-overlay {
        position: fixed;

        z-index: 900;

        inset: 0;

        display: block;

        background: rgba(0, 0, 0, 0.65);

        opacity: 0;
        visibility: hidden;

        transition:
            opacity 0.25s ease,
            visibility 0.25s ease;
    }


    .admin-sidebar-overlay.active {
        opacity: 1;

        visibility: visible;
    }


    .admin-main {
        width: 100%;

        margin-left: 0;
    }


    .admin-topbar {
        min-height: 67px;

        padding: 11px 16px;
    }


    .admin-menu-btn {
        display: flex;

        align-items: center;
        justify-content: center;
    }


    .admin-status {
        display: none;
    }


    .admin-content {
        padding: 20px 15px;
    }


    .admin-stat-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;
    }


    .admin-stat-card {
        min-height: 125px;

        padding: 15px;
    }


    .stat-value {
        margin-top: 13px;

        font-size: 20px;
    }


    .section-heading {
        margin-bottom: 20px;
    }


    .section-heading h3 {
        font-size: 22px;
    }


    .admin-panel {
        padding: 15px;

        border-radius: 13px;
    }


    .quick-action-grid {
        grid-template-columns: 1fr;
    }


    .admin-panel-header {
        align-items: flex-start;

        flex-direction: column;
    }


    .admin-search {
        width: 100%;
    }


    .admin-select {
        width: 100%;
    }


    .redeem-form {
        flex-direction: column;

        align-items: stretch;
    }


    .redeem-amount-box {
        width: 100%;
    }


    .admin-primary-btn {
        width: 100%;
    }


    .generated-code-box {
        flex-wrap: wrap;
    }


    .copy-code-btn {
        margin-left: 0;
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 380px) {

    .admin-content {
        padding: 17px 11px;
    }


    .admin-stat-grid {
        gap: 8px;
    }


    .admin-stat-card {
        padding: 12px;

        min-height: 115px;
    }


    .stat-icon {
        width: 29px;
        height: 29px;

        font-size: 13px;
    }


    .stat-label {
        font-size: 7px;
    }


    .stat-value {
        font-size: 17px;
    }


    .stat-description {
        font-size: 8px;
    }


    .section-heading h3 {
        font-size: 20px;
    }


    .admin-panel {
        padding: 13px;
    }


    .admin-table {
        min-width: 650px;
    }

}

/* =========================================================
   ANDROID PANELS MANAGEMENT
   ========================================================= */

.android-panel-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
    padding: 6px;
    width: fit-content;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    background: rgba(255,255,255,.025);
}

.android-panel-tab {
    border: 0;
    border-radius: 10px;
    padding: 11px 20px;
    background: transparent;
    color: rgba(255,255,255,.55);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

.android-panel-tab:hover {
    color: #fff;
    background: rgba(255,255,255,.06);
}

.android-panel-tab.active {
    color: #fff;
    background: rgba(255,255,255,.10);
    box-shadow: 0 5px 18px rgba(0,0,0,.25);
}


/* =========================================================
   PANEL GRID
   ========================================================= */

.android-panels-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.android-panel-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    padding: 20px;
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.055),
            rgba(255,255,255,.018)
        );
    box-shadow:
        0 14px 40px rgba(0,0,0,.20);
    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.android-panel-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,.14);
    box-shadow:
        0 18px 45px rgba(0,0,0,.28);
}

.android-panel-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.20),
        transparent
    );
}


/* =========================================================
   PANEL CARD HEADER
   ========================================================= */

.android-panel-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}

.android-panel-card-title {
    min-width: 0;
}

.android-panel-card-title span {
    display: block;
    margin-bottom: 5px;
    color: rgba(255,255,255,.42);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.android-panel-card-title h4 {
    margin: 0;
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    word-break: break-word;
}


/* =========================================================
   STATUS BADGES
   ========================================================= */

.android-panel-status {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
}

.android-panel-status.online {
    color: #5dffad;
    border: 1px solid rgba(0,255,120,.18);
    background: rgba(0,255,120,.07);
}

.android-panel-status.offline {
    color: #ff7777;
    border: 1px solid rgba(255,70,70,.18);
    background: rgba(255,70,70,.07);
}

.android-panel-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.android-panel-status.online .android-panel-status-dot {
    background: #35ff98;
    box-shadow: 0 0 9px rgba(53,255,152,.75);
}

.android-panel-status.offline .android-panel-status-dot {
    background: #ff5050;
    box-shadow: 0 0 9px rgba(255,80,80,.70);
}


/* =========================================================
   PANEL META
   ========================================================= */

.android-panel-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.android-panel-meta-box {
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 12px;
    background: rgba(0,0,0,.16);
}

.android-panel-meta-box small {
    display: block;
    margin-bottom: 5px;
    color: rgba(255,255,255,.38);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
}

.android-panel-meta-box strong {
    display: block;
    overflow: hidden;
    color: rgba(255,255,255,.88);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   PACKAGE PREVIEW
   ========================================================= */

.android-panel-packages-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 18px;
}

.android-package-chip {
    padding: 7px 9px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 8px;
    color: rgba(255,255,255,.72);
    background: rgba(255,255,255,.035);
    font-size: 10px;
    font-weight: 700;
}


/* =========================================================
   CARD ACTIONS
   ========================================================= */

.android-panel-card-actions {
    display: flex;
    gap: 9px;
}

.android-panel-edit-btn,
.android-panel-delete-btn {
    flex: 1;
    min-height: 40px;
    border-radius: 10px;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: .2s ease;
}

.android-panel-edit-btn {
    border: 1px solid rgba(255,255,255,.09);
    color: #fff;
    background: rgba(255,255,255,.055);
}

.android-panel-edit-btn:hover {
    background: rgba(255,255,255,.10);
    border-color: rgba(255,255,255,.16);
}

.android-panel-delete-btn {
    flex: 0 0 44px;
    border: 1px solid rgba(255,70,70,.14);
    color: #ff7070;
    background: rgba(255,70,70,.055);
}

.android-panel-delete-btn:hover {
    border-color: rgba(255,70,70,.30);
    background: rgba(255,70,70,.10);
}


/* =========================================================
   EDITOR
   ========================================================= */

.android-panel-editor {
    margin-top: 22px;
}

.android-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 15px;
}

.android-form-field {
    min-width: 0;
}

.android-form-field label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255,255,255,.45);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
}

.android-form-field input,
.android-form-field select {
    width: 100%;
    min-height: 45px;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    outline: none;
    padding: 0 13px;
    color: #fff;
    background: rgba(255,255,255,.035);
    font: inherit;
    font-size: 13px;
    transition: .2s ease;
}

.android-form-field input:focus,
.android-form-field select:focus {
    border-color: rgba(255,255,255,.20);
    background: rgba(255,255,255,.055);
}

.android-form-field input::placeholder {
    color: rgba(255,255,255,.28);
}


/* =========================================================
   OPTIONS
   ========================================================= */

.android-editor-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px;
    margin-top: 18px;
}

.android-option-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 13px;
    background: rgba(255,255,255,.025);
}

.android-option-card > div {
    flex: 1;
    min-width: 0;
}

.android-option-card strong {
    display: block;
    color: rgba(255,255,255,.88);
    font-size: 12px;
}

.android-option-card small {
    display: block;
    margin-top: 3px;
    color: rgba(255,255,255,.35);
    font-size: 10px;
}


/* =========================================================
   SWITCH
   ========================================================= */

.android-switch {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    width: 45px;
    height: 25px;
    cursor: pointer;
}

.android-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.android-switch span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    transition: .2s ease;
}

.android-switch span::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.30);
    transition: .2s ease;
}

.android-switch input:checked + span {
    background: rgba(0,255,120,.48);
}

.android-switch input:checked + span::after {
    transform: translateX(20px);
}


/* =========================================================
   STATUS LABEL
   ========================================================= */

.android-status-label {
    min-width: 58px;
    text-align: right;
    color: rgba(255,255,255,.42) !important;
    font-size: 9px !important;
    letter-spacing: .08em;
}


/* =========================================================
   PACKAGES SECTION
   ========================================================= */

.android-packages-section {
    margin-top: 24px;
}

.android-packages-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 13px;
}

.android-packages-heading h4 {
    margin: 4px 0 0;
    color: #fff;
    font-size: 16px;
}


/* =========================================================
   PACKAGE ROW
   ========================================================= */

.android-packages-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.android-package-row {
    display: grid;
    grid-template-columns: 1.2fr .8fr .8fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 11px;
    background: rgba(255,255,255,.025);
}

.android-package-info small {
    display: block;
    margin-bottom: 4px;
    color: rgba(255,255,255,.34);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
}

.android-package-info strong {
    color: rgba(255,255,255,.88);
    font-size: 12px;
}

.android-package-price {
    color: rgba(255,255,255,.78);
    font-size: 12px;
    font-weight: 700;
}

.android-package-actions {
    display: flex;
    gap: 6px;
}

.android-package-actions button {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 8px;
    color: rgba(255,255,255,.70);
    background: rgba(255,255,255,.04);
    cursor: pointer;
    transition: .2s ease;
}

.android-package-actions button:hover {
    background: rgba(255,255,255,.09);
}

.android-package-actions .delete {
    color: #ff6c6c;
    border-color: rgba(255,70,70,.12);
}


/* =========================================================
   EDITOR ACTIONS
   ========================================================= */

.android-editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.admin-secondary-btn {
    min-height: 42px;
    padding: 0 17px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 10px;
    color: rgba(255,255,255,.75);
    background: rgba(255,255,255,.045);
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: .2s ease;
}

.admin-secondary-btn:hover {
    color: #fff;
    background: rgba(255,255,255,.08);
}


/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.android-editor-close {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 9px;
    color: rgba(255,255,255,.55);
    background: rgba(255,255,255,.035);
    cursor: pointer;
    transition: .2s ease;
}

.android-editor-close:hover {
    color: #fff;
    background: rgba(255,255,255,.08);
}


/* =========================================================
   LOADING / EMPTY
   ========================================================= */

.android-panels-loading,
.android-empty-packages,
.android-panels-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    padding: 20px;
    border: 1px dashed rgba(255,255,255,.08);
    border-radius: 15px;
    color: rgba(255,255,255,.38);
    background: rgba(255,255,255,.015);
    font-size: 12px;
}

.android-panels-loading {
    grid-column: 1 / -1;
    flex-direction: column;
    gap: 10px;
}

.android-loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255,255,255,.10);
    border-top-color: rgba(255,255,255,.75);
    border-radius: 50%;
    animation: androidPanelSpin .8s linear infinite;
}

@keyframes androidPanelSpin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

    .android-panels-grid {
        grid-template-columns: 1fr;
    }

    .android-form-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

}


@media (max-width: 700px) {

    .android-panel-tabs {
        width: 100%;
    }

    .android-panel-tab {
        flex: 1;
        padding: 10px 12px;
    }

    .android-form-grid {
        grid-template-columns: 1fr;
    }

    .android-editor-options {
        grid-template-columns: 1fr;
    }

    .android-packages-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .android-package-row {
        grid-template-columns: 1fr 1fr;
    }

    .android-package-actions {
        justify-content: flex-end;
    }

}


@media (max-width: 480px) {

    .android-panel-card {
        padding: 15px;
        border-radius: 15px;
    }

    .android-panel-card-header {
        flex-direction: column;
    }

    .android-panel-status {
        align-self: flex-start;
    }

    .android-panel-meta {
        grid-template-columns: 1fr;
    }

    .android-panel-card-actions {
        flex-direction: column;
    }

    .android-panel-delete-btn {
        flex: 1;
    }

    .android-package-row {
        grid-template-columns: 1fr;
    }

    .android-editor-actions {
        flex-direction: column-reverse;
    }

    .android-editor-actions button {
        width: 100%;
    }

}

/* =====================================================
   ORDER STATUS ACTION
===================================================== */

.order-status-action {
    border: 1px solid rgba(255, 193, 7, .22);
    background: rgba(255, 193, 7, .08);
    color: #ffc107;
    cursor: pointer;
    transition: .2s ease;
    font: inherit;
}

.order-status-action:hover {
    background: rgba(255, 193, 7, .16);
    border-color: rgba(255, 193, 7, .45);
    transform: translateY(-1px);
}


/* =====================================================
   ORDER STATUS MENU
===================================================== */

.order-status-menu {
    width: 190px;
    padding: 7px;

    background:
        linear-gradient(
            145deg,
            #17171b,
            #101012
        );

    border: 1px solid rgba(255,255,255,.09);
    border-radius: 12px;

    box-shadow:
        0 18px 45px rgba(0,0,0,.55);

    z-index: 99999;

    animation:
        orderStatusMenuIn .16s ease;
}


.order-status-menu button {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 9px;

    padding: 11px 12px;

    border: 0;
    border-radius: 8px;

    background: transparent;

    cursor: pointer;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;

    text-align: left;

    transition: .18s ease;
}


.order-status-menu button span {
    font-size: 10px;
}


.order-status-menu-success {
    color: #20c978;
}


.order-status-menu-success:hover {
    background: rgba(32,201,120,.10);
}


.order-status-menu-rejected {
    color: #ff4b42;
}


.order-status-menu-rejected:hover {
    background: rgba(255,75,66,.10);
}


@keyframes orderStatusMenuIn {

    from {
        opacity: 0;
        transform: translateY(-5px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}

/* =====================================================
   PREMIUM ORDER CONFIRM MODAL
===================================================== */

.premium-order-modal-overlay {

    position: fixed;

    inset: 0;

    z-index: 99999;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background:
        rgba(0, 0, 0, 0.78);

    backdrop-filter:
        blur(10px);

    -webkit-backdrop-filter:
        blur(10px);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity .18s ease,
        visibility .18s ease;

}


.premium-order-modal-overlay.show {

    opacity: 1;

    visibility: visible;

}


/* =====================================================
   MODAL
===================================================== */

.premium-order-modal {

    position: relative;

    width: min(
        100%,
        430px
    );

    padding: 34px 30px 28px;

    border: 1px solid
        rgba(255, 255, 255, .08);

    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            #17171a 0%,
            #101012 55%,
            #0b0b0d 100%
        );

    box-shadow:
        0 30px 80px
        rgba(0, 0, 0, .75),
        0 0 0 1px
        rgba(255, 255, 255, .025);

    transform:
        translateY(18px)
        scale(.96);

    transition:
        transform .2s ease;

}


.premium-order-modal-overlay.show
.premium-order-modal {

    transform:
        translateY(0)
        scale(1);

}


/* =====================================================
   TOP RED / GREEN LINE
===================================================== */

.premium-order-modal::before {

    content: "";

    position: absolute;

    top: 0;

    left: 12%;

    right: 12%;

    height: 2px;

    border-radius: 0 0 10px 10px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #ff2525,
            transparent
        );

    box-shadow:
        0 0 18px
        rgba(255, 37, 37, .5);

}


.premium-order-modal:has(
    .premium-order-modal-icon.success
)::before {

    background:
        linear-gradient(
            90deg,
            transparent,
            #22e58a,
            transparent
        );

    box-shadow:
        0 0 18px
        rgba(34, 229, 138, .45);

}


/* =====================================================
   CLOSE BUTTON
===================================================== */

.premium-order-modal-close {

    position: absolute;

    top: 16px;

    right: 16px;

    width: 34px;

    height: 34px;

    border: 1px solid
        rgba(255, 255, 255, .08);

    border-radius: 10px;

    background:
        rgba(255, 255, 255, .035);

    color: #8d8d94;

    font-size: 22px;

    line-height: 1;

    cursor: pointer;

    transition:
        .2s ease;

}


.premium-order-modal-close:hover {

    color: #fff;

    background:
        rgba(255, 255, 255, .08);

    border-color:
        rgba(255, 255, 255, .16);

}


/* =====================================================
   ICON
===================================================== */

.premium-order-modal-icon {

    width: 68px;

    height: 68px;

    margin: 4px auto 22px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    font-size: 34px;

    font-weight: 800;

}


.premium-order-modal-icon.success {

    color: #35f49a;

    border: 1px solid
        rgba(35, 239, 139, .35);

    background:
        rgba(0, 255, 128, .07);

    box-shadow:
        0 0 30px
        rgba(0, 255, 128, .10);

}


.premium-order-modal-icon.rejected {

    color: #ff4545;

    border: 1px solid
        rgba(255, 50, 50, .35);

    background:
        rgba(255, 40, 40, .07);

    box-shadow:
        0 0 30px
        rgba(255, 40, 40, .10);

}


/* =====================================================
   CONTENT
===================================================== */

.premium-order-modal-content {

    text-align: center;

}


.premium-order-modal-label {

    margin-bottom: 8px;

    color: #ff3b3b;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;

}


.premium-order-modal-content h3 {

    margin: 0;

    color: #fff;

    font-size: 23px;

    font-weight: 800;

}


.premium-order-modal-content p {

    margin: 12px auto 0;

    max-width: 330px;

    color: #98989f;

    font-size: 13px;

    line-height: 1.7;

}


/* =====================================================
   ACTIONS
===================================================== */

.premium-order-modal-actions {

    display: grid;

    grid-template-columns:
        1fr 1.25fr;

    gap: 10px;

    margin-top: 26px;

}


.premium-order-modal-actions button {

    min-height: 48px;

    border-radius: 12px;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: .5px;

    cursor: pointer;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        background .18s ease;

}


.premium-order-cancel {

    border: 1px solid
        rgba(255, 255, 255, .09);

    background:
        #18181b;

    color: #aaaab0;

}


.premium-order-cancel:hover {

    color: #fff;

    background:
        #202024;

}


.premium-order-confirm {

    border: none;

    color: #fff;

}


.premium-order-confirm.success {

    background:
        linear-gradient(
            135deg,
            #16c978,
            #08a95f
        );

    box-shadow:
        0 8px 25px
        rgba(0, 210, 115, .18);

}


.premium-order-confirm.success:hover {

    transform:
        translateY(-1px);

    box-shadow:
        0 12px 30px
        rgba(0, 210, 115, .28);

}


.premium-order-confirm.rejected {

    background:
        linear-gradient(
            135deg,
            #ff3030,
            #d91414
        );

    box-shadow:
        0 8px 25px
        rgba(255, 35, 35, .18);

}


.premium-order-confirm.rejected:hover {

    transform:
        translateY(-1px);

    box-shadow:
        0 12px 30px
        rgba(255, 35, 35, .28);

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 480px) {

    .premium-order-modal {

        padding:
            30px 20px 22px;

        border-radius: 19px;

    }


    .premium-order-modal-icon {

        width: 60px;

        height: 60px;

        font-size: 29px;

        margin-bottom: 18px;

    }


    .premium-order-modal-content h3 {

        font-size: 20px;

    }


    .premium-order-modal-content p {

        font-size: 12px;

    }


    .premium-order-modal-actions {

        grid-template-columns:
            1fr;

    }


    .premium-order-confirm {

        order: -1;

    }

}

/* =========================================================
   iOS + PC PANELS MANAGEMENT
   PREMIUM ADMIN PANEL DESIGN
   ========================================================= */


/* =========================================================
   iOS / PC CATEGORY TABS
   ========================================================= */

.ios-panel-tabs,
.pc-panel-tabs {

    display: flex;

    gap: 10px;

    margin-bottom: 22px;

    padding: 6px;

    width: fit-content;

    border: 1px solid rgba(255,255,255,.08);

    border-radius: 14px;

    background: rgba(255,255,255,.025);
}


.ios-panel-tab,
.pc-panel-tab {

    border: 0;

    border-radius: 10px;

    padding: 11px 20px;

    background: transparent;

    color: rgba(255,255,255,.55);

    font: inherit;

    font-weight: 700;

    cursor: pointer;

    transition: .2s ease;
}


.ios-panel-tab:hover,
.pc-panel-tab:hover {

    color: #fff;

    background: rgba(255,255,255,.06);
}


.ios-panel-tab.active,
.pc-panel-tab.active {

    color: #fff;

    background: rgba(255,255,255,.10);

    box-shadow:
        0 5px 18px rgba(0,0,0,.25);
}


/* =========================================================
   PANEL GRID
   ========================================================= */

.ios-panels-grid,
.pc-panels-grid {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0,1fr));

    gap: 18px;
}


/* =========================================================
   PANEL CARD
   ========================================================= */

.ios-panel-card,
.pc-panel-card {

    position: relative;

    overflow: hidden;

    border: 1px solid rgba(255,255,255,.08);

    border-radius: 18px;

    padding: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.055),
            rgba(255,255,255,.018)
        );

    box-shadow:
        0 14px 40px rgba(0,0,0,.20);

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}


.ios-panel-card:hover,
.pc-panel-card:hover {

    transform: translateY(-2px);

    border-color:
        rgba(255,255,255,.14);

    box-shadow:
        0 18px 45px rgba(0,0,0,.28);
}


.ios-panel-card::before,
.pc-panel-card::before {

    content: "";

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.20),
            transparent
        );
}


/* =========================================================
   CARD HEADER
   ========================================================= */

.ios-panel-card-header,
.pc-panel-card-header {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 18px;
}


.ios-panel-card-title,
.pc-panel-card-title {

    min-width: 0;
}


.ios-panel-card-title span,
.pc-panel-card-title span {

    display: block;

    margin-bottom: 5px;

    color: rgba(255,255,255,.42);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .14em;

    text-transform: uppercase;
}


.ios-panel-card-title h4,
.pc-panel-card-title h4 {

    margin: 0;

    color: #fff;

    font-size: 19px;

    font-weight: 800;

    word-break: break-word;
}


/* =========================================================
   STATUS BADGE
   ========================================================= */

.ios-panel-status,
.pc-panel-status {

    flex-shrink: 0;

    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 7px 11px;

    border-radius: 999px;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .08em;
}


.ios-panel-status.online,
.pc-panel-status.online {

    color: #5dffad;

    border: 1px solid
        rgba(0,255,120,.18);

    background:
        rgba(0,255,120,.07);
}


.ios-panel-status.offline,
.pc-panel-status.offline {

    color: #ff7777;

    border: 1px solid
        rgba(255,70,70,.18);

    background:
        rgba(255,70,70,.07);
}


.ios-panel-status-dot,
.pc-panel-status-dot {

    width: 7px;

    height: 7px;

    border-radius: 50%;
}


.ios-panel-status.online
.ios-panel-status-dot,
.pc-panel-status.online
.pc-panel-status-dot {

    background: #35ff98;

    box-shadow:
        0 0 9px
        rgba(53,255,152,.75);
}


.ios-panel-status.offline
.ios-panel-status-dot,
.pc-panel-status.offline
.pc-panel-status-dot {

    background: #ff5050;

    box-shadow:
        0 0 9px
        rgba(255,80,80,.70);
}


/* =========================================================
   PANEL META
   ========================================================= */

.ios-panel-meta,
.pc-panel-meta {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0,1fr));

    gap: 10px;

    margin-bottom: 18px;
}


.ios-panel-meta-box,
.pc-panel-meta-box {

    min-width: 0;

    padding: 12px;

    border: 1px solid
        rgba(255,255,255,.06);

    border-radius: 12px;

    background:
        rgba(0,0,0,.16);
}


.ios-panel-meta-box small,
.pc-panel-meta-box small {

    display: block;

    margin-bottom: 5px;

    color: rgba(255,255,255,.38);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: .12em;
}


.ios-panel-meta-box strong,
.pc-panel-meta-box strong {

    display: block;

    overflow: hidden;

    color: rgba(255,255,255,.88);

    font-size: 13px;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/* =========================================================
   PACKAGE PREVIEW
   ========================================================= */

.ios-panel-packages-preview,
.pc-panel-packages-preview {

    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 18px;
}


.ios-package-chip,
.pc-package-chip {

    padding: 7px 9px;

    border: 1px solid
        rgba(255,255,255,.07);

    border-radius: 8px;

    color: rgba(255,255,255,.72);

    background:
        rgba(255,255,255,.035);

    font-size: 10px;

    font-weight: 700;
}


/* =========================================================
   CARD ACTIONS
   ========================================================= */

.ios-panel-card-actions,
.pc-panel-card-actions {

    display: flex;

    gap: 9px;
}


.ios-panel-edit-btn,
.ios-panel-delete-btn,
.pc-panel-edit-btn,
.pc-panel-delete-btn {

    flex: 1;

    min-height: 40px;

    border-radius: 10px;

    font: inherit;

    font-size: 11px;

    font-weight: 800;

    cursor: pointer;

    transition: .2s ease;
}


.ios-panel-edit-btn,
.pc-panel-edit-btn {

    border: 1px solid
        rgba(255,255,255,.09);

    color: #fff;

    background:
        rgba(255,255,255,.055);
}


.ios-panel-edit-btn:hover,
.pc-panel-edit-btn:hover {

    background:
        rgba(255,255,255,.10);

    border-color:
        rgba(255,255,255,.16);
}


.ios-panel-delete-btn,
.pc-panel-delete-btn {

    flex: 0 0 44px;

    border: 1px solid
        rgba(255,70,70,.14);

    color: #ff7070;

    background:
        rgba(255,70,70,.055);
}


.ios-panel-delete-btn:hover,
.pc-panel-delete-btn:hover {

    border-color:
        rgba(255,70,70,.30);

    background:
        rgba(255,70,70,.10);
}


/* =========================================================
   EDITOR
   ========================================================= */

.ios-panel-editor,
.pc-panel-editor {

    margin-top: 22px;
}


/* =========================================================
   FORM GRID
   ========================================================= */

.ios-form-grid,
.pc-form-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0,1fr));

    gap: 15px;
}


.ios-form-field,
.pc-form-field {

    min-width: 0;
}


.ios-form-field label,
.pc-form-field label {

    display: block;

    margin-bottom: 8px;

    color: rgba(255,255,255,.45);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .12em;
}


.ios-form-field input,
.ios-form-field select,
.pc-form-field input,
.pc-form-field select {

    width: 100%;

    min-height: 45px;

    box-sizing: border-box;

    border: 1px solid
        rgba(255,255,255,.08);

    border-radius: 10px;

    outline: none;

    padding: 0 13px;

    color: #fff;

    background:
        rgba(255,255,255,.035);

    font: inherit;

    font-size: 13px;

    transition: .2s ease;
}


.ios-form-field input:focus,
.ios-form-field select:focus,
.pc-form-field input:focus,
.pc-form-field select:focus {

    border-color:
        rgba(255,255,255,.20);

    background:
        rgba(255,255,255,.055);
}


.ios-form-field input::placeholder,
.pc-form-field input::placeholder {

    color:
        rgba(255,255,255,.28);
}


/* =========================================================
   EDITOR OPTIONS
   ========================================================= */

.ios-editor-options,
.pc-editor-options {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0,1fr));

    gap: 12px;

    margin-top: 18px;
}


/* =========================================================
   OPTION CARD
   ========================================================= */

.ios-option-card,
.pc-option-card {

    display: flex;

    align-items: center;

    gap: 12px;

    min-width: 0;

    padding: 14px;

    border: 1px solid
        rgba(255,255,255,.07);

    border-radius: 13px;

    background:
        rgba(255,255,255,.025);
}


.ios-option-card > div,
.pc-option-card > div {

    flex: 1;

    min-width: 0;
}


.ios-option-card strong,
.pc-option-card strong {

    display: block;

    color:
        rgba(255,255,255,.88);

    font-size: 12px;
}


.ios-option-card small,
.pc-option-card small {

    display: block;

    margin-top: 3px;

    color:
        rgba(255,255,255,.35);

    font-size: 10px;
}


/* =========================================================
   SWITCH
   ========================================================= */

.ios-switch,
.pc-switch {

    position: relative;

    display: inline-flex;

    flex-shrink: 0;

    width: 45px;

    height: 25px;

    cursor: pointer;
}


.ios-switch input,
.pc-switch input {

    position: absolute;

    opacity: 0;

    pointer-events: none;
}


.ios-switch span,
.pc-switch span {

    position: absolute;

    inset: 0;

    border-radius: 999px;

    background:
        rgba(255,255,255,.12);

    transition: .2s ease;
}


.ios-switch span::after,
.pc-switch span::after {

    content: "";

    position: absolute;

    top: 4px;

    left: 4px;

    width: 17px;

    height: 17px;

    border-radius: 50%;

    background: #fff;

    box-shadow:
        0 2px 8px
        rgba(0,0,0,.30);

    transition: .2s ease;
}


.ios-switch input:checked + span,
.pc-switch input:checked + span {

    background:
        rgba(0,255,120,.48);
}


.ios-switch input:checked + span::after,
.pc-switch input:checked + span::after {

    transform:
        translateX(20px);
}


/* =========================================================
   STATUS LABEL
   ========================================================= */

.ios-status-label,
.pc-status-label {

    min-width: 58px;

    text-align: right;

    color:
        rgba(255,255,255,.42) !important;

    font-size: 9px !important;

    letter-spacing: .08em;
}


/* =========================================================
   PACKAGES SECTION
   ========================================================= */

.ios-packages-section,
.pc-packages-section {

    margin-top: 24px;
}


.ios-packages-heading,
.pc-packages-heading {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 13px;
}


.ios-packages-heading h4,
.pc-packages-heading h4 {

    margin: 4px 0 0;

    color: #fff;

    font-size: 16px;
}


/* =========================================================
   PACKAGE LIST
   ========================================================= */

.ios-packages-list,
.pc-packages-list {

    display: flex;

    flex-direction: column;

    gap: 9px;
}


/* =========================================================
   PACKAGE ROW
   ========================================================= */

.ios-package-row,
.pc-package-row {

    display: grid;

    grid-template-columns:
        1.2fr .8fr .8fr auto;

    align-items: center;

    gap: 12px;

    padding: 12px 14px;

    border: 1px solid
        rgba(255,255,255,.06);

    border-radius: 11px;

    background:
        rgba(255,255,255,.025);
}


.ios-package-info small,
.pc-package-info small {

    display: block;

    margin-bottom: 4px;

    color:
        rgba(255,255,255,.34);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: .1em;
}


.ios-package-info strong,
.pc-package-info strong {

    color:
        rgba(255,255,255,.88);

    font-size: 12px;
}


.ios-package-price,
.pc-package-price {

    color:
        rgba(255,255,255,.78);

    font-size: 12px;

    font-weight: 700;
}


.ios-package-actions,
.pc-package-actions {

    display: flex;

    gap: 6px;
}


.ios-package-actions button,
.pc-package-actions button {

    width: 34px;

    height: 34px;

    border: 1px solid
        rgba(255,255,255,.07);

    border-radius: 8px;

    color:
        rgba(255,255,255,.70);

    background:
        rgba(255,255,255,.04);

    cursor: pointer;

    transition: .2s ease;
}


.ios-package-actions button:hover,
.pc-package-actions button:hover {

    background:
        rgba(255,255,255,.09);
}


.ios-package-actions .delete,
.pc-package-actions .delete {

    color: #ff6c6c;

    border-color:
        rgba(255,70,70,.12);
}


/* =========================================================
   EDITOR ACTIONS
   ========================================================= */

.ios-editor-actions,
.pc-editor-actions {

    display: flex;

    justify-content: flex-end;

    gap: 10px;

    margin-top: 22px;
}


/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.ios-editor-close,
.pc-editor-close {

    width: 36px;

    height: 36px;

    border: 1px solid
        rgba(255,255,255,.07);

    border-radius: 9px;

    color:
        rgba(255,255,255,.55);

    background:
        rgba(255,255,255,.035);

    cursor: pointer;

    transition: .2s ease;
}


.ios-editor-close:hover,
.pc-editor-close:hover {

    color: #fff;

    background:
        rgba(255,255,255,.08);
}


/* =========================================================
   LOADING / EMPTY
   ========================================================= */

.ios-panels-loading,
.ios-empty-packages,
.ios-panels-empty,
.pc-panels-loading,
.pc-empty-packages,
.pc-panels-empty {

    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 150px;

    padding: 20px;

    border: 1px dashed
        rgba(255,255,255,.08);

    border-radius: 15px;

    color:
        rgba(255,255,255,.38);

    background:
        rgba(255,255,255,.015);

    font-size: 12px;
}


.ios-panels-loading,
.pc-panels-loading {

    grid-column:
        1 / -1;

    flex-direction: column;

    gap: 10px;
}


/* =========================================================
   LOADING SPINNER
   ========================================================= */

.ios-loading-spinner,
.pc-loading-spinner {

    width: 24px;

    height: 24px;

    border: 2px solid
        rgba(255,255,255,.10);

    border-top-color:
        rgba(255,255,255,.75);

    border-radius: 50%;

    animation:
        iosPcPanelSpin .8s linear infinite;
}


@keyframes iosPcPanelSpin {

    to {

        transform:
            rotate(360deg);

    }

}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

    .ios-panels-grid,
    .pc-panels-grid {

        grid-template-columns: 1fr;

    }


    .ios-form-grid,
    .pc-form-grid {

        grid-template-columns:
            repeat(2, minmax(0,1fr));

    }

}


/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .ios-panel-tabs,
    .pc-panel-tabs {

        width: 100%;

    }


    .ios-panel-tab,
    .pc-panel-tab {

        flex: 1;

        padding: 10px 12px;

    }


    .ios-form-grid,
    .pc-form-grid {

        grid-template-columns: 1fr;

    }


    .ios-editor-options,
    .pc-editor-options {

        grid-template-columns: 1fr;

    }


    .ios-packages-heading,
    .pc-packages-heading {

        align-items: flex-start;

        flex-direction: column;

    }


    .ios-package-row,
    .pc-package-row {

        grid-template-columns:
            1fr 1fr;

    }


    .ios-package-actions,
    .pc-package-actions {

        justify-content: flex-end;

    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .ios-panel-card,
    .pc-panel-card {

        padding: 15px;

        border-radius: 15px;

    }


    .ios-panel-card-header,
    .pc-panel-card-header {

        flex-direction: column;

    }


    .ios-panel-status,
    .pc-panel-status {

        align-self: flex-start;

    }


    .ios-panel-meta,
    .pc-panel-meta {

        grid-template-columns: 1fr;

    }


    .ios-panel-card-actions,
    .pc-panel-card-actions {

        flex-direction: column;

    }


    .ios-panel-delete-btn,
    .pc-panel-delete-btn {

        flex: 1;

    }


    .ios-package-row,
    .pc-package-row {

        grid-template-columns: 1fr;

    }


    .ios-editor-actions,
    .pc-editor-actions {

        flex-direction: column-reverse;

    }


    .ios-editor-actions button,
    .pc-editor-actions button {

        width: 100%;

    }

}

/* =========================================================
   iOS PANEL JS CLASS COMPATIBILITY FIX
   DO NOT MODIFY ADMIN.JS
   ========================================================= */

/* ---------------------------------------------------------
   iOS STATUS BADGE
   JS uses: .ios-status-badge
   Existing CSS uses: .ios-panel-status
   --------------------------------------------------------- */

.ios-status-badge {
    flex-shrink: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    padding: 7px 11px;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: .08em;

    white-space: nowrap;
}

.ios-status-badge.online {
    color: #5dffad;

    border: 1px solid
        rgba(0,255,120,.18);

    background:
        rgba(0,255,120,.07);
}

.ios-status-badge.offline {
    color: #ff7777;

    border: 1px solid
        rgba(255,70,70,.18);

    background:
        rgba(255,70,70,.07);
}


/* ---------------------------------------------------------
   iOS CARD HEADER
   JS uses direct div + h3
   --------------------------------------------------------- */

.ios-panel-card-header > div {
    min-width: 0;
}

.ios-panel-card-header .section-eyebrow {
    display: block;

    margin-bottom: 5px;

    color:
        rgba(255,255,255,.42);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: .14em;

    text-transform: uppercase;
}

.ios-panel-card-header h3 {
    margin: 0;

    color: #fff;

    font-size: 19px;
    font-weight: 800;

    line-height: 1.25;

    word-break: break-word;
}


/* ---------------------------------------------------------
   iOS CARD INFO
   JS uses: .ios-panel-card-info
   --------------------------------------------------------- */

.ios-panel-card-info {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;

    margin-bottom: 18px;
}


/* ---------------------------------------------------------
   iOS INFO BOX
   JS uses: .ios-info-box
   --------------------------------------------------------- */

.ios-info-box {
    min-width: 0;

    padding: 12px;

    border: 1px solid
        rgba(255,255,255,.06);

    border-radius: 12px;

    background:
        rgba(0,0,0,.16);
}

.ios-info-box span {
    display: block;

    margin-bottom: 5px;

    color:
        rgba(255,255,255,.38);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .12em;
}

.ios-info-box strong {
    display: block;

    overflow: hidden;

    color:
        rgba(255,255,255,.88);

    font-size: 13px;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/* ---------------------------------------------------------
   iOS PACKAGE PREVIEW
   JS uses: .ios-package-preview
   --------------------------------------------------------- */

.ios-package-preview {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 18px;
}


/* ---------------------------------------------------------
   iOS PACKAGE CHIP
   --------------------------------------------------------- */

.ios-package-preview .ios-package-chip {
    display: inline-flex;

    align-items: center;

    max-width: 100%;

    padding: 7px 9px;

    border: 1px solid
        rgba(255,255,255,.07);

    border-radius: 8px;

    color:
        rgba(255,255,255,.72);

    background:
        rgba(255,255,255,.035);

    font-size: 10px;
    font-weight: 700;

    line-height: 1.35;

    word-break: break-word;
}


/* ---------------------------------------------------------
   iOS CARD ACTIONS
   --------------------------------------------------------- */

.ios-panel-card-actions {
    display: flex;

    align-items: stretch;

    gap: 9px;
}


/* ---------------------------------------------------------
   EDIT BUTTON
   JS uses:
   .admin-secondary-btn
   .ios-edit-panel-btn
   --------------------------------------------------------- */

.ios-panel-card-actions
.ios-edit-panel-btn {
    flex: 1;

    min-height: 40px;

    border-radius: 10px;

    font-size: 11px;
    font-weight: 800;

    white-space: nowrap;
}


/* ---------------------------------------------------------
   DELETE BUTTON
   JS uses: .ios-delete-btn
   --------------------------------------------------------- */

.ios-delete-btn {
    flex: 0 0 44px;

    min-height: 40px;

    border: 1px solid
        rgba(255,70,70,.14);

    border-radius: 10px;

    color: #ff7070;

    background:
        rgba(255,70,70,.055);

    font: inherit;

    font-size: 14px;

    cursor: pointer;

    transition:
        border-color .2s ease,
        background .2s ease,
        transform .2s ease;
}

.ios-delete-btn:hover {
    border-color:
        rgba(255,70,70,.30);

    background:
        rgba(255,70,70,.10);

    transform: translateY(-1px);
}


/* ---------------------------------------------------------
   CARD SAFETY
   --------------------------------------------------------- */

.ios-panel-card {
    min-width: 0;

    box-sizing: border-box;
}

.ios-panel-card * {
    box-sizing: border-box;
}


/* =========================================================
   iOS RESPONSIVE FIX
   ========================================================= */

@media (max-width: 700px) {

    .ios-panel-card-info {
        grid-template-columns: 1fr 1fr;
    }

    .ios-panel-card-header {
        gap: 12px;
    }

    .ios-status-badge {
        flex-shrink: 0;
    }

}


@media (max-width: 480px) {

    .ios-panel-card {
        padding: 15px;

        border-radius: 15px;
    }

    .ios-panel-card-header {
        flex-direction: column;

        align-items: flex-start;
    }

    .ios-status-badge {
        align-self: flex-start;
    }

    .ios-panel-card-info {
        grid-template-columns: 1fr;
    }

    .ios-panel-card-actions {
        flex-direction: column;
    }

    .ios-panel-card-actions
    .ios-edit-panel-btn,
    .ios-delete-btn {
        width: 100%;
    }

    .ios-delete-btn {
        flex: none;
    }

}

/* =========================================================
   iOS PACKAGE JS CLASS FIX
   DO NOT MODIFY ADMIN.JS
   ========================================================= */

.ios-package-row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(90px, .7fr) auto;
    align-items: center;
    gap: 16px;

    width: 100%;
    min-width: 0;

    padding: 14px 16px;

    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.035),
            rgba(255,255,255,.018)
        );

    box-sizing: border-box;

    transition:
        border-color .2s ease,
        background .2s ease,
        transform .2s ease;
}

.ios-package-row:hover {
    border-color: rgba(255,55,45,.16);

    background:
        linear-gradient(
            135deg,
            rgba(255,35,30,.045),
            rgba(255,255,255,.02)
        );

    transform: translateY(-1px);
}


/* ---------------------------------------------------------
   PACKAGE MAIN
   --------------------------------------------------------- */

.ios-package-main {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 10px;

    overflow: hidden;
}

.ios-package-main strong {
    display: inline-block;

    min-width: 0;

    color: #ffffff;

    font-size: 13px;
    font-weight: 800;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ios-package-main > span {
    flex-shrink: 0;

    color: rgba(255,255,255,.78);

    font-size: 12px;
    font-weight: 700;

    white-space: nowrap;
}

.ios-package-main small {
    flex-shrink: 0;

    color: rgba(255,255,255,.42);

    font-size: 10px;
    font-weight: 600;

    white-space: nowrap;
}


/* ---------------------------------------------------------
   PACKAGE STATUS
   --------------------------------------------------------- */

.ios-package-status {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 90px;
}

.ios-package-status span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 76px;

    padding: 6px 9px;

    border-radius: 999px;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: .08em;
}

.ios-package-status span.enabled {
    color: #5dffad;

    border: 1px solid rgba(0,255,120,.16);

    background: rgba(0,255,120,.055);
}

.ios-package-status span.disabled {
    color: #ff7777;

    border: 1px solid rgba(255,70,70,.16);

    background: rgba(255,70,70,.055);
}


/* ---------------------------------------------------------
   PACKAGE ACTIONS
   --------------------------------------------------------- */

.ios-package-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 7px;

    flex-shrink: 0;
}

.ios-package-actions button {
    width: 38px;
    height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border-radius: 9px;

    font: inherit;
    font-size: 10px;
    font-weight: 800;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}


/* ---------------------------------------------------------
   EDIT PACKAGE
   --------------------------------------------------------- */

.ios-edit-package-btn {
    border: 1px solid rgba(255,255,255,.08);

    color: rgba(255,255,255,.82);

    background: rgba(255,255,255,.045);
}

.ios-edit-package-btn:hover {
    color: #ffffff;

    border-color: rgba(255,255,255,.16);

    background: rgba(255,255,255,.09);

    transform: translateY(-1px);
}


/* ---------------------------------------------------------
   DELETE PACKAGE
   --------------------------------------------------------- */

.ios-delete-package-btn {
    border: 1px solid rgba(255,70,70,.14);

    color: #ff7070;

    background: rgba(255,70,70,.05);
}

.ios-delete-package-btn:hover {
    color: #ff8b8b;

    border-color: rgba(255,70,70,.30);

    background: rgba(255,70,70,.10);

    transform: translateY(-1px);
}


/* =========================================================
   iOS PACKAGE EDITOR
   ========================================================= */

#iosPackageEditor {
    margin-top: 18px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .ios-package-row {
        grid-template-columns: 1fr auto;

        gap: 12px;
    }

    .ios-package-main {
        flex-wrap: wrap;

        gap: 5px 9px;
    }

    .ios-package-status {
        justify-content: flex-end;
    }

    .ios-package-actions {
        grid-column: 1 / -1;

        width: 100%;

        justify-content: flex-end;
    }

    .ios-package-actions button {
        width: 42px;
        height: 38px;
    }
}


@media (max-width: 480px) {

    .ios-package-row {
        grid-template-columns: 1fr;

        padding: 14px;

        gap: 11px;
    }

    .ios-package-main {
        width: 100%;
    }

    .ios-package-status {
        width: 100%;

        justify-content: flex-start;
    }

    .ios-package-actions {
        width: 100%;

        justify-content: stretch;
    }

    .ios-package-actions button {
        flex: 1;

        width: auto;
    }
}

/* =========================================================
   PREMIUM APPS ADMIN
   ========================================================= */

.premium-apps-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}


/* =========================================================
   APP CARD
   ========================================================= */

.premium-app-card {
    position: relative;
    display: flex;
    min-width: 0;
    overflow: hidden;

    border: 1px solid rgba(255,255,255,.07);
    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.055),
            rgba(255,255,255,.018)
        );

    box-shadow:
        0 14px 40px rgba(0,0,0,.20);

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.premium-app-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,.14);
    box-shadow:
        0 18px 45px rgba(0,0,0,.28);
}


/* =========================================================
   APP IMAGE
   ========================================================= */

.premium-app-card-image {
    width: 105px;
    min-height: 175px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 16px;

    background: rgba(0,0,0,.18);

    border-right:
        1px solid rgba(255,255,255,.055);
}

.premium-app-card-image img {
    width: 72px;
    height: 72px;

    display: block;

    object-fit: cover;

    border-radius: 18px;

    border:
        1px solid rgba(255,255,255,.10);

    box-shadow:
        0 10px 25px rgba(0,0,0,.30);
}


/* =========================================================
   APP CONTENT
   ========================================================= */

.premium-app-card-content {
    flex: 1;
    min-width: 0;

    display: flex;
    flex-direction: column;

    padding: 18px;
}

.premium-app-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 14px;
    margin-bottom: 15px;
}

.premium-app-card-top > div {
    min-width: 0;
}

.premium-app-card h4 {
    margin: 0 0 6px;

    color: #fff;

    font-size: 17px;
    font-weight: 800;

    line-height: 1.3;

    word-break: break-word;
}

.premium-app-card p {
    margin: 0;

    color: rgba(255,255,255,.42);

    font-size: 11px;
    line-height: 1.5;

    word-break: break-word;
}


/* =========================================================
   STATUS
   ========================================================= */

.premium-status-label {
    flex-shrink: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 62px;

    padding: 6px 9px;

    border-radius: 999px;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .08em;

    white-space: nowrap;
}

.premium-status-label.enabled {
    color: #5dffad;

    background: rgba(0,255,120,.07);

    border:
        1px solid rgba(0,255,120,.18);
}

.premium-status-label.disabled {
    color: #ff7777;

    background: rgba(255,70,70,.07);

    border:
        1px solid rgba(255,70,70,.18);
}


/* =========================================================
   PACKAGE PREVIEW
   ========================================================= */

.premium-package-preview-list {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 18px;
}

.premium-package-preview {
    display: inline-flex;
    align-items: center;

    max-width: 100%;

    padding: 7px 10px;

    border:
        1px solid rgba(255,255,255,.06);

    border-radius: 9px;

    background:
        rgba(255,255,255,.025);

    color:
        rgba(255,255,255,.70);

    font-size: 10px;
    font-weight: 700;
}


/* =========================================================
   APP ACTIONS
   ========================================================= */

.premium-app-card-actions {
    display: flex;
    gap: 8px;

    margin-top: auto;
}

.premium-app-card-actions button {
    flex: 1;
    min-height: 38px;
}


/* =========================================================
   EDITOR
   ========================================================= */

.premium-app-editor {
    margin-top: 22px;
}

.premium-form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;
}

.premium-form-field {
    min-width: 0;
}

.premium-full-field {
    grid-column: 1 / -1;
}

.premium-form-field label {
    display: block;

    margin-bottom: 7px;

    color: rgba(255,255,255,.48);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .10em;
}

.premium-form-field input,
.premium-form-field textarea {
    width: 100%;
    box-sizing: border-box;

    padding: 12px 13px;

    outline: none;

    border:
        1px solid rgba(255,255,255,.08);

    border-radius: 11px;

    background:
        rgba(0,0,0,.20);

    color: #fff;

    font: inherit;
    font-size: 13px;

    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.premium-form-field textarea {
    min-height: 90px;
    resize: vertical;
}

.premium-form-field input::placeholder,
.premium-form-field textarea::placeholder {
    color: rgba(255,255,255,.22);
}

.premium-form-field input:focus,
.premium-form-field textarea:focus {
    border-color:
        rgba(255,255,255,.20);

    background:
        rgba(0,0,0,.28);

    box-shadow:
        0 0 0 3px rgba(255,255,255,.025);
}


/* =========================================================
   OPTIONS
   ========================================================= */

.premium-editor-options {
    display: grid;
    grid-template-columns: 1fr;

    gap: 10px;

    margin-top: 18px;
}

.premium-option-card {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 14px;

    border:
        1px solid rgba(255,255,255,.06);

    border-radius: 13px;

    background:
        rgba(255,255,255,.018);
}

.premium-option-card strong {
    display: block;

    color:
        rgba(255,255,255,.88);

    font-size: 12px;
    font-weight: 800;
}

.premium-option-card small {
    display: block;

    margin-top: 4px;

    color:
        rgba(255,255,255,.35);

    font-size: 10px;
}


/* =========================================================
   SWITCH
   ========================================================= */

.premium-switch {
    position: relative;

    display: inline-flex;

    width: 44px;
    height: 24px;

    flex-shrink: 0;

    cursor: pointer;
}

.premium-switch input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
}

.premium-switch span {
    position: relative;

    display: block;

    width: 44px;
    height: 24px;

    border:
        1px solid rgba(255,255,255,.08);

    border-radius: 999px;

    background:
        rgba(255,255,255,.10);

    transition: .2s ease;
}

.premium-switch span::after {
    content: "";

    position: absolute;

    top: 3px;
    left: 3px;

    width: 16px;
    height: 16px;

    border-radius: 50%;

    background:
        rgba(255,255,255,.65);

    box-shadow:
        0 2px 7px rgba(0,0,0,.35);

    transition: .2s ease;
}

.premium-switch input:checked + span {
    background:
        rgba(0,255,120,.12);

    border-color:
        rgba(0,255,120,.25);
}

.premium-switch input:checked + span::after {
    transform: translateX(20px);

    background:
        #5dffad;

    box-shadow:
        0 0 10px rgba(93,255,173,.35);
}


/* =========================================================
   PACKAGES
   ========================================================= */

.premium-packages-section {
    margin-top: 24px;
}

.premium-packages-heading {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 13px;
}

.premium-packages-heading h4 {
    margin: 0;

    color: #fff;

    font-size: 15px;
    font-weight: 800;
}

.premium-packages-list {
    display: flex;
    flex-direction: column;

    gap: 9px;
}


/* =========================================================
   PACKAGE ROW
   ========================================================= */

.premium-package-row {
    display: grid;

    grid-template-columns:
        minmax(0,1fr)
        auto
        auto;

    align-items: center;

    gap: 14px;

    padding: 12px 13px;

    border:
        1px solid rgba(255,255,255,.055);

    border-radius: 12px;

    background:
        rgba(0,0,0,.16);
}

.premium-package-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 10px;

    min-width: 0;
}

.premium-package-info strong {
    color: #fff;

    font-size: 12px;
    font-weight: 800;
}

.premium-package-info span {
    color:
        rgba(255,255,255,.82);

    font-size: 12px;
    font-weight: 800;
}

.premium-package-info small {
    color:
        rgba(255,255,255,.40);

    font-size: 10px;
}

.premium-package-status {
    padding: 5px 9px;

    border-radius: 999px;

    color: #5dffad;

    background:
        rgba(0,255,120,.06);

    border:
        1px solid rgba(0,255,120,.16);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .08em;

    white-space: nowrap;
}

.premium-package-actions {
    display: flex;
    gap: 7px;
}

.premium-package-actions button {
    min-height: 34px;

    padding:
        7px 11px;

    font-size: 10px;
}


/* =========================================================
   EMPTY / LOADING
   ========================================================= */

.premium-apps-loading,
.premium-empty-packages {
    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 140px;

    padding: 20px;

    border:
        1px dashed rgba(255,255,255,.08);

    border-radius: 15px;

    background:
        rgba(255,255,255,.015);

    color:
        rgba(255,255,255,.38);

    font-size: 12px;
}

.premium-apps-loading {
    grid-column: 1 / -1;
}


/* =========================================================
   EDITOR ACTIONS
   ========================================================= */

.premium-editor-actions {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    margin-top: 22px;
}

.premium-editor-actions button {
    min-width: 130px;
}


/* =========================================================
   MESSAGE
   ========================================================= */

#premiumAppMessage {
    min-height: 18px;

    margin-top: 12px;

    font-size: 11px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 1000px) {

    .premium-apps-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 700px) {

    .premium-form-grid {
        grid-template-columns: 1fr;
    }

    .premium-full-field {
        grid-column: auto;
    }

    .premium-packages-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .premium-packages-heading button {
        width: 100%;
    }

    .premium-package-row {
        grid-template-columns: 1fr 1fr;
    }

    .premium-package-actions {
        grid-column: 1 / -1;

        justify-content: flex-end;
    }

    .premium-editor-actions {
        flex-direction: column-reverse;
    }

    .premium-editor-actions button {
        width: 100%;
    }

}


@media (max-width: 480px) {

    .premium-app-card {
        flex-direction: column;
    }

    .premium-app-card-image {
        width: 100%;
        min-height: 115px;

        border-right: 0;
        border-bottom:
            1px solid rgba(255,255,255,.055);
    }

    .premium-app-card-image img {
        width: 64px;
        height: 64px;
    }

    .premium-app-card-content {
        padding: 15px;
    }

    .premium-app-card-top {
        flex-direction: column;
    }

    .premium-status-label {
        align-self: flex-start;
    }

    .premium-app-card-actions {
        flex-direction: column;
    }

    .premium-app-card-actions button {
        width: 100%;
    }

    .premium-package-row {
        grid-template-columns: 1fr;
    }

    .premium-package-actions {
        width: 100%;
    }

    .premium-package-actions button {
        flex: 1;
    }

}

/* =========================================================
   GUILD GLORY ADMIN
   ========================================================= */

#section-guild-glory {
    animation: guildGloryFadeIn 0.25s ease;
}

@keyframes guildGloryFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ---------------------------------------------------------
   GUILD GLORY SERVICE CARD
   --------------------------------------------------------- */

#section-guild-glory .admin-section-card {
    position: relative;
    overflow: hidden;
}

#section-guild-glory .admin-section-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 35, 35, 0.8),
        transparent
    );
}


/* ---------------------------------------------------------
   SERVICE STATUS
   --------------------------------------------------------- */

#guildGloryServiceEnabled {
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #ff2020;
}

#guildGloryServiceEnabled:focus {
    outline: none;
}


/* ---------------------------------------------------------
   ADD REGION BUTTON
   --------------------------------------------------------- */

#guildGloryAddRegionBtn {
    border: 0;
    min-height: 42px;
    padding: 0 22px;
    border-radius: 10px;
    background: linear-gradient(
        135deg,
        #ff1717,
        #d90000
    );
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        opacity 0.18s ease;
}

#guildGloryAddRegionBtn:hover {
    transform: translateY(-1px);
    box-shadow:
        0 8px 25px rgba(255, 25, 25, 0.25);
}

#guildGloryAddRegionBtn:active {
    transform: translateY(0);
}


/* ---------------------------------------------------------
   REGION FILTER
   --------------------------------------------------------- */

#guildGloryRegionFilter {
    min-width: 150px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 9px;
    background: #15161b;
    color: #f5f5f5;
    font-size: 12px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

#guildGloryRegionFilter:hover {
    border-color: rgba(255, 35, 35, 0.35);
}

#guildGloryRegionFilter:focus {
    border-color: rgba(255, 35, 35, 0.65);
    box-shadow:
        0 0 0 3px rgba(255, 35, 35, 0.08);
}

#guildGloryRegionFilter option {
    background: #15161b;
    color: #fff;
}


/* ---------------------------------------------------------
   REGION LIST
   --------------------------------------------------------- */

#guildGloryRegionsList {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}


/* ---------------------------------------------------------
   REGION CARD
   --------------------------------------------------------- */

#guildGloryRegionsList .premium-app-card {
    position: relative;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    background:
        linear-gradient(
            145deg,
            rgba(28, 29, 35, 0.98),
            rgba(17, 18, 22, 0.98)
        );
    transition:
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

#guildGloryRegionsList .premium-app-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(
        180deg,
        #ff2222,
        rgba(255, 34, 34, 0)
    );
    opacity: 0;
    transition: opacity 0.2s ease;
}

#guildGloryRegionsList .premium-app-card:hover {
    border-color: rgba(255, 35, 35, 0.25);
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

#guildGloryRegionsList .premium-app-card:hover::before {
    opacity: 1;
}


/* ---------------------------------------------------------
   REGION CARD CONTENT
   --------------------------------------------------------- */

#guildGloryRegionsList .premium-app-card-content {
    padding: 18px;
}


/* ---------------------------------------------------------
   REGION HEADER
   --------------------------------------------------------- */

#guildGloryRegionsList .premium-app-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}

#guildGloryRegionsList .premium-app-card-top h4 {
    margin: 0 0 5px;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

#guildGloryRegionsList .premium-app-card-top p {
    margin: 0;
    color: #777b86;
    font-size: 11px;
    font-weight: 600;
}


/* ---------------------------------------------------------
   ENABLED / DISABLED LABEL
   --------------------------------------------------------- */

#guildGloryRegionsList .premium-status-label {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.6px;
}

#guildGloryRegionsList .premium-status-label.enabled {
    border: 1px solid rgba(0, 255, 145, 0.25);
    background: rgba(0, 255, 145, 0.07);
    color: #00e58a;
}

#guildGloryRegionsList .premium-status-label.disabled {
    border: 1px solid rgba(255, 70, 70, 0.25);
    background: rgba(255, 40, 40, 0.07);
    color: #ff5252;
}


/* ---------------------------------------------------------
   PACKAGE PREVIEW
   --------------------------------------------------------- */

#guildGloryRegionsList .premium-package-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 17px;
}

#guildGloryRegionsList .premium-package-preview {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    color: #cfd1d7;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    transition:
        border-color 0.18s ease,
        background 0.18s ease;
}

#guildGloryRegionsList .premium-package-preview:hover {
    border-color: rgba(255, 35, 35, 0.25);
    background: rgba(255, 35, 35, 0.04);
}


/* ---------------------------------------------------------
   REGION ACTIONS
   --------------------------------------------------------- */

#guildGloryRegionsList .premium-app-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

#guildGloryRegionsList .admin-secondary-btn {
    min-height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.025);
    color: #e7e7eb;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.25px;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

#guildGloryRegionsList .admin-secondary-btn:hover {
    border-color: rgba(255, 35, 35, 0.4);
    background: rgba(255, 35, 35, 0.06);
    color: #fff;
    transform: translateY(-1px);
}

#guildGloryRegionsList .admin-secondary-btn:active {
    transform: translateY(0);
}


/* ---------------------------------------------------------
   LOADING / EMPTY STATE
   --------------------------------------------------------- */

#guildGloryRegionsList .premium-apps-loading {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
    padding: 25px;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: #777b86;
    font-size: 12px;
    text-align: center;
}

#guildGloryRegionsList .premium-apps-loading small {
    max-width: 600px;
    color: #ff6666;
    font-size: 10px;
    line-height: 1.5;
}


/* ---------------------------------------------------------
   REGION / PACKAGE EDITORS
   --------------------------------------------------------- */

#guildGloryRegionEditor,
#guildGloryPackageEditor {
    position: relative;
    margin-top: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 35, 35, 0.18);
    border-radius: 14px;
    background:
        linear-gradient(
            145deg,
            rgba(27, 28, 34, 0.98),
            rgba(15, 16, 20, 0.98)
        );
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.25);
}

#guildGloryRegionEditor[hidden],
#guildGloryPackageEditor[hidden] {
    display: none !important;
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 700px) {

    #section-guild-glory .admin-section-card {
        padding: 14px;
    }

    #guildGloryRegionsList .premium-app-card-content {
        padding: 14px;
    }

    #guildGloryRegionsList .premium-app-card-top {
        align-items: flex-start;
    }

    #guildGloryRegionsList .premium-app-card-top h4 {
        font-size: 15px;
    }

    #guildGloryRegionsList .premium-package-preview-list {
        gap: 6px;
    }

    #guildGloryRegionsList .premium-package-preview {
        font-size: 9px;
        padding: 0 8px;
    }

    #guildGloryRegionsList .premium-app-card-actions {
        grid-template-columns: 1fr;
    }

    #guildGloryRegionFilter {
        width: 100%;
    }

    #guildGloryAddRegionBtn {
        width: 100%;
    }
}

/* =========================================
   GUILD GLORY PACKAGE EDITOR
   ========================================= */

#guildGloryPackageEditor {
    margin-top: 24px;
    padding: 24px;
    border: 1px solid rgba(255, 40, 40, 0.25);
    border-radius: 16px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 30, 30, 0.08),
            rgba(255, 255, 255, 0.025)
        ),
        #111216;
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
}


/* ---------- Editor Header ---------- */

#guildGloryPackageEditor .admin-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 24px;
}

#guildGloryPackageEditor .admin-editor-header h3,
#guildGloryPackageEditor h3 {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
}

#guildGloryPackageEditor .admin-editor-header p {
    margin: 5px 0 0;
    color: #8f929a;
    font-size: 12px;
}


/* ---------- Form ---------- */

#guildGloryPackageEditor .admin-form-group {
    margin-bottom: 18px;
}

#guildGloryPackageEditor label {
    display: block;
    margin-bottom: 8px;
    color: #f1f1f3;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}


/* ---------- Inputs ---------- */

#guildGloryPackageEditor input,
#guildGloryPackageEditor select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #292c34;
    border-radius: 9px;
    outline: none;
    background: #191b21;
    color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    box-sizing: border-box;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

#guildGloryPackageEditor input:hover,
#guildGloryPackageEditor select:hover {
    border-color: #3a3d46;
}

#guildGloryPackageEditor input:focus,
#guildGloryPackageEditor select:focus {
    border-color: #ff3030;
    background: #1c1e24;
    box-shadow: 0 0 0 3px rgba(255, 48, 48, 0.10);
}


/* ---------- Price Input ---------- */

#guildGloryPackageEditor #guildGloryPackagePrice {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
}


/* ---------- USD Price ---------- */

#guildGloryPackageEditor #guildGloryPackageUSD {
    color: #aeb2bb;
}


/* ---------- Select ---------- */

#guildGloryPackageEditor select {
    cursor: pointer;
    appearance: auto;
}


/* ---------- Checkbox ---------- */

#guildGloryPackageEditor .admin-checkbox,
#guildGloryPackageEditor input[type="checkbox"] {
    width: auto;
    height: auto;
    accent-color: #ff2424;
    cursor: pointer;
}


/* ---------- Status ---------- */

#guildGloryPackageEditor .checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 0;
    color: #d9dbe0;
    font-size: 12px;
    font-weight: 700;
    text-transform: none;
}


/* ---------- Currency Prefix ---------- */

#guildGloryPackageEditor .price-input-wrapper {
    position: relative;
}

#guildGloryPackageEditor .price-input-wrapper .currency {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #ff3535;
    font-size: 12px;
    font-weight: 800;
    pointer-events: none;
}

#guildGloryPackageEditor .price-input-wrapper input {
    padding-left: 42px;
}


/* ---------- Editor Buttons ---------- */

#guildGloryPackageEditor .admin-editor-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
}

#guildGloryPackageEditor button {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 9px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

#guildGloryPackageEditor button:hover {
    transform: translateY(-1px);
}

#guildGloryPackageEditor button:active {
    transform: translateY(0);
}


/* ---------- Save ---------- */

#guildGloryPackageSaveBtn {
    background: #ff2424;
    color: #ffffff;
    border-color: #ff2424;
    box-shadow: 0 7px 20px rgba(255, 36, 36, 0.20);
}

#guildGloryPackageSaveBtn:hover {
    background: #e91d1d;
    border-color: #e91d1d;
}


/* ---------- Cancel ---------- */

#guildGloryPackageCancelBtn {
    background: #1b1d23;
    color: #d6d8dd;
    border-color: #30333b;
}

#guildGloryPackageCancelBtn:hover {
    background: #24272e;
    border-color: #41444d;
}


/* ---------- Close Button ---------- */

#guildGloryPackageEditor .admin-editor-close,
#guildGloryPackageEditor [data-close-editor] {
    width: 40px;
    min-height: 40px;
    padding: 0;
    border: 1px solid #30333b;
    border-radius: 9px;
    background: #191b20;
    color: #ffffff;
    font-size: 16px;
}

#guildGloryPackageEditor .admin-editor-close:hover,
#guildGloryPackageEditor [data-close-editor]:hover {
    background: #25272d;
    border-color: #ff3030;
}


/* =========================================
   GUILD GLORY PACKAGE ROW
   ========================================= */

.premium-package-preview {
    min-height: 42px;
    box-sizing: border-box;
    padding: 7px 10px;
    border: 1px solid #292c34;
    border-radius: 8px;
    background: #17191e;
    color: #eeeeef;
    font-size: 11px;
    font-weight: 700;
}

.premium-package-preview:hover {
    border-color: #3b3e47;
    background: #1b1d22;
}


/* ---------- EDIT PRICE ---------- */

[data-glory-package-edit] {
    flex-shrink: 0;
    padding: 7px 12px !important;
    min-height: 30px !important;
    border: 1px solid #383b44 !important;
    border-radius: 7px !important;
    background: #202229 !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

[data-glory-package-edit]:hover {
    border-color: #ff3030 !important;
    background: rgba(255, 35, 35, 0.12) !important;
    color: #ff4545 !important;
}


/* ---------- DELETE REGION ---------- */

[data-glory-region-delete] {
    min-height: 38px;
    border: 1px solid #292c34;
    border-radius: 9px;
    background: #191b20;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

[data-glory-region-delete]:hover {
    border-color: #ff3030;
    background: rgba(255, 35, 35, 0.08);
    color: #ff4545;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 700px) {

    #guildGloryPackageEditor {
        padding: 18px;
        border-radius: 13px;
    }

    #guildGloryPackageEditor input,
    #guildGloryPackageEditor select {
        height: 44px;
    }

    #guildGloryPackageEditor .admin-editor-actions {
        flex-direction: column;
        align-items: stretch;
    }

    #guildGloryPackageEditor .admin-editor-actions button {
        width: 100%;
    }

    .premium-package-preview {
        font-size: 10px;
    }

    [data-glory-package-edit] {
        padding: 6px 9px !important;
        font-size: 9px !important;
    }
}

/* =========================================================
   MISSING ADMIN FORM STYLES
   ========================================================= */

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.admin-form-group {
    min-width: 0;
}

.admin-form-group label {
    display: block;
    margin-bottom: 8px;

    color: rgba(255,255,255,.45);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: .12em;
}

.admin-input {
    width: 100%;
    min-height: 45px;

    padding: 0 13px;

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;

    outline: none;

    background: rgba(255,255,255,.035);
    color: #ffffff;

    font: inherit;
    font-size: 13px;

    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.admin-input:hover {
    border-color: rgba(255,255,255,.15);
}

.admin-input:focus {
    border-color: rgba(255,55,45,.45);

    background: rgba(255,255,255,.055);

    box-shadow:
        0 0 0 3px rgba(255,45,35,.08);
}

.admin-input::placeholder {
    color: rgba(255,255,255,.25);
}


/* =========================================================
   FORM ACTIONS
   ========================================================= */

.admin-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    margin-top: 22px;
}


/* =========================================================
   ADMIN SWITCH
   ========================================================= */

.admin-switch {
    position: relative;

    display: inline-flex;

    width: 45px;
    height: 25px;

    flex-shrink: 0;

    cursor: pointer;
}

.admin-switch input {
    position: absolute;

    width: 0;
    height: 0;

    opacity: 0;
    pointer-events: none;
}

.admin-switch-slider {
    position: absolute;

    inset: 0;

    border-radius: 999px;

    background: rgba(255,255,255,.12);

    transition: .2s ease;
}

.admin-switch-slider::after {
    content: "";

    position: absolute;

    top: 4px;
    left: 4px;

    width: 17px;
    height: 17px;

    border-radius: 50%;

    background: #ffffff;

    box-shadow:
        0 2px 8px rgba(0,0,0,.30);

    transition: .2s ease;
}

.admin-switch input:checked + .admin-switch-slider {
    background: rgba(0,255,120,.45);
}

.admin-switch input:checked + .admin-switch-slider::after {
    transform: translateX(20px);
}


/* =========================================================
   TOPBAR RIGHT
   ========================================================= */

.admin-topbar-right {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 10px;
}


/* =========================================================
   PREMIUM EDITOR CLOSE
   ========================================================= */

.premium-editor-close {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border: 1px solid rgba(255,255,255,.07);
    border-radius: 9px;

    background: rgba(255,255,255,.035);
    color: rgba(255,255,255,.55);

    font-size: 14px;

    cursor: pointer;

    transition:
        color .2s ease,
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.premium-editor-close:hover {
    color: #ffffff;

    background: rgba(255,35,30,.08);

    border-color: rgba(255,55,45,.30);

    transform: translateY(-1px);
}


/* =========================================================
   PREMIUM LOADING SPINNER
   ========================================================= */

.premium-loading-spinner {
    width: 24px;
    height: 24px;

    border: 2px solid rgba(255,255,255,.10);

    border-top-color: #ff3b32;

    border-radius: 50%;

    animation:
        premiumLoadingSpin .8s linear infinite;
}

@keyframes premiumLoadingSpin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   REDEEM CODE STATUS
   ========================================================= */

.code-status {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 58px;

    padding: 5px 9px;

    border-radius: 999px;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .08em;

    text-transform: uppercase;

    white-space: nowrap;
}

.code-status.used {
    color: #ff7777;

    background: rgba(255,70,70,.07);

    border: 1px solid rgba(255,70,70,.16);
}

.code-status.unused {
    color: #5dffad;

    background: rgba(0,255,120,.06);

    border: 1px solid rgba(0,255,120,.16);
}


/* =========================================================
   TABLE ACTION PLACEHOLDER
   ========================================================= */

.table-action-placeholder {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 30px;

    padding: 0 10px;

    border: 1px solid rgba(255,255,255,.07);
    border-radius: 8px;

    background: rgba(255,255,255,.025);

    color: rgba(255,255,255,.35);

    font-size: 9px;
    font-weight: 700;
}


/* =========================================================
   RESPONSIVE — ADMIN FORMS
   ========================================================= */

@media (max-width: 700px) {

    .admin-form-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .admin-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .admin-form-actions button {
        width: 100%;
    }

    .admin-topbar-right {
        gap: 6px;
    }

}

/* =====================================================
   ORDER DELIVERY FIELDS
===================================================== */

.premium-order-modal:has(.delivery-section) {
    max-height: 90vh;
    overflow-y: auto;
    text-align: left;
}

.premium-order-modal:has(.delivery-section)
.premium-order-modal-content {
    text-align: center;
}


/* =====================================================
   DELIVERY SECTION
===================================================== */

.delivery-section {
    width: 100%;

    margin-top: 20px;
    padding: 15px;

    border:
        1px solid
        rgba(255, 255, 255, .07);

    border-radius: 13px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .035),
            rgba(255, 255, 255, .015)
        );

    text-align: left;
}

.delivery-section-title {
    margin-bottom: 15px;

    color: #ff4640;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 1.3px;

    text-align: left;
}


/* =====================================================
   DELIVERY FIELD
===================================================== */

.delivery-field {
    width: 100%;

    margin-bottom: 13px;
}

.delivery-field:last-child {
    margin-bottom: 0;
}

.delivery-field label {
    display: block;

    margin-bottom: 6px;

    color: #8d8d95;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .5px;

    text-transform: uppercase;
}

.delivery-field input,
.delivery-field textarea {
    display: block;

    width: 100%;

    min-height: 43px;

    padding: 10px 11px;

    border:
        1px solid
        rgba(255, 255, 255, .08);

    border-radius: 9px;

    outline: none;

    background:
        rgba(255, 255, 255, .035);

    color: #ffffff;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 11px;
    font-weight: 500;

    box-sizing: border-box;

    transition:
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

.delivery-field textarea {
    min-height: 90px;

    resize: vertical;
}

.delivery-field input::placeholder,
.delivery-field textarea::placeholder {
    color: #55555e;
}

.delivery-field input:hover,
.delivery-field textarea:hover {
    border-color:
        rgba(255, 60, 50, .22);
}

.delivery-field input:focus,
.delivery-field textarea:focus {
    border-color:
        rgba(255, 55, 45, .65);

    background:
        rgba(255, 35, 30, .035);

    box-shadow:
        0 0 0 3px
        rgba(255, 45, 35, .06);
}


/* =====================================================
   DELIVERY SCROLLBAR
===================================================== */

.premium-order-modal:has(.delivery-section)::-webkit-scrollbar {
    width: 5px;
}

.premium-order-modal:has(.delivery-section)::-webkit-scrollbar-track {
    background: transparent;
}

.premium-order-modal:has(.delivery-section)::-webkit-scrollbar-thumb {
    background: rgba(255, 60, 55, .35);
    border-radius: 10px;
}


/* =====================================================
   DELIVERY MOBILE
===================================================== */

@media (max-width: 480px) {

    .premium-order-modal:has(.delivery-section) {
        max-height: 92vh;
    }

    .delivery-section {
        margin-top: 17px;

        padding: 13px;

        border-radius: 11px;
    }

    .delivery-section-title {
        font-size: 8px;

        margin-bottom: 13px;
    }

    .delivery-field {
        margin-bottom: 11px;
    }

    .delivery-field label {
        font-size: 8px;
    }

    .delivery-field input,
    .delivery-field textarea {
        min-height: 42px;

        padding: 9px 10px;

        font-size: 10px;
    }

    .delivery-field textarea {
        min-height: 80px;
    }

}