* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #161439;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* PRELOADER */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #161439;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: preloaderFade 1s ease-out 1.5s forwards;
}

.preloader img {
    height: 80px;
    width: auto;
    animation: logoPulse 1.5s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.7;
    }
}

@keyframes preloaderFade {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* MOBILE MENU OVERLAY */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
}

.menu-overlay.active {
    display: block;
    animation: fadeOverlay 0.50s ease-out;
}

@keyframes fadeOverlay {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background-color: #161439;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar.active {
    transform: translateX(0);
}

.close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    text-align: right;
    padding: 10px;
    margin-bottom: 20px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    border-radius: 0;
    padding: 10px 5px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.sidebar-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

.sidebar-item span {
    letter-spacing: 1px;
    font-size: 14px;
}

.sidebar-item .sidebar-icon {
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

.sidebar-item:hover .sidebar-icon {
    color: #ffffff;
}

.sidebar-item .arrow-icon {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.5);
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.sidebar-item:hover .arrow-icon {
    transform: translateX(5px);
    color: #ffffff;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background-color: #161439;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.50s ease, opacity 0.50s ease;
    opacity: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar.active {
    transform: translateX(0);
    opacity: 1;
}

.sidebar-logo {
    text-align: center;
    margin-bottom: 15px;
}

.sidebar-logo img {
    height: 50px;
    width: auto;
}

.close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
    text-align: right;
    padding: 5px;
    margin-bottom: 10px;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    gap: 15px;
}

.menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 3px;
    z-index: 100;
}

.menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    height: 40px;
    width: auto;
}

/* BANNER */
.banner {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    max-width: 1200px;
}

.banner img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* SECTIONS */
section {
    padding: 60px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #ffffff;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #9C8DE8;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #8477d4;
    transform: translateY(-2px);
}

/* CARDS */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.footer-logo img {
    height: 30px;
    width: auto;
    margin-top: 10px;
}

/* OPTIONS SECTION */
.options-section {
    padding: 40px 0;
}

.option-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px 30px;
    margin-bottom: 20px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.option-item:last-child {
    margin-bottom: 0;
}

.option-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.option-item img {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.option-item span {
    letter-spacing: 1px;
}

.option-item .arrow {
    margin-left: auto;
    font-size: 22px;
    transition: transform 0.3s ease;
}

.option-item:hover .arrow {
    transform: translateX(5px);
}

/* SUCCESS POPUP */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.popup-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.popup-box {
    background: #161439;
    border: 1px solid rgba(156, 141, 232, 0.3);
    border-radius: 15px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: popIn 0.4s ease;
}

.popup-box h3 {
    color: #9C8DE8;
    font-size: 20px;
    margin-bottom: 15px;
}

.popup-box p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.popup-box .btn {
    margin-top: 10px;
}

@keyframes popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* LOADING SPINNER */
.btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* COMPLAINT FORM */
.complaint-form {
    max-width: 600px;
    margin: 0 auto;
}

.complaint-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-title {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: #ffffff;
    white-space: nowrap;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b6b;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.form-group select option {
    background-color: #161439;
    color: #ffffff;
}

.form-group textarea {
    resize: vertical;
}

.form-group input[type="file"] {
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

.form-group input[type="file"]::-webkit-file-upload-button {
    background: #9C8DE8;
    color: #ffffff;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 10px;
}

/* A&Q SECTION */
.aq-section {
    padding: 50px 0;
}

.aq-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.aq-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px 20px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

.aq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.aq-item .aq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 1px;
}

.aq-item .aq-arrow {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease;
}

.aq-item .aq-answer {
    display: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.6;
    margin-top: 5px;
}

.aq-item.active .aq-answer {
    display: block;
}

.aq-item.active .aq-arrow {
    transform: rotate(90deg);
}

/* MAIL BOX */
.mailbox-container {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.no-requests {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 16px;
    padding: 40px 0;
}

.request-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.request-type {
    background: rgba(156, 141, 232, 0.2);
    color: #9C8DE8;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
}

.request-datetime {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.request-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 15px;
}

.request-row {
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.request-row strong {
    color: rgba(255, 255, 255, 0.9);
    min-width: 140px;
}

.request-image {
    margin-bottom: 15px;
    text-align: center;
}

.request-image img {
    max-width: 100%;
    max-height: 250px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    object-fit: contain;
}

.delete-btn {
    background: rgba(255, 77, 77, 0.2);
    color: #ff4d4d;
    border: 1px solid rgba(255, 77, 77, 0.3);
    padding: 6px 15px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.3s ease;
    float: right;
}

.delete-btn:hover {
    background: rgba(255, 77, 77, 0.4);
}

/* CHAT APP */
.chat-main {
    display: flex;
    justify-content: center;
    padding: 20px;
    min-height: calc(100vh - 80px);
}

.chat-app {
    width: 100%;
    max-width: 500px;
    height: 75vh;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
}

.chat-app-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #1e1b4e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: #9C8DE8;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.chat-user-info h3 {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
}

.online-status {
    color: #4dff88;
    font-size: 12px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-welcome {
    text-align: center;
    margin-top: auto;
    margin-bottom: auto;
    color: rgba(255, 255, 255, 0.5);
}

.chat-welcome p {
    font-size: 16px;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.7);
}

.chat-welcome span {
    font-size: 13px;
}

.msg-row {
    display: flex;
    flex-direction: column;
    max-width: 80%;
    animation: fadeIn 0.3s ease;
}

.msg-row.left {
    align-self: flex-start;
    align-items: flex-start;
}

.msg-row.right {
    align-self: flex-end;
    align-items: flex-end;
}

.msg-bubble {
    padding: 8px 12px;
    border-radius: 12px;
    word-wrap: break-word;
    cursor: pointer;
    position: relative;
}

.msg-sent {
    background: #9C8DE8;
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.msg-received {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-bottom-left-radius: 4px;
}

.msg-reply-ref {
    font-size: 11px;
    opacity: 0.7;
    border-left: 3px solid rgba(255, 255, 255, 0.5);
    padding-left: 6px;
    margin-bottom: 4px;
    font-style: italic;
}

.msg-text {
    font-size: 14px;
    line-height: 1.4;
}

.msg-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
    margin-top: 3px;
}

.msg-time {
    font-size: 10px;
    opacity: 0.7;
}

.msg-tick {
    font-size: 10px;
    color: #4dff88;
    opacity: 0.8;
}

.msg-actions {
    display: flex;
    gap: 4px;
    margin-top: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.msg-row:hover .msg-actions {
    opacity: 1;
}

.mini-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mini-btn:hover {
    background: rgba(156, 141, 232, 0.5);
    color: #ffffff;
}

.mini-del:hover {
    background: rgba(255, 77, 77, 0.5);
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 15px;
    align-items: center;
}

.typing-indicator span {
    width: 7px;
    height: 7px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: typing 1.2s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

.chat-input-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #1e1b4e;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.input-action-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.input-action-btn:hover {
    color: #9C8DE8;
}

.chat-input-bar input {
    flex: 1;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: #ffffff;
    font-size: 14px;
}

.chat-input-bar input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.chat-input-bar input:focus {
    outline: none;
    border-color: #9C8DE8;
}

.send-btn {
    background: #9C8DE8;
    border: none;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.send-btn:hover {
    transform: scale(1.1);
}

.emoji-picker {
    display: none;
}

.msg-image {
    max-width: 250px;
    max-height: 250px;
    border-radius: 8px;
    margin-bottom: 5px;
    cursor: pointer;
    display: block;
}

.msg-file {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 8px 12px;
    text-decoration: none;
    color: inherit;
    margin-bottom: 5px;
    min-width: 200px;
    transition: background 0.2s ease;
}

.msg-file:hover {
    background: rgba(255, 255, 255, 0.25);
}

.file-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.file-name {
    font-size: 13px;
    font-weight: 600;
    word-break: break-all;
}

.file-size {
    font-size: 11px;
    opacity: 0.7;
}

.file-dl {
    font-size: 18px;
    font-weight: 700;
}

.chat-popup-box {
    max-width: 450px;
}

.chat-detail-content {
    text-align: left;
    margin-bottom: 20px;
}

.detail-row {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.detail-row strong {
    color: #9C8DE8;
    min-width: 80px;
    display: inline-block;
}

.edit-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    margin-bottom: 15px;
}

.edit-input:focus {
    outline: none;
    border-color: #9C8DE8;
}

.popup-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .menu-btn {
        display: flex;
    }
    .banner img {
        border-radius: 0;
    }
    .option-item {
        padding: 15px 20px;
        font-size: 16px;
    }
    .option-item img {
        width: 40px;
        height: 40px;
    }
    .sidebar {
        width: 220px;
        padding: 12px;
    }
}

/* ====== IMAGE VIEWER (Fullscreen) ====== */

.image-viewer-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
    flex-direction: column;
}

.image-viewer-overlay.active {
    display: flex;
}

.image-viewer-overlay img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.image-viewer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: background 0.2s ease;
}

.image-viewer-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.image-viewer-toolbar {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(0, 0, 0, 0.7);
    padding: 12px 20px;
    border-radius: 50px;
    z-index: 10001;
}

.image-viewer-info {
    color: white;
    font-size: 14px;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.image-viewer-download {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #9C8DE8;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.image-viewer-download:hover {
    background: #8477d4;
    transform: scale(1.1);
}

/* ====== VERIFICATION OVERLAY ====== */

.verify-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.verify-box {
    background: #161439;
    border: 1px solid rgba(156, 141, 232, 0.3);
    border-radius: 16px;
    padding: 35px 30px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    animation: popIn 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.verify-logo {
    margin-bottom: 15px;
}

.verify-logo img {
    height: 60px;
    width: auto;
}

.verify-box h2 {
    color: #9C8DE8;
    font-size: 22px;
    margin-bottom: 8px;
}

.verify-box p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 25px;
}

.verify-box .form-group {
    margin-bottom: 15px;
    text-align: left;
}

.verify-box .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.verify-box .form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.verify-box .form-group input:focus {
    outline: none;
    border-color: #9C8DE8;
}

.verify-box .form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.verify-box .btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    margin-top: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* CHAT APP - Full Page Layout */

.chat-fullpage {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    background: #161439;
    overflow: hidden;
    position: relative;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #1e1b4e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: background 0.2s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-avatar {
    width: 44px;
    height: 44px;
    background: #9C8DE8;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.chat-user-info h3 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.online-status {
    color: #4dff88;
    font-size: 12px;
    display: block;
    margin-top: 2px;
}

.chat-header-right {
    display: flex;
    gap: 8px;
}

.header-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: background 0.2s ease;
}

.header-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-messages-area {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #161439;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.chat-welcome {
    text-align: center;
    margin-top: auto;
    margin-bottom: auto;
    color: rgba(255, 255, 255, 0.5);
    padding: 20px;
}

.chat-welcome p {
    font-size: 16px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.7);
}

.chat-welcome span {
    font-size: 13px;
}

.msg-row {
    display: flex;
    flex-direction: column;
    max-width: 80%;
    animation: fadeIn 0.3s ease;
}

.msg-row.left {
    align-self: flex-start;
    align-items: flex-start;
}

.msg-row.right {
    align-self: flex-end;
    align-items: flex-end;
}

.msg-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    word-wrap: break-word;
    cursor: pointer;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    transition: box-shadow 0.2s ease;
}

.msg-row:hover .msg-bubble {
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.msg-sent {
    background: #9C8DE8;
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.msg-received {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 4px;
}

.msg-reply-ref {
    font-size: 11px;
    opacity: 0.6;
    border-left: 3px solid rgba(255, 255, 255, 0.5);
    padding-left: 6px;
    margin-bottom: 4px;
    font-style: italic;
}

.msg-text {
    font-size: 14px;
    line-height: 1.5;
}

.msg-image {
    max-width: 250px;
    max-height: 250px;
    border-radius: 10px;
    margin-bottom: 5px;
    cursor: pointer;
    display: block;
}

.msg-file {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 10px 14px;
    text-decoration: none;
    color: inherit;
    margin-bottom: 5px;
    min-width: 200px;
    transition: background 0.2s ease;
}

.msg-file:hover {
    background: rgba(255, 255, 255, 0.25);
}

.file-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.file-name {
    font-size: 13px;
    font-weight: 600;
    word-break: break-all;
}

.file-size {
    font-size: 11px;
    opacity: 0.7;
}

.file-dl {
    font-size: 18px;
    font-weight: 700;
}

.msg-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.msg-time {
    font-size: 10px;
    opacity: 0.6;
}

.msg-tick {
    font-size: 10px;
    color: #4dff88;
    opacity: 0.8;
}

.msg-actions {
    display: flex;
    gap: 4px;
    margin-top: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.msg-row:hover .msg-actions {
    opacity: 1;
}

.mini-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mini-btn:hover {
    background: rgba(156, 141, 232, 0.5);
    color: #ffffff;
}

.mini-del:hover {
    background: rgba(255, 77, 77, 0.5);
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 16px;
    align-items: center;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: typing 1.2s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

.chat-input-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #1e1b4e;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
}

.input-action-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.input-action-btn:hover {
    color: #9C8DE8;
}

.chat-input-bar input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    color: #ffffff;
    font-size: 15px;
}

.chat-input-bar input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.chat-input-bar input:focus {
    outline: none;
    border-color: #9C8DE8;
}

.send-btn {
    background: #9C8DE8;
    border: none;
    color: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.send-btn:hover {
    background: #8477d4;
    transform: scale(1.05);
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.popup-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.chat-info-box {
    background: #161439;
    border: 1px solid rgba(156, 141, 232, 0.3);
    border-radius: 16px;
    padding: 24px;
    max-width: 360px;
    width: 90%;
    text-align: center;
    animation: popIn 0.4s ease;
}

.chat-info-header {
    margin-bottom: 20px;
}

.chat-avatar-large {
    width: 60px;
    height: 60px;
    background: #9C8DE8;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 22px;
    margin: 0 auto 12px;
}

.chat-info-title h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px;
}

.chat-info-title .online-status {
    font-size: 13px;
    margin-top: 4px;
    display: inline-block;
}

.chat-info-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.info-action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.info-action-btn:hover {
    background: rgba(156, 141, 232, 0.2);
    border-color: #9C8DE8;
}

.info-action-btn.danger:hover {
    background: rgba(255, 77, 77, 0.2);
    border-color: #ff4d4d;
}

.popup-close-btn {
    background: #9C8DE8;
    border: none;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s ease;
}

.popup-close-btn:hover {
    background: #8477d4;
}

.popup-box {
    background: #161439;
    border: 1px solid rgba(156, 141, 232, 0.3);
    border-radius: 15px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: popIn 0.4s ease;
}

.popup-box h3 {
    color: #9C8DE8;
    font-size: 18px;
    margin-bottom: 16px;
}

.popup-box p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.popup-box .btn {
    margin-top: 8px;
}

.chat-popup-box {
    max-width: 420px;
}

.chat-detail-content {
    text-align: left;
    margin-bottom: 20px;
}

.detail-row {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.detail-row strong {
    color: #9C8DE8;
    min-width: 90px;
    display: inline-block;
}

.edit-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #ffffff;
    font-size: 15px;
    margin-bottom: 16px;
}

.edit-input:focus {
    outline: none;
    border-color: #9C8DE8;
}

.popup-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
}

.chat-info-box {
    max-width: 360px;
}

.chat-info-header {
    margin-bottom: 20px;
}

.chat-avatar-large {
    width: 60px;
    height: 60px;
    background: #9C8DE8;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 22px;
    margin: 0 auto 12px;
}

.chat-info-title h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px;
}

.chat-info-title .online-status {
    font-size: 13px;
    margin-top: 4px;
    display: inline-block;
}

.chat-info-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.info-action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.info-action-btn:hover {
    background: rgba(156, 141, 232, 0.2);
    border-color: #9C8DE8;
}

.info-action-btn.danger:hover {
    background: rgba(255, 77, 77, 0.2);
    border-color: #ff4d4d;
}

.popup-close-btn {
    background: #9C8DE8;
    border: none;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s ease;
}

.popup-close-btn:hover {
    background: #8477d4;
}

.image-viewer-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
    flex-direction: column;
}

.image-viewer-overlay.active {
    display: flex;
}

.image-viewer-overlay img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.image-viewer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: background 0.2s ease;
}

.image-viewer-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.image-viewer-toolbar {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(0, 0, 0, 0.7);
    padding: 12px 20px;
    border-radius: 50px;
    z-index: 10001;
}

.image-viewer-info {
    color: white;
    font-size: 14px;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.image-viewer-download {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #9C8DE8;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.image-viewer-download:hover {
    background: #8477d4;
    transform: scale(1.1);
}

.verify-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.verify-box {
    background: #161439;
    border: 1px solid rgba(156, 141, 232, 0.3);
    border-radius: 16px;
    padding: 35px 30px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    animation: popIn 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.verify-logo {
    margin-bottom: 15px;
}

.verify-logo img {
    height: 60px;
    width: auto;
}

.verify-box h2 {
    color: #9C8DE8;
    font-size: 22px;
    margin-bottom: 8px;
}

.verify-box p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 25px;
}

.verify-box .form-group {
    margin-bottom: 15px;
    text-align: left;
}

.verify-box .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.verify-box .form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.verify-box .form-group input:focus {
    outline: none;
    border-color: #9C8DE8;
}

.verify-box .form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.verify-box .btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    margin-top: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
