@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-main: #0b0b0c;
    --bg-card: #151515;
    --bg-hover: #1e1e1e;
    --border-color: #262626;
    --text-main: #e2e2e2;
    --text-muted: #8c8c8c;

    --accent-purple: #005fecff;
    --accent-purple-hover: #1a74ffff;
    --accent-purple-transparent: rgba(0, 95, 236, 0.1);
    --accent-purple-glow: rgba(0, 95, 236, 0.3);

    --status-green: #3fb950;
    --status-green-bg: rgba(63, 185, 80, 0.1);

    --status-orange: #d29922;
    --status-orange-bg: rgba(210, 153, 34, 0.1);

    --status-red: #f85149;
    --status-red-bg: rgba(248, 81, 73, 0.1);

    --font-main: 'Inter', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    animation: fadeInPage 0.5s ease-out forwards;
    background-color: var(--bg-main);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Global Dark Scrollbar ── */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-purple) var(--bg-main);
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-purple), var(--accent-purple-hover));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple-hover);
}


::-webkit-scrollbar-corner {
    background: #0b0b0c;
}


body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-purple);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: 70px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-main);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.nav-hidden {
    transform: translateY(-100%);
}

.navbar .logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.5px;
    gap: 12px;
    flex-shrink: 0;
}

.navbar .logo img {
    height: 32px;
    border-radius: 4px;
}

.nav-links {
    display: flex;
    gap: 28px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

.mobile-only-logout {
    display: none !important;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    margin-right: -8px;
}

.icon-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Badge Styles */
.badge-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.icon-btn:hover {
    background: var(--bg-hover);
}

.profile-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
}

.profile-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Main Container */
.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Cards & Alerts — Clean & Premium */
.alert-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    animation: fadeInPage 0.5s ease-out;
}

.alert-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.alert-icon {
    font-size: 18px;
    opacity: 0.9;
}

.alert-orange { border-left: 4px solid var(--status-orange); }
.alert-orange .alert-icon { color: var(--status-orange); }

.alert-green { border-left: 4px solid var(--status-green); }
.alert-green .alert-icon { color: var(--status-green); }

.alert-red { border-left: 4px solid var(--status-red); }
.alert-red .alert-icon { color: var(--status-red); }

.alert-title {
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.alert-desc {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

/* Buttons */
.btn {
    background-color: var(--bg-hover);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn:hover {
    background-color: #2a2a2a;
}

.btn-primary {
    background-color: var(--accent-purple);
    color: #fff;
    border-color: var(--accent-purple);
}

.btn-primary:hover {
    background-color: var(--accent-purple-hover);
    border-color: var(--accent-purple-hover);
}

/* Content Card */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 24px;
    overflow: hidden;
}

.card-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-online {
    background-color: var(--status-green-bg);
    color: var(--status-green);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.card-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.card-body {
    padding: 24px;
}

/* Shoutbox */
.shoutbox-messages {
    height: 300px;
    overflow-y: auto;
    padding: 16px 24px;
    font-size: 13px;
    font-family: 'Consolas', 'Courier New', monospace;
    background-color: #000;
}

.shoutbox-messages .msg {
    margin-bottom: 6px;
}

.shoutbox-messages .msg-user {
    font-weight: bold;
}

.msg-user.role-admin {
    color: var(--status-red);
}

.msg-user.role-staff {
    color: #00E5FF;
}

.msg-user.role-customer {
    color: #f1c40f;
}

.msg-user.role-user {
    color: var(--text-muted);
}

.shoutbox-input-area {
    display: flex;
    padding: 12px 16px;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    gap: 12px;
}

.input-field {
    flex: 1;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 16px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.input-field:focus {
    border-color: var(--accent-purple);
}

/* Grid Layouts (Store/Status) */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-img {
    height: 140px;
    width: 100%;
    object-fit: cover;
    background-color: #222;
}

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-desc {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 24px;
    flex: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.product-price-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
}

.product-price {
    font-size: 18px;
    font-weight: 600;
}

/* Status List */
.status-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.status-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-color: #222;
    object-fit: cover;
}

.status-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.status-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 16px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
}

.status-badge::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-badge.updating {
    background-color: transparent;
    color: var(--status-orange);
    border-color: rgba(210, 153, 34, 0.3);
}

.status-badge.updating::before {
    background-color: var(--status-orange);
}

.status-badge.undetected {
    background-color: transparent;
    color: var(--status-green);
    border-color: rgba(63, 185, 80, 0.3);
}

.status-badge.undetected::before {
    background-color: var(--status-green);
}

.status-badge.offline {
    background-color: transparent;
    color: var(--status-red);
    border-color: rgba(248, 81, 73, 0.3);
}

.status-badge.offline::before {
    background-color: var(--status-red);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-muted);
}

/* FAQ Accordion */
.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 8px;
    background: var(--bg-card);
}

.faq-question {
    padding: 16px 20px;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.faq-answer {
    padding: 0 20px 16px;
    color: var(--text-muted);
    font-size: 14px;
    display: none;
}

/* Account Dropdown Styles */
.account-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.account-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.account-trigger:hover {
    background: rgba(255, 255, 255, 0.05);
}

.account-trigger img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
}

.account-trigger span {
    font-size: 14px;
    font-weight: 600;
    color: #e2e2e2;
}

.account-trigger i {
    font-size: 12px;
    color: #888;
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: #111113;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 9999;
    overflow: hidden;
    animation: slideDown 0.2s ease-out;
}

.account-dropdown.active {
    display: block;
}

.account-tabs {
    display: flex;
    background: #18181b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.account-tabs .tab {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.account-tabs .tab:hover {
    color: #fff;
}

.account-tabs .tab.active {
    color: #fff;
}

.account-tabs .tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #f31c00ff;
    /* Pink/Red accent */
}

.account-content {
    padding: 20px;
}

.account-info {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.account-avatar-big img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.05);
    object-fit: cover;
}

.account-meta .name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.account-meta .role {
    font-size: 12px;
    font-weight: 800;
    color: #aaa;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.account-meta .stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-meta .stat {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    color: #777;
}

.account-meta .stat .value {
    color: #f31c00ff;
    font-weight: 600;
}

.account-links {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

.account-links .link-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.account-links a {
    font-size: 13px;
    color: #999;
    text-decoration: none;
    transition: all 0.2s;
}

.account-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.account-links hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin: 10px 0;
}

.account-links .logout-link {
    display: block;
    padding: 5px 0;
    color: #999;
}

.account-status {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.account-status input {
    width: 100%;
    background: #09090b;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 8px 12px;
    color: #e2e2e2;
    font-size: 13px;
    outline: none;
}

.account-status input:focus {
    border-color: rgba(255, 255, 255, 0.1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Notifications Dropdown */
.notif-wrapper {
    position: relative;
    display: inline-block;
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--status-red);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    display: none;
}

.notif-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    width: 320px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
}

.notif-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.notif-body {
    max-height: 300px;
    overflow-y: auto;
}

.notif-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-muted);
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-item.unread {
    background-color: rgba(155, 109, 255, 0.1);
    color: var(--text-main);
}


/* Ticket Chat UI */
.ticket-chat-box {
    height: 350px;
    overflow-y: auto;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-msg.admin .chat-bubble {
    background-color: rgba(248, 81, 73, 0.08);
    border: 1px solid rgba(248, 81, 73, 0.3);
    box-shadow: 0 0 15px rgba(248, 81, 73, 0.1);
}

.chat-msg.staff .chat-bubble {
    background-color: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
}

.chat-msg.admin .chat-avatar {
    border-color: var(--status-red);
}

.chat-msg.staff .chat-avatar {
    border-color: #00E5FF;
}

.chat-msg.premium .chat-avatar {
    border-color: #B87333;
}

.chat-content {
    flex: 1;
}

.chat-header {
    font-size: 11px;
    margin-bottom: 6px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-username {
    font-weight: 700;
    color: var(--text-main);
}

.chat-username.admin {
    color: var(--status-red);
}

.chat-username.staff {
    color: #00E5FF;
}

.role-badge {
    font-size: 9px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-badge.admin {
    background: var(--status-red);
    color: #fff;
}

.role-badge.staff {
    background: #00E5FF;
    color: #000;
}

.chat-bubble {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    display: inline-block;
    max-width: 85%;
    line-height: 1.4;
    color: #e2e2e2;
}


/* Shoutbox Improvements */
.shoutbox-messages {
    background-color: #121215;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
    padding: 16px;
    margin-bottom: 12px;
    overflow-x: hidden;
    overflow-y: auto;
    word-wrap: break-word;
}

/* Dark scrollbar for shoutbox */
.shoutbox-messages::-webkit-scrollbar {
    width: 6px;
}

.shoutbox-messages::-webkit-scrollbar-track {
    background: transparent;
}

.shoutbox-messages::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 10px;
}

.shoutbox-messages::-webkit-scrollbar-thumb:hover {
    background-color: var(--text-muted);
}

/* Custom File Input */
.input-field[type="file"] {
    padding: 6px 8px;
    color: var(--text-muted);
    cursor: pointer;
}

.input-field[type="file"]::file-selector-button {
    background-color: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 6px 12px;
    margin-right: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    font-family: inherit;
}

.input-field[type="file"]::file-selector-button:hover {
    background-color: #2a2a2a;
    border-color: var(--text-muted);
}

/* Custom Checkbox */
.custom-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    margin: 0;
    flex-shrink: 0;
}

.custom-checkbox:checked {
    background-color: var(--accent-purple);
    border-color: var(--accent-purple);
}

.custom-checkbox:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox:hover {
    border-color: var(--accent-purple);
}

/* ── Profile Comments ── */
.comment-section {
    margin-top: 24px;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 4px;
}

.comment-list::-webkit-scrollbar {
    width: 4px;
}

.comment-list::-webkit-scrollbar-track {
    background: transparent;
}

.comment-list::-webkit-scrollbar-thumb {
    background-color: #1e1e1e;
    border-radius: 10px;
}

.comment-list::-webkit-scrollbar-thumb:hover {
    background-color: #333;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.15s ease;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

@keyframes commentFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.comment-username {
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.comment-username:hover {
    opacity: 0.75;
}

.comment-username.role-admin {
    color: #f31c00;
}

.comment-username.role-staff {
    color: #00E5FF;
}

.comment-username.role-customer {
    color: #f1c40f;
}

.comment-username.role-user {
    color: #e2e2e2;
}

.comment-time {
    font-size: 11px;
    color: #555;
}

.comment-text {
    font-size: 13px;
    color: #ccc;
    line-height: 1.55;
    word-wrap: break-word;
}

.comment-delete-btn {
    background: none;
    border: none;
    color: #444;
    cursor: pointer;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 4px;
    transition: all 0.2s;
    margin-left: auto;
    opacity: 0;
}

.comment-item:hover .comment-delete-btn {
    opacity: 1;
}

.comment-delete-btn:hover {
    color: var(--status-red);
    background: rgba(248, 81, 73, 0.1);
}

.comment-input-area {
    display: flex;
    gap: 10px;
    padding: 10px 14px;
    background: #0a0a0b;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    align-items: center;
    margin-bottom: 4px;
}

.comment-input-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.comment-input-area textarea {
    flex: 1;
    background: transparent;
    border: none;
    color: #e2e2e2;
    padding: 6px 0;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    outline: none;
    resize: none;
    min-height: 18px;
    max-height: 18px;
    line-height: 18px;
    overflow: hidden;
}

.comment-input-area textarea::placeholder {
    color: #3a3a3a;
}

.comment-input-area .btn {
    background: var(--accent-purple);
    color: #fff;
    border: none;
    border-radius: 6px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    padding: 0;
}

.comment-input-area .btn:hover {
    background: var(--accent-purple-hover);
    box-shadow: 0 0 12px var(--accent-purple-glow);
}

.comment-empty {
    text-align: center;
    padding: 28px 16px;
    color: #3a3a3a;
    font-size: 13px;
}

/* ── User Search Bar ── */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #111113;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 6px 14px;
    width: 200px;
    transition: all 0.2s;
}

.search-bar:focus-within {
    border-color: var(--accent-purple-glow);
    box-shadow: 0 0 0 3px var(--accent-purple-transparent);
    width: 240px;
}

.search-icon {
    font-size: 12px;
    color: #555;
    flex-shrink: 0;
}

.search-input {
    background: transparent;
    border: none;
    outline: none;
    color: #e2e2e2;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    width: 100%;
}

.search-input::placeholder {
    color: #444;
}

.search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 280px;
    background: #111113;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
    z-index: 2000;
    overflow: hidden;
    animation: searchFadeIn 0.15s ease;
}

@keyframes searchFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover,
.search-result-item.active {
    background: rgba(255, 255, 255, 0.04);
}

.search-result-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.search-result-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-role {
    font-size: 11px;
    color: #555;
}

.search-result-arrow {
    font-size: 10px;
    color: #333;
    transition: color 0.15s;
}

.search-result-item:hover .search-result-arrow,
.search-result-item.active .search-result-arrow {
    color: #666;
}

.search-no-result {
    padding: 20px;
    text-align: center;
    font-size: 13px;
    color: #444;
}

/* Settings Sidebar Tabs */
.settings-sidebar {
    margin-top: 52px;
}

.btn-tab {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    text-align: left !important;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.2s;
    justify-content: flex-start !important;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.btn-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.btn-tab.active {
    background: var(--accent-purple);
    color: #fff;
    border-color: var(--accent-purple);
}
/* Cleaned up fragment */

/* Admin Dashboard Tabs Scroll */
@media (max-width: 768px) {
    .admin-tabs-grid {
        grid-template-columns: repeat(9, 120px) !important;
        overflow-x: auto !important;
        padding-bottom: 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        display: grid !important;
    }

    .admin-tabs-grid::-webkit-scrollbar {
        display: none;
    }
}

/* Profile Mobile Adjustments */
.profile-avatar-float {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    border: 4px solid var(--bg-card);
    position: absolute;
    top: -50px;
    left: 24px;
}

.profile-header-info {
    margin-left: 140px;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .profile-avatar-float {
        position: static;
        margin: -50px auto 16px auto !important;
        display: block;
    }

    .profile-header-info {
        margin-left: 0 !important;
        align-items: center !important;
        text-align: center;
    }

    .admin-header-text {
        width: 100%;
    }
}

/* Admin Dashboard Specific Mobile Adjustments */
@media (max-width: 768px) {

    /* Force grids to 1 column */
    .admin-dashboard .grid-2,
    .admin-dashboard .grid-3 {
        grid-template-columns: 1fr !important;
    }

    /* Stats Chart - remove span */
    .admin-dashboard .card[style*="grid-column: span 2"] {
        grid-column: span 1 !important;
    }

    /* Search & Stats bars */
    .admin-dashboard div[style*="display:flex; justify-content:space-between"] {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .admin-dashboard form[style*="max-width:400px"] {
        max-width: none !important;
    }

    /* Tables on mobile - allow more breathing room */
    .admin-dashboard .card-body {
        padding: 0;
    }

    /* Mobile tables - allow horizontal scrolling instead of hiding crucial columns */
    .admin-dashboard .card-body {
        overflow: visible !important;
    }

    .admin-dashboard div[style*="overflow-x:auto"] {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 10px;
    }

    .admin-dashboard table {
        min-width: 900px !important;
        /* Force width to ensure scroll on all phones */
    }

    /* Show them if they are inside an expanded section */
    .admin-dashboard .expanded-content table th,
    .admin-dashboard .expanded-content table td {
        display: table-cell !important;
    }

    /* Support ticket chat mobile */
    .ticket-chat-box {
        height: 450px;
    }

    .chat-bubble {
        max-width: 85% !important;
    }
}

/* Admin Header Mobile */
.admin-title {
    font-size: 24px;
    color: var(--status-red);
}

@media (max-width: 768px) {
    .admin-dashboard-header {
        align-items: center !important;
        text-align: center;
    }

    .admin-title {
        font-size: 20px !important;
        justify-content: center;
    }

    .admin-header-text {
        width: 100%;
    }
}

/* Toast System — Premium Glassmorphism Edition */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100000;
}

.toast {
    min-width: 320px;
    background: rgba(15, 15, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: toastIn 0.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.toast:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(20, 20, 25, 0.9);
}

.toast::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: var(--accent-purple);
    opacity: 0.6;
    animation: toastProgress 4s linear forwards;
}

.toast.success { border-bottom: 2px solid var(--status-green); }
.toast.success::after { background: var(--status-green); }
.toast.success i { color: var(--status-green); }

.toast.error { border-bottom: 2px solid var(--status-red); }
.toast.error::after { background: var(--status-red); }
.toast.error i { color: var(--status-red); }

.toast.info { border-bottom: 2px solid var(--accent-purple); }
.toast.info::after { background: var(--accent-purple); }
.toast.info i { color: var(--accent-purple); }

.toast-icon {
    font-size: 20px;
    filter: drop-shadow(0 0 8px currentColor);
}

.toast-message {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.2px;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(40px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(40px) scale(0.9);
    }
}

@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

/* Card & Button Smoothness */
.card,
.btn,
.input-field,
.badge-item,
.shoutbox-messages .msg {
    transition: var(--transition-smooth);
}

/* Hover Card Styling */
.user-hover-card {
    position: fixed;
    width: 260px;
    background: rgba(21, 21, 21, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    transition: opacity 0.2s ease, transform 0.2s ease;
    padding: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.user-hover-card.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.hover-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.hover-card-avatar {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hover-card-info h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.hover-card-info span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hover-card-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.hover-card-stats b {
    color: #fff;
}

/* Custom Checkbox */
.remember-me-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.remember-me-container:hover {
    color: var(--text-main);
}

.remember-me-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 18px;
    width: 18px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.remember-me-container:hover input~.checkmark {
    border-color: var(--accent-purple);
    background-color: rgba(163, 113, 247, 0.05);
}

.remember-me-container input:checked~.checkmark {
    background-color: var(--accent-purple);
    border-color: var(--accent-purple);
}

.checkmark:after {
    content: "";
    display: none;
    width: 5px;
    height: 10px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.remember-me-container input:checked~.checkmark:after {
    display: block;
}

/* Upload Drop Zone */
.upload-drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-drop-zone:hover,
.upload-drop-zone.dragging {
    border-color: var(--accent-purple);
    background: var(--accent-purple-transparent);
}

/* Profile Upgrades Effects */
.glow-avatar {
    border-color: #f31c00 !important;
    box-shadow: 0 0 15px #f31c00, inset 0 0 10px #f31c00;
    animation: avatarPulse 2s infinite alternate ease-in-out;
}

.black-avatar {
    border: 4px solid #000 !important;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.2), 0 0 20px rgba(0,0,0,1), 0 4px 15px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
    background: #000;
    padding: 0;
    outline: 1px solid rgba(255,255,255,0.15);
    outline-offset: -4px;
}

.black-avatar::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background-image: 
        radial-gradient(1.5px 1.5px at 15px 15px, #fff, transparent),
        radial-gradient(1.5px 1.5px at 30px 60px, #fff, transparent),
        radial-gradient(2px 2px at 50px 90px, #fff, transparent),
        radial-gradient(1.5px 1.5px at 95px 15px, #fff, transparent),
        radial-gradient(2px 2px at 60px 40px, #fff, transparent);
    background-size: 120px 120px;
    animation: blackHoleGlitter 3s linear infinite;
    opacity: 0.8;
    pointer-events: none;
}

.gold-avatar {
    border-color: #ffd700 !important;
    box-shadow: 0 0 15px #ffd700, inset 0 0 5px #ffd700;
    position: relative;
    overflow: hidden;
}

.gold-avatar::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.4) 50%, transparent 55%);
    animation: goldShimmer 3s infinite;
}

.cyan-glow-avatar {
    border-color: #00E5FF !important;
    box-shadow: 0 0 15px #00E5FF;
    animation: cyanPulse 2s infinite alternate;
}

.emerald-avatar {
    border-color: #2ecc71 !important;
    box-shadow: 0 0 15px #2ecc71;
    animation: emeraldPulse 2s infinite alternate;
}

.purple-avatar {
    border-color: #9b59b6 !important;
    box-shadow: 0 0 15px #9b59b6;
    animation: purplePulse 2s infinite alternate;
}

.rainbow-text {
    background: linear-gradient(to right, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8b00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: rainbow-anim 4s linear infinite;
    font-weight: 900;
}

.fire-text {
    background: linear-gradient(to bottom, #ff0000, #ff8c00, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 100% 200%;
    animation: fire-anim 2s infinite alternate;
    font-weight: 900;
    text-shadow: 0 0 5px rgba(255, 140, 0, 0.5);
}

.ice-text {
    background: linear-gradient(to right, #00d2ff, #9cedff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    text-shadow: 0 0 8px rgba(0, 210, 255, 0.4);
}

.gold-text {
    background: linear-gradient(to bottom, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.glitch-text {
    position: relative;
    color: #fff !important;
    font-weight: 900;
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-username);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch-text::before {
    color: #0ff;
    z-index: -1;
    animation: glitch-anim 2s infinite;
}

.glitch-text::after {
    color: #f0f;
    z-index: -2;
    animation: glitch-anim 2s infinite reverse;
}

.sparkle-text {
    position: relative;
    color: #fff;
    text-shadow: 0 0 8px #00E5FF;
}

.sparkle-text::after {
    content: ' ✨';
    font-size: 0.8em;
    animation: sparkle-blink 1.5s infinite;
}

@keyframes avatarPulse {
    from {
        box-shadow: 0 0 10px #f31c00;
    }

    to {
        box-shadow: 0 0 20px #f31c00, 0 0 30px rgba(243, 28, 0, 0.4);
    }
}

@keyframes cyanPulse {
    from {
        box-shadow: 0 0 8px #00E5FF;
    }

    to {
        box-shadow: 0 0 20px #00E5FF, 0 0 25px rgba(0, 229, 255, 0.4);
    }
}

@keyframes emeraldPulse {
    from {
        box-shadow: 0 0 8px #2ecc71;
    }

    to {
        box-shadow: 0 0 20px #2ecc71, 0 0 25px rgba(46, 204, 113, 0.4);
    }
}

@keyframes purplePulse {
    from {
        box-shadow: 0 0 8px #9b59b6;
    }

    to {
        box-shadow: 0 0 20px #9b59b6, 0 0 25px rgba(155, 89, 182, 0.4);
    }
}

@keyframes goldShimmer {
    0% {
        transform: translateX(-100%) translateY(-100%);
    }

    100% {
        transform: translateX(100%) translateY(100%);
    }
}

@keyframes rainbow-anim {
    to {
        background-position: 200% center;
    }
}

@keyframes fire-anim {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 0% 100%;
    }
}

@keyframes glitch-anim {
    0% {
        clip-path: inset(40% 0 61% 0);
        transform: translate(-2px, 2px);
    }

    20% {
        clip-path: inset(92% 0 1% 0);
        transform: translate(1px, -3px);
    }

    40% {
        clip-path: inset(25% 0 58% 0);
        transform: translate(-1px, 1px);
    }

    60% {
        clip-path: inset(54% 0 7% 0);
        transform: translate(3px, -1px);
    }

    80% {
        clip-path: inset(11% 0 78% 0);
        transform: translate(-1px, 2px);
    }

    100% {
        clip-path: inset(62% 0 22% 0);
        transform: translate(2px, -1px);
    }
}

@keyframes sparkle-blink {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* --- Custom Dark UI Tooltip System --- */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
    z-index: 10000;
    pointer-events: none;
}

/* Tooltip Arrow */
[data-tooltip]::after {
    content: '';
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    border-width: 6px 6px 0 6px;
    border-style: solid;
    border-color: rgba(10, 10, 12, 0.95) transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    pointer-events: none;
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Small adjustments for icons and badges */
.badge-item[data-tooltip], .user-badge[data-tooltip], .badge[data-tooltip] {
    display: inline-flex;
}

/* --- Global Mobile Support & Responsiveness --- */
@media (max-width: 992px) {
    .container {
        padding: 0 12px !important;
        margin-top: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    body.mobile-menu-active {
        overflow: hidden !important;
    }
    
    .grid-2, .grid-3 {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .navbar {
        padding: 0 15px !important;
        height: 60px !important;
        z-index: 10001 !important;
        overflow: visible !important;
    }
    
    .mobile-nav-toggle {
        display: block !important;
        order: 10;
        z-index: 10002 !important;
    }
    
    .nav-links {
        display: none;
    }
    
    body.mobile-menu-active .nav-links {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: calc(100vh - 60px) !important;
        background: #0d0d0f !important;
        padding: 40px !important;
        gap: 20px !important;
        z-index: 10000 !important;
        transform: none !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    @keyframes mobileMenuIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .nav-links a, body.mobile-menu-active .mobile-only-logout {
        display: block !important;
        width: 100% !important;
        max-width: 280px;
        padding: 16px !important;
        background: rgba(255,255,255,0.03) !important;
        border: 1px solid rgba(255,255,255,0.06) !important;
        border-radius: 12px !important;
        text-align: center !important;
        font-size: 16px !important;
        color: #fff !important;
        font-weight: 600 !important;
        text-decoration: none !important;
    }

    /* Shoutbox Mobile Fixes */
    .shoutbox-messages {
        padding: 10px !important;
        height: 400px !important;
    }
    
    .shoutbox-messages .msg div {
        font-size: 14px !important;
    }
    
    .shoutbox-input-area {
        padding: 12px !important;
        gap: 8px !important;
    }
    
    .shoutbox-input-area .input-field {
        padding: 8px 12px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 768px) {
    #search-wrapper, #user-hover-card {
        display: none !important;
    }
    
    .account-trigger span {
        display: none;
    }
    
    .profile-header-info {
        text-align: center !important;
        padding-top: 60px !important;
        padding-bottom: 20px !important;
    }
    
    .profile-header-info > div {
        justify-content: center !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
    }
    
    .profile-header-info div[style*="margin-left: auto"] {
        margin-left: 0 !important;
        margin-top: 5px;
        width: 100%;
        justify-content: center;
    }
    
    div[style*="top: -50px; left: 24px"] {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    .card-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 16px !important;
    }
    
    /* Settings Mobile Navigation */
    .settings-container {
        flex-direction: column !important;
    }

    .settings-sidebar {
        width: 100% !important;
        flex-direction: row !important;
        overflow-x: auto;
        padding: 4px !important;
        gap: 8px !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 16px;
    }

    .settings-sidebar .btn-tab {
        flex: 1;
        white-space: nowrap;
        justify-content: center !important;
        padding: 10px 16px;
        font-size: 12px !important;
    }
    
    /* Tables responsiveness */
    div[style*="overflow-x:auto"] {
        margin: 0 -12px;
        padding: 0 12px;
    }

    table th:nth-child(n+4),
    table td:nth-child(n+4) {
        display: none;
    }
    
    .product-grid {
        grid-template-columns: 1fr !important;
    }

    .settings-tabs {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px !important;
    }
    
    .settings-tabs button {
        font-size: 12px !important;
        padding: 8px 12px !important;
    }
}

@media (max-width: 480px) {
    .navbar .logo span {
        display: none;
    }
    
    .stat {
        flex-direction: column;
        align-items: center;
        gap: 2px;
    }
    
    .card-body {
        padding: 16px !important;
    }
    
    .auth-container {
        margin: 20px auto !important;
    }
}
