/* *****************************************************

    ** Custom Stylesheet **

    Any custom styling you want to apply should be
    defined here.

***************************************************** */

/* Custom CSS for Nexus Theme
 *
 * This file allows you to customize the theme colors and styles for the entire Nexus template.
 *
 * To customize colors:
 * - Replace the var() references with your own hex colors or other CSS values.
 * - For example, instead of --primary: #4b5563; use --primary: #your-color;
 * - You can also override any CSS properties here.
 */

:root {
    --white: #fff;

    /* Neutral shades */
    --neutral-50: #fbf9fa;
    --neutral-100: #f4f5f7;
    --neutral-200: #e4e4e7;
    --neutral-300: #d0d5dd;
    --neutral-400: #9ca3af;
    --neutral-500: #6b7280;
    --neutral-600: #4b5563;
    --neutral-700: #374151;
    --neutral-800: #1f2937;
    --neutral-900: #111827;
    --neutral-950: #030712;

    /* Neutral shades */
    /* define own pallet with brand colors */
    --primary-50: var(--neutral-50);
    --primary-100: var(--neutral-100);
    --primary-200: var(--neutral-200);
    --primary-300: var(--neutral-300);
    --primary-400: var(--neutral-400);
    --primary-500: var(--neutral-500);
    --primary-600: var(--neutral-600);
    --primary-700: var(--neutral-700);
    --primary-800: var(--neutral-800);
    --primary-900: var(--neutral-900);
    --primary-950: var(--neutral-900);

    /* Primary colors */
    /* Use shades from comments if `primary` colors use other colors, then neutral */
    --primary: var(--neutral-900);          /* var(--primary-600) */
    --primary-lifted: var(--neutral-800);   /* var(--primary-700) */
    --primary-accented: var(--neutral-700); /* var(--primary-800) */

    /* Secondary colors */
    --secondary: var(--neutral-500);
    --secondary-lifted: var(--neutral-600);
    --secondary-accented: var(--neutral-700);

    /* Success colors */
    --success: #00a63e;
    --success-lifted: #008236;
    --success-accented: #016630;

    /* Info colors */
    --info: #155dfc;
    --info-lifted: #1447e6;
    --info-accented: #193cb8;

    /* Notice colors */
    --notice: #7f22fe;
    --notice-lifted: #7008e7;
    --notice-accented: #5d0ec0;

    /* Warning colors */
    --warning: #f54a00;
    --warning-lifted: #ca3500;
    --warning-accented: #9f2d00;

    /* Error colors */
    --error: #e7000b;
    --error-lifted: #c10007;
    --error-accented: #9f0712;

    /* Grayscale colors */
    --grayscale: var(--neutral-900);
    --grayscale-lifted: var(--neutral-800);
    --grayscale-accented: var(--neutral-700);

    /* Neutral colors */
    --neutral: var(--neutral-500);
    --neutral-lifted: var(--neutral-600);
    --neutral-accented: var(--neutral-700);

    /* Text neutral colors */
    --text-inverted: var(--white);
    --text-muted: var(--neutral-400);
    --text-lifted: var(--neutral-500);
    --text-accented: var(--neutral-600);
    --text: var(--neutral-900);

    /* Border neutral colors */
    --border-muted: var(--neutral-200);
    --border: var(--neutral-300);
    --border-lifted: var(--neutral-400);
    --border-accented: var(--neutral-600);

    /* Background neutral colors */
    --bg: var(--white);
    --bg-muted: var(--neutral-50);
    --bg-lifted: var(--neutral-100);
    --bg-accented: var(--neutral-200);
    --bg-inverted: var(--neutral-900);

    /* Additional colors */
    --yellow-200: #fff085;
    --yellow-300: #ffdf20;
    --teal-300: #46edd5;
    --teal-400: #00d5be;
    --emerald-300: #5ee9b5;
    --pink-400: #fb64b6;

    /* Additional custom properties */
    /* Font sizes */
    --text-xs: 0.625rem;
    --text-sm: 0.75rem;
    --text-md: 0.875rem;
    --text-lg: 1rem;

    /* Spacing */
    --outline-sm: 1px;
    --outline-md: 2px;
    --outline-lg: 3px;

    /* Rounding */
    --rounding-sm: 0.25rem;
    --rounding-md: 0.5rem;
    --rounding-lg: 0.75rem;

    /* Other */
    --letter-spacing: 0em;
    --disabled-opacity: 25%;
}

/* Custom Arsamnet styles */
html, body {
    font-family: Dana;
    direction: rtl;
    text-align: right;
    font-size: 15px;
    -moz-font-feature-settings: "ss02";
    -webkit-font-feature-settings: "ss02";
    font-feature-settings: "ss02";
}

.primary-content .card,
.primary-content .mc-promo-manage,
.primary-content .mc-promo-login,
.sidebar .card-sidebar {
    border-radius: 16px;
}

.btn, .btn-default {
    height: 40px;
    padding: 0px 14px;
    align-items: center;
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.btn-sm, .btn-group-sm > .btn {
    border-radius: 8px;
}

.primary-content .form-group.text-center {
    display: flex;
    gap: 8px;
}

.arsam-client-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.arsam-client-card-actions a {
    width: 50%;
}

.arsam-client-card-actions > * {
    margin: 0 !important;
}

.arsam-client-card-actions .btn-success:hover {
    background: #15774a;
    border-color: #15774a;
}

.div-service-buttons {
    display: flex;
    gap: 8px;
}

/* دکمه افزودن حساب فرعی / Contact */
a[href*="clientarea.php?action=addcontact"] {
    background: #1e73be !important;
    border-color: #1e73be !important;
    color: #fff !important;
}

a[href*="clientarea.php?action=addcontact"]:hover,
a[href*="clientarea.php?action=addcontact"]:focus {
    background: #155d99 !important;
    border-color: #155d99 !important;
    color: #fff !important;
}

div[menuitemname="Ticket Information"] .row div:first-child {
    padding-left: 6px;
}

div[menuitemname="Ticket Information"] .row div:last-child {
    padding-right: 6px;
}

div[menuitemname="Ticket Information"] .row div:last-child > button.btn {
    text-wrap-mode: nowrap;
}

.input-group > .form-control,
.input-group > .form-control-plaintext,
.input-group > .custom-select,.input-group > .custom-file {
    height: 40px;
}

.card-header:first-child, .sidebar .card-header {
    border-radius: 16px 16px 0 0;
    padding: 15px 18px;
    height: 48px;
}

.sidebar .card-header {
    padding: 16px 12px 14px 16px;
}

.sidebar .card-footer,
body .list-group-item:last-child {
    border-radius: 0 0 16px 16px;
}

section#main-body {
    padding: 30px 0;
}

.sidebar .sidebar-menu-item-icon-wrapper {
    margin: 0 0 0 8px;
}

.dropdown-toggle::after {
    margin: 0 4px 0 0;
}

.card-sidebar .card-header h3.card-title i.fas.card-minimise {
    float: left !important;
}

.primary-content .card-title,
.primary-content .mc-promo-manage .panel-heading h3,
.mc-promo-manage .panel-heading .primary-content h3,
.primary-content .mc-promo-login .panel-heading h3,
.mc-promo-login .panel-heading .primary-content h3,
.primary-content .promo-container .header h3,
.promo-container .header .primary-content h3 {
    font-weight: 700;
    font-size: 15px !important;
    font-variation-settings: "KASH" 6;
}

.bootstrap-switch.bootstrap-switch-small {
    min-width: 70px;
}

form#frmGeneratePassword .modal-body .col-sm-8.offset-sm-4 {
    display: flex;
    gap: 8px;
}

/* ==========================================================
   ARSAMNET Header
   ========================================================== */

@font-face {
    font-family: "Dana";
    src: url("https://arsamnet.com/wp-content/uploads/2026/07/DanaVF.woff2")
        format("woff-variations");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

.arsam-header,
.arsam-header *,
.arsam-header *::before,
.arsam-header *::after {
    box-sizing: border-box;
}

.arsam-header {
    position: fixed;
    z-index: 1000;

    width: 100%;

    background-color: #ffffff;

    box-shadow:
        0 5px 13px rgba(15, 23, 42, 0.08),
        0 2px 4px rgba(15, 23, 42, 0.035);

    font-family: "Dana", "Vazirmatn", Tahoma, sans-serif;
}

.arsam-header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1260px;
    height: 70px;
    margin-right: auto;
    margin-left: auto;
    direction: rtl;
}

.arsam-header__side {
    display: flex;
    align-items: center;

    flex: 1 1 0;
    min-width: 0;
}

.arsam-header__logo-area {
    justify-content: flex-start;
}

.arsam-header__portal-area {
    justify-content: flex-end;
}

.arsam-header__logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    max-width: 100%;

    color: inherit;
    text-decoration: none;
}

.arsam-header__logo-link:hover,
.arsam-header__logo-link:focus {
    color: inherit;
    text-decoration: none;
}

.arsam-header__logo {
    display: block;
    width: auto;
    max-width: 170px;
    object-fit: contain;
}

.arsam-header__navigation {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 1 auto;
    min-width: 0;
}

.arsam-header__menu {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 30px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.arsam-header__menu-item {
    flex: 0 0 auto;

    margin: 0;
    padding: 0;

    white-space: nowrap;
}

.arsam-header__menu-link {
    position: relative;

    display: inline-flex;
    align-items: center;

    padding: 19px 0;

    color: #4d4f59;

    font-family: inherit;
    font-size: 16px;
    line-height: 32px;

    text-decoration: none;
    font-variation-settings: "KASH" 6;

    transition:
        color 180ms ease,
        transform 180ms ease;
}

.arsam-header__menu-link:hover,
.arsam-header__menu-link:focus {
    color: #ff5429;
    text-decoration: none;
}

.arsam-header__portal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6em;
    height: 34px;
    padding: 9px 20px;
    border-radius: 8px;
    background-color: #ff5429;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    line-height: 14px;
    text-decoration: none;
    border: 1px solid #ff5429;
    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.arsam-header__portal-button i {
    font-size: 12px;
}

.arsam-header__portal-button:hover,
.arsam-header__portal-button:focus {
    border-color: #ff6c3f;
    outline: none;
    background-color: #ff6c3f;
    color: #ffffff;

    text-decoration: none;
}

.arsam-header__portal-button:active {
    transform: translateY(0);
}

.arsam-header__portal-text {
    display: inline-block;
}

.arsam-header__portal-icon {
    display: block;

    flex: 0 0 auto;

    width: 24px;
    height: 24px;

    color: currentColor;
}

/* =========================================
   ArsamNet - User Account Dropdown
   ========================================= */

.arsam-header__portal-area {
    position: relative;
}

.arsam-header__account {
    position: relative;
}

.arsam-header__account-button {
    border: 0;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.arsam-header__account-button::after {
    display: none;
}

.arsam-header__account-arrow {
    font-size: 10px;
    margin-right: 3px;
    transition: transform 0.2s ease;
}

.arsam-header__account.show .arsam-header__account-arrow {
    transform: rotate(180deg);
}


/* Dropdown */

.arsam-header__account-menu {
    width: 270px;
    padding: 8px;
    margin-top: 12px;

    right: auto;
    left: 0;

    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 8px;

    background: #fff;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.08),
        0 3px 10px rgba(0, 0, 0, 0.04);

    text-align: right;
}


/* User information */

.arsam-header__account-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 7px 10px;
}

.arsam-header__account-avatar {
    width: 38px;
    height: 38px;

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

    flex-shrink: 0;

    border-radius: 50%;

    background: #f3f4f6;

    font-size: 16px;
}

.arsam-header__account-user {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.arsam-header__account-user strong {
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.arsam-header__account-user small {
    margin-top: 2px;

    color: #8a8f98;
    font-size: 11px;

    direction: ltr;
    text-align: right;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Menu items */

.arsam-header__account-item {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 9px 10px;

    border-radius: 8px;

    color: #333;
    font-size: 13px;
    font-weight: 500;

    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.arsam-header__account-item i {
    width: 18px;
    text-align: center;
    color: #858b94;
    font-size: 13px;
}

.arsam-header__account-item:hover,
.arsam-header__account-item:focus {
    background: #f6f7f9;
    color: #111;
}

.arsam-header__account-item:hover i {
    color: inherit;
}


/* Dividers */

.arsam-header__account-menu .dropdown-divider {
    margin: 6px 3px;
    border-color: #eeeeee;
}


/* Logout */

.arsam-header__account-logout {
    color: #ce0000;
}

.arsam-header__account-logout i {
    color: #ce0000;
}

.arsam-header__account-logout:hover {
    color: #ce0000;
    background: #fff7ed;
}


/* Mobile */

@media (max-width: 767px) {

    .arsam-header__account-menu {
        width: 260px;
        max-width: calc(100vw - 30px);
    }

    .arsam-header__portal-text {
        white-space: nowrap;
    }

}

.card-footer,
.card-body,
.card-header {
    padding: 0.75rem;
}

.master-breadcrumb {
    padding-top: 70px;
}

/* ==========================================================
   Tablet
   ========================================================== */

@media (max-width: 1200px) {
    .arsam-header__container {
        padding-right: 24px;
        padding-left: 24px;
    }

    .arsam-header__menu {
        gap: 25px;
    }

    .arsam-header__menu-link {
        font-size: 16px;
    }

    .arsam-header__logo {
        max-width: 200px;
        height: 46px;
    }

    .arsam-header__portal-button {
        min-width: 165px;
        min-height: 46px;

        padding-right: 16px;
        padding-left: 16px;

        font-size: 15px;
    }
}

/* ==========================================================
   Mobile and small tablet
   ========================================================== */

@media (max-width: 900px) {
    .arsam-header__container {
        flex-wrap: wrap;

        min-height: auto;

        padding-top: 14px;
        padding-bottom: 11px;

        row-gap: 11px;
    }

    .arsam-header__side {
        flex-basis: 50%;
    }

    .arsam-header__navigation {
        order: 3;

        flex: 1 1 100%;

        width: 100%;

        justify-content: flex-start;

        overflow-x: auto;
        overflow-y: hidden;

        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .arsam-header__navigation::-webkit-scrollbar {
        display: none;
    }

    .arsam-header__menu {
        justify-content: flex-start;

        width: max-content;
        min-width: 100%;

        gap: 26px;
    }

    .arsam-header__menu-link {
        padding-top: 8px;
        padding-bottom: 8px;

        font-size: 15px;
    }
}

/* ==========================================================
   Mobile
   ========================================================== */

@media (max-width: 600px) {
    .arsam-header__container {
        padding-right: 15px;
        padding-left: 15px;
    }

    .arsam-header__logo {
        max-width: 148px;
        height: 40px;
    }

    .arsam-header__portal-button {
        min-width: auto;
        min-height: 42px;

        padding: 8px 12px;

        border-radius: 8px;

        font-size: 13px;

        gap: 6px;
    }

    .arsam-header__portal-icon {
        width: 20px;
        height: 20px;
    }

    .arsam-header__menu {
        gap: 22px;
    }

    .arsam-header__menu-link {
        font-size: 14px;
    }
}

@media (max-width: 390px) {
    .arsam-header__portal-text {
        display: none;
    }

    .arsam-header__portal-button {
        width: 42px;
        height: 42px;

        padding: 8px;
    }
}

/* =========================================================
   ArsamNet WHMCS Client Area Home
   Add to: /templates/YOUR-THEME/css/custom.css
   ========================================================= */

:root {
    --arsam-primary: #ff5722;
    --arsam-primary-dark: #e94b18;
    --arsam-primary-soft: #fff2ed;
    --arsam-text: #2f3035;
    --arsam-muted: #74767d;
    --arsam-border: #e8e9ec;
    --arsam-surface: #ffffff;
    --arsam-surface-alt: #f6f7f8;
    --arsam-shadow: 0 8px 30px rgba(24, 28, 33, .06);
    --arsam-shadow-hover: 0 16px 40px rgba(24, 28, 33, .11);
    --arsam-radius: 16px;
}

.arsam-dashboard {
    width: 100%;
    color: var(--arsam-text);
}

.arsam-dashboard a {
    text-decoration: none;
}

.tiles .row.no-gutters {
    margin-left: -8px;
    margin-right: -8px;
}

.tiles .row.no-gutters > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
    margin-bottom: 16px;
}

body .primary-content .client-home-cards .card .card-header .btn,
body .primary-content .client-home-cards .mc-promo-manage .card-header .btn,
body .primary-content .client-home-cards .mc-promo-login .card-header .btn {
    border-radius: 8px;
}

/* Hero */
.arsam-dashboard__hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 16px;
    padding: 30px 34px;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 20px;
    background:
        radial-gradient(circle at 10% 25%, rgba(255, 87, 34, .12), transparent 50%),
        linear-gradient(135deg, #fff 0%, #fbfbfc 100%);
    box-shadow: var(--arsam-shadow);
}

.arsam-dashboard__hero::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    left: -70px;
    bottom: -100px;
    border: 28px solid rgba(255, 87, 34, .05);
    border-radius: 50%;
    pointer-events: none;
}

.arsam-dashboard__hero-content,
.arsam-dashboard__quick-actions {
    position: relative;
    z-index: 1;
}

.arsam-dashboard__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--arsam-primary);
    font-size: 13px;
    font-weight: 700;
}

.arsam-dashboard__eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--arsam-primary);
    box-shadow: 0 0 0 5px rgba(255, 87, 34, .10);
}

.arsam-dashboard__title {
    margin: 0 0 8px;
    color: var(--arsam-text);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.45;
    font-variation-settings: "KASH" 6;
}

.arsam-dashboard__lead {
    max-width: 650px;
    margin: 0;
    color: var(--arsam-muted);
    font-size: 14px;
    line-height: 2;
}

.arsam-dashboard__quick-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
}

.arsam-dashboard__quick-action {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 17px;
    border: 1px solid var(--arsam-border);
    border-radius: 8px;
    background: #fff;
    color: var(--arsam-text);
    font-size: 13px;
    font-weight: 700;
    transition: .2s ease;
}

.arsam-dashboard__quick-action:hover {
    border-color: #d9dade;
    color: var(--arsam-primary);
    box-shadow: 0 8px 20px rgba(25, 28, 33, .08);
}

.arsam-dashboard__quick-action--primary {
    border-color: var(--arsam-primary);
    background: var(--arsam-primary);
    color: #fff;
}

.arsam-dashboard__quick-action--primary:hover {
    border-color: var(--arsam-primary-dark);
    background: var(--arsam-primary-dark);
    color: #fff;
}

/* Stats */

.arsam-dashboard__stats-row {
    margin-right: -8px;
    margin-left: -8px;
}

.arsam-dashboard__stat-col {
    padding-right: 8px;
    padding-left: 8px;
    margin-bottom: 16px;
}

.arsam-stat-card {
    --arsam-card-accent: var(--arsam-primary);
    --arsam-card-soft: var(--arsam-primary-soft);

    position: relative;
    overflow: hidden;
    min-height: 168px;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 18px 18px 14px;
    border: 1px solid var(--arsam-border);
    border-radius: 16px;
    background: linear-gradient(135deg, var(--arsam-card-soft) 0%, #fff 34%);
    color: var(--arsam-text);
    box-shadow: 0 3px 14px rgba(24, 28, 33, .045);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.arsam-stat-card:hover,
.arsam-stat-card:focus-visible {
    border-color: color-mix(in srgb, var(--arsam-card-accent) 30%, var(--arsam-border));
    color: var(--arsam-text);
    box-shadow: 0 7px 22px rgba(24, 28, 33, .075);
    outline: none;
}

.arsam-stat-card--services {
    --arsam-card-accent: #ff5722;
    --arsam-card-soft: #fff5f1;
}

.arsam-stat-card--domains {
    --arsam-card-accent: #15966f;
    --arsam-card-soft: #f1faf7;
}

.arsam-stat-card--tickets {
    --arsam-card-accent: #5865d8;
    --arsam-card-soft: #f4f5ff;
}

.arsam-stat-card--invoices {
    --arsam-card-accent: #c98911;
    --arsam-card-soft: #fff9ec;
}

.arsam-stat-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.arsam-stat-card__icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid color-mix(in srgb, var(--arsam-card-accent) 16%, transparent);
    border-radius: 12px;
    background: var(--arsam-card-soft);
    color: var(--arsam-card-accent);
    font-size: 17px;
}

.arsam-stat-card__title {
    overflow: hidden;
    color: #45474e;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.7;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-variation-settings: "KASH" 6;
}

.arsam-stat-card__metric {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 17px;
    min-width: 0;
}

.arsam-stat-card__value {
    flex: 0 0 auto;
    color: #24262b;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.02em;
}

.arsam-stat-card__meta {
    overflow: hidden;
    color: var(--arsam-muted);
    font-size: 11px;
    line-height: 1.7;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.arsam-stat-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 13px;
    border-top: 1px solid rgba(232, 233, 236, .85);
    color: #777980;
    font-size: 10.5px;
    font-weight: 600;
}

.arsam-stat-card__footer i {
    color: var(--arsam-card-accent);
    font-size: 10px;
}

@supports not (background: color-mix(in srgb, red 10%, white)) {
    .arsam-stat-card:hover,
    .arsam-stat-card:focus-visible {
        border-color: #dadce0;
    }

    .arsam-stat-card__icon {
        border-color: rgba(0, 0, 0, .05);
    }
}

/* Addons / alerts */
.arsam-dashboard__addon {
    margin-top: 12px;
}

.arsam-dashboard__alert {
    border-radius: 12px;
}

/* Dynamic WHMCS panels */
.arsam-dashboard__panels .arsam-panel {
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--arsam-border) !important;
    border-radius: var(--arsam-radius) !important;
    background: var(--arsam-surface);
    box-shadow: 0 5px 22px rgba(24, 28, 33, .045);
    transition: box-shadow .22s ease, transform .22s ease;
}

.arsam-panel__header {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--arsam-border) !important;
    background: #fff !important;
}

.arsam-panel__heading {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.arsam-panel__icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--arsam-primary-soft);
    color: var(--arsam-primary);
    font-size: 15px;
}

.arsam-panel__title {
    margin: 0 !important;
    color: var(--arsam-text);
    font-size: 15px !important;
    font-weight: 800;
    line-height: 1.7;
}

.arsam-panel__badge,
.arsam-panel .badge {
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
}

.arsam-panel__action {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 12px;
    border: 1px solid #ffd9cc;
    border-radius: 9px;
    background: var(--arsam-primary-soft);
    color: var(--arsam-primary) !important;
    font-size: 11px;
    font-weight: 800;
    transition: .2s ease;
}

.arsam-panel__action:hover {
    border-color: var(--arsam-primary);
    background: var(--arsam-primary);
    color: #fff !important;
}

.arsam-panel__body {
    padding: 18px !important;
    color: #555861;
    line-height: 1.9;
}

.arsam-panel__list {
    border-radius: 0 !important;
}

.arsam-panel__list-item {
    min-height: 49px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 18px !important;
    border-right: 0 !important;
    border-left: 0 !important;
    border-color: #f0f0f2 !important;
    background: #fff;
    color: #4a4c52;
    font-size: 12px;
    transition: .18s ease;
}

.arsam-panel__list-item:hover {
    z-index: 1;
    background: #fffaf8;
    color: var(--arsam-primary);
}

.arsam-panel__list-item.active {
    border-color: #ffe1d6 !important;
    background: var(--arsam-primary-soft) !important;
    color: var(--arsam-primary) !important;
}

.arsam-panel__list-label {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.arsam-panel__list-label > i {
    width: 18px;
    color: #9a9da4;
    text-align: center;
}

.arsam-panel__list-item:hover .arsam-panel__list-label > i {
    color: var(--arsam-primary);
}

.arsam-panel__list-tail {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.arsam-panel__list-arrow {
    color: #c9cbd0;
    font-size: 9px;
}

.arsam-panel__footer {
    padding: 12px 18px !important;
    border-top: 1px solid var(--arsam-border) !important;
    background: #fbfbfc !important;
    color: var(--arsam-muted);
    font-size: 11px;
}

/* Neutralize Twenty-One accent strip on our panels */
.arsam-dashboard__panels [class*="card-accent-"] {
    border-top-width: 1px !important;
}

/* Responsive */
@media (max-width: 991.98px) {
    .arsam-dashboard__hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 26px;
    }

    .arsam-dashboard__quick-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    .arsam-dashboard__hero {
        margin-bottom: 25px;
        padding: 22px 18px;
        border-radius: 15px;
    }

    .arsam-dashboard__title {
        font-size: 23px;
    }

    .arsam-dashboard__lead {
        font-size: 12px;
    }

    .arsam-dashboard__quick-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .arsam-dashboard__quick-action {
        width: 100%;
    }

    .arsam-stat-card {
        min-height: 156px;
        padding: 16px 16px 13px;
    }

    .arsam-stat-card__value {
        font-size: 29px;
    }

    .arsam-panel__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .arsam-panel__action {
        align-self: stretch;
    }
}

/* ==========================================================
   ArsamNet WHMCS - View Ticket
   Append to custom.css
   No decorative animation / no micro-interactions
   Uses global typography variables from :root:
   --text-xs / --text-sm / --text-md / --text-lg
   ========================================================== */

.arsam-ticket {
    --arsam-ticket-primary: #ff5429;
    --arsam-ticket-primary-soft: #fff4ef;
    --arsam-ticket-text: #2f3136;
    --arsam-ticket-muted: #74777e;
    --arsam-ticket-border: #e4e6e9;
    --arsam-ticket-surface: #ffffff;
    --arsam-ticket-danger: #c83a3a;
    --arsam-ticket-danger-soft: #fff5f5;
    width: 100%;
    color: var(--arsam-ticket-text);
    font-family: "Dana", Tahoma, sans-serif;
    font-size: var(--text-md);
}

.arsam-ticket *,
.arsam-ticket *::before,
.arsam-ticket *::after { box-sizing: border-box; }

.arsam-ticket__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 16px;
    padding: 20px 22px;
    border: 1px solid var(--arsam-ticket-border);
    border-radius: 16px;
    background: #fff;
}

.arsam-ticket__heading {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.arsam-ticket__icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--arsam-ticket-primary-soft);
    color: var(--arsam-ticket-primary);
    font-size: 17px;
}

.arsam-ticket__heading-content { min-width: 0; }

.arsam-ticket__eyebrow {
    margin-bottom: 4px;
    color: var(--arsam-ticket-muted);
    font-size: var(--text-sm);
    font-weight: 700;
}

.arsam-ticket__title {
    margin: 0;
    color: var(--arsam-ticket-text);
    font-size: calc(var(--text-lg) * 1.25);
    font-weight: 800;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.arsam-ticket__actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.arsam-ticket__button {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 15px;
    border: 1px solid var(--arsam-ticket-border);
    border-radius: 9px;
    background: #fff;
    color: #4f5258;
    font-family: inherit;
    font-size: var(--text-md);
    font-weight: 800;
    box-shadow: none;
    cursor: pointer;
}

.arsam-ticket__button:hover,
.arsam-ticket__button:focus { color: #4f5258; text-decoration: none; }

.arsam-ticket__button--primary {
    border-color: var(--arsam-ticket-primary);
    background: var(--arsam-ticket-primary);
    color: #fff;
}

.arsam-ticket__button--primary:hover,
.arsam-ticket__button--primary:focus { background: var(--arsam-ticket-primary); color: #fff; }

.arsam-ticket__button--danger {
    border-color: #f1caca;
    background: var(--arsam-ticket-danger-soft);
    color: var(--arsam-ticket-danger);
}

.arsam-ticket__button--danger:hover,
.arsam-ticket__button--danger:focus { background: var(--arsam-ticket-danger-soft); color: var(--arsam-ticket-danger); }

.arsam-ticket__button:disabled { opacity: .55; cursor: default; }

.arsam-ticket__conversation { display: grid; gap: 14px; }

.arsam-ticket-message {
    overflow: hidden;
    border: 1px solid var(--arsam-ticket-border);
    border-radius: 16px;
    background: #fff;
}

.arsam-ticket-message--staff {
    border-color: #f1d8cf;
    background: #fffaf8;
}

.arsam-ticket-message__header {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--arsam-ticket-border);
    background: #fbfbfc;
}

.arsam-ticket-message--staff .arsam-ticket-message__header {
    border-bottom-color: #f1ddd6;
    background: #fff7f3;
}

.arsam-ticket-message__author {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.arsam-ticket-message__avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef0f2;
    color: #6f737a;
    font-size: 13px;
}

.arsam-ticket-message--staff .arsam-ticket-message__avatar {
    background: var(--arsam-ticket-primary-soft);
    color: var(--arsam-ticket-primary);
}

.arsam-ticket-message__author-info { min-width: 0; }

.arsam-ticket-message__name {
    color: #34373c;
    font-size: var(--text-md);
    font-weight: 800;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.arsam-ticket-message__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 2px;
    color: #8a8d94;
    font-size: var(--text-sm);
}

.arsam-ticket-message__meta span:first-child {
    direction: ltr;
}

.arsam-ticket-message__role {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border: 1px solid #e2e4e7;
    border-radius: 10px;
    background: #fff;
    color: #777b82;
    font-size: var(--text-sm);
    font-weight: 700;
}

.arsam-ticket-message__staff-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 9px;
    color: var(--arsam-ticket-primary);
    font-size: var(--text-sm);
    font-weight: 800;
}

.arsam-ticket-message__body {
    padding: 18px 17px;
    color: #4b4e54;
    font-size: var(--text-lg);
    line-height: 2;
    overflow-wrap: anywhere;
}

.arsam-ticket-message__body > :first-child { margin-top: 0; }
.arsam-ticket-message__body > :last-child { margin-bottom: 0; }
.arsam-ticket-message__body pre,
.arsam-ticket-message__body code { direction: ltr; text-align: left; }

.arsam-ticket-message__body pre {
    padding: 12px;
    border: 1px solid #e3e5e8;
    border-radius: 9px;
    background: #f6f7f8;
}

.arsam-ticket-message__attachments { padding: 0 17px 15px; }

.arsam-ticket-message__attachments-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: #666a70;
    font-size: var(--text-md);
    font-weight: 800;
}

.arsam-ticket-message__attachments-title i { color: var(--arsam-ticket-primary); }
.arsam-ticket-message__attachments-title small { color: #9a9da3; font-size: var(--text-sm); font-weight: 600; }

.arsam-ticket-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.arsam-ticket-attachment {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 0 10px;
    border: 1px solid #e2e4e7;
    border-radius: 9px;
    background: #fff;
    color: #555960;
    font-size: var(--text-sm);
    font-weight: 700;
    text-decoration: none;
}

.arsam-ticket-attachment:hover,
.arsam-ticket-attachment:focus { color: #555960; text-decoration: none; }

.arsam-ticket-attachment > span {
    overflow: hidden;
    max-width: 230px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.arsam-ticket-attachment > i:first-child { color: #888c93; }
.arsam-ticket-attachment__download { margin-right: 2px; color: var(--arsam-ticket-primary); font-size: var(--text-sm); }
.arsam-ticket-attachment--removed { background: #f7f7f8; color: #9a9da3; }

.arsam-ticket-message__footer {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 16px;
    border-top: 1px solid #eceef0;
    background: #fcfcfd;
}

.arsam-ticket-message--staff .arsam-ticket-message__footer {
    border-top-color: #f2e3dd;
    background: #fffaf8;
}

.arsam-ticket-message__ip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #a0a3a9;
    font-size: var(--text-sm);
}

.arsam-ticket-message__ip i { font-size: var(--text-xs); }
.arsam-ticket-message__rating { margin-right: auto; }
.arsam-ticket-message__rating .rating,
.arsam-ticket-message__rating .rating-done { margin: 0; }

.arsam-ticket-reply {
    overflow: hidden;
    margin-top: 18px;
    border: 1px solid var(--arsam-ticket-border);
    border-radius: 16px;
    background: #fff;
}

.arsam-ticket-reply__header {
    padding: 15px 17px;
    border-bottom: 1px solid var(--arsam-ticket-border);
    background: #fbfbfc;
}

.arsam-ticket-reply__heading { display: flex; align-items: center; gap: 10px; }

.arsam-ticket-reply__icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--arsam-ticket-primary-soft);
    color: var(--arsam-ticket-primary);
    font-size: var(--text-md);
}

.arsam-ticket-reply__heading h2 { margin: 0; color: #373a40; font-size: var(--text-lg); font-weight: 800; }
.arsam-ticket-reply__heading p { margin: 2px 0 0; color: #8a8d94; font-size: var(--text-sm); line-height: 1.7; }
.arsam-ticket-reply__body { padding: 18px; }

.arsam-ticket-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.arsam-ticket-reply .form-group { margin-bottom: 15px; }

.arsam-ticket-reply label {
    margin-bottom: 6px;
    color: #565960;
    font-size: var(--text-md);
    font-weight: 800;
}

.arsam-ticket-reply .form-control,
.arsam-ticket-reply .custom-file-label {
    min-height: 40px;
    border: 1px solid #dfe1e4;
    border-radius: 9px;
    background: #fff;
    color: #44474d;
    font-family: inherit;
    font-size: var(--text-md);
    box-shadow: none;
}

.arsam-ticket-reply .form-control:focus,
.arsam-ticket-reply .custom-file-input:focus ~ .custom-file-label {
    border-color: #c9ccd1;
    box-shadow: none;
}

.arsam-ticket-reply textarea.form-control {
    min-height: 230px;
    padding: 12px;
    font-size: var(--text-lg);
    line-height: 2;
    resize: vertical;
}

.arsam-ticket-upload .custom-file-label { padding-top: 10px; padding-bottom: 10px; line-height: 20px; }

.arsam-ticket-upload .custom-file-label::after {
    height: 40px;
    display: flex;
    align-items: center;
    border-right: 1px solid #dfe1e4;
    background: #f6f7f8;
    color: #6f737a;
    font-family: inherit;
    font-size: 10px;
}

.arsam-ticket-upload__add {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #dfe1e4;
    border-radius: 9px 0 0 9px;
    background: #f6f7f8;
    color: #555960;
    font-family: inherit;
    font-size: var(--text-md);
    font-weight: 800;
    box-shadow: none;
}

.arsam-ticket-upload__add:hover,
.arsam-ticket-upload__add:focus { background: #f6f7f8; color: #555960; }

.arsam-ticket-upload__hint {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    margin-top: 6px;
    color: #92959c;
    line-height: 1.8;
}

.arsam-ticket-upload__hint i { margin-top: 3px; color: #a8abb1; font-size: 9px; }
.arsam-ticket-upload__hint small { font-size: var(--text-sm); }

.arsam-ticket-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding-top: 3px;
}

.arsam-ticket-submit,
.arsam-ticket-cancel {
    min-height: 36px;
    padding: 0 19px;
    border-radius: 9px;
    font-family: inherit;
    font-size: var(--text-md);
    font-weight: 800;
    box-shadow: none;
}

.arsam-ticket-submit {
    border: 1px solid var(--arsam-ticket-primary);
    background: var(--arsam-ticket-primary);
    color: #fff;
}

.arsam-ticket-submit:hover,
.arsam-ticket-submit:focus { border-color: var(--arsam-ticket-primary); background: var(--arsam-ticket-primary); color: #fff; }

.arsam-ticket-cancel {
    border: 1px solid #dfe1e4;
    background: #fff;
    color: #656970;
}

.arsam-ticket-cancel:hover,
.arsam-ticket-cancel:focus { background: #fff; color: #656970; }

@media (max-width: 767.98px) {
    .arsam-ticket__header { align-items: flex-start; flex-direction: column; padding: 17px; }
    .arsam-ticket__actions { width: 100%; }
    .arsam-ticket__button { flex: 1; }
    .arsam-ticket-message__header { align-items: flex-start; flex-direction: column; gap: 10px; }
    .arsam-ticket-message__staff-badge { margin-right: 48px; }
    .arsam-ticket-message__footer { align-items: flex-start; flex-direction: column; }
    .arsam-ticket-message__rating { margin-right: 0; }
    .arsam-ticket-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .arsam-ticket__heading { align-items: flex-start; }
    .arsam-ticket__icon { width: 40px; height: 40px; flex-basis: 40px; }
    .arsam-ticket__title { font-size: 18px; }
    .arsam-ticket__actions { flex-direction: column; }
    .arsam-ticket__button { width: 100%; }
    .arsam-ticket-message__body,
    .arsam-ticket-reply__body { padding: 15px; }
    .arsam-ticket-attachments { flex-direction: column; }
    .arsam-ticket-attachment { width: 100%; }
    .arsam-ticket-attachment > span { max-width: calc(100vw - 130px); }
    .arsam-ticket-form-actions { align-items: stretch; flex-direction: column; }
    .arsam-ticket-submit,
    .arsam-ticket-cancel { width: 100%; }
}

@media print {
    .arsam-ticket__header,
    .arsam-ticket-message { break-inside: avoid; }
    .arsam-ticket-message { border-color: #bfc2c7; border-radius: 0; }
    .arsam-ticket-message__header,
    .arsam-ticket-message__footer { background: #fff !important; }
}
