/* ==========================================================================
   IronCore Cloud (آیرون کور کلود) — Luxury SaaS Cloud Console v5.0
   Palette: Deep Navy (#111127) + Light (#F7F6FC) + Electric Violet (#8B5CF6 / #A78BFA)
   ========================================================================== */

:root {
    --bg-body: #111127;
    --bg-surface: #161633;
    --bg-card: rgba(24, 24, 54, 0.82);
    --bg-card-solid: #191938;
    --bg-card-hover: #21214a;
    --bg-input: #0c0c1d;
    --border-color: rgba(139, 92, 246, 0.24);
    --border-subtle: rgba(167, 139, 250, 0.10);
    --text-main: #F7F6FC;
    --text-muted: #94A3B8;
    --primary: #8B5CF6;
    --primary-dark: #6D28D9;
    --primary-hover: #7C3AED;
    --accent: #A78BFA;
    --gold: #A78BFA;
    --gold-light: #C4B5FD;
    --success: #10B981;
    --info: #38BDF8;
    --warning: #F59E0B;
    --danger: #F43F5E;
    --purple: #8B5CF6;
    --sidebar-width: 266px;
    --topbar-height: 68px;
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-card: 0 16px 40px -10px rgba(6, 6, 20, 0.65);
    --glow-violet: 0 0 28px rgba(139, 92, 246, 0.32);
}

body.light-mode {
    --bg-body: #F7F6FC;
    --bg-surface: #FFFFFF;
    --bg-card: rgba(255, 255, 255, 0.94);
    --bg-card-solid: #FFFFFF;
    --bg-card-hover: #F3F0FF;
    --bg-input: #EFEFF8;
    --border-color: rgba(139, 92, 246, 0.22);
    --border-subtle: rgba(17, 17, 39, 0.08);
    --text-main: #111127;
    --text-muted: #64748B;
    --shadow-card: 0 12px 32px -8px rgba(139, 92, 246, 0.12);
}

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

html, body {
    margin: 0;
    padding: 0;
    direction: rtl;
    text-align: right;
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-body);
    background-image:
        radial-gradient(circle at 12% 8%, rgba(139, 92, 246, 0.16), transparent 38%),
        radial-gradient(circle at 88% 82%, rgba(167, 139, 250, 0.10), transparent 40%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

a:hover {
    color: #DDD6FE;
}

.font-mono {
    font-family: 'JetBrains Mono', Consolas, monospace;
    direction: ltr;
    unicode-bidi: embed;
}

/* --- Keyframe Animations --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseViolet {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.55);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(139, 92, 246, 0);
    }
}

@keyframes pulseGreen {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    }
    50% {
        box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
    }
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

.anim-fade-up {
    animation: fadeUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.delay-1 { animation-delay: 0.06s; }
.delay-2 { animation-delay: 0.12s; }
.delay-3 { animation-delay: 0.18s; }
.delay-4 { animation-delay: 0.24s; }

.pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    background: var(--success);
    animation: pulseGreen 2s infinite;
}

/* --- Self-Contained Grid & Utilities --- */
.container {
    width: 100%;
    max-width: 1280px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1.25rem;
    padding-left: 1.25rem;
}
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.6rem;
    margin-left: -0.6rem;
}
.row > * {
    padding-right: 0.6rem;
    padding-left: 0.6rem;
    width: 100%;
}
.g-2 > * { padding: 0.35rem; }
.g-3 > * { padding: 0.55rem; }
.g-4 > * { padding: 0.75rem; }
.col-6 { width: 50%; }
.col-12 { width: 100%; }
@media (min-width: 768px) {
    .col-md-3 { width: 25%; }
    .col-md-4 { width: 33.3333%; }
    .col-md-5 { width: 41.6667%; }
    .col-md-6 { width: 50%; }
    .col-md-7 { width: 58.3333%; }
    .col-md-8 { width: 66.6667%; }
    .col-md-12 { width: 100%; }
}
@media (min-width: 1200px) {
    .col-xl-3 { width: 25%; }
    .col-xl-4 { width: 33.3333%; }
    .col-xl-5 { width: 41.6667%; }
    .col-xl-6 { width: 50%; }
    .col-xl-7 { width: 58.3333%; }
    .col-xl-8 { width: 66.6667%; }
}

.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-none { display: none !important; }
@media (min-width: 576px) { .d-sm-flex { display: flex !important; } }
@media (min-width: 992px) { .d-lg-none { display: none !important; } .d-lg-flex { display: flex !important; } }
.flex-column { flex-direction: column !important; }
@media (min-width: 768px) { .flex-md-row { flex-direction: row !important; } .align-items-md-center { align-items: center !important; } }
.flex-wrap { flex-wrap: wrap !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-end { justify-content: flex-end !important; }
.gap-1 { gap: 0.3rem !important; }
.gap-2 { gap: 0.55rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.m-0 { margin: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-auto { margin-top: auto !important; }
.me-1 { margin-left: 0.3rem !important; }
.me-2 { margin-left: 0.55rem !important; }
.ms-1 { margin-right: 0.3rem !important; }
.ms-2 { margin-right: 0.55rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.4rem !important; }
.p-5 { padding: 2.2rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-2 { padding-top: 0.55rem !important; padding-bottom: 0.55rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.text-center { text-align: center !important; }
.text-end { text-align: left !important; }
.fw-bold { font-weight: 700 !important; }
.fw-extrabold { font-weight: 800 !important; }
.small { font-size: 0.84rem !important; }
.text-muted { color: var(--text-muted) !important; }
.text-primary { color: var(--primary) !important; }
.text-gold { color: var(--accent) !important; }
.text-success { color: var(--success) !important; }
.text-info { color: var(--info) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }
.rounded-pill { border-radius: 999px !important; }
.border-top { border-top: 1px solid var(--border-subtle) !important; }

/* --- Layout Architecture (Sidebar + Main Panel) --- */
.xm-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.xm-sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #0d0d21 0%, #13132e 100%);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.xm-sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid var(--border-subtle);
    color: #fff !important;
}

.xm-logo-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    border: 1px solid rgba(167, 139, 250, 0.5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.15rem;
    box-shadow: var(--glow-violet);
}

.xm-brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #F7F6FC;
    letter-spacing: -0.3px;
}

.xm-brand-sub {
    display: block;
    font-size: 0.72rem;
    color: var(--accent);
    font-weight: 500;
}

.xm-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 14px 12px;
}

.xm-nav-group {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    padding: 12px 12px 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    opacity: 0.85;
}

.xm-nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 14px;
    margin-bottom: 4px;
    border-radius: 11px;
    color: rgba(247, 246, 252, 0.78);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.xm-nav-item i {
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
}

.xm-nav-item:hover {
    background: rgba(139, 92, 246, 0.14);
    color: #ffffff;
    transform: translateX(-3px);
}

.xm-nav-item.active {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.32), rgba(167, 139, 250, 0.10));
    color: #ffffff;
    border-right: 3px solid var(--primary);
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.22);
}

.xm-sidebar-footer {
    padding: 12px;
    border-top: 1px solid var(--border-subtle);
}

.xm-main-wrap {
    flex: 1;
    margin-right: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
}

.xm-topbar {
    height: var(--topbar-height);
    background: rgba(17, 17, 39, 0.82);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1020;
}

body.light-mode .xm-topbar {
    background: rgba(247, 246, 252, 0.88);
}

.xm-content {
    flex: 1;
    padding: 24px;
    max-width: 1420px;
    width: 100%;
    margin: 0 auto;
}

.xm-footer {
    padding: 14px 24px;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-subtle);
}

@media (max-width: 991.98px) {
    .xm-sidebar { transform: translateX(100%); }
    .xm-sidebar.show { transform: translateX(0); }
    .xm-main-wrap { margin-right: 0; }
}

/* --- Wallet Pill in Topbar --- */
.cc-wallet-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(139, 92, 246, 0.16);
    border: 1px solid rgba(167, 139, 250, 0.38);
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}

.cc-wallet-pill:hover {
    background: rgba(139, 92, 246, 0.28);
    border-color: var(--primary);
    box-shadow: var(--glow-violet);
}

/* --- Glass Cards, Buttons, Badges --- */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    color: var(--text-main);
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    border-color: rgba(167, 139, 250, 0.42);
}

.card-header {
    background: rgba(139, 92, 246, 0.10);
    border-bottom: 1px solid var(--border-subtle);
    padding: 14px 20px;
    font-weight: 700;
}

.card-body {
    padding: 20px;
}

.stat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px -10px rgba(139, 92, 246, 0.22);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.bg-primary-subtle { background: rgba(139, 92, 246, 0.18) !important; color: #C4B5FD !important; }
.bg-success-subtle { background: rgba(16, 185, 129, 0.16) !important; color: #34D399 !important; }
.bg-info-subtle { background: rgba(56, 189, 248, 0.16) !important; color: #38BDF8 !important; }
.bg-warning-subtle { background: rgba(245, 158, 11, 0.16) !important; color: #FBBF24 !important; }
.bg-danger-subtle { background: rgba(244, 63, 94, 0.16) !important; color: #FB7185 !important; }
.bg-secondary-subtle { background: rgba(148, 163, 184, 0.14) !important; color: #CBD5E1 !important; }
.bg-purple, .bg-gold {
    background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%) !important;
    color: #ffffff !important;
    font-weight: 700;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    font-size: 0.74rem;
    font-weight: 600;
    border-radius: 999px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.86rem;
    padding: 8px 16px;
    border-radius: 11px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.79rem;
    border-radius: 9px;
}

.btn-lg {
    padding: 12px 26px;
    font-size: 0.96rem;
    border-radius: 13px;
}

.btn-primary, .btn-gold {
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    color: #ffffff !important;
    border: 1px solid rgba(167, 139, 250, 0.4);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover, .btn-gold:hover {
    background: linear-gradient(135deg, #9D74F7 0%, #7C3AED 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(139, 92, 246, 0.5);
}

.btn-success { background: #10B981; color: #fff !important; }
.btn-danger { background: #F43F5E; color: #fff !important; }
.btn-warning { background: #F59E0B; color: #111127 !important; font-weight: 700; }

.btn-outline-primary {
    background: rgba(139, 92, 246, 0.08);
    border-color: var(--primary);
    color: var(--accent) !important;
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff !important;
}

.btn-outline-info {
    background: rgba(56, 189, 248, 0.08);
    border-color: var(--info);
    color: var(--info) !important;
}
.btn-outline-info:hover {
    background: var(--info);
    color: #111127 !important;
}

.btn-outline-warning {
    background: rgba(245, 158, 11, 0.08);
    border-color: var(--warning);
    color: var(--warning) !important;
}
.btn-outline-warning:hover {
    background: var(--warning);
    color: #111127 !important;
}

.btn-outline-danger {
    background: rgba(244, 63, 94, 0.08);
    border-color: var(--danger);
    color: var(--danger) !important;
}
.btn-outline-danger:hover {
    background: var(--danger);
    color: #fff !important;
}

.btn-outline-secondary {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-main) !important;
}
.btn-outline-secondary:hover {
    background: rgba(139, 92, 246, 0.14);
    border-color: var(--accent);
}

/* --- Forms & Inputs --- */
.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-main);
}

.form-control, .form-select {
    width: 100%;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 11px;
    padding: 9px 13px;
    font-family: inherit;
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

.form-control-sm, .form-select-sm {
    padding: 6px 10px;
    font-size: 0.8rem;
    border-radius: 9px;
}

/* Progress Bar */
.progress {
    height: 9px;
    background-color: rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #6D28D9, #8B5CF6, #A78BFA);
    border-radius: 999px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Tables */
.table-responsive { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; color: var(--text-main); }
.table th, .table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-subtle);
    text-align: right;
    vertical-align: middle;
}
.table thead th {
    background: rgba(139, 92, 246, 0.12);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid transparent;
    font-size: 0.88rem;
}
.alert-danger { background: rgba(244, 63, 94, 0.14); border-color: rgba(244, 63, 94, 0.35); color: #FDA4AF; }
.alert-success { background: rgba(16, 185, 129, 0.14); border-color: rgba(16, 185, 129, 0.35); color: #6EE7B7; }
.alert-info { background: rgba(139, 92, 246, 0.14); border-color: rgba(139, 92, 246, 0.35); color: #DDD6FE; }

.theme-toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.theme-toggle-btn:hover { transform: rotate(20deg) scale(1.06); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: 13px;
    padding: 8px;
    list-style: none;
    min-width: 210px;
    z-index: 1060;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65);
}
.dropdown-menu.show { display: block; animation: fadeUp 0.2s ease both; }
.dropdown-item {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.84rem;
}
.dropdown-item:hover { background: rgba(139, 92, 246, 0.18); }
.dropdown-divider { border: 0; border-top: 1px solid var(--border-subtle); margin: 6px 0; }

/* --- Auth Pages --- */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    padding: 32px 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), var(--glow-violet);
    animation: fadeUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* --- Landing Page & Pricing Cards --- */
.cc-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(17, 17, 39, 0.84);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0;
}

.cc-hero {
    padding: 56px 0 40px;
}

.cc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.16);
    border: 1px solid rgba(167, 139, 250, 0.4);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.cc-hero-title {
    font-size: 2.45rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 16px;
    color: var(--text-main);
}

.cc-hero-title span {
    background: linear-gradient(90deg, #8B5CF6, #A78BFA, #38BDF8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cc-plan-card {
    background: linear-gradient(180deg, rgba(28, 28, 64, 0.9) 0%, rgba(19, 19, 44, 0.95) 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

body.light-mode .cc-plan-card {
    background: #ffffff;
}

.cc-plan-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: var(--glow-violet);
}

.cc-plan-card.popular {
    border: 2px solid var(--primary);
    box-shadow: var(--glow-violet);
}

.cc-plan-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent);
    margin: 10px 0;
}

.cc-spec-list {
    list-style: none;
    padding: 0;
    margin: 0 0 18px 0;
}

.cc-spec-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-subtle);
    font-size: 0.85rem;
}

/* --- Server Card & Bank Card Widget --- */
.cc-server-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cc-server-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 16px 36px -10px rgba(139, 92, 246, 0.28);
}

.cc-bank-card {
    background: linear-gradient(135deg, #1e1b4b 0%, #3b0764 55%, #4c1d95 100%);
    border: 1px solid rgba(167, 139, 250, 0.45);
    border-radius: 18px;
    padding: 20px 22px;
    color: #F7F6FC;
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(17, 17, 39, 0.55);
}

.cc-upload-zone {
    border: 2px dashed rgba(139, 92, 246, 0.45);
    background: rgba(139, 92, 246, 0.06);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    transition: all 0.2s ease;
}

.cc-upload-zone:hover {
    border-color: var(--accent);
    background: rgba(139, 92, 246, 0.12);
}

/* Circular SVG Ring Chart */
.cc-ring-wrap {
    position: relative;
    width: 66px;
    height: 66px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cc-ring-wrap svg {
    transform: rotate(-90deg);
    width: 66px;
    height: 66px;
}
.cc-ring-label {
    position: absolute;
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--text-main);
}

.receipt-thumb {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: transform 0.2s ease;
}
.receipt-thumb:hover {
    transform: scale(1.08);
}

/* Ensure instant full brightness while preserving smooth motion */
@keyframes fadeUp {
    from {
        opacity: 0.98;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.delay-1, .delay-2, .delay-3, .delay-4 {
    animation-delay: 0s !important;
}


/* --- Ticketing & CRM Chat Thread Styles --- */
.cc-chat-thread {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 540px;
    overflow-y: auto;
    padding: 6px;
}

.cc-msg-bubble {
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    position: relative;
}

.cc-msg-user {
    background: rgba(15, 15, 36, 0.75);
    border-right: 4px solid var(--info);
}

.cc-msg-admin {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.18) 0%, rgba(109, 40, 217, 0.10) 100%);
    border-right: 4px solid var(--primary);
    box-shadow: 0 8px 24px -8px rgba(139, 92, 246, 0.25);
}

.cc-canned-chip {
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(167, 139, 250, 0.32);
    color: var(--text-main);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.76rem;
    cursor: pointer;
    transition: all 0.18s ease;
}

.cc-canned-chip:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}


/* --- Granular RBAC Permission Checkboxes & Matrix --- */
.cc-perm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
}

.cc-perm-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(12, 12, 29, 0.55);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.18s ease;
    user-select: none;
}

.cc-perm-item:hover {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.10);
}

.cc-perm-item input[type="checkbox"] {
    accent-color: #8B5CF6;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.cc-perm-item.staff-mod {
    border-right: 3px solid var(--primary);
}

.cc-perm-item.client-mod {
    border-right: 3px solid var(--info);
}


/* ==========================================================================
   IronCore Cloud v7.0 — Ultra-Luxury Web Animations, Aurora Mesh & Glass 2.0
   ========================================================================== */

@keyframes auroraFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(-25px, 18px, 0) scale(1.08);
    }
}

@keyframes sheenSweep {
    0% {
        left: -120%;
    }
    35%, 100% {
        left: 140%;
    }
}

@keyframes borderGlowPulse {
    0%, 100% {
        border-color: rgba(139, 92, 246, 0.28);
        box-shadow: 0 16px 40px -10px rgba(6, 6, 20, 0.7), inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
    }
    50% {
        border-color: rgba(167, 139, 250, 0.52);
        box-shadow: 0 18px 44px -8px rgba(139, 92, 246, 0.26), inset 0 1px 0 0 rgba(255, 255, 255, 0.18);
    }
}

body::before {
    content: "";
    position: fixed;
    top: -120px;
    right: -120px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.20) 0%, rgba(109, 40, 217, 0.06) 50%, transparent 72%);
    filter: blur(45px);
    pointer-events: none;
    z-index: 0;
    animation: auroraFloat 11s ease-in-out infinite;
}

body::after {
    content: "";
    position: fixed;
    bottom: -140px;
    left: -100px;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.13) 0%, rgba(167, 139, 250, 0.06) 50%, transparent 72%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
    animation: auroraFloat 14s ease-in-out infinite reverse;
}

.xm-layout, .cc-navbar, .cc-hero, section, .auth-wrapper {
    position: relative;
    z-index: 1;
}

.card, .cc-server-card, .cc-plan-card {
    background: linear-gradient(155deg, rgba(28, 28, 64, 0.86) 0%, rgba(17, 17, 41, 0.92) 100%);
    box-shadow: 0 16px 40px -10px rgba(5, 5, 18, 0.72), inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.32s ease, box-shadow 0.32s ease;
}

body.light-mode .card, body.light-mode .cc-server-card, body.light-mode .cc-plan-card {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 244, 255, 0.98) 100%);
    box-shadow: 0 12px 32px -8px rgba(139, 92, 246, 0.14), inset 0 1px 0 0 rgba(255, 255, 255, 0.8);
}

.card:hover, .cc-server-card:hover {
    transform: translateY(-4px);
    border-color: rgba(167, 139, 250, 0.55);
    box-shadow: 0 22px 48px -12px rgba(139, 92, 246, 0.30), inset 0 1px 0 0 rgba(255, 255, 255, 0.20);
}

.btn-primary, .btn-gold {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 50%, #7C3AED 100%);
    box-shadow: 0 8px 24px -4px rgba(139, 92, 246, 0.48), inset 0 1px 0 0 rgba(255, 255, 255, 0.28);
}

.btn-primary::after, .btn-gold::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 65%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.26), transparent);
    transform: skewX(-24deg);
    animation: sheenSweep 4.5s infinite;
    pointer-events: none;
}

.xm-logo-badge {
    background: linear-gradient(135deg, #9333EA 0%, #8B5CF6 50%, #38BDF8 100%);
    box-shadow: 0 0 26px rgba(139, 92, 246, 0.55);
}

.cc-license-key-box {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.20) 0%, rgba(56, 189, 248, 0.10) 100%);
    border: 1px dashed rgba(167, 139, 250, 0.65);
    border-radius: 16px;
    padding: 18px 22px;
    animation: borderGlowPulse 3s infinite;
}


/* ==========================================================================
   IronCore Cloud v8.0 — High-Converting SaaS Landing Page Styles
   ========================================================================== */
.cc-trust-strip {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.10), rgba(56, 189, 248, 0.08), rgba(139, 92, 246, 0.10));
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 22px 0;
}

.cc-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cc-benefit-card {
    background: linear-gradient(155deg, rgba(28, 28, 64, 0.88) 0%, rgba(17, 17, 41, 0.94) 100%);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 24px 20px;
    height: 100%;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.cc-benefit-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 18px 38px -10px rgba(139, 92, 246, 0.32);
}

.cc-faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.cc-faq-item:hover {
    border-color: var(--accent);
}

.cc-faq-q {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.94rem;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: right;
}

.cc-faq-a {
    display: none;
    padding: 0 20px 16px;
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.75;
}

.cc-faq-item.open .cc-faq-a {
    display: block;
    animation: fadeUp 0.25s ease both;
}

.cc-faq-item.open .cc-faq-icon {
    transform: rotate(180deg);
}

.cc-cta-banner {
    background: linear-gradient(135deg, #2e1065 0%, #4c1d95 50%, #1e1b4b 100%);
    border: 1px solid rgba(167, 139, 250, 0.45);
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 0 24px 60px -12px rgba(139, 92, 246, 0.35);
    position: relative;
    overflow: hidden;
}

.cc-floating-card {
    animation: floatCard 5.5s ease-in-out infinite;
}


/* ==========================================================================
   IronCore Cloud v9.0 — 10Gbps Animated Cyber Grid, Marquee & Interactive Hero
   ========================================================================== */
@keyframes gridScroll {
    0% { background-position: 0 0; }
    100% { background-position: 0 48px; }
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

@keyframes waveDash {
    0% { stroke-dashoffset: 320; }
    100% { stroke-dashoffset: 0; }
}

@keyframes glowOrb {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50% { opacity: 0.95; transform: scale(1.08); }
}

.cc-hero-cyber {
    position: relative;
    overflow: hidden;
    padding: 68px 0 54px;
}

.cc-cyber-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(139, 92, 246, 0.09) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(139, 92, 246, 0.09) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 35%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 35%, transparent 100%);
    animation: gridScroll 3.5s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.cc-10g-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.22), rgba(56, 189, 248, 0.18));
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #E0F2FE;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.22);
}

.cc-os-pill {
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: rgba(12, 12, 29, 0.65);
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cc-os-pill.active, .cc-os-pill:hover {
    background: rgba(139, 92, 246, 0.28);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 14px rgba(139, 92, 246, 0.4);
}

.cc-wave-path {
    stroke-dasharray: 320;
    animation: waveDash 3s linear infinite;
}

.cc-marquee-wrap {
    overflow: hidden;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(17, 17, 39, 0.7);
    padding: 14px 0;
    white-space: nowrap;
}

.cc-marquee-track {
    display: inline-flex;
    gap: 36px;
    animation: marqueeScroll 22s linear infinite;
}

.cc-marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.cc-step-card {
    background: linear-gradient(155deg, rgba(28, 28, 64, 0.88) 0%, rgba(17, 17, 41, 0.94) 100%);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 24px 20px;
    position: relative;
    height: 100%;
    transition: all 0.28s ease;
}

.cc-step-card:hover {
    transform: translateY(-5px);
    border-color: #38BDF8;
    box-shadow: 0 16px 36px -10px rgba(56, 189, 248, 0.25);
}

.cc-step-num {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #8B5CF6, #38BDF8);
    color: #fff;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}


/* ==========================================================================
   IronCore Cloud v10.0 — Luxury Animated Auth (Login & Register)
   ========================================================================== */
@keyframes ccShake {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-9px) rotate(-0.6deg); }
    30% { transform: translateX(8px) rotate(0.6deg); }
    45% { transform: translateX(-6px); }
    60% { transform: translateX(5px); }
    75% { transform: translateX(-3px); }
}

@keyframes errPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.45); }
    50% { box-shadow: 0 0 22px 2px rgba(244, 63, 94, 0.30); }
}

.cc-auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.cc-auth-split {
    width: 100%;
    max-width: 920px;
    display: grid;
    grid-template-columns: 1fr;
    background: linear-gradient(155deg, rgba(24, 24, 54, 0.90) 0%, rgba(15, 15, 36, 0.95) 100%);
    backdrop-filter: blur(22px);
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(4, 4, 18, 0.78), 0 0 40px rgba(139, 92, 246, 0.18);
    position: relative;
    z-index: 2;
    animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@media (min-width: 860px) {
    .cc-auth-split {
        grid-template-columns: 1.05fr 0.95fr;
    }
}

.cc-auth-split.has-error {
    animation: ccShake 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
    border-color: rgba(244, 63, 94, 0.65);
}

.cc-auth-form-pane {
    padding: 36px 32px;
}

.cc-auth-visual-pane {
    background: linear-gradient(145deg, rgba(109, 40, 217, 0.28) 0%, rgba(17, 17, 39, 0.92) 100%);
    border-right: 1px solid var(--border-subtle);
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cc-auth-error-box {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.55);
    color: #FDA4AF;
    border-radius: 13px;
    padding: 12px 15px;
    font-size: 0.86rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: errPulse 2s infinite;
}

.cc-input-wrap {
    position: relative;
}

.cc-input-wrap .form-control.is-invalid-anim {
    border-color: #F43F5E !important;
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.22) !important;
}

.cc-eye-btn {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 6px;
}
.cc-eye-btn:hover { color: var(--accent); }

.cc-gender-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cc-gender-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(12, 12, 29, 0.65);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.cc-gender-card input { display: none; }

.cc-gender-card.active, .cc-gender-card:hover {
    background: rgba(139, 92, 246, 0.22);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.30);
    transform: translateY(-2px);
}


/* ==========================================================================
   IronCore Cloud v11.0 — Floating Live Chat Widget Connected to Telegram Group
   ========================================================================== */
.cc-chat-launcher {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 1090;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 60%, #38BDF8 100%);
    color: #fff;
    border: 1px solid rgba(196, 181, 253, 0.45);
    box-shadow: 0 12px 32px rgba(109, 40, 217, 0.45), 0 0 18px rgba(56, 189, 248, 0.25);
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.88rem;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.cc-chat-launcher:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 16px 38px rgba(139, 92, 246, 0.6);
}

.cc-chat-badge {
    display: none;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #F43F5E;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    align-items: center;
    justify-content: center;
}
.cc-chat-badge.show { display: inline-flex; }

.cc-chat-drawer {
    position: fixed;
    left: 24px;
    bottom: 84px;
    width: 360px;
    max-width: calc(100vw - 32px);
    height: 490px;
    max-height: calc(100vh - 110px);
    z-index: 1095;
    display: none;
    flex-direction: column;
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(22, 22, 51, 0.96) 0%, rgba(13, 13, 33, 0.98) 100%);
    backdrop-filter: blur(22px);
    border: 1px solid rgba(139, 92, 246, 0.38);
    box-shadow: 0 26px 64px rgba(4, 4, 18, 0.78), 0 0 32px rgba(139, 92, 246, 0.22);
    overflow: hidden;
}

.cc-chat-drawer.open {
    display: flex;
    animation: fadeUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.cc-chat-header {
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.26), rgba(56, 189, 248, 0.14));
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cc-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cc-chat-bubble {
    max-width: 84%;
    padding: 10px 14px;
    border-radius: 15px;
    font-size: 0.84rem;
    line-height: 1.55;
    word-break: break-word;
    animation: fadeUp 0.22s ease both;
}

.cc-chat-bubble.user {
    align-self: flex-start;
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.cc-chat-bubble.admin {
    align-self: flex-end;
    background: rgba(30, 41, 59, 0.88);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #F7F6FC;
    border-bottom-left-radius: 4px;
}

.cc-chat-meta {
    font-size: 0.68rem;
    opacity: 0.75;
    margin-bottom: 3px;
    display: block;
}

.cc-chat-footer {
    padding: 10px 12px;
    border-top: 1px solid var(--border-subtle);
    background: rgba(12, 12, 29, 0.85);
}


/* ==========================================================================
   IronCore Cloud — Animated Black Friday / Seasonal Discount Badges & Prices
   ========================================================================== */
@keyframes promoShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.cc-old-price {
    font-size: 0.92rem;
    color: var(--text-muted);
    text-decoration: line-through;
    text-decoration-color: #F43F5E;
    text-decoration-thickness: 2px;
    opacity: 0.78;
    display: inline-block;
}

.cc-promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(90deg, #F43F5E, #8B5CF6, #F59E0B, #F43F5E);
    background-size: 250% 250%;
    animation: promoShimmer 3.5s ease infinite;
    box-shadow: 0 4px 16px rgba(244, 63, 94, 0.42);
    margin: 4px 0;
}

.cc-new-price {
    font-size: 1.55rem;
    font-weight: 800;
    color: #34D399;
    text-shadow: 0 0 18px rgba(52, 211, 153, 0.35);
}
