/* =========================================================
   SMMXMEGO - MAIN STYLE
   ========================================================= */

:root {
    --primary: #6c4cff;
    --primary-dark: #5638e8;
    --secondary: #8b6cff;

    --bg: #ffffff;
    --bg-soft: #f7f7fb;
    --card: #ffffff;

    --text: #171827;
    --text-muted: #77798a;

    --border: #e9e9f0;

    --success: #22b573;
    --danger: #ef5350;

    --radius: 14px;
    --shadow: 0 8px 30px rgba(40, 35, 80, 0.08);
}


/* =========================================================
   GLOBAL
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.smmxmego-body {
    margin: 0;
    padding: 0;
    background: var(--bg-soft);
    color: var(--text);
    font-family: "Cairo", sans-serif;
    font-size: 14px;
    line-height: 1.7;
}

body.smmxmego-body a {
    text-decoration: none;
}

body.smmxmego-body img {
    max-width: 100%;
}


/* =========================================================
   HEADER
   ========================================================= */

.smmxmego-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 1000;
}

.smmxmego-header-inner {
    width: 100%;
    max-width: 1240px;
    min-height: 76px;
    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}


/* =========================================================
   LOGO
   ========================================================= */

.smmxmego-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.smmxmego-logo img {
    max-height: 48px;
    width: auto;
}

.smmxmego-logo-text {
    font-size: 25px;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
}

.smmxmego-logo-text span {
    color: var(--primary);
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.smmxmego-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    gap: 25px;
}

.smmxmego-nav-list {
    display: flex;
    align-items: center;
    gap: 5px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.smmxmego-nav-item {
    margin: 0;
    padding: 0;
}

.smmxmego-nav-item a {
    display: flex;
    align-items: center;
    gap: 7px;

    padding: 9px 13px;

    color: #5e6070;
    font-size: 14px;
    font-weight: 600;

    border-radius: 9px;

    transition:
        color .2s ease,
        background .2s ease;
}

.smmxmego-nav-item a:hover {
    color: var(--primary);
    background: #f4f1ff;
}

.smmxmego-nav-item.active a {
    color: var(--primary);
    background: #f4f1ff;
}

.smmxmego-nav-item i {
    font-size: 13px;
}


/* =========================================================
   ACCOUNT AREA
   ========================================================= */

.smmxmego-account-area {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
}

.smmxmego-account-link,
.smmxmego-guest-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 40px;
    padding: 8px 16px;

    border-radius: 9px;

    color: #5e6070;
    font-weight: 600;

    transition: all .2s ease;
}

.smmxmego-account-link:hover,
.smmxmego-guest-link:hover {
    color: var(--primary);
    background: #f4f1ff;
}

.smmxmego-account-link.active,
.smmxmego-guest-link.active {
    color: #ffffff;
    background: var(--primary);
}


/* =========================================================
   BALANCE
   ========================================================= */

.smmxmego-balance {
    display: flex;
    align-items: center;
    gap: 8px;

    min-height: 42px;
    padding: 7px 12px;

    color: var(--text);
    background: #f7f6ff;

    border: 1px solid #ebe7ff;
    border-radius: 10px;

    font-weight: 700;
}

.smmxmego-balance:hover {
    color: var(--primary);
}

.smmxmego-balance-icon {
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--primary);
    color: #fff;

    border-radius: 8px;
}

.smmxmego-balance-value {
    white-space: nowrap;
}

.smmxmego-balance > i {
    font-size: 10px;
    margin-right: 2px;
}


/* =========================================================
   LANGUAGE
   ========================================================= */

.smmxmego-language-btn {
    display: flex;
    align-items: center;
    gap: 7px;

    min-height: 40px;
    padding: 8px 13px;

    color: #5e6070;
    background: #fff;

    border: 1px solid var(--border);
    border-radius: 9px;

    font-weight: 600;
}

.smmxmego-language-btn:hover {
    color: var(--primary);
}

.smmxmego-language-btn > i:last-child {
    font-size: 9px;
}


/* =========================================================
   DROPDOWNS
   ========================================================= */

.smmxmego-body .dropdown-menu {
    min-width: 160px;

    margin-top: 8px;

    padding: 7px;

    background: #fff;

    border: 1px solid var(--border);
    border-radius: 11px;

    box-shadow: var(--shadow);
}

.smmxmego-body .dropdown-menu li {
    list-style: none;
}

.smmxmego-body .dropdown-menu li a {
    display: block;

    padding: 8px 11px;

    color: #555766;
    border-radius: 7px;

    font-size: 13px;
}

.smmxmego-body .dropdown-menu li a:hover,
.smmxmego-body .dropdown-menu li.active a {
    color: var(--primary);
    background: #f4f1ff;
}


/* =========================================================
   GUEST LINKS
   ========================================================= */

.smmxmego-guest-links {
    display: flex;
    align-items: center;
    gap: 5px;
}


/* =========================================================
   MOBILE BUTTON
   ========================================================= */

.smmxmego-mobile-toggle {
    display: none;

    width: 43px;
    height: 40px;

    padding: 8px;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: 9px;

    cursor: pointer;
}

.smmxmego-mobile-toggle span {
    display: block;

    width: 100%;
    height: 2px;

    margin: 5px 0;

    background: var(--text);
    border-radius: 2px;
}


/* =========================================================
   MAIN
   ========================================================= */

.smmxmego-main {
    width: 100%;
    min-height: calc(100vh - 76px);
}


/* =========================================================
   COMMON CONTAINERS
   ========================================================= */

.smmxmego-main .container,
.smmxmego-main .container-fluid {
    font-family: "Cairo", sans-serif;
}


/* =========================================================
   CARDS
   ========================================================= */

.smmxmego-main .card,
.smmxmego-main .panel,
.smmxmego-main .well {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}


/* =========================================================
   FORM
   ========================================================= */

.smmxmego-main .form-control {
    height: 46px;

    background: #ffffff;
    color: var(--text);

    border: 1px solid #dedee8;
    border-radius: 9px;

    box-shadow: none;

    font-family: "Cairo", sans-serif;
    font-size: 14px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.smmxmego-main .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 76, 255, .10);
}

.smmxmego-main label {
    color: #505262;
    font-weight: 600;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.smmxmego-main .btn-primary,
.smmxmego-main .btn.btn-primary {
    min-height: 44px;

    padding: 9px 20px;

    background: var(--primary);
    border-color: var(--primary);

    color: #ffffff;

    border-radius: 9px;

    font-family: "Cairo", sans-serif;
    font-weight: 700;

    transition: all .2s ease;
}

.smmxmego-main .btn-primary:hover,
.smmxmego-main .btn.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);

    transform: translateY(-1px);
}


/* =========================================================
   TABLES
   ========================================================= */

.smmxmego-main table {
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
}

.smmxmego-main table th {
    background: #f7f6ff;
    color: #555766;
    font-weight: 700;
}

.smmxmego-main table td,
.smmxmego-main table th {
    padding: 12px 14px;
    border-color: var(--border);
}


/* =========================================================
   ALERTS
   ========================================================= */

.smmxmego-main .alert {
    border-radius: 10px;
    border-width: 1px;
}


/* =========================================================
   NOTIFICATION
   ========================================================= */

.smmxmego-notification {
    position: fixed;

    top: 20px;
    left: 20px;

    z-index: 99999;

    min-width: 280px;

    border-radius: 10px;
    box-shadow: var(--shadow);
}


/* =========================================================
   RTL
   ========================================================= */

body.rtl {
    direction: rtl;
}

body.rtl .smmxmego-navigation {
    direction: rtl;
}

body.rtl .smmxmego-nav-list {
    direction: rtl;
}

body.rtl .smmxmego-account-area {
    direction: rtl;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991px) {

    .smmxmego-header-inner {
        min-height: 68px;
    }

    .smmxmego-mobile-toggle {
        display: block;
    }

    .smmxmego-navigation {
        display: none;

        position: absolute;

        top: 68px;
        right: 15px;
        left: 15px;

        width: auto;

        padding: 15px;

        background: #ffffff;

        border: 1px solid var(--border);
        border-radius: 12px;

        box-shadow: var(--shadow);
    }

    .smmxmego-navigation.in,
    .smmxmego-navigation.show {
        display: block;
    }

    .smmxmego-nav-list {
        display: block;
    }

    .smmxmego-nav-item {
        margin-bottom: 3px;
    }

    .smmxmego-nav-item a {
        width: 100%;
    }

    .smmxmego-account-area {
        margin-top: 10px;
        padding-top: 10px;

        border-top: 1px solid var(--border);

        display: flex;
        flex-wrap: wrap;
    }

    .smmxmego-guest-links {
        flex-wrap: wrap;
    }
}


@media (max-width: 576px) {

    .smmxmego-header-inner {
        padding: 0 13px;
    }

    .smmxmego-logo-text {
        font-size: 21px;
    }

    .smmxmego-navigation {
        right: 10px;
        left: 10px;
    }

    .smmxmego-account-area {
        display: block;
    }

    .smmxmego-account-link,
    .smmxmego-guest-link,
    .smmxmego-language-btn,
    .smmxmego-balance {
        width: 100%;
        margin-bottom: 6px;
    }

    .smmxmego-guest-links {
        display: block;
    }
}