:root {
    --bg-body: #000000;
    --bg-panel: #09090b;
    --bg-surface: #121212;
    --border-base: #27272a;
    --border-highlight: #3f3f46;
    --accent: #4ADE80;
    --accent-glow: rgba(74, 222, 128, 0.15);
    --text-main: #FFFFFF;
    --text-muted: #A1A1AA;
    --font-ui: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-ui);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(circle at 50% 0%, rgba(74, 222, 128, 0.05) 0%, transparent 60%),
        linear-gradient(to bottom, #000 0%, #000 100%);
    background-attachment: fixed;
}

.bg-dots {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, black 20%, transparent 100%);
}

.custom-scroll::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 2px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: #444;
}

.section-content {
    display: none !important;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.section-content.active {
    display: flex !important;
    flex-direction: column;
    height: 100%;
    opacity: 1;
}

.sidebar-item {
    position: relative;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin-bottom: 4px;
    border: 1px solid transparent;
}

.sidebar-item:hover:not(.active) {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
}

.sidebar-item.active {
    background: #18181b;
    color: #fff;
    border-color: var(--border-base);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
}

.sidebar-item i {
    color: var(--text-muted);
    transition: color 0.2s;
}

.sidebar-item:hover i {
    color: #e4e4e7;
}

.sidebar-item.active i {
    color: var(--accent);
}

/* REFUND TRACKER */
.refund-tracker {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    padding-top: 10px;
    margin-top: 10px;
    min-width: 500px;
}

.tracker-container {
    overflow-x: auto;
    padding-bottom: 10px;
}

.refund-tracker::before {
    content: '';
    position: absolute;
    top: 26px;
    left: 30px;
    right: 30px;
    height: 1px;
    background: #1f1f1f;
    z-index: 0;
}

.tracker-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.tracker-step.completed,
.tracker-step.active {
    opacity: 1;
}

.tracker-step-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #09090b;
    border: 1px solid #27272a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #52525b;
    font-size: 11px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
}

.tracker-step.completed .tracker-step-icon {
    background: rgba(74, 222, 128, 0.1);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.1);
}

.tracker-step.active .tracker-step-icon {
    border-color: #fff;
    color: #fff;
    background: #000;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.tracker-step-label {
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    line-height: 1.3;
    text-transform: uppercase;
}

.tracker-step.active .tracker-step-label {
    color: #fff;
}

/* CHAT STYLES */
.chat-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
    margin-bottom: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.chat-bubble.support {
    background-color: #18181b;
    border: 1px solid #27272a;
    color: #e4e4e7;
    border-bottom-left-radius: 4px;
}

.chat-bubble.user {
    background: linear-gradient(135deg, #27272a 0%, #18181b 100%);
    border: 1px solid #27272a;
    color: white;
    border-bottom-right-radius: 4px;
    margin-left: auto;
}

.chat-bubble.system {
    align-self: center;
    font-size: 10px;
    color: #52525b;
    background: transparent;
    border: none;
    box-shadow: none;
    margin: 16px 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#chat-input-area {
    background: #09090b;
    border-top: 1px solid #27272a;
    padding: 16px 24px;
}

.chat-input-wrapper {
    background: #121212;
    border: 1px solid #27272a;
    border-radius: 24px;
    display: flex;
    align-items: center;
    transition: all 0.2s;
    padding: 4px 6px 4px 16px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.chat-input-wrapper:focus-within {
    border-color: #27272a;
    background: #121212;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

textarea#chat-input {
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none !important;
    color: #fff;
    padding: 10px 0;
    font-size: 13px;
    min-height: 44px;
    line-height: 20px;
}

textarea#chat-input::placeholder {
    color: #52525b;
}

#attach-btn {
    color: #52525b;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-right: 8px;
}

#attach-btn:hover {
    color: #fff;
}

#send-btn {
    background: #fff;
    color: #000;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    opacity: 0.3;
    transition: opacity 0.2s, background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
}

#send-btn:hover:not(:disabled) {
    opacity: 1;
    background: var(--accent);
}

#send-btn:disabled {
    background: #27272a;
    color: #52525b;
    cursor: default;
}

/* ACTIVITY TIMELINE - REDESIGNED */
#activity-timeline {
    padding: 0;
    padding-left: 16px;
}

.log-entry {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    align-items: flex-start;
    position: relative;
}

.log-entry:hover {
    background: rgba(255, 255, 255, 0.02);
}

.log-entry::before {
    content: '';
    position: absolute;
    left: 15px;
    /* center of 32px icon */
    top: 52px;
    bottom: -20px;
    width: 2px;
    background: linear-gradient(180deg, #27272a 0%, transparent 100%);
}

.log-entry:last-child::before {
    display: none;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #121212;
    border: 1px solid #27272a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.log-icon i {
    font-size: 11px;
    color: #52525b;
}

.log-icon.stage {
    background: rgba(74, 222, 128, 0.1);
    border-color: rgba(74, 222, 128, 0.3);
}

.log-icon.stage i {
    color: #4ADE80;
}

.log-icon.payment {
    background: rgba(250, 204, 21, 0.1);
    border-color: rgba(250, 204, 21, 0.3);
}

.log-icon.payment i {
    color: #facc15;
}

.log-icon.message {
    background: rgba(96, 165, 250, 0.1);
    border-color: rgba(96, 165, 250, 0.3);
}

.log-icon.message i {
    color: #60a5fa;
}

.log-time {
    font-family: var(--font-mono);
    font-size: 10px;
    color: #3f3f46;
    min-width: 70px;
    text-align: right;
    padding-top: 2px;
}

.log-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.log-message {
    font-size: 13px;
    color: #e4e4e7;
    font-weight: 500;
    line-height: 1.4;
}

.log-meta {
    font-size: 10px;
    font-weight: 600;
    color: #52525b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.faq-item {
    border: 1px solid #1f1f1f;
    border-radius: 8px;
    background: #0e0e0e;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.faq-item:hover {
    border-color: #333;
}

.faq-question {
    padding: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    color: #e4e4e7;
}

.faq-answer {
    padding: 0 16px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #a1a1aa;
    font-size: 13px;
    line-height: 1.6;
}

.faq-item.open {
    background: #121212;
    border-color: #333;
}

.faq-item.open .faq-answer {
    padding-bottom: 16px;
    max-height: 300px;
    opacity: 1;
}

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

.input-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #71717a;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.input-wrapper {
    position: relative;
    background: #0e0e0e;
    border: 1px solid #27272a;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.input-wrapper:focus-within {
    border-color: #52525b;
    background: #121212;
}

.input-icon {
    width: 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #52525b;
    border-right: 1px solid #1f1f1f;
}

.input-field-styled {
    width: 100%;
    background: transparent;
    border: none;
    color: white;
    padding: 12px;
    font-size: 13px;
    outline: none;
}

.input-field-styled::placeholder {
    color: #3f3f46;
}

.btn-primary {
    background: #fff;
    color: #000;
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 13px;
    border: 1px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-primary:hover {
    background: #f4f4f5;
    transform: translateY(-1px);
}

#lang-dropdown,
#notification-dropdown {
    background: #09090b;
    border: 1px solid #27272a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    border-radius: 10px;
}

.lang-header {
    font-size: 10px;
    font-weight: 700;
    color: #52525b;
    text-transform: uppercase;
    padding: 10px 16px;
    background: #0c0c0c;
    border-bottom: 1px solid #18181b;
    position: sticky;
    top: 0;
    letter-spacing: 0.05em;
}

.lang-option {
    padding: 8px 16px;
    font-size: 12px;
    color: #a1a1aa;
    cursor: pointer;
    transition: all 0.1s;
    border-left: 2px solid transparent;
}

.lang-option:hover {
    background: #18181b;
    color: white;
    border-left-color: var(--accent);
}

.notification-item {
    padding: 12px 16px;
    border-bottom: 1px solid #1f1f1f;
    transition: background 0.2s;
}

.notification-item:hover {
    background: #121212;
}

.notification-item.unread {
    background: rgba(74, 222, 128, 0.03);
    border-left: 2px solid var(--accent);
}

.notification-item:last-child {
    border-bottom: none;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #0e0e0e inset !important;
    -webkit-text-fill-color: white !important;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#notification-btn {
    position: relative;
    z-index: 50;
    cursor: pointer !important;
    pointer-events: auto !important;
}

#notification-btn.has-notification i {
    animation: bellRing 1s ease-in-out;
}

#notification-badge.show {
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes bellRing {

    0%,
    100% {
        transform: rotate(0deg);
    }

    10%,
    30% {
        transform: rotate(-15deg);
    }

    20%,
    40% {
        transform: rotate(15deg);
    }

    50% {
        transform: rotate(0deg);
    }
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* WIDGET STYLES */
.network-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #27272a;
    background: #18181b;
    color: #a1a1aa;
}

.network-tag:hover {
    border-color: #52525b;
    color: #fff;
}

.network-tag.active {
    background: rgba(74, 222, 128, 0.1);
    color: var(--accent);
    border-color: var(--accent);
}

.custom-select-btn {
    background: #121212;
    border: 1px solid #27272a;
    transition: all 0.2s;
}

.custom-select-btn:hover {
    border-color: #3f3f46;
    background: #18181b;
}

.custom-select-dropdown {
    background: #121212;
    border: 1px solid #27272a;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-height: 240px;
    overflow-y: auto;
}

.dropdown-item {
    transition: all 0.2s;
    border-bottom: 1px solid #1f1f1f;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #18181b;
}

.dropdown-item.selected {
    background: #18181b;
    color: var(--accent);
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Notification Types */
.notification-item.success {
    background: rgba(74, 222, 128, 0.1);
    border-left: 3px solid #4ADE80;
}

.notification-item.warning {
    background: rgba(250, 204, 21, 0.1);
    border-left: 3px solid #facc15;
}

.notification-item.error {
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid #ef4444;
}

.notification-item.message {
    background: rgba(74, 222, 128, 0.05);
    border-left: 3px solid #4ADE80;
}

.notification-item.payment {
    background: rgba(250, 204, 21, 0.05);
    border-left: 3px solid #facc15;
}

.notification-item.status {
    background: rgba(96, 165, 250, 0.05);
    border-left: 3px solid #60a5fa;
}

/* Sidebar unread badge */
.sidebar-item {
    position: relative;
}

.sidebar-item .unread-badge {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    animation: pulse 2s infinite;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.unread-badge.mobile {
    width: 6px;
    height: 6px;
    position: absolute;
    top: 4px;
    right: -2px;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }

    50% {
        opacity: 0.7;
        transform: translateY(-50%) scale(1.2);
    }
}

/* Payment message as chat bubble - like support message */
.payment-message-card {
    background: transparent;
    border: none;
    border-radius: 16px 16px 16px 4px;
    padding: 0;
    max-width: 280px;
    position: relative;
}

.payment-message-card::before {
    display: none;
}

.payment-message-inner {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, transparent 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    padding: 12px;
    position: relative;
    overflow: hidden;
}

.payment-message-inner::before {
    content: '';
    position: absolute;
    top: -32px;
    right: -32px;
    width: 64px;
    height: 64px;
    background: rgba(34, 197, 94, 0.15);
    border-radius: 0 0 0 100%;
}

.payment-message-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.payment-message-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22c55e;
    flex-shrink: 0;
}

.payment-message-icon i {
    font-size: 14px;
}

.payment-message-label {
    font-size: 10px;
    color: #22c55e;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.payment-message-amount {
    font-size: 18px;
    font-family: var(--font-mono);
    color: white;
    font-weight: 600;
    line-height: 1.2;
}

.payment-message-btn {
    width: 100%;
    font-size: 11px;
    color: #22c55e;
    font-weight: 700;
    text-align: center;
    background: transparent;
    padding: 10px;
    border-radius: 8px;
    position: relative;
    z-index: 1;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.payment-message-btn:hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.6);
}