/* ============================================================
   OMNIA CLUB — Custom Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&display=swap');

:root {
    /* Bumble Dark Mode Palette */
    --bg-primary: #111418;
    --bg-secondary: #1C2126;
    --bg-tertiary: #272C33;
    --bg-card: #1C2126;
    --bg-hover: #272C33;

    --accent: #FFC629;
    /* Bumble Yellow */
    --accent-light: #FFD966;
    --accent-dark: #E6AE17;

    --text-primary: #FFFFFF;
    --text-secondary: #A0A5AA;
    --text-muted: #73787E;

    --border: #2E3339;
    --success: #2ecc71;
    --danger: #e74c3c;

    --bubble-own: #FFC629;
    /* User messages in yellow */
    --bubble-other: #272C33;

    --glass-bg: #1C2126;
    /* Solid cards instead of glass */
    --glass-border: #2E3339;
}

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

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ============= SCROLLBAR ============= */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-dark);
}

/* ============= BACKGROUNDS ============= */
.bg-gradient-dark {
    background: var(--bg-primary);
}

.bg-gradient-hero {
    background: radial-gradient(circle at 50% -20%, #1C2126 0%, #111418 80%);
}

/* ============= CARDS ============= */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.glass-card-hover {
    transition: all 0.2s ease-in-out;
}

.glass-card-hover:hover {
    background: var(--bg-hover);
    border-color: var(--text-muted);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

/* ============= BUTTONS ============= */
.btn-gold {
    background: var(--accent);
    color: #000000;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 9999px;
    /* Pill shape */
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.2px;
}

.btn-gold:hover {
    background: var(--accent-light);
    transform: scale(1.02);
}

.btn-gold:active {
    transform: scale(0.98);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 9999px;
    /* Pill shape */
    border: 2px solid var(--accent);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
}

.btn-outline:hover {
    background: rgba(255, 198, 41, 0.1);
    transform: scale(1.02);
}

/* ============= INPUTS ============= */
.input-dark {
    background: var(--bg-primary);
    border: 2px solid var(--border);
    color: var(--text-primary);
    padding: 14px 20px;
    border-radius: 16px;
    /* High roundness */
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    transition: all 0.2s ease;
    width: 100%;
}

.input-dark:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-card);
}

.input-dark::placeholder {
    color: var(--text-muted);
}

/* ============= MODAL ============= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

/* ============= CHAT BUBBLES ============= */
.chat-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
}

.message-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    max-width: 80%;
    animation: messageSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.message-row.own {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-row.other {
    align-self: flex-start;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
}

.message-bubble.own {
    background: var(--bubble-own);
    border-bottom-right-radius: 4px;
    color: #000000;
    font-weight: 500;
}

.message-bubble.other {
    background: var(--bubble-other);
    border-bottom-left-radius: 4px;
    color: var(--text-primary);
}

.message-time {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-align: right;
}

.message-bubble img {
    max-width: 280px;
    border-radius: 10px;
    margin-bottom: 4px;
    cursor: pointer;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* ============= STATUS INDICATOR ============= */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online {
    background: var(--success);
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.5);
    animation: pulse 2s infinite;
}

.status-dot.offline {
    background: var(--text-muted);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ============= AVATAR ============= */
.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.avatar-lg {
    width: 80px;
    height: 80px;
}

.avatar-sm {
    width: 36px;
    height: 36px;
}

.avatar-ring {
    border-color: var(--accent);
    border-width: 3px;
}

/* ============= NAV ============= */
.nav-glass {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
}

/* ============= CONVERSATION LIST ============= */
.conv-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.conv-item:hover,
.conv-item.active {
    background: var(--bg-hover);
}

.conv-item.active {
    border-left: 3px solid var(--accent);
}

/* ============= LOADING ============= */
.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ============= TOAST ============= */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 0.85rem;
    z-index: 100;
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
}

.toast.success {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71;
}

.toast.error {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* ============= RESPONSIVE ============= */
@media (max-width: 768px) {
    .message-row {
        max-width: 90%;
    }

    .message-bubble img {
        max-width: 220px;
    }

    .hide-mobile {
        display: none !important;
    }

    .show-mobile {
        display: flex !important;
    }
}

/* ============= FILE UPLOAD ============= */
.upload-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.upload-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
}

/* ============= LOGO TEXT ============= */
.logo-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.5px;
}

/* ============= DIVIDER ============= */
.divider-gold {
    width: 48px;
    height: 4px;
    background: var(--accent);
    margin: 0 auto;
    border-radius: 9999px;
}

/* ============= NOTIFICATION SECTION ============= */
.modal-section-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin: 24px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-toggle-notif {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-toggle-notif.active {
    background: var(--accent);
    color: #000000;
    border: 2px solid var(--accent);
}

.btn-toggle-notif.inactive {
    background: rgba(255, 198, 41, 0.05);
    color: var(--text-secondary);
    border: 2px solid var(--border);
}

.btn-toggle-notif:hover {
    transform: translateY(-2px);
}