@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary: #00f2fe;
    --secondary: #4facfe;
    --accent: #ff00c8;
    --bg-dark: #060b13;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-dim: #a0aec0;
    --font-ar: 'Cairo', system-ui, -apple-system, sans-serif;
    --font-en: 'Outfit', system-ui, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-ar);
    background: linear-gradient(rgba(6, 11, 19, 0.85), rgba(6, 11, 19, 0.85)), url('GIF/luffy.WebP');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-main);
    direction: rtl;
    overflow-x: hidden;
    line-height: 1.6;
    text-rendering: optimizeSpeed;
}

/* Background Decoration */
body::before {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, transparent 70%);
    filter: blur(50px);
    z-index: -1;
    animation: float 10s infinite alternate ease-in-out;
}

body::after {
    content: '';
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 0, 200, 0.1) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
    animation: float 15s infinite alternate-reverse ease-in-out;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* Hero Section */
.hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-family: var(--font-en);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    background: linear-gradient(to right, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease-out;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 600px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Services Grid */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 100px;
}

.service-card {
    background: linear-gradient(rgba(6, 11, 19, 0.8), rgba(6, 11, 19, 0.8)), url('GIF/Zoro.WebP');
    background-size: cover;
    background-position: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 242, 254, 0.2);
    background: linear-gradient(rgba(6, 11, 19, 0.7), rgba(6, 11, 19, 0.7)), url('GIF/Zoro.WebP');
    background-size: cover;
    background-position: center;
}

.service-card:hover::before {
    transform: translateX(100%);
}

.service-card h2 {
    font-size: 1.8rem;
    font-weight: 700;
}

.service-card p {
    color: var(--text-dim);
    font-size: 1rem;
}

.service-card span {
    margin-top: auto;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.service-card:hover span {
    gap: 15px;
}

/* Bounty Rush Specifics */
.character-tiers {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    padding: 40px 20px;
}

.tier-card {
    background: linear-gradient(rgba(6, 11, 19, 0.85), rgba(6, 11, 19, 0.85)), url('IMAGE/FsMfvk8WcAEbc_0.WebP');
    background-size: cover;
    background-position: center;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    width: 280px;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeIn 0.8s ease-out;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.tier-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0, 242, 254, 0.15);
}

.tier-stars {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

.tier-price {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-en);
    color: var(--primary);
    display: block;
}

.tier-currency {
    font-size: 1rem;
    color: var(--text-dim);
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    color: #000;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 30px;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(0, 242, 254, 0.2);
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 242, 254, 0.4);
}

.note {
    margin-top: 50px;
    padding: 20px;
    color: var(--text-dim);
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Utility Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* User Profile & Auth UI */
.nav-bar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 40px;
    background: rgba(6, 11, 19, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.auth-btn {
    padding: 8px 16px;
    border-radius: 12px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: #fff;
    cursor: pointer;
    font-family: var(--font-ar);
    transition: 0.3s;
}

.user-dropdown {
    position: relative;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 10px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(10px);
    pointer-events: none;
}

/* Offer Ribbon */
.offer-ribbon {
    position: absolute;
    top: 15px;
    left: -25px;
    width: 100px;
    background: #ff4d4d;
    color: white;
    text-align: center;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 5px 0;
    transform: rotate(-45deg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.offer-ribbon.new {
    background: #00f2fe;
    color: #000;
}

.user-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* الجسر: يضمن عدم اختفاء القائمة عند الانتقال من الاسم إلى القائمة */
.user-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 25px;
    z-index: 9;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px 10px;
    border-radius: 12px;
    transition: 0.3s;
}

.user-trigger:hover {
    background: rgba(255, 255, 255, 0.05);
}

.user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.user-role {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: bold;
}

.dropdown-menu a,
.dropdown-btn {
    padding: 10px 15px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 10px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    background: transparent;
    width: 100%;
    text-align: right;
    cursor: pointer;
}

.dropdown-menu a:hover,
.dropdown-btn:hover {
    background: rgba(0, 242, 254, 0.1);
    color: var(--primary);
}

.logout-btn:hover {
    background: rgba(255, 77, 77, 0.1) !important;
    color: #ff4d4d !important;
}

.dropdown-item {
    padding: 10px 15px;
    border-radius: 10px;
    color: #fff;
    font-size: 0.85rem;
    transition: 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
}

.workers-link {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    color: #000;
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.85rem;
    margin-right: 15px;
    transition: 0.3s;
}

.workers-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.auth-btn:hover {
    background: var(--primary);
    color: #000;
}

/* Queue Dashboard */
.queue-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.queue-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.queue-status-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    background: var(--primary);
    color: #000;
}

.queue-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
    text-align: right;
}

.queue-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 20px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid transparent;
}

.queue-item.active {
    border-color: var(--primary);
    background: rgba(0, 242, 254, 0.05);
}

.queue-item.mine {
    border-color: var(--accent);
    background: rgba(255, 0, 200, 0.05);
}

.pos-tag {
    font-family: var(--font-en);
    font-weight: 800;
    color: var(--primary);
}

.hidden {
    display: none !important;
}

.worker-badge {
    background: linear-gradient(45deg, var(--accent), var(--primary));
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    margin-right: 8px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

footer {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-dim);
    border-top: 1px solid var(--glass-border);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 80px 20px;
    }

    .services {
        grid-template-columns: 1fr;
    }

    .tier-card {
        width: 100%;
    }

    .nav-bar {
        padding: 15px 20px;
    }
}

/* Payment Modal Styles */
.payment-info-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 25px;
}

.price-row,
.wallet-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.wallet-row {
    margin-bottom: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.copy-box {
    width: 100%;
    background: rgba(0, 242, 254, 0.1);
    border: 1px dashed var(--primary);
    padding: 12px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
}

.copy-box:hover {
    background: rgba(0, 242, 254, 0.15);
}

.custom-upload {
    display: block;
    cursor: pointer;
}

.upload-placeholder {
    border: 2px dashed var(--glass-border);
    border-radius: 18px;
    padding: 30px;
    text-align: center;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.02);
}

.upload-placeholder:hover {
    border-color: var(--primary);
    background: rgba(0, 242, 254, 0.05);
}

.upload-placeholder p {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 10px;
}

/* Notification Modal Styles */
.notif-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.notif-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.notif-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: 30px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.8) translateY(20px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.notif-overlay.visible .notif-card {
    transform: scale(1) translateY(0);
}

.notif-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    width: 80px;
    height: 80px;
    background: rgba(0, 242, 254, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.notif-card h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #fff;
}

.notif-card p {
    color: var(--text-dim);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.notif-btn {
    padding: 12px 40px;
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    border: none;
    border-radius: 15px;
    color: #000;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    font-family: var(--font-ar);
    width: 100%;
}

.notif-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 242, 254, 0.3);
}

/* Character Selection Styles */
.char-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.char-grid::-webkit-scrollbar {
    width: 6px;
}

.char-grid::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

.char-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
}

.char-item.selected {
    background: rgba(0, 242, 254, 0.15);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.2);
}

.char-item.selected::after {
    content: '✓';
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--primary);
    color: #000;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.modal-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-display {
    text-align: right;
}

.price-total {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-en);
}

.price-label {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.char-item:hover {
    background: rgba(0, 242, 254, 0.1);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.char-item img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    margin-bottom: 10px;
    background: #000;
}

.char-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.char-meta {
    font-size: 0.7rem;
    color: var(--text-dim);
}

/* Toast Notification System */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 12px 24px;
    border-radius: 12px;
    color: #fff;
    font-size: 0.95rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s;
    pointer-events: auto;
}

.toast.removing {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
}

.toast-icon {
    font-size: 1.2rem;
}

@keyframes toastSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Confirm Modal */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.confirm-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.confirm-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 24px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: 0.3s;
}

.confirm-overlay.visible .confirm-card {
    transform: scale(1);
}

.confirm-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.confirm-msg {
    color: var(--text-dim);
    margin-bottom: 25px;
}

.confirm-actions {
    display: flex;
    gap: 15px;
}

.confirm-btn {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    transition: 0.3s;
}

.confirm-btn.yes {
    background: var(--primary);
    color: #000;
}

.confirm-btn.no {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.confirm-btn:hover {
    transform: scale(1.05);
}

/* Chat Modal Styles */
.chat-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

.chat-modal.visible {
    opacity: 1;
    visibility: visible;
}

.chat-container {
    width: 95%;
    max-width: 450px;
    height: 80vh;
    background: #1a1f2e;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.chat-header {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
}

.message-bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
    word-wrap: break-word;
}

.message-bubble.sent {
    align-self: flex-end;
    background: var(--primary);
    color: #000;
    border-bottom-right-radius: 4px;
}

.message-bubble.received {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-bottom-left-radius: 4px;
    border: 1px solid var(--glass-border);
}

.message-info {
    font-size: 0.7rem;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-dim);
}

.message-info span:first-of-type {
    font-weight: bold;
}

.message-bubble.sent .message-info {
    justify-content: flex-end;
    color: rgba(0, 0, 0, 0.55);
}

.chat-input-area {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 10px;
}

#chatInput {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px 15px;
    color: #fff;
    outline: none;
    font-size: 0.9rem;
}

#chatInput:focus {
    border-color: var(--primary);
}

.chat-send-btn {
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.chat-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 242, 254, 0.3);
}

.chat-empty {
    text-align: center;
    color: var(--text-dim);
    margin-top: 50px;
    font-style: italic;
    font-size: 0.85rem;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff0000;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 100;
    pointer-events: none;
    border: 1px solid #fff;
}

.upload-progress-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    /* Hidden by default */
    overflow: hidden;
}

.upload-progress-bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #00f2fe, #4facfe);
    transform: translateX(-100%);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Operations Modal Specifics */
.search-container {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 15px;
    color: white;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s;
    text-align: right;
}

.search-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.ops-list {
    max-height: 50vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 5px;
    /* for scrollbar */
    text-align: right;
}

.ops-list::-webkit-scrollbar {
    width: 4px;
}

.ops-list::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

.ops-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 15px;
    border-radius: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    cursor: pointer;
}

.ops-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(-5px);
    border-color: var(--primary);
}

.ops-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.ops-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ops-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--primary);
}

.ops-id {
    font-size: 0.7rem;
    color: var(--text-dim);
    font-family: monospace;
}

.ops-badge {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: bold;
}

.ops-badge.working {
    background: rgba(79, 172, 254, 0.2);
    color: #4facfe;
    border: 1px solid #4facfe;
}

.ops-badge.done {
    background: rgba(0, 242, 254, 0.2);
    color: #00f2fe;
    border: 1px solid #00f2fe;
}

.ops-badge.rejected {
    background: rgba(255, 0, 200, 0.2);
    color: #ff00c8;
    border: 1px solid #ff00c8;
}

.ops-badge.waiting {
    background: rgba(236, 201, 75, 0.2);
    color: #ecc94b;
    border: 1px solid #ecc94b;
}

.ops-badge.pending_verification {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid var(--glass-border);
}

.ops-badge.awaiting_payment {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    border: 1px solid var(--glass-border);
}

.ops-empty {
    text-align: center;
    padding: 30px;
    color: var(--text-dim);
    font-size: 0.9rem;
}