/*
================================================================================
| ROOBUX - MOBILE STYLESHEET (COMPREHENSIVE FIX & MASSIVE EXPANSION)
================================================================================
| VERSION: 2.3 (Sidebar & Table Content Fix)
|
| Fixes: All mobile responsiveness, text overflow, box spacing, table alignment,
|        icon positioning, chart issues, notification layout, and all
|        dashboard/public page layouts for a mobile-first experience.
|
| v2.1: Fixed Notification Dropdown squishing issue by using position: fixed.
| v2.2: Fixed sidebar being hidden by 'aside' tag rule.
| v2.3: Fixed table cell content (icon + text) stacking and alignment.
================================================================================
*/

/* Apply styles only to mobile screen sizes */
@media screen and (max-width: 992px) {

/*
================================================================================
| 1. HYPER-DETAILED BASE RESET & ELEMENT DEFAULTS
================================================================================
| Resets everything for a clean slate on mobile.
*/

* {
    box-sizing: border-box;
    max-width: 100%;
}

*:before,
*:after {
    box-sizing: border-box;
}

html {
    font-size: 16px; /* Base font size */
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    background: var(--color-bg, #050508);
    color: var(--color-text-secondary, #A0AEC0);
}

/* Remove hover transforms on mobile (saves performance) */
*:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* HTML5 element resets */
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section, summary {
    display: block;
}

audio, canvas, progress, video {
    display: inline-block;
    vertical-align: baseline;
}

audio:not([controls]) {
    display: none;
    height: 0;
}

[hidden], template {
    display: none;
}

a {
    background-color: transparent;
    text-decoration: none;
    color: var(--color-primary, #00BFFF);
}
a:active, a:hover {
    outline: 0;
}
a:focus {
    outline: 2px solid var(--color-primary, #00BFFF);
    outline-offset: 2px;
}

abbr[title] {
    border-bottom: 1px dotted;
}

b, strong {
    font-weight: 600;
}

dfn {
    font-style: italic;
}

/* Typography fixes */
/* Typography fixes */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    font-weight: 600;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h1 {
    font-size: 1.75rem; /* 28px */
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.5rem; /* 24px */
    margin-bottom: 0.875rem;
}

h3 {
    font-size: 1.25rem; /* 20px */
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1rem; /* 16px */
    margin-bottom: 0.5rem;
}

h5 {
    font-size: 0.875rem; /* 14px */
    margin-bottom: 0.5rem;
}

h6 {
    font-size: 0.75rem; /* 12px */
    margin-bottom: 0.5rem;
}
mark {
    background: #ff0;
    color: #000;
}

p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

small {
    font-size: 80%;
}

sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}
sup {
    top: -0.5em;
}
sub {
    bottom: -0.25em;
}

img {
    border: 0;
    max-width: 100%;
    height: auto;
    display: block;
}

svg:not(:root) {
    overflow: hidden;
}

figure {
    margin: 1em 0;
}

hr {
    box-sizing: content-box;
    height: 1px;
    border: 0;
    background: rgba(255, 255, 255, 0.1);
    margin: 1.5rem 0;
}

pre {
    font-family: monospace, monospace;
    font-size: 1em;
    overflow: auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
}

code, kbd, pre, samp {
    font-family: monospace, monospace;
    font-size: 0.875rem;
}

button, input, optgroup, select, textarea {
    color: inherit;
    font: inherit;
    margin: 0;
    vertical-align: middle;
}

button {
    overflow: visible;
    text-transform: none;
    -webkit-appearance: button;
    cursor: pointer;
}

button[disabled], html input[disabled] {
    cursor: default;
    opacity: 0.5;
}

button::-moz-focus-inner, input::-moz-focus-inner {
    border: 0;
    padding: 0;
}

input {
    line-height: normal;
}

input[type="checkbox"], input[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

input[type="search"] {
    -webkit-appearance: textfield;
    box-sizing: content-box;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

fieldset {
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 0 1rem 0;
    padding: 1rem;
    border-radius: 8px;
}

legend {
    border: 0;
    padding: 0;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

textarea {
    overflow: auto;
    vertical-align: top;
    resize: vertical;
}

optgroup {
    font-weight: bold;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

td, th {
    padding: 0;
    text-align: left;
}

ul, ol {
    margin: 0 0 1rem 0;
    padding-left: 20px;
}

li {
    margin-bottom: 0.5rem;
}

blockquote {
    margin: 0 0 1rem 0;
    padding: 1rem;
    border-left: 4px solid var(--color-primary, #00BFFF);
    background: rgba(0, 191, 255, 0.05);
    font-style: italic;
}
blockquote p {
    margin: 0;
}

/*
================================================================================
| 2. BUTTONS & FORMS (EXPANDED)
================================================================================
*/

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    font-size: 1rem;
    min-height: 44px; /* Better touch target */
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
    border: none;
    text-decoration: none;
    white-space: nowrap;
    -webkit-user-select: none;
    user-select: none;
    text-align: center;
    line-height: 1.2;
}

.btn-primary {
    background: var(--color-primary, #00BFFF);
    color: #fff;
    border: 1px solid var(--color-primary, #00BFFF);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-danger, .btn-error {
    background: var(--color-error, #FF4444);
    color: #fff;
    border: 1px solid var(--color-error, #FF4444);
}

.btn-success {
    background: var(--color-success, #39FF14);
    color: #000;
    border: 1px solid var(--color-success, #39FF14);
}

.btn-warning {
    background: var(--color-warning, #FFD166);
    color: #000;
    border: 1px solid var(--color-warning, #FFD166);
}

.btn-outline-primary, .btn-outline {
    background: transparent;
    color: var(--color-primary, #00BFFF);
    border: 1px solid var(--color-primary, #00BFFF);
}

.btn-outline-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-error-outline,
.btn-outline-danger {
    background: transparent;
    color: var(--color-error, #FF4444);
    border: 1px solid var(--color-error, #FF4444);
}

.btn-ghost {
    background: transparent;
    color: var(--color-primary, #00BFFF);
    border: 1px solid transparent;
}

.btn-link {
    background: transparent;
    color: var(--color-primary, #00BFFF);
    border: none;
    text-decoration: underline;
    padding: 4px;
    min-height: auto;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 0.875rem;
    min-height: 36px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.125rem;
    min-height: 48px;
}

.btn-block {
    display: flex !important;
    width: 100%;
}

.btn-group {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
}
.btn-group .btn {
    border-radius: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-group .btn:last-child {
    border-right: 0;
}
.btn-group.vertical {
    flex-direction: column;
}
.btn-group.vertical .btn {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-group.vertical .btn:last-child {
    border-bottom: 0;
}

/* Form Controls */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="search"],
input[type="url"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
textarea,
select {
    font-size: 16px !important;
    padding: 12px 14px;
    min-height: 44px;
    border-radius: 8px;
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--color-border, rgba(255, 255, 255, 0.1));
    background: var(--color-bg-main, rgba(255, 255, 255, 0.05));
    color: #ffffff !important; /* Force white text color for typed value */
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Explicit placeholder styling for mobile/iOS */
.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: #A0AEC0 !important; /* Grey color */
    -webkit-text-fill-color: #A0AEC0 !important; /* iOS Override */
    opacity: 1;
}
.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary, #00BFFF);
    box-shadow: 0 0 0 2px rgba(0, 191, 255, 0.3);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

.form-group {
    margin-bottom: 16px;
    width: 100%;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-group .form-control {
    width: 100%;
}

.input-group {
    display: flex;
    width: 100%;
    flex-direction: column; /* Stack on mobile */
    gap: 8px;
}
.input-group .form-control {
    flex: 1;
    border-radius: 8px; /* Full radius */
}
.input-group .btn {
    border-radius: 8px; /* Full radius */
}
.input-group-text {
    padding: 12px 14px;
    min-height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px 8px 0 0; /* Stacked on top */
    border-bottom: 0;
}
.input-group .form-control:not(:first-child) {
    border-radius: 0 0 8px 8px;
}

/* Fix for wallet address input with icon */
.wallet-address-input-wrapper,
[class*="wallet-input"],
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.wallet-address-input-wrapper input,
[class*="wallet-input"] input,
.input-with-icon input {
    padding-left: 48px !important; /* Make room for icon */
    width: 100%;
}

.wallet-address-input-wrapper .icon,
.wallet-address-input-wrapper img,
[class*="wallet-input"] .icon,
[class*="wallet-input"] img,
.input-with-icon .icon,
.input-with-icon img {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 24px !important;
    height: 24px !important;
    pointer-events: none !important;
    z-index: 1 !important;
    margin: 0 !important;
}

/* Specific fix for Bitcoin wallet address field */
input[placeholder*="Bitcoin"],
input[placeholder*="wallet"],
input[name*="address"],
input[id*="address"] {
    padding-left: 48px !important;
}

/* Icon positioning for all cryptocurrency input fields */
.form-group:has(input[placeholder*="wallet"]) .icon,
.form-group:has(input[placeholder*="address"]) .icon,
.form-group:has(input[name*="address"]) img {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
    pointer-events: none !important;
}

/* Custom Checkbox & Radio */
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}
.form-check-input {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}
.form-check-input[type="radio"] {
    border-radius: 50%;
}
.form-check-input:checked {
    background: var(--color-primary, #00BFFF);
    border-color: var(--color-primary, #00BFFF);
}
.form-check-input:checked::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: #fff;
    transform: translate(-50%, -50%);
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.form-check-input[type="radio"]:checked::before {
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    clip-path: none;
}
.form-check-label {
    font-size: 0.9375rem;
    line-height: 1.5;
    cursor: pointer;
}

/*
================================================================================
| 3. LAYOUT & CONTAINERS
================================================================================
*/

.container {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Force single column for all grids by default */
.d-grid,
[class*="grid"],
[class*="-grid"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px;
}

/* Exceptions for specific multi-column layouts */
.stat-cards-grid,
.profile-stats,
.team-grid,
.quick-start-buttons,
.crypto-grid, /* Added crypto-grid */
.step-container, /* Added step-container */
.security-grid, /* Added security-grid */
.quick-help-grid /* Added quick-help-grid */
{
    grid-template-columns: 1fr !important; /* Force 1 column */
    gap: 16px;
}

/* 2-column exceptions */
.stat-cards-grid,
.profile-stats,
.team-grid,
.quick-start-buttons {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
}


.crypto-selector-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px;
}

.d-flex {
    display: flex !important;
}

/*
================================================================================
| 4. DASHBOARD HEADER - FIXED
================================================================================
*/

.dashboard-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 60px;
    padding: 0 12px;
    background: rgba(14, 14, 20, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.mobile-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    min-height: 40px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle span::before,
.mobile-menu-toggle span::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: #fff;
    left: 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle span::before {
    top: -8px;
}

.mobile-menu-toggle span::after {
    bottom: -8px;
}


/* Welcome Message - CRITICAL FIX */
.welcome-message {
    flex: 1;
    min-width: 0;
    padding: 0 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.welcome-message h1 {
    font-size: 0.8125rem; /* 13px */
    font-weight: 600;
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.welcome-message p {
    font-size: 0.6875rem; /* 11px */
    margin: 0;
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.dashboard-header-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.dashboard-header-right .btn-sm {
    display: none !important; /* Hide desktop "Make Deposit" button */
}

.notification-btn,
.user-avatar-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    aspect-ratio: 1 / 1 !important; /* Forces a perfect 1:1 square ratio, which makes 50% radius a perfect circle */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    box-sizing: border-box !important;
}

.notification-btn {
    color: var(--color-primary); /* Changed from Gold */
}

.notification-btn .icon,
.notification-btn svg {
    font-size: 1.25rem;
    width: 20px;
    height: 20px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
/*
================================================================================
| 5. DASHBOARD SIDEBAR (THE "THREE LINE MENU") - FIXED
================================================================================
*/

.dashboard-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    max-width: 80vw;
    z-index: 950;
    background: #14141C; /* Solid background */
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-sidebar.is-visible {
    transform: translateX(0);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 949;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.is-visible {
    display: block;
    opacity: 1;
}

.sidebar-header {
    padding: 16px;
    height: 60px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.sidebar-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary, #00BFFF);
}

.sidebar-nav {
    padding: 16px;
    flex-grow: 1;
}
.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-nav li {
    margin: 0 0 4px 0;
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 8px;
    color: #E0E0E0;
    min-height: 44px;
}
.sidebar-nav a.active, .sidebar-nav a:hover {
    background: rgba(0, 191, 255, 0.1);
    color: var(--color-primary, #00BFFF);
}
.sidebar-nav a .nav-icon {
    font-size: 1.25rem;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/*
================================================================================
| 6. PUBLIC PAGE HEADER & NAV (THE *OTHER* "THREE LINE MENU")
================================================================================
*/

.main-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 60px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(14, 14, 20, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
}

.header-logo {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-primary, #00BFFF);
    text-decoration: none;
    z-index: 1002;
    flex-shrink: 0;
}
.header-logo strong { color: #fff; }
.header-logo span { color: var(--color-primary); }

.header-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    z-index: 1002;
}

.header-actions .btn-sm {
    padding: 6px 12px;
    font-size: 0.8125rem;
    min-height: 36px;
}

.header-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(14, 14, 20, 0.98);
    backdrop-filter: blur(10px);
    padding: 0;
    z-index: 1001;
    overflow: visible;
    max-height: 0;
    transition: max-height 0.3s ease-out;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.header-nav.is-visible {
    display: block;
    max-height: 500px;
}
.header-nav ul {
    flex-direction: column;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}
.header-nav li {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.header-nav li:last-child {
    border-bottom: none;
}
.header-nav a {
    display: block;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0;
    transition: background 0.2s ease;
}
.header-nav a:hover,
.header-nav a.active {
    background: rgba(0, 191, 255, 0.1);
    color: var(--color-primary);
    border-bottom: none;
}
.mobile-nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent !important;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 0;
    min-height: 40px;
}
/* Smaller hamburger lines */
.mobile-nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-nav-toggle span::before,
.mobile-nav-toggle span::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: #fff;
    left: 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-nav-toggle span::before {
    top: -6px;
}

.mobile-nav-toggle span::after {
    bottom: -6px;
}
/* Active state (The "X" cross icon) */
.mobile-nav-toggle.is-active span {
    background: #fff;
    width: 20px;
    height: 2px;
    transform: rotate(45deg);
}

.mobile-nav-toggle.is-active span::before {
    opacity: 0;
}

.mobile-nav-toggle.is-active span::after {
    top: 0;
    bottom: auto;
    transform: rotate(-90deg);
}
.mobile-nav-toggle.is-active span {
    background: black;
}

.mobile-nav-toggle.is-active span::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-nav-toggle.is-active span::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* Section headers - pixel perfect */
/* Section headers - Fixed vertical stacking for mobile */
.section-header,
.dashboard-section-header,
[class*="section-header"] {
    display: flex !important;
    flex-direction: column !important; /* Stacks them top-to-bottom */
    align-items: flex-start !important; /* Aligns them to the left. Change to 'center' if preferred */
    justify-content: center !important;
    gap: 12px !important; /* Professional spacing between the badge and the text */
    margin-bottom: 24px !important;
    padding: 0 !important;
    min-height: auto !important;
    width: 100% !important;
    text-align: left !important; /* Ensures text itself is left-aligned */
}

/* Ensure the big text doesn't overflow */
.section-header h1, .section-header h2, .section-header h3,
.dashboard-section-header h2 {
    width: 100% !important;
    white-space: normal !important;
    line-height: 1.3 !important;
}

.section-header h2,
.section-header h3,
.section-header h4,
.dashboard-section-header h2,
.dashboard-section-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.section-header a,
.section-header .btn {
    flex-shrink: 0;
    font-size: 0.875rem;
    white-space: nowrap;
    text-decoration: none;
    color: var(--color-primary, #00BFFF);
    font-weight: 500;
}

/*
================================================================================
| 7. DASHBOARD CONTENT & STATS
================================================================================
*/

.dashboard-main {
    width: 100%;
    padding: 0;
    overflow-x: hidden;
}

.dashboard-content {
    padding: 16px;
    padding-bottom: 40px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* 2x2 Grid for Stats */
.stat-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
    margin: 20px 0;
    width: 100%;
}

.stat-card {
    padding: 14px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.stat-card-header {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-card-header h4 {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    line-height: 1.3;
}

.stat-card-icon {
    font-size: 1rem;
    opacity: 0.7;
    flex-shrink: 0;
}

.stat-card-value {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 8px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.stat-card-footer {
    font-size: 0.6875rem;
    opacity: 0.8;
    margin-top: auto;
    line-height: 1.3;
}
/*
================================================================================
| 8. PERFORMANCE CHART & SECTION HEADERS
================================================================================
*/

.performance-section,
.chart-section {
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 8px;
}

.section-header h2,
.section-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.dashboard-grid-main {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px;
}

.chart-container {
    width: 100%;
    height: 250px;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.chart-container canvas {
    max-width: 100% !important;
    max-height: 100% !important;
    width: 100% !important;
    height: 100% !important;
}

.tabs-sm {
    display: flex;
    width: 100%;
    background: transparent;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    margin-bottom: 16px;
}

.tab-btn {
    flex: 1;
    padding: 12px 8px;
    font-size: 0.875rem;
    min-height: 44px;
    background: rgba(255, 255, 255, 0.02);
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.tab-btn:last-child {
    border-right: none;
}

.tab-btn.active {
    background: var(--color-primary, #00BFFF);
    color: #000;
    font-weight: 600;
}

.price-widget-card {
    display: flex;
    flex-direction: column;
    height: 300px;
    padding: 16px;
}

.price-widget-header {
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.price-widget-header h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.price-widget-list {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex-grow: 1;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.crypto-price-item {
    display: grid !important;
    grid-template-columns: 1fr auto auto !important;
    gap: 10px !important;
    padding: 4px 0;
}

.crypto-price-item .name {
    font-size: 0.875rem;
}

.crypto-price-item .icon {
    width: 20px;
    height: 20px;
}

.crypto-price-item .price {
    font-size: 0.875rem;
}

.crypto-price-item .change {
    font-size: 0.875rem;
    min-width: 55px;
}

/*
================================================================================
| FIXED NOTIFICATION DROPDOWN FOR MOBILE (v2.1)
================================================================================
*/

.notification-bell {
    position: static !important; /* Stops the dropdown from trying to stay inside the small bell container */
}

.notification-dropdown {
    position: fixed !important;
    top: 75px !important; /* Just below the 60px mobile header + gap */
    left: 16px !important;
    right: 16px !important;
    width: auto !important; /* Override the fixed 380px desktop width */
    max-width: 500px !important; /* Prevent it from getting too wide on tablets */
    margin: 0 auto !important; /* Center it if it hits max-width */
    max-height: 70vh !important; /* Prevent it from going off the bottom of the screen */
    overflow-y: auto !important;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.6) !important;
    border: 1px solid var(--color-primary) !important; /* Make it pop slightly more on mobile */
    z-index: 1100 !important; /* Ensure it's on top of everything */
}
/* END NOTIFICATION FIX */


.notifications-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 16px;
}

.notifications-header h2 {
    font-size: 1.5rem;
    text-align: center;
    margin: 0;
}

.notifications-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.notifications-actions .form-control {
    flex: 1;
    min-width: 0;
    font-size: 0.875rem;
    padding: 8px 12px;
    min-height: 40px;
}

.notifications-actions .btn {
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 0.875rem;
    min-height: 40px;
}

.notification-card {
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 12px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.notification-card.unread {
    background: rgba(0, 191, 255, 0.05);
    border-color: rgba(0, 191, 255, 0.2);
}

.notification-header { /* This is for the card, not the page */
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.notification-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 1.125rem;
    background: rgba(255, 255, 255, 0.05);
}

.notification-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.notification-content h5 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0 0 6px 0;
    word-wrap: break-word;
    line-height: 1.4;
}

.notification-content p {
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
    opacity: 0.9;
    word-wrap: break-word;
}

.notification-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    gap: 8px;
    flex-wrap: wrap;
}

.notification-time {
    font-size: 0.75rem;
    opacity: 0.6;
    white-space: nowrap;
}

.notification-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.notification-actions .btn {
    padding: 6px 12px;
    font-size: 0.75rem;
    min-height: 32px;
}

/*
================================================================================
| 10. TABLES - STACKED/CARD VIEW (COMPLETE REWRITE - TEXT PLACEMENT FIX)
================================================================================
| Fixed all heading text issues and proper sizing/placement for mobile.
*/

.table-wrapper {
    width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
    margin: 0 0 20px 0;
    padding: 0;
}

.responsive-table {
    width: 100%;
    min-width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
}

.responsive-table thead {
    display: none;
}

.responsive-table tbody {
    display: block;
    width: 100%;
}

.responsive-table tr {
    display: block;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 16px;
    padding: 0;
    background: rgba(255, 255, 255, 0.02);
    overflow: visible;
    box-sizing: border-box;
}

/* Each TD is a row within the card */
.responsive-table td {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 14px 16px;
    font-size: 0.9375rem;
    white-space: normal;
    word-break: break-word;
    border: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    text-align: center;
    min-height: 60px;
    width: 100%;
    box-sizing: border-box;
}

.responsive-table td:last-child {
    border-bottom: none;
}

/* The Label (data-label attribute) */
.responsive-table td::before {
    content: attr(data-label);
    display: block;
    width: 100%;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    text-align: center;
    line-height: 1.3;
}

/* Value content wrapper */
.responsive-table td > * {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Text with crypto icons */
.responsive-table td .text-crypto {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    color: var(--color-text-primary);
    flex-wrap: nowrap;
}

/* Icons inside table cells */
.responsive-table td img,
.responsive-table td .icon,
.responsive-table td svg {
    display: inline-block !important;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    margin: 0;
    flex-shrink: 0;
}

/* Badges */
.responsive-table td .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
    white-space: nowrap;
}

/* Progress bars */
.responsive-table td .progress-bar {
    max-width: 150px;
    width: 100%;
    display: block;
    margin-top: 6px;
}

/* Empty state */
.empty-table-state {
    text-align: center;
    padding: 32px 16px;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.empty-table-state .btn-link {
    font-size: 0.9375rem;
    margin-top: 12px;
}
/*
================================================================================
| 11. CARDS & SECTIONS
================================================================================
*/

.card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.card-header,
.bonus-structure-card .card-header,
.referral-bonus-card .card-header,
.referral-stats-card .card-header,
.referral-link-card .card-header {
    /* Increased top padding to 20px for professional spacing */
    padding: 20px 16px 16px 16px !important;
    /* Forces the header to fill the entire gap horizontally */
    width: 100% !important;
    max-width: 100% !important;
    /* formatting for perfect centering */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    /* Borders and margins */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin: 0 0 16px 0 !important;
    gap: 10px !important;
    box-sizing: border-box !important;
}
.card-header h2,
.card-header h3,
.card-header h4,
.bonus-structure-card h2,
.bonus-structure-card h3,
.referral-bonus-card h2,
.referral-bonus-card h3,
.referral-stats-card h2,
.referral-stats-card h3,
.referral-link-card h2,
.referral-link-card h3 {
    margin: 0 !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    width: 100% !important;
    line-height: 1.3 !important;
}

.card-header a,
.card-header .btn,
.card-header button {
    margin: 0 !important;
    text-align: center !important;
}

.card-body {
    padding: 0;
}

.card-footer {
    padding: 14px 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 14px;
}
/*
================================================================================
| 12. REFERRAL PAGE - FIXED
================================================================================
*/

.referral-hero {
    padding: 24px 16px;
    text-align: center;
}
.referral-hero h1 { 
    font-size: 1.75rem;
    overflow: visible;
    white-space: normal;
}
.referral-hero p { 
    font-size: 1rem;
    overflow: visible;
}

/* Referral card headers */
.referral-link-card .card-header,
.referral-stats-card .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 14px;
}

.referral-link-card {
    padding: 16px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.referral-link-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
}

.referral-link-input-group input {
    flex: 1;
    font-size: 0.875rem;
    padding: 12px 14px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.referral-link-input-group .btn {
    width: 100%;
}

.referral-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px;
    width: 100%;
    max-width: 100%;
}

.referral-column-main,
.referral-column-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.promo-template {
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.promo-template-box,
.promo-text-box {
    padding: 12px !important;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin: 0 0 12px 0 !important;
    width: calc(100% - 8px) !important;
    max-width: calc(100vw - 40px) !important;
    overflow: hidden;
    box-sizing: border-box !important;
}

.promo-template-box textarea,
.promo-text-box textarea {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100px;
    padding: 10px !important;
    font-size: 0.75rem !important;
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: inherit;
    font-family: inherit;
    resize: vertical;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow-x: auto;
    white-space: pre-wrap;
    box-sizing: border-box !important;
}

.promo-template-box button,
.promo-text-box button {
    width: 100%;
    margin-top: 12px;
}

.list-disc-inside {
    font-size: 0.875rem;
    line-height: 1.7;
    padding-left: 20px;
}

/*
================================================================================
| REFERRAL BONUS STRUCTURE - FIXED
================================================================================
*/

.bonus-structure-card,
.referral-bonus-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.bonus-structure-card h3,
.referral-bonus-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}
.bonus-item,
.referral-bonus-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bonus-item:last-child,
.referral-bonus-item:last-child {
    border-bottom: none;
}

.bonus-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 191, 255, 0.1);
    font-size: 1.5rem;
}

.bonus-details,
.bonus-content {
    flex: 1;
    min-width: 0;
}

.bonus-details h4,
.bonus-content h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.bonus-details .bonus-percentage {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary, #00BFFF);
    display: block;
    margin: 4px 0;
}

.bonus-details p,
.bonus-content p {
    font-size: 0.8125rem;
    margin: 0;
    opacity: 0.8;
    line-height: 1.4;
}

.promotional-text-section {
    margin-top: 16px;
}

.promotional-text-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 12px 0;
}


/*
================================================================================
| 13. SUPPORT CHAT - FIXED
================================================================================
*/

.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 60px); /* Full height minus header */
    max-height: calc(100vh - 60px);
    border-radius: 0;
    overflow: hidden;
    width: 100%;
    padding: 0;
    background-color: var(--color-bg-card);
}

.chat-header {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 60px;
}

.chat-header img,
.chat-header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}

.chat-header h3,
.chat-header-info h4 {
    font-size: 1rem;
    margin: 0;
    flex: 1;
}

.chat-messages {
    flex: 1; /* This makes it fill the space */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message, .chat-message {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 85%;
    animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user-message,
.chat-message.message-user {
    align-self: flex-end;
}

.message.assistant-message,
.chat-message.message-admin,
.chat-message.message-system {
    align-self: flex-start;
}

.message-avatar {
   display: none; /* Hide avatars on mobile */
}

.message-content {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9375rem;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.message-timestamp {
    font-size: 0.6875rem;
    opacity: 0.7;
    padding: 0 8px;
}

.message-user .message-content {
    background: var(--color-primary, #00BFFF);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.message-user .message-timestamp {
    text-align: right;
}

.message-admin .message-content {
    background: rgba(255, 255, 255, 0.05);
    border-bottom-left-radius: 4px;
}
.message-admin .message-timestamp {
    text-align: left;
}


.message-system .message-content {
    align-self: center;
    background: transparent;
    font-size: 0.8125rem;
    text-align: center;
    max-width: 100%;
}

.quick-start-buttons {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
    padding: 12px 0 0 0;
    flex-shrink: 0;
}

.quick-start-buttons .btn {
    font-size: 0.8125rem;
    padding: 10px 12px;
    min-height: 40px;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
}

.chat-input-area {
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    background: rgba(20, 20, 28, 0.95);
}

.chat-input-form {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.chat-input-form textarea {
    flex: 1;
    min-height: 44px;
    max-height: 120px;
    resize: none;
    padding: 12px 14px;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 22px; /* Rounded pill shape */
}

.chat-input-form .btn {
    width: 44px;
    height: 44px;
    padding: 0;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}
.chat-input-form .btn .icon {
    font-size: 1.25rem;
}

/*
================================================================================
| 14. DEPOSIT PAGE
================================================================================
*/

.wizard-container {
    padding: 0;
}

.wizard-progress {
    padding: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    background: rgba(255,255,255,0.02);
}

.progress-step {
    flex: 1;
    min-width: 100px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.progress-step-number {
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
    margin-bottom: 6px;
}

.progress-step.active .progress-step-number {
    transform: scale(1.05);
}

.progress-step span {
    font-size: 0.6875rem;
    text-align: center;
    white-space: nowrap;
    max-width: 100px;
    line-height: 1.3;
}

.progress-step:not(:first-child)::before {
    top: 18px;
}

.wizard-content {
    padding: 16px;
    width: 100%;
}

.crypto-selector-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px;
    width: 100%;
}

.crypto-select-card {
    padding: 12px 8px;
    border-radius: 10px;
    min-height: 44px;
}

.crypto-select-card.selected::before {
    width: 18px;
    height: 18px;
    font-size: 0.75rem;
}

.crypto-select-card img {
    width: 32px;
    height: 32px;
    margin: 0 auto 6px;
}

.crypto-select-card h5 {
    font-size: 0.8125rem;
    margin: 0 0 2px 0;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}

.crypto-select-card p {
    font-size: 0.6875rem;
    overflow: visible;
    white-space: nowrap;
}
.wizard-nav {
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wizard-nav .btn {
    width: 100%;
}

#qrcode-container,
.qr-code-container {
    width: 200px;
    height: 200px;
    margin: 16px auto;
    padding: 12px;
    border-radius: 10px;
}
#qrcode-container img,
#qrcode-container canvas {
    border-radius: 6px;
}

.address-box {
    flex-direction: column;
    gap: 10px;
    padding: 12px;
}
.address-box code {
    font-size: 0.8125rem;
    text-align: center;
}
.address-box .btn {
    width: 100%;
}

.instructions-list {
    margin-top: 20px;
}
.instructions-list li {
    padding: 12px;
    font-size: 0.875rem;
    gap: 8px;
}
.instructions-list li::before {
    font-size: 1.125rem;
}

.payment-summary {
    padding: 16px;
}
.payment-summary .text-primary {
    font-size: 1.25rem;
}

/*
================================================================================
| 15. WITHDRAW & PACKAGES PAGES
================================================================================
*/

.balance-header-card {
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
    gap: 16px;
    width: 100%;
}
.balance-card {
    padding: 20px 16px;
    text-align: center;
    margin-bottom: 20px;
}

.balance-info {
    text-align: center;
}

.balance-info h4,
.balance-card h4 {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    opacity: 0.7;
}

.balance-info .balance-amount,
.balance-card .balance-amount {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff !important; /* Force white for visibility */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); /* Better contrast on gradient */
}
.balance-action .btn {
    width: 100%;
}

.withdraw-grid,
.invest-form.card {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px;
    padding: 16px;
}

.info-panel {
    padding: 16px;
}
.info-panel h4 {
    font-size: 1.125rem;
}
.info-panel li {
    font-size: 0.875rem;
    gap: 10px;
}
.info-panel li .icon {
    font-size: 1.125rem;
    margin-top: 2px;
}

.invest-form {
    padding: 0;
}

.invest-details {
    padding: 20px 16px;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 16px;
}

.details-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px;
    margin-bottom: 16px;
}

.detail-item {
    text-align: center;
    padding: 14px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

.detail-item span {
    font-size: 0.75rem;
    display: block;
    margin-bottom: 6px;
    opacity: 0.7;
}

.detail-item strong {
    font-size: 1.25rem;
    font-weight: 700;
    display: block;
    margin-top: 4px;
}

/*
================================================================================
| 16. PROFILE PAGE - FIXED
================================================================================
*/

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    gap: 12px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 12px;
    object-fit: cover;
    border: 3px solid var(--color-primary, #00BFFF);
}

.profile-info h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    word-break: break-all;
}

.profile-info-email,
.profile-info-sub {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.profile-info-sub {
    word-break: break-all;
}

.badge {
    padding: 4px 10px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 12px;
    min-height: auto;
}
.badge-success { background: rgba(0, 255, 0, 0.1); color: #00FF00; }
.badge-warning { background: rgba(255, 165, 0, 0.1); color: #FFA500; }
.badge-error { background: rgba(255, 68, 68, 0.1); color: #FF4444; }
.badge-primary { background: rgba(0, 191, 255, 0.1); color: #00BFFF; }
.badge-secondary { background: rgba(255, 255, 255, 0.1); color: #fff; }


.profile-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px;
}

.info-list,
.toggle-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li,
.toggle-list li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    gap: 8px;
}

.info-list li:last-child,
.toggle-list li:last-child {
    border-bottom: none;
}

.info-list .label {
    font-size: 0.875rem;
    opacity: 0.7;
    flex-shrink: 0;
}

.info-list .value {
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: left;
    word-wrap: break-word;
    max-width: 100%;
}

.toggle-list li {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.toggle-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.toggle-label strong {
    font-size: 0.9375rem;
    font-weight: 600;
}

.toggle-label small {
    font-size: 0.75rem;
    opacity: 0.7;
    line-height: 1.3;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 28px;
    display: inline-block;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    border-radius: 28px;
}

.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .slider {
    background-color: var(--color-primary, #00BFFF);
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(22px);
}

/*
================================================================================
| 17. PUBLIC PAGES - FIXED
================================================================================
*/

#hero {
    min-height: 60vh;
    padding: 40px 0 32px;
    display: flex;
    align-items: center;
}

.hero-content {
    text-align: center;
    width: 100%;
}

.hero-content h1 {
    font-size: 2rem;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 24px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.hero-actions .btn {
    width: 100%;
}

.trust-indicators {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#packages-grid,
.packages-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px;
}

.package-card {
    width: 100%;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.package-card-header {
    padding: 20px 16px;
    text-align: center;
}
.package-card-header h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}
.package-card-header .price,
.package-price {
    font-size: 1rem;
    font-weight: 500;
}

.package-return {
    font-size: 2rem;
    font-weight: 700;
}
.package-return span {
    font-size: 0.875rem;
}


.package-card-body {
    padding: 20px 16px;
    flex: 1;
}
.package-card-body ul,
.package-features {
    list-style: none;
    padding: 0;
    margin: 0;
}
.package-card-body li,
.package-features li {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.875rem;
    margin-bottom: 12px;
}
.package-card-body li::before,
.package-features li::before {
    content: '✓';
    font-weight: 700;
    color: var(--color-success, #00FF00);
    flex-shrink: 0;
}

.package-card-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.package-card-footer .btn {
    width: 100%;
}

#features-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px;
}

.feature-card {
    text-align: center;
    padding: 24px 16px;
}
.feature-card .icon,
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: var(--color-primary, #00BFFF);
}
.feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}
.feature-card p {
    font-size: 0.875rem;
    opacity: 0.8;
}

.calculator-wrapper,
.roi-calculator {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.calculator-form {
    padding: 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.calculator-form .section-header {
    text-align: left;
    padding: 0;
}

.calculator-results,
.roi-output {
    padding: 20px 16px;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px;
}

.roi-output-card {
    padding: 16px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

.roi-output-card label {
    font-size: 0.75rem;
    display: block;
    margin-bottom: 6px;
    opacity: 0.7;
}

.roi-output-card .value {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    margin-top: 4px;
}

.contact-info-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px;
}

.contact-form-container {
    padding: 16px;
}

.contact-form-container .d-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px;
}

.tab-nav {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    gap: 0;
    padding: 0;
    margin-bottom: 16px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.tab-nav-btn {
    font-size: 0.9375rem;
    padding: 12px 20px;
    flex-shrink: 0;
    white-space: nowrap;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    min-height: 48px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    bottom: -2px;
}

.tab-nav-btn.active {
    background: transparent;
    color: var(--color-primary, #00BFFF);
    border-bottom-color: var(--color-primary, #00BFFF);
    font-weight: 600;
}

.tab-nav-btn:hover:not(.active) {
    color: rgba(255, 255, 255, 0.9);
}
.legal-content {
    display: block !important;
    padding: 16px;
}

.legal-toc {
    display: none !important;
}

.legal-text {
    width: 100%;
}

.legal-text h2 {
    font-size: 1.25rem;
    margin-top: 24px;
    margin-bottom: 12px;
}

.legal-text h3 {
    font-size: 1.0625rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

.legal-text p,
.legal-text li {
    font-size: 0.875rem;
    line-height: 1.7;
}

.team-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px;
}

.team-card {
    padding: 16px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.team-card img {
    width: 70px;
    height: 70px;
    margin: 0 auto 10px;
    border-radius: 50%;
}

.team-card h4 {
    font-size: 0.9375rem;
    margin-bottom: 4px;
}

.team-card p {
    font-size: 0.8125rem;
}

.timeline, .timeline-wrapper {
    padding: 0;
}
.timeline::before {
    display: none;
}
.timeline-item {
    width: 100%;
    padding: 0;
    left: 0 !important;
    text-align: left !important;
    margin-bottom: 20px;
}
.timeline-item::after {
    display: none;
}
.timeline-content {
    padding: 16px;
}
.timeline-content h3 {
    font-size: 1.25rem;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}
.step-number {
    top: 16px;
    left: 16px;
    transform: none;
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
}
/* --- FIX: How It Works Steps (Middle Left Icons) --- */
/* --- FIX 1: How It Works Steps - Fixed Icons --- */
/* --- AGGRESSIVE FIX: How It Works Steps --- */
/* Force the card to be a simple flex container */
/* Force the card itself to be a flex row */
[class*="step-card"],
.step-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;     /* <--- THIS forces vertical centering */
    justify-content: flex-start !important;
    padding: 20px 16px !important;
    gap: 16px !important;
    min-height: auto !important;
}
[class*="step-number"],
.step-number {
    position: static !important;
    margin: 0 !important;
    transform: none !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important; /* Prevents squishing if text is long */
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.step-content {
    flex: 1 !important;
    align-self: center !important; /* Double ensures it stays centered with icon */
}
/* --- FIX 3: Slim Live Price Strip --- */
.tradingview-widget-container,
.ticker-container,
[class*="ticker-wrap"] {
    height: 40px !important; /* Force a slim fixed height */
    min-height: 40px !important;
    max-height: 40px !important;
    overflow: hidden !important;
}

/* Target the actual scrolling items if accessible */
.ticker-item,
[class*="ticker-item"] {
    padding: 0 12px !important;
    font-size: 0.8125rem !important; /* Smaller text for the strip */
    display: flex !important;
    align-items: center !important;
    height: 40px !important;
}

/* --- FIX: Major Cryptocurrency Cards (Fully visible text) --- */
/* --- FIX 2: Compact Crypto Cards for Mobile --- */
/* --- REFINED FIX: Crypto Cards (Icon + Name Only) --- */
[class*="crypto-card"],
.supported-crypto-Card {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important; /* Aligns icon and name neatly to the left */
    padding: 14px !important;
    gap: 12px !important;
    /* Remove grid columns to allow flexbox to handle layout */
    grid-template-columns: unset !important;
}

/* Icon Styling */
[class*="crypto-card"] img,
[class*="crypto-card"] svg,
.supported-crypto-Card img {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    object-fit: contain !important;
    margin: 0 !important;
}

/* Name Container Styling */
[class*="crypto-card"] .crypto-info,
[class*="crypto-card"] .name-info,
.supported-crypto-Card .meta {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    width: auto !important;
    margin: 0 !important;
}

/* Name Text Styling */
[class*="crypto-card"] strong,
[class*="crypto-card"] h4 {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

/* HIDE PRICES AND TICKERS (NICKNAMES) TO PREVENT OVERLAP */
[class*="crypto-card"] .crypto-info span, /* Ticker (e.g. BTC) */
[class*="crypto-card"] .name-info span,   /* Legacy Ticker */
[class*="crypto-card"] .crypto-price,     /* Price & Change Block */
[class*="crypto-card"] .price-info,       /* Legacy Price Block */
.supported-crypto-Card .code,
.supported-crypto-Card .pricing,
.supported-crypto-Card .change {
    display: none !important;
}


.infrastructure-section {
    grid-template-columns: 1fr !important;
}
.infrastructure-logo {
    max-width: 250px;
    margin-top: 20px;
}

/*
================================================================================
| 18. ALERTS & MESSAGES
================================================================================
*/

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 0.875rem;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-info {
    background: rgba(0, 191, 255, 0.1);
    border: 1px solid rgba(0, 191, 255, 0.3);
    color: #00BFFF;
}

.alert-success {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #00FF00;
}

.alert-warning {
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid rgba(255, 165, 0, 0.3);
    color: #FFA500;
}

.alert-error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: #FF4444;
}

/*
================================================================================
| 19. MODALS
================================================================================
*/

.modal {
    padding: 0;
    align-items: flex-end; /* Start from bottom */
}

.modal-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 16px 16px 0 0; /* Rounded top corners */
    max-height: 90vh;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.modal-header {
    padding: 16px;
}
.modal-body {
    padding: 16px;
}

.modal-footer {
    padding: 16px;
    flex-direction: column;
    gap: 10px;
}
.modal-footer .btn {
    width: 100%;
}

/*
================================================================================
| 20. FOOTER
================================================================================
*/

.main-footer {
    padding: 32px 16px;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 16px;
    margin-bottom: 24px;
}

.footer-links a {
    font-size: 0.875rem;
    padding: 6px 10px;
    min-height: 44px;
}

.footer-bottom {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.8125rem;
    opacity: 0.7;
    margin: 0;
}
/*
================================================================================
| 21. UTILITY CLASSES (EXPANDED)
================================================================================
*/

.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }
.d-inline-block { display: inline-block !important; }

.flex-column { flex-direction: column !important; }
.flex-column-reverse { flex-direction: column-reverse !important; }
.flex-row { flex-direction: row !important; }
.flex-row-reverse { flex-direction: row-reverse !important; }
.flex-wrap { flex-wrap: wrap !important; }

.justify-content-start { justify-content: flex-start !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-around { justify-content: space-around !important; }

.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.align-items-center { align-items: center !important; }
.align-items-baseline { align-items: baseline !important; }
.align-items: stretch { align-items: stretch !important; }

.flex-grow-0 { flex-grow: 0 !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }
.flex-shrink-1 { flex-shrink: 1 !important; }

.w-100 { width: 100% !important; }
.w-auto { width: auto !important; }
.w-50 { width: 50% !important; }
.w-25 { width: 25% !important; }
.w-75 { width: 75% !important; }

.h-100 { height: 100% !important; }
.h-auto { height: auto !important; }
.h-screen { height: 100vh !important; }

.mw-100 { max-width: 100% !important; }
.mh-100 { max-height: 100% !important; }

/* Margins */
.m-0 { margin: 0 !important; }
.m-1 { margin: 4px !important; }
.m-2 { margin: 8px !important; }
.m-3 { margin: 12px !important; }
.m-4 { margin: 16px !important; }
.m-auto { margin: auto !important; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 4px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 12px !important; }
.mt-4 { margin-top: 16px !important; }
.mt-auto { margin-top: auto !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 4px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 12px !important; }
.mb-4 { margin-bottom: 16px !important; }
.mb-auto { margin-bottom: auto !important; }
.ml-0, .ms-0 { margin-left: 0 !important; }
.ml-1, .ms-1 { margin-left: 4px !important; }
.ml-2, .ms-2 { margin-left: 8px !important; }
.ml-3, .ms-3 { margin-left: 12px !important; }
.ml-4, .ms-4 { margin-left: 16px !important; }
.ml-auto, .ms-auto { margin-left: auto !important; }
.mr-0, .me-0 { margin-right: 0 !important; }
.mr-1, .me-1 { margin-right: 4px !important; }
.mr-2, .me-2 { margin-right: 8px !important; }
.mr-3, .me-3 { margin-right: 12px !important; }
.mr-4, .me-4 { margin-right: 16px !important; }
.mr-auto, .me-auto { margin-right: auto !important; }
.mx-0 { margin-left: 0 !important; margin-right: 0 !important; }
.mx-1 { margin-left: 4px !important; margin-right: 4px !important; }
.mx-2 { margin-left: 8px !important; margin-right: 8px !important; }
.mx-3 { margin-left: 12px !important; margin-right: 12px !important; }
.mx-4 { margin-left: 16px !important; margin-right: 16px !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
.my-1 { margin-top: 4px !important; margin-bottom: 4px !important; }
.my-2 { margin-top: 8px !important; margin-bottom: 8px !important; }
.my-3 { margin-top: 12px !important; margin-bottom: 12px !important; }
.my-4 { margin-top: 16px !important; margin-bottom: 16px !important; }
.my-auto { margin-top: auto !important; margin-bottom: auto !important; }

/* Paddings */
.p-0 { padding: 0 !important; }
.p-1 { padding: 4px !important; }
.p-2 { padding: 8px !important; }
.p-3 { padding: 12px !important; }
.p-4 { padding: 16px !important; }
.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: 4px !important; }
.pt-2 { padding-top: 8px !important; }
.pt-3 { padding-top: 12px !important; }
.pt-4 { padding-top: 16px !important; }
.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: 4px !important; }
.pb-2 { padding-bottom: 8px !important; }
.pb-3 { padding-bottom: 12px !important; }
.pb-4 { padding-bottom: 16px !important; }
.pl-0, .ps-0 { padding-left: 0 !important; }
.pl-1, .ps-1 { padding-left: 4px !important; }
.pl-2, .ps-2 { padding-left: 8px !important; }
.pl-3, .ps-3 { padding-left: 12px !important; }
.pl-4, .ps-4 { padding-left: 16px !important; }
.pr-0, .pe-0 { padding-right: 0 !important; }
.pr-1, .pe-1 { padding-right: 4px !important; }
.pr-2, .pe-2 { padding-right: 8px !important; }
.pr-3, .pe-3 { padding-right: 12px !important; }
.pr-4, .pe-4 { padding-right: 16px !important; }
.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-1 { padding-left: 4px !important; padding-right: 4px !important; }
.px-2 { padding-left: 8px !important; padding-right: 8px !important; }
.px-3 { padding-left: 12px !important; padding-right: 12px !important; }
.px-4 { padding-left: 16px !important; padding-right: 16px !important; }
.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-1 { padding-top: 4px !important; padding-bottom: 4px !important; }
.py-2 { padding-top: 8px !important; padding-bottom: 8px !important; }
.py-3 { padding-top: 12px !important; padding-bottom: 12px !important; }
.py-4 { padding-top: 16px !important; padding-bottom: 16px !important; }

/* Gaps */
.gap-1 { gap: 4px !important; }
.gap-2 { gap: 8px !important; }
.gap-3 { gap: 12px !important; }
.gap-4 { gap: 16px !important; }

/* Typography */
.text-xs { font-size: 0.75rem !important; line-height: 1rem !important; }
.text-sm { font-size: 0.875rem !important; line-height: 1.25rem !important; }
.text-base { font-size: 1rem !important; line-height: 1.5rem !important; }
.text-lg { font-size: 1.125rem !important; line-height: 1.75rem !important; }
.text-xl { font-size: 1.25rem !important; line-height: 1.75rem !important; }

.font-normal { font-weight: 400 !important; }
.font-medium { font-weight: 500 !important; }
.font-semibold { font-weight: 600 !important; }
.font-bold { font-weight: 700 !important; }

.text-primary { color: var(--color-primary, #00BFFF) !important; }
.text-success { color: var(--color-success, #00FF00) !important; }
.text-danger { color: var(--color-error, #FF4444) !important; }
.text-warning { color: var(--color-warning, #FFA500) !important; }
.text-white { color: #fff !important; }
.text-black { color: #000 !important; }
.text-muted { color: rgba(255, 255, 255, 0.6) !important; }

/* Borders */
.border { border: 1px solid rgba(255, 255, 255, 0.1) !important; }
.border-t { border-top: 1px solid rgba(255, 255, 255, 0.1) !important; }
.border-b { border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important; }
.border-0 { border: 0 !important; }

.rounded { border-radius: 8px !important; }
.rounded-lg { border-radius: 12px !important; }
.rounded-full { border-radius: 9999px !important; }

/* Accessibility */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/*
================================================================================
| 22. FINAL SAFETY NETS (v2.3 FIX)
================================================================================
*/

/* --- SIDEBAR FIX: Do not hide the main .dashboard-sidebar --- */
aside:not(.dashboard-sidebar),
.sidebar-right,
.notification-sidebar,
.notifications-panel,
[class*="notifications-sidebar"],
[class*="notification-panel-right"] {
    display: none !important;
}

/* Prevent horizontal scroll */
html,
body {
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}

body > * {
    max-width: 100vw;
}

/* Ensure all text is readable */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Better touch targets */
a[href],
button,
[role="button"] {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.btn, .tab-btn, .chart-tab, .notification-actions .btn, .crypto-select-card {
    min-height: 44px;
}
.btn-sm, .notification-actions .btn {
    min-height: 36px;
}
.btn-lg {
    min-height: 48px;
}
.notification-btn, .user-avatar-btn, .mobile-menu-toggle, .mobile-nav-toggle {
    min-height: 40px;
    width: 40px;
}
.btn-link {
    min-height: auto;
}
.notification-btn, .user-avatar-btn {
    width: 36px;
    height: 36px;
    min-height: 36px;
}


/* Fix for iOS safe area */
@supports (padding: max(0px)) {
    .dashboard-content {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
        padding-bottom: max(40px, env(safe-area-inset-bottom));
    }
    
    .main-header,
    .dashboard-header {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
    
    .chat-container {
        height: calc(100vh - 60px - env(safe-area-inset-bottom));
    }
    
    .chat-input-area {
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }

    .modal {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Better focus states */
*:focus {
    outline: 2px solid var(--color-primary, #00BFFF);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--color-primary, #00BFFF);
    box-shadow: 0 0 0 2px rgba(0, 191, 255, 0.3);
}

/* Prevent text selection on UI elements */
.btn,
.tab-nav-btn,
.crypto-select-card,
.mobile-nav-toggle,
.mobile-menu-toggle {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* Smooth scrolling */
* {
    -webkit-overflow-scrolling: touch;
}

/* Ensure no element causes overflow */
.dashboard-content *,
.container *,
section * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Fix any remaining chart overflow */
canvas {
    max-width: 100% !important;
    height: auto !important;
}

/*
================================================================================
| 22. BONUS CARD MOBILE FIX
================================================================================
*/
#bonus-notification-card {
    flex-direction: column !important;
    text-align: center !important;
    align-items: center !important;
    padding: 24px 16px !important;
    gap: 16px !important;
    height: auto !important;
}

#bonus-notification-card .bonus-content {
    width: 100% !important;
    margin: 0 !important;
}

#bonus-notification-card h3 {
    font-size: 1.5rem !important;
    margin-bottom: 8px !important;
    white-space: normal !important; /* Prevent weird wrapping issues */
}

#bonus-notification-card p {
    font-size: 0.95rem !important;
}

#bonus-notification-card .bonus-timer {
    width: 100% !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

#bonus-notification-card .bonus-close-btn {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    margin: 0 !important;
}

/*
================================================================================
| END OF MOBILE STYLESHEET
================================================================================
*/

} /* End of @media screen and (max-width: 992px) */