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

:root {
    --purple: #7c3aed;
    --dark-purple: #6d28d9;
    --pink: #ec4899;
    --light-pink: #fdf2f8;
    --light-purple: #f5f3ff;
    --text: #241f2b;
    --muted: #716b78;
    --white: #ffffff;
    --border: #eadff0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #fff7fc, #f7f3ff);
    color: var(--text);
    min-height: 100vh;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

/* TOP NAVIGATION */

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;

    min-height: 72px;

    background: rgba(255, 255, 255, 0.95);

    backdrop-filter: blur(12px);

    border-bottom: 1px solid var(--border);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 6%;

    gap: 20px;
}

.brand {
    border: none;
    background: none;

    font-weight: 900;
    font-size: 26px;

    letter-spacing: 1px;

    background: linear-gradient(
        90deg,
        var(--purple),
        var(--pink)
    );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.nav {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.nav button,
.small-btn {
    border: none;

    background: transparent;

    padding: 10px 12px;

    border-radius: 12px;

    color: #443c4b;
}

.nav button:hover,
.nav button.active {
    background: var(--light-purple);
    color: var(--purple);
}

.small-btn {
    border: 1px solid #d8c8e8;

    color: var(--purple);

    font-weight: 700;
}

/* PAGES */

.page {
    display: none;

    min-height: calc(100vh - 140px);
}

.page.active {
    display: block;
}

/* HOME */

.hero {
    max-width: 900px;

    margin: 0 auto;

    padding: 100px 22px 65px;

    text-align: center;
}

.badge {
    display: inline-block;

    padding: 9px 14px;

    border-radius: 999px;

    background: var(--light-pink);

    color: var(--pink);

    font-weight: 700;

    margin-bottom: 22px;
}

.hero h1 {
    font-size: clamp(44px, 8vw, 76px);

    line-height: 1.03;

    margin-bottom: 22px;
}

.hero h1 span {
    background: linear-gradient(
        90deg,
        var(--purple),
        var(--pink)
    );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.hero p {
    max-width: 650px;

    margin: 0 auto 30px;

    color: var(--muted);

    font-size: 19px;

    line-height: 1.6;
}

.hero-actions {
    display: flex;

    justify-content: center;

    gap: 12px;

    flex-wrap: wrap;
}

/* BUTTONS */

.btn {
    border: none;

    border-radius: 14px;

    padding: 13px 20px;

    font-weight: 800;

    transition:
        0.15s transform,
        0.15s opacity;
}

.btn:hover {
    transform: translateY(-1px);

    opacity: 0.93;
}

.primary {
    background: linear-gradient(
        90deg,
        var(--purple),
        var(--pink)
    );

    color: white;
}

.secondary {
    background: white;

    color: var(--purple);

    border: 1px solid #d9c9ea;
}

.danger {
    background: #fff0f5;

    color: #c02667;

    border: 1px solid #f4bfd7;
}

.full {
    width: 100%;
}

/* FEATURES */

.feature-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 22px;

    max-width: 1050px;

    margin: 0 auto;

    padding: 0 22px 70px;
}

.feature-card {
    background: white;

    border: 1px solid var(--border);

    box-shadow:
        0 15px 40px
        rgba(72, 37, 94, 0.08);

    border-radius: 24px;

    padding: 30px;

    text-align: center;
}

.icon {
    font-size: 40px;

    margin-bottom: 12px;
}

.feature-card h3 {
    margin-bottom: 9px;
}

.feature-card p {
    color: var(--muted);

    line-height: 1.5;
}

/* GENERAL CONTAINERS */

.container {
    max-width: 1100px;

    margin: auto;

    padding: 55px 22px;
}

.narrow {
    max-width: 720px;
}

/* FORMS */

.form-card {
    max-width: 520px;

    margin: 55px auto;

    padding: 34px;

    background: white;

    border: 1px solid var(--border);

    box-shadow:
        0 15px 40px
        rgba(72, 37, 94, 0.08);

    border-radius: 24px;
}

.form-card h2 {
    font-size: 30px;

    margin-bottom: 8px;
}

.muted {
    color: var(--muted);

    line-height: 1.5;
}

.form-card form {
    margin-top: 22px;
}

input,
textarea,
select {
    width: 100%;

    border: 1px solid #ded4e5;

    background: white;

    border-radius: 13px;

    padding: 13px 14px;

    margin-bottom: 13px;

    outline: none;

    color: var(--text);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--pink);

    box-shadow:
        0 0 0 3px
        rgba(236, 72, 153, 0.10);
}

textarea {
    min-height: 120px;

    resize: vertical;
}

.switch-text {
    text-align: center;

    margin-top: 18px;

    color: var(--muted);
}

.text-btn {
    border: none;

    background: none;

    color: var(--purple);

    font-weight: 800;
}

/* DISCOVER */

.section-head {
    display: flex;

    justify-content: space-between;

    margin-bottom: 24px;
}

.section-head h2 {
    font-size: 34px;
}

.filters {
    display: grid;

    grid-template-columns:
        1fr 230px;

    gap: 12px;

    margin-bottom: 25px;
}

.people-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));

    gap: 20px;
}

.person {
    background: white;

    border: 1px solid var(--border);

    box-shadow:
        0 15px 40px
        rgba(72, 37, 94, 0.08);

    border-radius: 24px;

    padding: 24px;
}

.avatar {
    width: 76px;

    height: 76px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            135deg,
            var(--light-purple),
            var(--light-pink)
        );

    font-size: 34px;

    margin-bottom: 15px;
}

.person h3 {
    margin-bottom: 4px;
}

.username,
.location {
    color: var(--muted);

    font-size: 14px;
}

.tags {
    display: flex;

    gap: 7px;

    flex-wrap: wrap;

    margin: 14px 0;
}

.tag {
    background: var(--light-purple);

    color: var(--purple);

    padding: 6px 9px;

    border-radius: 999px;

    font-size: 12px;

    font-weight: 700;
}

/* PROFILE */

.profile-card {
    text-align: center;

    padding: 45px 30px;

    background: white;

    border: 1px solid var(--border);

    box-shadow:
        0 15px 40px
        rgba(72, 37, 94, 0.08);

    border-radius: 24px;
}

.profile-avatar {
    width: 120px;

    height: 120px;

    border-radius: 50%;

    margin: 0 auto 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #f3e8ff,
            #fce7f3
        );

    font-size: 52px;
}

.profile-card h2 {
    font-size: 32px;
}

.profile-bio {
    color: var(--muted);

    line-height: 1.6;

    margin: 18px auto;

    max-width: 520px;
}

.profile-card .btn {
    margin: 5px;
}

/* MESSAGES */

.chat-card {
    background: white;

    padding: 25px;

    border: 1px solid var(--border);

    box-shadow:
        0 15px 40px
        rgba(72, 37, 94, 0.08);

    border-radius: 24px;
}

.chat-header {
    padding-bottom: 15px;

    border-bottom: 1px solid var(--border);
}

.message-list {
    min-height: 260px;

    padding: 18px 0;

    display: flex;

    flex-direction: column;

    gap: 10px;
}

.bubble {
    max-width: 75%;

    padding: 10px 13px;

    border-radius: 16px;

    background: var(--light-purple);

    align-self: flex-start;
}

.bubble.me {
    background:
        linear-gradient(
            90deg,
            var(--purple),
            var(--pink)
        );

    color: white;

    align-self: flex-end;
}

.message-form {
    display: flex;

    gap: 8px;
}

.message-form input {
    margin: 0;
}

.message-form .btn {
    white-space: nowrap;
}

.tiny {
    font-size: 12px;

    color: #8a818f;

    margin-top: 12px;
}

/* SETTINGS */

.danger-zone {
    margin-top: 30px;

    padding-top: 25px;

    border-top: 1px solid var(--border);
}

.danger-zone h3 {
    margin-bottom: 6px;
}

.danger-zone p {
    color: var(--muted);

    font-size: 14px;

    margin-bottom: 12px;
}

/* TOAST MESSAGE */

.toast {
    position: fixed;

    right: 20px;

    bottom: 20px;

    background: #241f2b;

    color: white;

    padding: 12px 16px;

    border-radius: 12px;

    opacity: 0;

    pointer-events: none;

    transition: 0.2s;

    z-index: 50;
}

.toast.show {
    opacity: 1;
}

/* FOOTER */

footer {
    text-align: center;

    padding: 28px;

    color: #83798a;

    background: white;

    border-top: 1px solid var(--border);
}

/* MOBILE */

@media (max-width: 800px) {

    .topbar {
        height: auto;

        min-height: 70px;

        padding: 12px 16px;

        flex-wrap: wrap;
    }

    .nav {
        order: 3;

        width: 100%;

        justify-content: center;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .filters {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {

    .nav button {
        font-size: 12px;

        padding: 8px;
    }

    .hero h1 {
        font-size: 43px;
    }

    .form-card {
        margin: 30px 15px;

        padding: 25px;
    }

    .message-form {
        flex-direction: column;
    }

    .message-form .btn {
        width: 100%;
    }
}



/* FRIEND REQUESTS */
.friend-request-card {
    background: white;
    border: 1px solid var(--border);
    box-shadow: 0 15px 40px rgba(72, 37, 94, 0.08);
    border-radius: 24px;
    padding: 24px;
}
.friend-request-card h3 { margin-bottom: 4px; }
.friend-request-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.friend-request-actions .btn {
    flex: 1;
    min-width: 110px;
}
/* ============================================================
   NOTIFICATIONS
   ============================================================ */

.notification-nav-button {
    position: relative;
}


.notification-badge {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 20px;
    height: 20px;

    padding: 0 6px;

    margin-left: 5px;

    border-radius: 999px;

    background: var(--pink);

    color: white;

    font-size: 11px;

    font-weight: bold;
}


.notification-card {
    max-width: 800px;

    margin-left: auto;
    margin-right: auto;
}


.notification-heading {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding-bottom: 18px;

    border-bottom: 1px solid var(--border);
}


.notifications-list {
    display: flex;

    flex-direction: column;

    gap: 10px;

    padding-top: 18px;
}


.notification-item {
    display: flex;

    align-items: flex-start;

    gap: 14px;

    padding: 15px;

    border-radius: 16px;

    background: var(--light-purple);

    border: 1px solid transparent;

    transition: 0.2s ease;
}


.notification-item:hover {
    border-color: var(--border);
}


.notification-item.unread {
    background:
        linear-gradient(
            90deg,
            rgba(123, 63, 242, 0.10),
            rgba(255, 105, 180, 0.08)
        );

    border-color: rgba(123, 63, 242, 0.18);
}


.notification-icon {
    width: 42px;

    height: 42px;

    min-width: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: white;

    font-size: 20px;

    box-shadow:
        0 4px 12px
        rgba(72, 37, 94, 0.08);
}


.notification-content {
    flex: 1;
}


.notification-message {
    margin: 0;

    font-size: 14px;

    line-height: 1.5;
}


.notification-time {
    margin-top: 5px;

    font-size: 11px;

    opacity: 0.6;
}


@media (max-width: 700px) {

    .notification-heading {
        flex-direction: column;

        align-items: flex-start;
    }

    .notification-heading .small-btn {
        width: 100%;
    }

}
/* ============================================================
   PROFILE PICTURE SIZE FIX
   ============================================================ */

.profile-avatar {
    width: 180px;
    height: 180px;
    min-width: 180px;
    min-height: 180px;

    border-radius: 50%;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto;

    background: var(--light-purple);

    position: relative;
}

.profile-avatar img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    border-radius: 50%;
}
/* ============================================================
   CIRCLE SAFETY BUTTONS
   ============================================================ */

.discover-avatar {
    width: 90px;
    height: 90px;

    margin: 0 auto 14px;

    border-radius: 50%;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--light-purple);

    font-size: 42px;
}

.discover-avatar-image {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

.discover-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 16px;
}

.discover-actions button {
    flex: 1;

    min-width: 100px;
}

.block-user-button,
.report-user-button {
    background: white;
}

/* ============================================================
   CIRCLE MOBILE UPDATE
   ============================================================ */

@media (max-width: 500px) {

    body {
        overflow-x: hidden;
    }

    .topbar {
        padding: 12px 10px;
        gap: 10px;
    }

    .brand {
        font-size: 22px;
    }

    .nav {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        gap: 5px;

        overflow-x: auto;
        flex-wrap: nowrap;

        padding-bottom: 4px;
    }

    .nav button {
        flex: 0 0 auto;
        white-space: nowrap;

        font-size: 13px;
        padding: 9px 10px;
    }

    .container {
        width: 100%;
        padding: 30px 14px;
    }

    .narrow {
        width: 100%;
    }

    /* HOME */

    .hero {
        padding: 65px 18px 45px;
    }

    .hero h1 {
        font-size: 43px;
    }

    .hero p {
        font-size: 16px;
    }

    .feature-grid {
        padding: 0 14px 45px;
        gap: 14px;
    }

    .feature-card {
        padding: 24px 18px;
    }

    /* DISCOVER */

    .section-head {
        display: block;
    }

    .section-head h2 {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .filters {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .people-grid {
        grid-template-columns: 1fr;
    }

    .user-card {
        width: 100%;
        min-width: 0;
        padding: 20px;
    }

    .discover-actions {
        flex-direction: column;
    }

    .discover-actions button {
        width: 100%;
        min-width: 0;
    }

    /* PROFILE */

    .profile-card {
        padding: 30px 16px;
    }

    .profile-card h2 {
        font-size: 27px;
    }

    .profile-avatar {
        width: 150px;
        height: 150px;
        min-width: 150px;
        min-height: 150px;
    }

    .profile-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

    /* MESSAGES */

    .chat-card {
        padding: 16px;
        border-radius: 18px;
    }

    .message-list {
        min-height: 300px;
        max-height: 55vh;
        overflow-y: auto;
    }

    .bubble {
        max-width: 85%;
        overflow-wrap: anywhere;
    }

    .message-form {
        flex-direction: column;
    }

    .message-form input {
        width: 100%;
    }

    .message-form .btn {
        width: 100%;
    }

    /* FRIEND REQUESTS */

    .friend-request-card {
        padding: 18px;
    }

    .friend-request-actions {
        flex-direction: column;
    }

    .friend-request-actions .btn {
        width: 100%;
    }

    /* FORMS */

    .form-card {
        width: calc(100% - 20px);
        margin: 25px auto;
        padding: 24px 18px;
    }

    /* BUTTONS */

    .btn {
        min-height: 44px;
    }

    .small-btn {
        min-height: 44px;
    }

    /* FOOTER */

    footer {
        padding: 22px 14px;
        font-size: 13px;
    }

}