/* ============= VARIABLES & RESET ============= */
:root {
    --primary: #e63946;
    --primary-dark: #c1121f;
    --secondary: #457b9d;
    --accent: #f4a261;
    --dark: #1d3557;
    --light: #f1faee;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--gray-800);
    background: var(--gray-100);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

select,
input {
    font-family: inherit;
    font-size: 14px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hidden {
    display: none !important;
}

.w-full {
    width: 100%;
}

/* ============= LOADER ============= */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-300);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============= CUSTOM ALERT ============= */
.custom-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.alert-content {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
    min-width: 320px;
    box-shadow: var(--shadow-lg);
    animation: popIn 0.3s ease;
}

.alert-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.alert-content.success .alert-icon {
    color: #2ecc71;
}

.alert-content.error .alert-icon {
    color: var(--primary);
}

.alert-content.info .alert-icon {
    color: var(--secondary);
}

.alert-message {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--gray-700);
}

.alert-close-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 30px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.alert-close-btn:hover {
    background: var(--primary-dark);
}

/* ============= CUSTOM CONFIRM ============= */
.custom-confirm {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.confirm-content {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
    min-width: 340px;
    box-shadow: var(--shadow-lg);
    animation: popIn 0.3s ease;
}

.confirm-icon {
    font-size: 48px;
    color: var(--accent);
    margin-bottom: 15px;
    display: block;
}

.confirm-message {
    font-size: 16px;
    margin-bottom: 25px;
    color: var(--gray-700);
}

.confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-yes {
    background: var(--primary);
    color: var(--white);
    padding: 10px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
}

.confirm-yes:hover {
    background: var(--primary-dark);
}

.confirm-no {
    background: var(--gray-200);
    color: var(--gray-700);
    padding: 10px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
}

.confirm-no:hover {
    background: var(--gray-300);
}

@keyframes popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============= NAVBAR ============= */
.navbar {
    background: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    color: var(--primary);
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    color: var(--gray-700);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.btn-nav {
    background: var(--primary);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.btn-nav:hover {
    background: var(--primary-dark);
}

.btn-login {
    background: transparent;
    color: var(--primary) !important;
    border: 2px solid var(--primary);
}

.btn-login:hover {
    background: var(--primary);
    color: var(--white) !important;
}

.hamburger {
    display: none;
    font-size: 24px;
    color: var(--dark);
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-menu a {
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
}

.mobile-app-nav {
    display: none;
}

@media (max-width: 768px) {
    body:not(.dashboard-page) {
        padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px));
    }

    .mobile-app-nav {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        z-index: 950;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 4px;
        padding: 6px;
        border: 1px solid rgba(255, 255, 255, 0.58);
        border-radius: 22px;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.48));
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.88),
            inset 0 -1px 0 rgba(29, 53, 87, 0.05),
            0 -14px 34px rgba(29, 53, 87, 0.16);
        backdrop-filter: blur(24px) saturate(1.55);
        -webkit-backdrop-filter: blur(24px) saturate(1.55);
    }

    .dashboard-page .mobile-app-nav {
        display: none;
    }

    .mobile-app-nav a {
        min-width: 0;
        min-height: 46px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        border-radius: 16px;
        color: #6f7b88;
        font-size: 9px;
        font-weight: 800;
        transition: all 0.22s ease;
    }

    .mobile-app-nav a i {
        width: 24px;
        height: 24px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 9px;
        background: rgba(241, 244, 248, 0.72);
        color: #6f7b88;
        font-size: 13px;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
    }

    .mobile-app-nav a.active {
        color: #ffffff;
        background:
            linear-gradient(180deg, rgba(230, 57, 70, 0.96), rgba(230, 57, 70, 0.86));
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.32),
            0 10px 24px rgba(230, 57, 70, 0.26);
    }

    .mobile-app-nav a.active i {
        color: var(--primary);
        background: #ffffff;
    }
}

/* ============= HERO ============= */
.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--dark) 0%, var(--secondary) 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="30" r="2" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="70" r="3" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="50" r="1.5" fill="rgba(255,255,255,0.05)"/></svg>');
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 0;
    width: 100%;
}

.hero-content h1 {
    font-size: 48px;
    color: var(--white);
    margin-bottom: 15px;
}

.hero-content h1 span {
    color: var(--accent);
}

.hero-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 35px;
}

.hero-search {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: var(--radius);
    max-width: 700px;
    margin: 0 auto;
}

.hero-search select {
    padding: 12px 16px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--white);
    font-size: 14px;
    min-width: 150px;
}

/* ============= HOME PAGE REFRESH ============= */
.home-page {
    background: linear-gradient(180deg, #fff7f7 0, #f7f8fc 520px, #ffffff 100%);
}

.home-page .home-hero {
    min-height: 560px;
    padding: 54px 0 44px;
    background:
        linear-gradient(135deg, rgba(29, 53, 87, 0.92), rgba(69, 123, 157, 0.86)),
        #1d3557;
}

.home-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "copy"
        "search";
    gap: 28px;
    align-items: center;
}

.home-hero-copy {
    grid-area: copy;
    text-align: center;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 13px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 13px;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.home-hero-copy h1 {
    max-width: 660px;
    margin: 0 auto 16px;
    color: #ffffff;
    font-size: 52px;
    line-height: 1.06;
    letter-spacing: 0;
}

.home-hero-copy p {
    max-width: 560px;
    margin: 0 auto 22px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.65;
}

.hero-trust-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
}

.hero-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.hero-trust-row i {
    color: #f4a261;
}

.home-page .hero-search {
    grid-area: search;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 12px;
    max-width: none;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 14px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.11));
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(18px);
}

.hero-field {
    min-width: 0;
    padding: 8px 12px;
    border-radius: 15px;
    background: #ffffff;
}

.hero-field label {
    display: block;
    margin-bottom: 2px;
    color: #9aa6b2;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.45px;
    text-transform: uppercase;
}

.home-page .hero-search select {
    min-height: 48px;
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: var(--dark);
    background: transparent;
    font-size: 15px;
    font-weight: 800;
    outline: none;
}

.home-page .hero-search-btn {
    min-height: 62px;
    align-self: stretch;
    border-radius: 15px;
    white-space: nowrap;
}

.home-page .features,
.home-page .recent-profiles,
.home-page .membership {
    background: transparent;
}

.home-page .feature-card,
.home-page .plan-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(29, 53, 87, 0.08);
    box-shadow: 0 12px 30px rgba(29, 53, 87, 0.07);
}

.home-page .feature-card {
    border-radius: 18px;
}

.home-page .feature-card i {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 18px;
    color: #ffffff;
    background: var(--primary);
    font-size: 24px;
    box-shadow: 0 12px 24px rgba(230, 57, 70, 0.2);
}

.home-page .plan-card {
    border-radius: 20px;
}

.home-page .plan-card.popular {
    border-color: rgba(230, 57, 70, 0.34);
    box-shadow: 0 18px 42px rgba(230, 57, 70, 0.12);
}

@media (max-width: 768px) {
    .home-page .home-hero {
        min-height: auto;
        padding: 0 0 22px;
        align-items: flex-start;
    }

    .home-hero-inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "copy"
            "search";
        gap: 16px;
        padding-top: 28px;
    }

    .home-hero-copy {
        text-align: center;
    }

    .hero-kicker {
        margin-bottom: 12px;
        font-size: 11px;
        padding: 7px 11px;
    }

    .home-hero-copy h1 {
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
        font-size: 31px;
        line-height: 1.08;
    }

    .home-hero-copy p {
        max-width: 330px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 14px;
        font-size: 14px;
        line-height: 1.55;
    }

    .hero-trust-row {
        justify-content: center;
        gap: 6px;
        margin: 0 0 14px;
    }

    .hero-trust-row span {
        padding: 6px 9px;
        font-size: 9px;
        border-color: rgba(255, 255, 255, 0.14);
        background: rgba(255, 255, 255, 0.09);
    }

    .home-page .hero-search {
        display: grid;
        grid-template-columns: 1fr;
        max-width: 340px;
        gap: 8px;
        padding: 10px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.16);
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
    }

    .hero-field {
        padding: 8px 12px;
        border-radius: 14px;
    }

    .home-page .hero-search select {
        min-height: 34px;
        font-size: 14px !important;
    }

    .home-page .hero-search-btn {
        min-height: 46px;
        font-size: 15px !important;
    }

    .home-page .features,
    .home-page .recent-profiles,
    .home-page .membership {
        padding: 46px 0;
    }

    .home-page .section-title {
        font-size: 25px;
    }
}

@media (max-width: 430px) {
    .home-hero-inner {
        padding-top: 24px;
    }

    .home-hero-copy h1 {
        font-size: 28px;
        max-width: 310px;
    }

    .home-hero-copy p {
        font-size: 13px;
        max-width: 300px;
    }

    .hero-trust-row span:nth-child(3) {
        display: none;
    }

    .home-page .hero-search {
        max-width: 330px;
        padding: 10px;
    }
}

/* ============= BUTTONS ============= */
.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    border: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    border: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: var(--gray-300);
}

/* ============= FEATURES ============= */
.features {
    padding: 80px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--dark);
}

.section-title span {
    color: var(--primary);
}

.section-subtitle {
    text-align: center;
    color: var(--gray-600);
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    text-align: center;
    padding: 40px 25px;
    border-radius: var(--radius);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 10px;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray-600);
    font-size: 14px;
}

/* ============= MEMBERSHIP ============= */
.membership {
    padding: 80px 0;
    background: var(--gray-100);
}

.recent-profiles {
    padding: 70px 0;
    background: var(--white);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.plan-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    position: relative;
    border: 2px solid var(--gray-200);
    transition: var(--transition);
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.plan-card.popular {
    border-color: var(--primary);
    transform: scale(1.02);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.plan-header h3 {
    font-size: 22px;
    color: var(--dark);
    margin-bottom: 10px;
}

.plan-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 25px;
}

.plan-price span {
    font-size: 14px;
    color: var(--gray-600);
    font-weight: 400;
}

.plan-features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.plan-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.plan-features li .fa-check {
    color: #2ecc71;
}

.plan-features li .fa-xmark {
    color: var(--gray-400);
}

.btn-plan {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: 2px solid var(--primary);
    color: var(--primary);
    transition: var(--transition);
}

.btn-plan:hover,
.btn-plan-popular {
    background: var(--primary);
    color: var(--white);
}

/* ============= MODAL ============= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    padding: 20px;
}

.modal-box {
    background: var(--white);
    border-radius: var(--radius);
    width: 100%;
    max-width: 480px;
    padding: 30px;
    animation: popIn 0.3s ease;
}

.modal-box.modal-lg {
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-header h3 {
    font-size: 20px;
    color: var(--dark);
}

.modal-close {
    background: none;
    font-size: 20px;
    color: var(--gray-600);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary);
}

/* ============= FORMS ============= */
.form-group {
    margin-bottom: 20px;
}

.form-group>label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-group input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition);
    background: var(--white);
    outline: none;
}

.form-group input:not([type="radio"]):not([type="checkbox"]):not([type="file"]):focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

/* ============= FLOATING LABEL INPUT ============= */
.floating-input {
    position: relative;
    margin-bottom: 20px;
}

.floating-input input,
.floating-input select,
.floating-input textarea {
    width: 100%;
    padding: 18px 14px 8px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition);
    background: var(--white);
    outline: none;
}

/* Fix autofill background color */
.floating-input input:-webkit-autofill,
.floating-input input:-webkit-autofill:hover,
.floating-input input:-webkit-autofill:focus,
.floating-input input:-webkit-autofill:active,
.floating-input select:-webkit-autofill,
.floating-input select:-webkit-autofill:hover,
.floating-input select:-webkit-autofill:focus,
.floating-input select:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--white) inset !important;
    box-shadow: 0 0 0 30px var(--white) inset !important;
    -webkit-text-fill-color: var(--gray-800) !important;
    transition: background-color 5000s ease-in-out 0s;
    background-color: var(--white) !important;
}

.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group select:-webkit-autofill,
.form-group select:-webkit-autofill:hover,
.form-group select:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px var(--white) inset !important;
    box-shadow: 0 0 0 30px var(--white) inset !important;
    -webkit-text-fill-color: var(--gray-800) !important;
    transition: background-color 5000s ease-in-out 0s;
    background-color: var(--white) !important;
}

.floating-input textarea {
    min-height: 80px;
    resize: vertical;
}

.floating-input label {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--gray-500);
    pointer-events: none;
    transition: all 0.2s ease;
    background: var(--white);
    padding: 0 5px;
    z-index: 1;
}

.floating-input textarea~label {
    top: 22px;
}

/* Float up when focused or has content */
.floating-input input:focus~label,
.floating-input input:not(:placeholder-shown)~label,
.floating-input input:-webkit-autofill~label,
.floating-input textarea:focus~label,
.floating-input textarea:not(:placeholder-shown)~label {
    top: 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    transform: translateY(-50%);
}

/* Select always shows label up (since it always has a value) */
.floating-input select~label {
    top: 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-600);
    transform: translateY(-50%);
}

.floating-input input:focus~label,
.floating-input select:focus~label,
.floating-input textarea:focus~label {
    color: var(--primary);
}

.floating-input input:focus,
.floating-input select:focus,
.floating-input textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

/* When not focused but has value */
.floating-input input:not(:focus):not(:placeholder-shown)~label {
    color: var(--gray-600);
}

/* Password field */
.password-field {
    position: relative;
}

.password-field input {
    padding-right: 42px;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--gray-500);
    z-index: 2;
}

/* When password-field is inside floating-input, label comes after .password-field div */
.floating-input .password-field+label {
    position: absolute;
    top: 0;
    left: 14px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-600);
    transform: translateY(-50%);
    background: var(--white);
    padding: 0 5px;
    pointer-events: none;
    z-index: 1;
}

.floating-input .password-field:focus-within+label {
    color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-row.three-col {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-footer {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: var(--gray-600);
}

.form-footer a {
    color: var(--primary);
    font-weight: 600;
}

.radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.radio-group.vertical {
    flex-direction: column;
    gap: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px 18px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 14px;
    user-select: none;
}

.radio-label:hover {
    border-color: var(--gray-400);
    background: var(--gray-100);
}

.radio-label:has(input:checked) {
    border-color: var(--primary);
    background: rgba(230, 57, 70, 0.05);
}

.radio-label input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--gray-400);
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
}

.radio-label input[type="radio"]:checked {
    border-color: var(--primary);
}

.radio-label input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

.radio-label span {
    font-weight: 500;
    color: var(--gray-700);
}

/* Other input (shows when "Others" selected) */
.other-input {
    display: none;
    margin-top: 8px;
    margin-bottom: 20px;
}

.other-input.show {
    display: block;
}

.other-input input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition);
}

.other-input input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

/* ============= REGISTER ============= */
.register-section {
    padding: 40px 0 80px;
}

.register-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.register-card h2 {
    text-align: center;
    color: var(--dark);
    margin-bottom: 5px;
}

.register-subtitle {
    text-align: center;
    color: var(--gray-600);
    margin-bottom: 30px;
}

/* Step Progress */
.step-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    padding: 0 10px;
}

.step-progress::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: var(--gray-300);
    z-index: 0;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.step-item span {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-300);
    color: var(--gray-600);
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
}

.step-item p {
    font-size: 11px;
    color: var(--gray-500);
    font-weight: 500;
}

.step-item.active span {
    background: var(--primary);
    color: var(--white);
}

.step-item.active p {
    color: var(--primary);
}

.step-item.completed span {
    background: #2ecc71;
    color: var(--white);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-title {
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-title i {
    color: var(--primary);
}

.sub-heading {
    font-size: 15px;
    color: var(--dark);
    margin: 25px 0 15px;
    padding-top: 15px;
    border-top: 1px solid var(--gray-200);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

/* ============= IMAGE UPLOAD ============= */
.image-upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.image-upload-area:hover {
    border-color: var(--primary);
    background: rgba(230, 57, 70, 0.02);
}

.upload-placeholder i {
    font-size: 40px;
    color: var(--gray-400);
    margin-bottom: 10px;
}

.upload-placeholder p {
    font-weight: 600;
    color: var(--gray-600);
}

.upload-placeholder span {
    font-size: 12px;
    color: var(--gray-500);
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.image-preview-grid .preview-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
    border: 2px solid var(--gray-200);
}

.image-preview-grid .preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.image-preview-grid .preview-item .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--primary);
    color: var(--white);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Document Upload */
.document-upload {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.document-upload:hover {
    border-color: var(--secondary);
}

.doc-placeholder i {
    font-size: 32px;
    color: var(--secondary);
    margin-bottom: 8px;
}

.doc-placeholder p {
    font-weight: 600;
    color: var(--gray-600);
    font-size: 14px;
}

.doc-placeholder span {
    font-size: 12px;
    color: var(--gray-500);
}

.doc-preview {
    margin-top: 10px;
    padding: 10px 15px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    display: none;
    align-items: center;
    justify-content: space-between;
}

.doc-preview.show {
    display: flex;
}

.doc-preview .doc-name {
    font-size: 13px;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 8px;
}

.doc-preview .doc-remove {
    color: var(--primary);
    cursor: pointer;
    font-size: 16px;
}

/* ============= DASHBOARD ============= */
.dashboard-section {
    padding: 30px 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

.dash-sidebar {
    position: sticky;
    top: 90px;
    align-self: start;
}

.profile-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.profile-photo-wrapper {
    width: 140px;
    height: 180px;
    margin: 0 auto 15px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid var(--primary);
}

.profile-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-edit-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: var(--primary);
    color: var(--white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-card h3 {
    color: var(--dark);
    margin-bottom: 4px;
}

.profile-id {
    font-size: 12px;
    color: var(--gray-500);
    display: block;
    margin-bottom: 10px;
}

.membership-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.membership-badge.gold {
    background: linear-gradient(135deg, #f4a261, #e76f51);
    color: var(--white);
}

.membership-badge.free {
    background: var(--gray-200);
    color: var(--gray-600);
}

.dash-nav {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.dash-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.dash-nav a:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.dash-nav a.active {
    border-left-color: var(--primary);
    background: rgba(230, 57, 70, 0.05);
    color: var(--primary);
}

.dash-nav a i {
    width: 20px;
    text-align: center;
}

.dash-main {
    min-height: 400px;
}

.dash-section {
    display: none;
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.dash-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-200);
}

.section-header h3 {
    font-size: 18px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h3 i {
    color: var(--primary);
}

.btn-edit {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-edit:hover {
    background: var(--primary);
    color: var(--white);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 15px;
    color: var(--dark);
    font-weight: 500;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.photo-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 4/5;
    border: 2px solid var(--gray-200);
    cursor: pointer;
    background: #f0f0f0;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    background: inherit;
}

.photo-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(230, 57, 70, 0.9);
    color: var(--white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.photo-item:hover .photo-delete {
    opacity: 1;
}

.current-plan-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #1d3557, #457b9d);
    padding: 25px;
    border-radius: var(--radius);
    color: var(--white);
}

.current-plan-card h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.current-plan-card p {
    font-size: 13px;
    opacity: 0.8;
}

/* ============= SEARCH ============= */
.search-section {
    padding: 30px 0;
}

.search-filters {
    background: var(--white);
    border-radius: var(--radius);
    padding: 14px 18px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.search-filters h3 {
    font-size: 14px;
    color: var(--dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    align-items: end;
}

.filter-grid select,
.filter-grid input {
    padding: 6px 10px;
    font-size: 13px;
}

.filter-grid label {
    font-size: 11px;
    margin-bottom: 2px;
}

.filter-btn-wrap {
    display: flex;
    align-items: end;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.results-header p {
    color: var(--gray-600);
    font-size: 14px;
}

.results-header select {
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
}

.profiles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.profile-card-item {
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    cursor: pointer;
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: stretch;
    border: 1px solid var(--gray-200);
}

.profile-card-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--gray-300);
}

.profile-card-img {
    width: 130px;
    min-height: 170px;
    overflow: hidden;
    position: relative;
    background: #111;
    border-radius: 12px 0 0 12px;
    aspect-ratio: 3/4;
}

.profile-card-img .blur-bg {
    display: none;
}

.profile-card-img img.main-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.profile-card-img .verified-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: none;
    color: #2ecc71;
    padding: 0;
    font-size: 18px;
    z-index: 2;
    line-height: 1;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}



.profile-card-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.profile-card-body h4 {
    color: var(--dark);
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}

.profile-card-body .profile-meta {
    font-size: 12px;
    color: var(--gray-500);
    margin: 0;
}

.profile-card-body .profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.profile-card-body .profile-tags span {
    background: #f0f4ff;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 10px;
    color: #3b5bdb;
    font-weight: 500;
}

.profile-card-actions {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    padding: 0;
    border: none;
}

.profile-card-actions button {
    background: var(--gray-100);
    border: none;
    font-size: 11px;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all .2s;
    font-weight: 500;
}

.profile-card-actions button:first-child {
    background: rgba(230, 57, 70, 0.08);
    color: #e63946;
}

.profile-card-actions button:first-child:hover {
    background: #e63946;
    color: #fff;
}

.profile-card-actions button:hover {
    background: #e9ecef;
}

.profile-card-img {
    aspect-ratio: 3/4;
    overflow: hidden;
    position: relative;
    background: #1a1a1a;
}

.profile-card-img .blur-bg {
    display: none;
}

.profile-card-img img.main-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.profile-card-img .verified-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    height: 11px;
    width: 11px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2ecc71;
    padding: 0;
    font-size: 18px;
    z-index: 2;
    line-height: 1;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}



.profile-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-card-body h4 {
    color: var(--dark);
    margin-bottom: 4px;
    font-size: 16px;
}

.profile-card-body .profile-meta {
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 10px;
}

.profile-card-body .profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

@media (max-width: 768px) {
    .profile-card-item {
        grid-template-columns: 100px 1fr;
    }

    .profile-card-img {
        width: 100px;
        min-height: 130px;
        aspect-ratio: 3/4;
    }

    .profile-card-img img.main-photo {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .profile-card-actions {
        flex-direction: row;
        border-left: none;
        border-top: 1px solid var(--gray-100);
        grid-column: 1 / -1;
        padding: 8px 12px;
        justify-content: space-around;
    }

    .profile-card-body {
        padding: 10px 12px;
    }

    .profile-card-body h4 {
        font-size: 13px;
    }

    .search-filters {
        padding: 12px 14px;
    }

    .filter-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .search-filters h3 {
        font-size: 13px;
        margin-bottom: 8px;
    }
}

@media (max-width: 768px) {
    .profiles-grid {
        grid-template-columns: 1fr;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.pagination button {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-700);
    font-weight: 500;
    transition: var(--transition);
}

.pagination button:hover,
.pagination button.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Profile Preview */
.profile-preview-content {
    padding: 10px 0;
}

.preview-header {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.preview-header img {
    width: 120px;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.preview-header .preview-info h3 {
    color: var(--dark);
    margin-bottom: 5px;
}

.preview-header .preview-info p {
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 3px;
}

.preview-sections .preview-sec {
    margin-bottom: 20px;
}

.preview-sections .preview-sec h4 {
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--gray-200);
}

.preview-sections .preview-sec .preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 13px;
}

.preview-sections .preview-sec .preview-grid span {
    color: var(--gray-500);
}

.preview-sections .preview-sec .preview-grid strong {
    color: var(--dark);
    font-weight: 500;
}

/* Profile detail view used by Search and Interests */
.profile-view-overlay {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(10px);
}

.profile-view-modal {
    width: min(780px, calc(100vw - 32px));
    max-height: min(86vh, 760px);
    padding: 0;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(29, 53, 87, 0.08);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.profile-view-header {
    margin: 0;
    padding: 16px 20px;
    background: #ffffff;
    border-bottom: 1px solid rgba(29, 53, 87, 0.08);
}

.profile-view-header h3 {
    color: var(--dark);
    font-size: 18px;
}

.profile-view-header .modal-close {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f4f6f8;
    color: var(--dark);
}

.profile-view-modal .profile-preview-content {
    max-height: calc(min(86vh, 760px) - 72px);
    overflow-y: auto;
    padding: 18px;
    background: #f6f8fb;
}

.profile-view-loading {
    padding: 48px 20px;
    text-align: center;
    color: #8b96a3;
}

.profile-view-hero {
    position: relative;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 18px;
    margin-bottom: 14px;
    overflow: hidden;
    border-radius: 18px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(29, 53, 87, 0.96), rgba(69, 123, 157, 0.92)),
        #1d3557;
}

.profile-view-hero::after {
    content: '';
    position: absolute;
    right: -70px;
    bottom: -105px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(244, 162, 97, 0.2);
}

.profile-view-photo-wrap,
.profile-view-main {
    position: relative;
    z-index: 1;
}

.profile-view-photo-wrap {
    width: 150px;
}

.profile-view-photo {
    width: 150px;
    height: 190px;
    object-fit: cover;
    border-radius: 16px;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
}

.profile-view-verified {
    position: absolute;
    right: -8px;
    bottom: 16px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #20c997;
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.profile-view-id {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 700;
}

.profile-view-main h2 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 26px;
    line-height: 1.15;
}

.profile-view-tags,
.profile-view-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.profile-view-tags span,
.profile-view-summary span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 700;
}

.profile-view-summary {
    margin-top: 8px;
}

.profile-view-tags i,
.profile-view-summary i {
    color: #f4a261;
}

.profile-view-contact,
.profile-view-upgrade {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 800;
}

.profile-view-contact.success {
    color: #0f5132;
    background: #d1f5df;
}

.profile-view-contact.locked {
    color: #9a3412;
    background: #fff0dc;
}

.profile-view-upgrade {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.profile-view-modal .preview-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.profile-view-modal .preview-sec {
    min-width: 0;
    margin: 0;
    padding: 16px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(29, 53, 87, 0.07);
    box-shadow: 0 10px 24px rgba(29, 53, 87, 0.05);
}

.profile-view-modal .preview-sec h4 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 12px;
    padding: 0 0 10px;
    color: var(--dark);
    border-bottom: 1px solid rgba(29, 53, 87, 0.08);
}

.profile-view-modal .preview-sec h4 i {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #ffffff;
    background: var(--primary);
}

.profile-view-modal .preview-grid {
    display: grid;
    grid-template-columns: minmax(100px, 0.8fr) minmax(0, 1fr);
    gap: 9px 12px;
    font-size: 13px;
}

.profile-view-modal .preview-grid span {
    color: #95a1af;
    font-weight: 700;
}

.profile-view-modal .preview-grid strong {
    min-width: 0;
    color: #082a53;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.profile-view-modal .profile-about {
    grid-column: 1 / -1;
}

.profile-view-modal .profile-about p {
    margin: 0;
    color: var(--gray-700);
    font-size: 14px;
    line-height: 1.7;
}

.profile-view-actions {
    position: sticky;
    bottom: -18px;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 14px -18px -18px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.94);
    border-top: 1px solid rgba(29, 53, 87, 0.08);
    backdrop-filter: blur(12px);
}

.profile-view-actions button {
    min-height: 42px;
    justify-content: center;
    border-radius: 13px;
}

/* ============= EDIT FORM GRID (Dashboard Modal) ============= */
.edit-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.edit-form-grid .floating-input {
    margin-bottom: 0;
}

.edit-form-grid .floating-input.full-width {
    grid-column: 1 / -1;
}

.edit-form-grid .floating-input input,
.edit-form-grid .floating-input select,
.edit-form-grid .floating-input textarea {
    width: 100%;
    padding: 16px 14px 8px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--white);
    outline: none;
    transition: var(--transition);
}

.edit-form-grid .floating-input textarea {
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
}

.edit-form-grid .floating-input label {
    position: absolute;
    top: 0;
    left: 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-600);
    transform: translateY(-50%);
    background: var(--white);
    padding: 0 4px;
    pointer-events: none;
}

.edit-form-grid .floating-input input:focus,
.edit-form-grid .floating-input select:focus,
.edit-form-grid .floating-input textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.08);
}

.edit-form-grid .floating-input input:focus~label,
.edit-form-grid .floating-input select:focus~label,
.edit-form-grid .floating-input textarea:focus~label {
    color: var(--primary);
}

@media (max-width: 600px) {
    .edit-form-grid {
        grid-template-columns: 1fr;
    }
}

/* ============= IMAGE PREVIEW MODAL ============= */
.preview-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.preview-modal-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: var(--radius);
    object-fit: contain;
}

.preview-modal-content .modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--white);
    font-size: 24px;
}

/* ============= FOOTER ============= */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-col a {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
}

/* ============= MY CHANGES (User Dashboard) ============= */
.my-change-card {
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 14px;
    background: var(--white);
    border-left: 4px solid var(--gray-300);
}

.my-change-card.pending {
    border-left-color: #f59f00;
    background: #fffbf0;
}

.my-change-card.approved {
    border-left-color: #37b24d;
    background: #f8fdf8;
}

.my-change-card.rejected {
    border-left-color: #e03131;
    background: #fff8f8;
}

.mc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.mc-section {
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 6px;
}

.mc-status {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mc-status.pending {
    background: #fff3cd;
    color: #856404;
}

.mc-status.approved {
    background: #d3f9d8;
    color: #2b8a3e;
}

.mc-status.rejected {
    background: #ffe3e3;
    color: #c92a2a;
}

.mc-date {
    font-size: 11px;
    color: var(--gray-400);
    margin-left: auto;
}

.mc-cancel {
    background: none;
    border: 1px solid var(--gray-300);
    width: 26px;
    height: 26px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    transition: all .2s;
}

.mc-cancel:hover {
    background: #ffe3e3;
    border-color: #ffc9c9;
    color: #c92a2a;
}

.mc-note {
    font-size: 12px;
    color: #c92a2a;
    background: #fff5f5;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mc-changes {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mc-field {
    display: flex;
    align-items: center;
    padding: 7px 12px;
    background: var(--gray-100);
    border-radius: 6px;
    gap: 12px;
}

.mc-field-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: .3px;
    min-width: 100px;
}

.mc-field-values {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    font-size: 13px;
}

.mc-old {
    color: #868e96;
    text-decoration: line-through;
}

.mc-arrow {
    color: var(--gray-400);
    font-size: 16px;
}

.mc-new {
    color: #2b8a3e;
    font-weight: 600;
}

.mc-field.field-approved {
    background: #ebfbee;
    border-left: 3px solid #37b24d;
}

.mc-field.field-rejected {
    background: #fff5f5;
    border-left: 3px solid #e03131;
}

.mc-field.field-rejected .mc-new {
    color: #868e96;
    text-decoration: line-through;
}

@media (max-width:600px) {
    .mc-field {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* ============= HOBBIES ============= */
.hobbies-display {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hobby-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    font-size: 13px;
    color: var(--dark);
    font-weight: 500;
}

.hobby-tag i {
    color: var(--primary);
    font-size: 14px;
}

.hobbies-editor {
    padding: 10px 0;
}

.hobbies-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    min-height: 44px;
    padding: 12px;
    border: 1.5px dashed var(--gray-300);
    border-radius: 10px;
    background: #fafbfc;
}

.hobbies-selected .hobby-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--primary);
    color: var(--white);
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.hobbies-selected .hobby-chip .chip-remove {
    cursor: pointer;
    opacity: .7;
    font-size: 14px;
}

.hobbies-selected .hobby-chip .chip-remove:hover {
    opacity: 1;
}

.hobbies-suggestions {
    margin-bottom: 14px;
}

.hobbies-suggestions h5 {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.suggestions-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hobby-suggestion {
    padding: 6px 12px;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    font-size: 12px;
    color: var(--gray-600);
    cursor: pointer;
    transition: all .15s;
    user-select: none;
}

.hobby-suggestion:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(230, 57, 70, .03);
}

.hobby-suggestion.selected {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.hobby-custom-input {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.hobby-custom-input input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid var(--gray-300);
    border-radius: 8px;
    font-size: 13px;
}

.hobby-custom-input input:focus {
    border-color: var(--primary);
    outline: none;
}

.hobby-custom-input button {
    padding: 10px 16px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

/* ============= RESPONSIVE ============= */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 30px;
    }

    .hero-search {
        flex-direction: column;
    }

    .hero-search select {
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-row.three-col {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dash-sidebar {
        position: static;
    }

    .step-progress {
        gap: 5px;
    }

    .step-item p {
        display: none;
    }

    .plans-grid {
        grid-template-columns: 1fr;
    }

    .plan-card.popular {
        transform: none;
    }

    .register-card {
        padding: 25px 20px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .profiles-grid {
        grid-template-columns: 1fr;
    }

    .preview-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.social-links a {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
}

/* ============= PASSWORD FIELD ============= */
.password-field {
    position: relative;
}

.password-field input {
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--gray-500);
}

/* ============= INTERESTS PAGE ============= */
.interests-section {
    padding: 30px 0;
}

.interests-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 25px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 5px;
    box-shadow: var(--shadow);
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: none;
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
}

.tab-btn.active {
    background: var(--primary);
    color: var(--white);
}

.tab-btn span {
    background: var(--primary);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 5px;
}

.tab-btn.active span {
    background: var(--white);
    color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.interest-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--white);
    padding: 15px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 12px;
}

.interest-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gray-200);
}

.interest-info {
    flex: 1;
}

.interest-info h4 {
    color: var(--dark);
    font-size: 15px;
    margin-bottom: 3px;
}

.interest-info p {
    font-size: 12px;
    color: var(--gray-600);
}

.interest-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-accepted {
    background: #d4edda;
    color: #155724;
}

.status-declined {
    background: #f8d7da;
    color: #721c24;
}

.interest-actions {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
    font-size: 15px;
}

/* Photo badge */
.photo-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: var(--primary);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

/* ============= RESPONSIVE ============= */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 30px;
    }

    .hero-search {
        flex-direction: column;
    }

    .hero-search select {
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-row.three-col {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dash-sidebar {
        position: static;
    }

    .step-progress {
        gap: 5px;
    }

    .step-item p {
        display: none;
    }

    .plans-grid {
        grid-template-columns: 1fr;
    }

    .plan-card.popular {
        transform: none;
    }

    .register-card {
        padding: 25px 20px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .profiles-grid {
        grid-template-columns: 1fr;
    }

    .preview-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .interest-card {
        flex-wrap: wrap;
    }

    .interest-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Search cards responsive */
@media (max-width: 900px) {
    .profiles-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .profile-card-item {
        grid-template-columns: 100px 1fr;
    }

    .profile-card-img {
        width: 100px;
        min-height: auto;
        aspect-ratio: 3/4;
    }

    .profile-card-img img.main-photo {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .profile-card-actions {
        flex-direction: row;
        border-left: none;
        border-top: 1px solid var(--gray-100);
        grid-column: 1 / -1;
        padding: 8px;
        justify-content: space-around;
    }
}

/* ============= MOBILE FILTER - BOTTOM SHEET + FLOATING BUTTON ============= */
.mobile-filter-btn {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 16px;
    z-index: 998;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    align-items: center;
    justify-content: center;
}

.register-crop-modal {
    position: fixed;
    inset: 0;
    z-index: 6000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.64);
    backdrop-filter: blur(10px);
}

.register-crop-panel {
    width: min(520px, 100%);
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.register-crop-header,
.register-crop-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
}

.register-crop-header {
    border-bottom: 1px solid rgba(29, 53, 87, 0.08);
}

.register-crop-header span {
    display: block;
    color: #9aa6b2;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.register-crop-header h3 {
    margin: 2px 0 0;
    color: var(--dark);
    font-size: 18px;
}

.register-crop-header button {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 13px;
    color: var(--dark);
    background: #f3f5f8;
}

.register-crop-body {
    padding: 16px;
    background: #111827;
}

.register-crop-body img {
    max-width: 100%;
    max-height: 60vh;
    display: block;
    margin: 0 auto;
}

.register-crop-footer {
    border-top: 1px solid rgba(29, 53, 87, 0.08);
    background: #f8fafc;
}

.register-crop-footer>span {
    color: #6f7b88;
    font-size: 12px;
    font-weight: 700;
}

.register-crop-footer>div {
    display: flex;
    gap: 10px;
}

@media (max-width: 600px) {
    .register-crop-modal {
        align-items: stretch;
        padding: 0;
        background: #f6f8fb;
        backdrop-filter: none;
    }

    .register-crop-panel {
        width: 100%;
        height: 100dvh;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    .register-crop-header {
        padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px;
        background: #ffffff;
    }

    .register-crop-body {
        flex: 1;
        min-height: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .register-crop-body img {
        max-height: calc(100dvh - 180px);
    }

    .register-crop-footer {
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
        flex-direction: column;
        align-items: stretch;
    }

    .register-crop-footer>div {
        display: grid;
        grid-template-columns: 0.85fr 1.15fr;
    }

    .register-crop-footer button {
        min-height: 48px;
        justify-content: center;
    }
}

.mobile-filter-backdrop {
    display: none;
}

@media (max-width: 768px) {
    body.filter-sheet-open {
        overflow: hidden;
    }

    .mobile-filter-btn {
        display: flex !important;
        right: 18px;
        bottom: calc(82px + env(safe-area-inset-bottom, 0px));
        z-index: 970;
        width: 50px;
        height: 50px;
        box-shadow: 0 10px 24px rgba(102, 126, 234, 0.35);
    }

    .mobile-filter-backdrop.active {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 9998;
        background: rgba(15, 23, 42, 0.42);
        backdrop-filter: blur(6px);
        animation: filterBackdropIn 0.2s ease;
    }

    @keyframes filterBackdropIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    .search-filters {
        display: none;
    }

    .search-filters.filter-open {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        background: white;
        border-radius: 16px 16px 0 0;
        padding: 0;
        margin: 0;
        box-shadow: 0 -18px 45px rgba(15, 23, 42, 0.2);
        animation: sheetUp 0.25s ease;
        padding-bottom: env(safe-area-inset-bottom, 16px);
    }

    @keyframes sheetUp {
        from {
            transform: translateY(100%);
        }

        to {
            transform: translateY(0);
        }
    }

    .search-filters.filter-open h3 {
        padding: 16px 20px 10px;
        margin: 0;
        font-size: 14px;
        color: #2c3e50;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .search-filters.filter-open h3::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 36px;
        height: 4px;
        background: #dee2e6;
        border-radius: 4px;
    }

    .search-filters.filter-open .filter-grid {
        padding: 8px 20px 20px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .search-filters.filter-open .filter-grid .form-group {
        margin: 0;
    }

    .search-filters.filter-open .filter-grid select {
        width: 100%;
        padding: 10px 12px;
        font-size: 14px;
        border-radius: 10px;
        border: 1.5px solid #e9ecef;
        background: #f8f9fa;
        -webkit-appearance: none;
        appearance: none;
    }

    .search-filters.filter-open .filter-grid label {
        font-size: 11px;
        font-weight: 600;
        color: #6c757d;
        margin-bottom: 3px;
        display: block;
    }

    .search-filters.filter-open .filter-btn-wrap {
        grid-column: 1 / -1;
    }

    .search-filters.filter-open .filter-btn-wrap .btn-primary {
        width: 100%;
        padding: 12px;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 600;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .profile-view-overlay {
        align-items: stretch;
        padding: 0;
        background: #f6f8fb;
        backdrop-filter: none;
    }

    .profile-view-modal {
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        max-width: none;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .profile-view-header {
        min-height: 66px;
        padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
        position: sticky;
        top: 0;
        z-index: 4;
    }

    .profile-view-modal .profile-preview-content {
        max-height: calc(100dvh - 66px);
        padding: 14px 14px 88px;
    }

    .profile-view-hero {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 13px;
        padding: 14px;
        border-radius: 18px;
    }

    .profile-view-photo-wrap {
        width: 96px;
    }

    .profile-view-photo {
        width: 96px;
        height: 126px;
        border-width: 3px;
        border-radius: 15px;
    }

    .profile-view-verified {
        width: 30px;
        height: 30px;
        right: -7px;
        bottom: 10px;
    }

    .profile-view-main h2 {
        font-size: 20px;
        margin-bottom: 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .profile-view-tags,
    .profile-view-summary {
        gap: 5px;
    }

    .profile-view-tags span,
    .profile-view-summary span {
        padding: 6px 8px;
        font-size: 10px;
        line-height: 1;
    }

    .profile-view-tags span:last-child,
    .profile-view-summary span {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .profile-view-contact,
    .profile-view-upgrade {
        margin-top: 8px;
        padding: 8px 10px;
        font-size: 11px;
    }

    .profile-view-modal .preview-sections {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .profile-view-modal .preview-sec {
        padding: 14px;
        border-radius: 15px;
    }

    .profile-view-modal .preview-grid {
        grid-template-columns: minmax(105px, 0.78fr) minmax(0, 1fr);
        gap: 8px 10px;
        font-size: 12px;
    }

    .profile-view-actions {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 5;
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin: 0;
        padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -12px 30px rgba(29, 53, 87, 0.1);
    }

    .profile-view-actions button {
        min-width: 0;
        min-height: 48px;
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* iOS zoom prevention on input focus */
@media screen and (-webkit-min-device-pixel-ratio: 0) {

    select,
    textarea,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="tel"],
    input[type="date"] {
        font-size: 16px !important;
    }
}

/* ============= HOME PROFILE VIEW (Dashboard) ============= */
.home-profile-hero {
    text-align: center;
    padding: 20px 16px 18px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-radius: var(--radius);
    margin-bottom: 14px;
}

.home-profile-hero .hero-photo {
    width: 130px;
    height: 168px;
    object-fit: cover;
    border-radius: 14px;
    border: 3px solid var(--white);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
    margin: 0 auto 14px;
    display: none;
}

@media (max-width: 768px) {
    .home-profile-hero .hero-photo {
        display: block;
    }
}

.home-profile-hero .hero-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 6px;
}

.home-profile-hero .hero-meta {
    font-size: 14px;
    color: var(--gray-600);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.home-profile-hero .hero-meta .separator {
    width: 4px;
    height: 4px;
    background: var(--gray-400);
    border-radius: 50%;
    display: inline-block;
}

.home-profile-hero .membership-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: var(--gray-200);
    color: var(--gray-600);
}

.home-profile-hero .membership-pill.premium {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.home-info-cards {
    display: grid;
    gap: 10px;
}

.home-info-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 14px 16px;
    transition: var(--transition);
}

.home-info-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border-color: var(--gray-300);
}

.home-info-card .card-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-100);
}

.home-info-card .card-heading>i {
    font-size: 18px;
    color: var(--primary);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(230, 57, 70, 0.08);
    border-radius: 10px;
}

.home-info-card .card-heading h4 {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.home-card-edit {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--dark);
    background: #f6f8fb;
    border: 1px solid rgba(29, 53, 87, 0.07);
    transition: var(--transition);
}

.home-card-edit i {
    font-size: 14px;
    line-height: 1;
}

.home-card-edit:hover {
    color: #ffffff;
    background: var(--primary);
    box-shadow: 0 8px 18px rgba(230, 57, 70, 0.2);
}

.home-info-card .card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
}

.home-info-card .card-grid .grid-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.home-info-card .card-grid .grid-item.full-width {
    grid-column: 1 / -1;
}

.home-info-card .card-grid .grid-item .item-label {
    font-size: 11px;
    color: var(--gray-500);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.home-info-card .card-grid .grid-item .item-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.home-about-card {
    background: linear-gradient(135deg, #f0f4ff 0%, #f8f9ff 100%);
    border: 1px solid #e0e8ff;
    border-radius: 14px;
    padding: 20px 22px;
}

.home-about-card .card-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.home-about-card .card-heading>i {
    font-size: 18px;
    color: #667eea;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
}

.home-about-card .card-heading h4 {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.home-about-card p {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.7;
    margin: 0;
}

/* ============= MOBILE DASHBOARD - APP STYLE ============= */
@media (max-width: 768px) {
    .dash-sidebar {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        z-index: 900;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .dash-sidebar .profile-card {
        display: none !important;
    }

    .dash-nav {
        display: flex !important;
        overflow-x: auto;
        border-radius: 0 !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0 !important;
        background: white;
    }

    .dash-nav::-webkit-scrollbar {
        display: none;
    }

    .dash-nav a {
        flex-direction: column;
        gap: 2px;
        padding: 8px 12px !important;
        font-size: 9px;
        white-space: nowrap;
        border-left: none !important;
        border-top: 2px solid transparent;
        min-width: fit-content;
        text-align: center;
        justify-content: center;
        align-items: center;
    }

    .dash-nav a.active {
        border-left: none !important;
        border-top-color: var(--primary) !important;
        background: rgba(230, 57, 70, 0.05);
    }

    .dash-nav a i {
        font-size: 16px;
        width: auto;
    }

    .dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    .dash-main {
        min-height: auto;
        padding-bottom: 75px !important;
    }

    .dash-section {
        border-radius: 0;
        box-shadow: none;
        padding: 20px 16px;
    }

    .home-profile-hero {
        padding: 18px 14px 16px;
        margin-bottom: 10px;
    }

    .home-profile-hero .hero-photo {
        width: 115px;
        height: 148px;
        border-radius: 12px;
    }

    .home-profile-hero .hero-name {
        font-size: 19px;
    }

    .home-info-cards {
        gap: 8px;
    }

    .home-info-card {
        padding: 12px 14px;
        border-radius: 10px;
    }

    .home-info-card .card-heading {
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    .home-info-card .card-grid {
        gap: 8px 12px;
    }

    .home-info-card .card-grid .grid-item .item-value {
        font-size: 13px;
    }
}

/* ============= DASHBOARD UI REFRESH ============= */
.dashboard-page {
    background:
        radial-gradient(circle at top left, rgba(230, 57, 70, 0.09), transparent 26rem),
        linear-gradient(180deg, #fff7f6 0, #f7f8fc 34rem, #f8f9fa 100%);
}

.dashboard-page .dashboard-section {
    padding: 26px 0 40px;
}

.dashboard-page .admin-edit-banner {
    background: #edf2ff;
    border-bottom: 2px solid #bac8ff;
    padding: 10px 20px;
    text-align: center;
}

.admin-iframe-dashboard {
    background: #f5f6f8;
}

.admin-iframe-dashboard .navbar,
.admin-iframe-dashboard .mobile-menu,
.admin-iframe-dashboard .mobile-app-nav,
.admin-iframe-dashboard .admin-edit-banner {
    display: none !important;
}

.dashboard-page.admin-iframe-dashboard .dashboard-section {
    padding: 0;
}

.dashboard-page.admin-iframe-dashboard .dashboard-section .container {
    max-width: none;
    padding: 0;
}

.dashboard-page.admin-iframe-dashboard .dashboard-grid {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.dashboard-page.admin-iframe-dashboard .dash-sidebar {
    position: static;
    top: auto;
    align-self: start;
}

.dashboard-page.admin-iframe-dashboard .dash-nav,
.dashboard-page.admin-iframe-dashboard .dash-main,
.dashboard-page.admin-iframe-dashboard .dash-section.active,
.dashboard-page.admin-iframe-dashboard #homeProfileView,
.dashboard-page.admin-iframe-dashboard .home-profile-hero {
    margin-top: 0 !important;
}

.dashboard-page.admin-iframe-dashboard .dash-section {
    padding: 14px;
}

.dashboard-page.admin-iframe-dashboard .dash-main {
    min-width: 0;
}

.dashboard-page .dashboard-grid {
    gap: 24px;
}

.dashboard-page.admin-iframe-dashboard .dashboard-grid {
    gap: 14px;
}

.dashboard-page .profile-card,
.dashboard-page .dash-nav,
.dashboard-page .dash-section {
    border: 1px solid rgba(29, 53, 87, 0.07);
    box-shadow: 0 18px 45px rgba(29, 53, 87, 0.08);
}

.dashboard-page .profile-card {
    padding: 24px 22px;
    background:
        linear-gradient(180deg, rgba(255, 247, 246, 0.95), rgba(255, 255, 255, 0.98)),
        var(--white);
}

.dashboard-page .dash-sidebar .profile-card {
    display: none;
}

.dashboard-page .profile-photo-wrapper {
    border: 4px solid var(--white);
    box-shadow: 0 12px 30px rgba(230, 57, 70, 0.18);
}

.dashboard-page .dash-nav {
    padding: 8px;
    background: rgba(255, 255, 255, 0.92);
}

.dashboard-page .dash-nav a {
    border-left: 0;
    border-radius: 10px;
    margin-bottom: 2px;
    min-height: 52px;
    padding: 8px 12px;
}

.dashboard-page .dash-nav a:hover,
.dashboard-page .dash-nav a.active {
    background: #fff1f2;
    color: var(--primary);
}

.dashboard-page .dash-nav a.active {
    font-weight: 700;
    box-shadow: inset 3px 0 0 var(--primary);
}

.dashboard-page .dash-nav a i {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #5d6875;
    background: #f4f6f8;
    transition: var(--transition);
}

.dashboard-page .dash-nav a:hover i,
.dashboard-page .dash-nav a.active i {
    color: #ffffff;
    background: var(--primary);
    box-shadow: 0 8px 18px rgba(230, 57, 70, 0.22);
}

.dashboard-page .dash-section {
    padding: 24px;
    border-radius: 18px;
}

.dashboard-page .section-header {
    align-items: center;
    margin-bottom: 24px;
    padding: 0 0 18px;
    border-bottom: 1px solid rgba(29, 53, 87, 0.08);
}

.dashboard-page .section-header h3 {
    min-width: 0;
    font-size: 22px;
    line-height: 1.2;
    color: var(--dark);
}

.dashboard-page .section-header h3 i {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: var(--primary);
    box-shadow: 0 10px 24px rgba(230, 57, 70, 0.22);
}

.dashboard-page #sec-religious .section-header h3 i,
.dashboard-page #sec-contact .section-header h3 i {
    background: #457b9d;
    box-shadow: 0 10px 24px rgba(69, 123, 157, 0.22);
}

.dashboard-page #sec-family .section-header h3 i,
.dashboard-page #sec-hobbies .section-header h3 i {
    background: #2a9d8f;
    box-shadow: 0 10px 24px rgba(42, 157, 143, 0.22);
}

.dashboard-page #sec-education .section-header h3 i,
.dashboard-page #sec-photos .section-header h3 i,
.dashboard-page #sec-membership .section-header h3 i {
    background: #f4a261;
    box-shadow: 0 10px 24px rgba(244, 162, 97, 0.24);
}

.dashboard-page #sec-changes .section-header h3 i {
    background: #6c5ce7;
    box-shadow: 0 10px 24px rgba(108, 92, 231, 0.2);
}

.dashboard-page .btn-edit {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 14px;
    background: #f6f8fb;
    color: var(--dark);
    font-weight: 700;
}

.dashboard-page .btn-edit:hover {
    background: var(--primary);
    color: #ffffff;
}

.dashboard-page .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-page .info-item {
    position: relative;
    min-width: 0;
    min-height: 92px;
    padding: 16px 16px 16px 62px;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #fbfcff);
    border: 1px solid rgba(29, 53, 87, 0.08);
    box-shadow: 0 10px 24px rgba(29, 53, 87, 0.05);
}

.dashboard-page .info-icon {
    position: absolute;
    left: 16px;
    top: 18px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--primary);
    background: #fff1f2;
}

.dashboard-page #sec-religious .info-icon,
.dashboard-page #sec-contact .info-icon {
    color: #457b9d;
    background: #eef7fb;
}

.dashboard-page #sec-family .info-icon,
.dashboard-page #sec-hobbies .info-icon {
    color: #2a9d8f;
    background: #ecfbf8;
}

.dashboard-page #sec-education .info-icon {
    color: #d97706;
    background: #fff6e9;
}

.dashboard-page .info-label {
    font-size: 11px;
    letter-spacing: 0.7px;
    color: #9aa6b2;
}

.dashboard-page .info-value {
    margin-top: 2px;
    font-size: 18px;
    line-height: 1.35;
    color: #082a53;
    overflow-wrap: anywhere;
}

.dashboard-page .photos-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
}

.dashboard-page .current-plan-card {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    padding: 24px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(29, 53, 87, 0.96), rgba(69, 123, 157, 0.92)),
        #1d3557;
    box-shadow: 0 18px 40px rgba(29, 53, 87, 0.16);
}

.dashboard-page .current-plan-card::after {
    content: '';
    position: absolute;
    right: -56px;
    bottom: -86px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: rgba(244, 162, 97, 0.24);
}

.dashboard-page .current-plan-card .plan-info,
.dashboard-page .current-plan-card .btn-primary {
    position: relative;
    z-index: 1;
}

.dashboard-page .current-plan-card .btn-primary {
    border-radius: 14px;
    background: #ffffff;
    color: var(--dark);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.dashboard-page .hobbies-display {
    gap: 10px;
}

.dashboard-page .hobby-tag {
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 14px;
    color: #0f3d39;
    background: #ecfbf8;
    border-color: rgba(42, 157, 143, 0.18);
    font-weight: 700;
}

.dashboard-page .hobby-tag i {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: #ffffff;
    background: #2a9d8f;
    font-size: 12px;
}

.dashboard-page #sec-home {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.dashboard-page .home-profile-hero {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    text-align: left;
    min-height: 260px;
    padding: 28px;
    overflow: hidden;
    border-radius: 22px;
    margin-bottom: 16px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(29, 53, 87, 0.94), rgba(69, 123, 157, 0.9)),
        linear-gradient(135deg, #1d3557, #457b9d);
    box-shadow: 0 20px 50px rgba(29, 53, 87, 0.2);
}

.dashboard-page .home-profile-hero::after {
    content: '';
    position: absolute;
    inset: auto -90px -130px auto;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: rgba(244, 162, 97, 0.22);
}

.dashboard-page .hero-photo-shell {
    position: relative;
    z-index: 1;
    width: 132px;
}

.dashboard-page .home-profile-hero .hero-photo {
    display: block;
    width: 132px;
    height: 172px;
    margin: 0;
    border-radius: 18px;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.25);
}

.dashboard-page .hero-photo-btn {
    position: absolute;
    right: -8px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--primary);
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.dashboard-page .hero-content,
.dashboard-page .hero-actions {
    position: relative;
    z-index: 1;
}

.dashboard-page .hero-content {
    justify-self: start;
    text-align: left;
    min-width: 0;
}

.dashboard-page .home-profile-hero .hero-name {
    color: #ffffff;
    font-size: 28px;
    line-height: 1.15;
    margin: 10px 0 4px;
}

.dashboard-page .hero-id {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 14px;
}

.dashboard-page .home-profile-hero .membership-pill {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(10px);
}

.dashboard-page .home-profile-hero .membership-pill.premium {
    background: linear-gradient(135deg, #f4a261, #e76f51);
}

.dashboard-page .hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dashboard-page .hero-stats span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 7px 10px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.13);
    font-size: 12px;
    font-weight: 600;
}

.dashboard-page .hero-stats i {
    color: #f4a261;
}

.dashboard-page .hero-actions {
    grid-column: auto;
    justify-self: end;
    align-self: end;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 160px;
}

.dashboard-page .hero-actions button,
.dashboard-page .home-quick-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    font-weight: 700;
}

.dashboard-page .hero-actions button {
    padding: 10px 14px;
    width: 100%;
    color: #1d3557;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.dashboard-page .hero-actions button:last-child {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: none;
}

.dashboard-page .home-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.dashboard-page .home-quick-actions button {
    min-height: 70px;
    flex-direction: column;
    padding: 12px 8px;
    color: var(--dark);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(29, 53, 87, 0.08);
    box-shadow: 0 10px 26px rgba(29, 53, 87, 0.07);
}

.dashboard-page .home-quick-actions i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: #ffffff;
    background: var(--primary);
}

.dashboard-page .home-quick-actions button:nth-child(2) i {
    background: #457b9d;
}

.dashboard-page .home-quick-actions button:nth-child(3) i {
    background: #2a9d8f;
}

.dashboard-page .home-quick-actions button:nth-child(4) i {
    background: #f4a261;
}

.dashboard-page .home-info-cards {
    gap: 14px;
}

.dashboard-page .home-info-card,
.dashboard-page .home-about-card {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(29, 53, 87, 0.08);
    box-shadow: 0 12px 30px rgba(29, 53, 87, 0.07);
}

.dashboard-page .home-info-card {
    padding: 18px;
}

.dashboard-page .home-info-card .card-heading {
    border-bottom-color: rgba(29, 53, 87, 0.08);
}

.dashboard-page .home-info-card .card-heading>i {
    color: #ffffff;
    background: var(--primary);
}

.dashboard-page .home-info-card:nth-child(2) .card-heading>i {
    background: #457b9d;
}

.dashboard-page .home-info-card:nth-child(3) .card-heading>i {
    background: #2a9d8f;
}

.dashboard-page .home-info-card:nth-child(4) .card-heading>i {
    background: #f4a261;
}

.dashboard-page .home-info-card .card-grid .grid-item {
    min-width: 0;
}

.dashboard-page .home-info-card .card-grid .grid-item .item-value {
    line-height: 1.35;
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    .dashboard-page {
        background: #f7f8fc;
    }

    .dashboard-page .navbar {
        position: sticky;
        top: 0;
        z-index: 800;
        box-shadow: 0 8px 24px rgba(29, 53, 87, 0.08);
    }

    .dashboard-page .dashboard-section {
        padding: 14px 0 0;
    }

    .dashboard-page .dashboard-section .container {
        padding: 0;
    }

    .dashboard-page .dash-main {
        padding-bottom: 86px !important;
    }

    .dashboard-page .dash-section {
        padding: 14px;
        border-radius: 18px;
        background: #ffffff;
        box-shadow: 0 10px 26px rgba(29, 53, 87, 0.07);
    }

    .dashboard-page #sec-home {
        background: transparent;
        box-shadow: none;
        border: 0;
        padding: 0 14px;
    }

    .dashboard-page .section-header {
        margin-bottom: 14px;
        padding-bottom: 12px;
        gap: 12px;
    }

    .dashboard-page .section-header h3 {
        font-size: 17px;
        gap: 10px;
    }

    .dashboard-page .section-header h3 i {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 12px;
    }

    .dashboard-page .btn-edit {
        min-height: 38px;
        padding: 0 12px;
        border-radius: 12px;
        font-size: 12px;
    }

    .dashboard-page .info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .dashboard-page .info-item {
        min-height: 76px;
        padding: 12px 12px 12px 54px;
        border-radius: 14px;
    }

    .dashboard-page .info-icon {
        left: 12px;
        top: 14px;
        width: 32px;
        height: 32px;
        border-radius: 11px;
    }

    .dashboard-page .info-value {
        font-size: 14px;
    }

    .dashboard-page .home-profile-hero {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 14px;
        min-height: auto;
        padding: 18px 14px 14px;
        border-radius: 18px;
        margin-bottom: 12px;
        background:
            linear-gradient(145deg, rgba(29, 53, 87, 0.98), rgba(55, 112, 148, 0.96)),
            #1d3557;
        box-shadow: 0 14px 34px rgba(29, 53, 87, 0.18);
    }

    .dashboard-page .home-profile-hero::after {
        right: -74px;
        bottom: -104px;
        width: 210px;
        height: 210px;
        background: rgba(255, 255, 255, 0.16);
    }

    .dashboard-page .hero-photo-shell {
        width: 92px;
        align-self: center;
    }

    .dashboard-page .home-profile-hero .hero-photo {
        width: 92px;
        height: 118px;
        border-radius: 15px;
        border-width: 3px;
    }

    .dashboard-page .hero-photo-btn {
        width: 32px;
        height: 32px;
        right: -8px;
        bottom: 9px;
        font-size: 12px;
    }

    .dashboard-page .hero-content {
        align-self: center;
        padding-top: 2px;
    }

    .dashboard-page .home-profile-hero .membership-pill {
        padding: 5px 10px;
        font-size: 10px;
        line-height: 1;
    }

    .dashboard-page .home-profile-hero .hero-name {
        font-size: 19px;
        margin: 9px 0 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dashboard-page .hero-id {
        margin-bottom: 9px;
        font-size: 11px;
    }

    .dashboard-page .hero-stats {
        gap: 5px;
    }

    .dashboard-page .hero-stats span {
        max-width: 100%;
        padding: 5px 7px;
        font-size: 10px;
        line-height: 1;
    }

    .dashboard-page .hero-stats span:last-child {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .dashboard-page .hero-actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        min-width: 0;
        justify-self: stretch;
        align-self: auto;
        gap: 8px;
        margin-top: 4px;
    }

    .dashboard-page .hero-actions button {
        min-height: 34px;
        padding: 8px 8px;
        border-radius: 11px;
        font-size: 11px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    }

    .dashboard-page .home-quick-actions {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .dashboard-page .home-quick-actions button {
        min-height: 68px;
        padding: 9px 4px;
        font-size: 11px;
    }

    .dashboard-page .home-quick-actions i {
        width: 30px;
        height: 30px;
        border-radius: 10px;
    }

    .dashboard-page .home-info-card {
        padding: 14px;
    }

    .dashboard-page .home-info-card .card-heading h4 {
        font-size: 14px;
    }

    .dashboard-page .dash-nav {
        gap: 6px;
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
        border-radius: 22px 22px 0 0 !important;
        border: 1px solid rgba(255, 255, 255, 0.58);
        border-bottom: 0;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.5)) !important;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.88),
            0 -16px 36px rgba(29, 53, 87, 0.16);
        backdrop-filter: blur(24px) saturate(1.55);
        -webkit-backdrop-filter: blur(24px) saturate(1.55);
    }

    .dashboard-page .dash-nav a {
        min-width: 60px;
        min-height: 58px;
        padding: 7px 8px !important;
        border-top: 0;
        border-radius: 16px;
        color: var(--gray-600);
        font-size: 9px;
        font-weight: 700;
    }

    .dashboard-page .dash-nav a i {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
        border-radius: 11px;
        font-size: 14px;
        background: rgba(243, 245, 248, 0.72);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
    }

    .dashboard-page .dash-nav a.active {
        border-top-color: transparent !important;
        background:
            linear-gradient(180deg, rgba(230, 57, 70, 0.96), rgba(230, 57, 70, 0.86));
        color: #ffffff;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.32),
            0 10px 24px rgba(230, 57, 70, 0.24);
    }

    .dashboard-page .dash-nav a.active i {
        color: var(--primary);
        background: #ffffff;
        box-shadow: none;
    }

    .dashboard-page .photos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .dashboard-page .current-plan-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        min-height: 0;
        padding: 18px;
    }

    .dashboard-page .current-plan-card .btn-primary {
        width: 100%;
        justify-content: center;
    }

    .dashboard-page .hobbies-display {
        gap: 8px;
    }

    .dashboard-page .hobby-tag {
        width: 100%;
        justify-content: flex-start;
        border-radius: 13px;
    }
}

@media (max-width: 390px) {
    .dashboard-page .home-profile-hero {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 12px;
        padding: 16px 12px 13px;
    }

    .dashboard-page .hero-photo-shell,
    .dashboard-page .home-profile-hero .hero-photo {
        width: 82px;
    }

    .dashboard-page .home-profile-hero .hero-photo {
        height: 106px;
    }

    .dashboard-page .home-profile-hero .hero-name {
        font-size: 18px;
    }

    .dashboard-page .hero-stats span {
        font-size: 9px;
        padding: 5px 6px;
    }

    .dashboard-page .home-quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============= DASHBOARD MOBILE VISUAL BALANCE ============= */
@media (max-width: 768px) {
    .dashboard-page {
        background: linear-gradient(180deg, #f6f8fb 0, #eef2f7 100%);
    }

    .dashboard-page .navbar {
        padding: 11px 0;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid rgba(29, 53, 87, 0.06);
        box-shadow: 0 8px 24px rgba(29, 53, 87, 0.06);
    }

    .dashboard-page .navbar .container {
        padding: 0 16px;
    }

    .dashboard-page .logo {
        font-size: 21px;
        gap: 7px;
        letter-spacing: 0;
    }

    .dashboard-page .logo i {
        font-size: 20px;
    }

    .dashboard-page .hamburger {
        width: 40px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        background: #f2f5f8;
        color: var(--dark);
        font-size: 20px;
    }

    .dashboard-page .dashboard-section {
        padding-top: 12px;
    }

    .dashboard-page #sec-home {
        padding: 0 12px;
    }

    .dashboard-page .home-profile-hero {
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 14px;
        padding: 16px;
        border: 1px solid rgba(29, 53, 87, 0.08);
        border-radius: 20px;
        color: var(--dark);
        background:
            linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 252, 0.98)),
            #ffffff;
        box-shadow: 0 16px 34px rgba(29, 53, 87, 0.1);
    }

    .dashboard-page .home-profile-hero::after {
        inset: auto -82px -96px auto;
        width: 205px;
        height: 205px;
        background: rgba(230, 57, 70, 0.08);
    }

    .dashboard-page .hero-photo-shell {
        width: 104px;
    }

    .dashboard-page .home-profile-hero .hero-photo {
        width: 104px;
        height: 132px;
        border: 3px solid #ffffff;
        border-radius: 18px;
        box-shadow: 0 12px 26px rgba(29, 53, 87, 0.18);
    }

    .dashboard-page .hero-photo-btn {
        right: -8px;
        bottom: 10px;
        color: #ffffff;
        background: var(--primary);
        box-shadow: 0 9px 20px rgba(230, 57, 70, 0.28);
    }

    .dashboard-page .home-profile-hero .membership-pill {
        color: var(--primary);
        background: #fff1f2;
        border-color: rgba(230, 57, 70, 0.18);
        backdrop-filter: none;
    }

    .dashboard-page .home-profile-hero .hero-name {
        color: var(--dark);
        font-size: 20px;
        margin-top: 10px;
    }

    .dashboard-page .hero-id {
        color: #7b8794;
        font-size: 11px;
        letter-spacing: 0.3px;
    }

    .dashboard-page .hero-stats span {
        color: #23415f;
        background: #edf4fa;
        border: 1px solid rgba(69, 123, 157, 0.08);
    }

    .dashboard-page .hero-stats i {
        color: var(--primary);
    }

    .dashboard-page .hero-actions {
        margin-top: 6px;
    }

    .dashboard-page .hero-actions button {
        min-height: 38px;
        background: var(--primary);
        color: #ffffff;
        border: 1px solid var(--primary);
        box-shadow: 0 10px 22px rgba(230, 57, 70, 0.22);
    }

    .dashboard-page .hero-actions button:last-child {
        color: var(--dark);
        background: #ffffff;
        border-color: rgba(29, 53, 87, 0.12);
        box-shadow: 0 10px 22px rgba(29, 53, 87, 0.08);
    }

    .dashboard-page .home-quick-actions {
        gap: 8px;
        margin-bottom: 12px;
    }

    .dashboard-page .home-quick-actions button {
        min-height: 74px;
        border-radius: 16px;
        color: var(--dark);
        background: rgba(255, 255, 255, 0.96);
        border-color: rgba(29, 53, 87, 0.07);
        box-shadow: 0 10px 24px rgba(29, 53, 87, 0.07);
    }

    .dashboard-page .home-quick-actions i,
    .dashboard-page .home-quick-actions button:nth-child(2) i,
    .dashboard-page .home-quick-actions button:nth-child(3) i,
    .dashboard-page .home-quick-actions button:nth-child(4) i {
        color: var(--primary);
        background: #fff1f2;
    }

    .dashboard-page .home-info-card,
    .dashboard-page .dash-section {
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(29, 53, 87, 0.07);
        box-shadow: 0 12px 28px rgba(29, 53, 87, 0.07);
    }

    .dashboard-page .home-info-card .card-heading>i,
    .dashboard-page .home-info-card:nth-child(2) .card-heading>i,
    .dashboard-page .home-info-card:nth-child(3) .card-heading>i,
    .dashboard-page .home-info-card:nth-child(4) .card-heading>i,
    .dashboard-page .section-header h3 i {
        background: var(--primary);
        box-shadow: 0 10px 22px rgba(230, 57, 70, 0.2);
    }

    .dashboard-page .home-info-card .card-grid {
        gap: 12px 14px;
    }

    .dashboard-page .home-info-card .card-grid .grid-item .item-label,
    .dashboard-page .info-label {
        color: #9aa6b2;
    }

    .dashboard-page .home-info-card .card-grid .grid-item .item-value,
    .dashboard-page .info-value {
        color: var(--dark);
    }

    .dashboard-page .dash-nav {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.5)) !important;
        backdrop-filter: blur(24px) saturate(1.55);
        -webkit-backdrop-filter: blur(24px) saturate(1.55);
        border: 1px solid rgba(255, 255, 255, 0.58);
        border-bottom: 0;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.88),
            0 -16px 36px rgba(29, 53, 87, 0.16);
    }

    .dashboard-page .dash-nav a.active {
        background:
            linear-gradient(180deg, rgba(230, 57, 70, 0.96), rgba(230, 57, 70, 0.86));
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.32),
            0 10px 24px rgba(230, 57, 70, 0.24);
    }
}

@media (max-width: 390px) {
    .dashboard-page .home-profile-hero {
        grid-template-columns: 92px minmax(0, 1fr);
        padding: 14px;
    }

    .dashboard-page .hero-photo-shell,
    .dashboard-page .home-profile-hero .hero-photo {
        width: 92px;
    }

    .dashboard-page .home-profile-hero .hero-photo {
        height: 118px;
    }

    .dashboard-page .home-profile-hero .hero-name {
        font-size: 18px;
    }

    .dashboard-page .home-quick-actions {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .dashboard-page .home-quick-actions button {
        min-height: 66px;
        font-size: 10px;
    }
}

/* ============= DASHBOARD EDIT PANEL ============= */
body.edit-panel-open {
    overflow: hidden;
}

.dashboard-page .edit-panel-overlay {
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(246, 248, 251, 0.72);
    backdrop-filter: blur(12px);
}

.dashboard-page .edit-panel {
    width: min(980px, 100%);
    max-width: 980px;
    height: min(760px, calc(100dvh - 56px));
    max-height: calc(100dvh - 56px);
    padding: 0;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(29, 53, 87, 0.08);
    box-shadow: 0 24px 70px rgba(29, 53, 87, 0.18);
    animation: editPanelIn 0.22s ease;
    display: flex;
    flex-direction: column;
}

@keyframes editPanelIn {
    from {
        transform: translateY(18px) scale(0.985);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.dashboard-page .edit-panel-header {
    margin: 0;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(29, 53, 87, 0.08);
    background: linear-gradient(180deg, #ffffff, #fbfcff);
    gap: 12px;
    justify-content: flex-start;
}

.dashboard-page .edit-panel-header h3 {
    margin: 2px 0 0;
    color: var(--dark);
    line-height: 1.2;
}

.dashboard-page .edit-panel-kicker {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: #9aa6b2;
}

.dashboard-page .edit-panel-back,
.dashboard-page .edit-panel .modal-close {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #f2f5f8;
    color: var(--dark);
    font-size: 18px;
}

.dashboard-page .edit-panel .modal-close {
    margin-left: auto;
    font-size: 16px;
}

.dashboard-page .edit-panel form {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #f7f9fc, #f2f5f8);
}

.dashboard-page #editFormContent {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 26px 30px;
}

.dashboard-page .edit-panel .edit-form-grid {
    gap: 18px 20px;
}

.dashboard-page .edit-panel .floating-input {
    min-height: 62px;
    display: flex;
    flex-direction: column-reverse;
    gap: 6px;
}

.dashboard-page .edit-panel .floating-input.full-width {
    grid-column: 1 / -1;
}

.dashboard-page .edit-panel .floating-input input,
.dashboard-page .edit-panel .floating-input select,
.dashboard-page .edit-panel .floating-input textarea {
    border: 1px solid rgba(29, 53, 87, 0.1);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(29, 53, 87, 0.035);
    padding: 13px 14px;
    color: var(--dark);
    -webkit-text-fill-color: var(--dark);
}

.dashboard-page .edit-panel .floating-input textarea {
    min-height: 112px;
}

.dashboard-page .edit-panel .floating-input label {
    position: static;
    transform: none;
    padding: 0 2px;
    background: transparent;
    border-radius: 0;
    color: #6f7b88;
    font-size: 12px;
    line-height: 1.2;
    pointer-events: auto;
}

.dashboard-page .edit-panel .form-actions {
    position: sticky;
    bottom: 0;
    margin: 0;
    padding: 18px 30px calc(18px + env(safe-area-inset-bottom, 0px));
    gap: 12px;
    border-top: 1px solid rgba(29, 53, 87, 0.08);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
}

.dashboard-page .edit-panel .form-actions button {
    min-height: 46px;
    justify-content: center;
    border-radius: 14px;
    padding-left: 28px;
    padding-right: 28px;
}

.dashboard-page .edit-panel .form-actions .btn-secondary {
    background: #f2f5f8;
    color: var(--dark);
}

.dashboard-page .edit-panel .form-actions .btn-primary {
    margin-left: auto;
    min-width: 210px;
}

/* ============= PENDING REQUEST STATUS ============= */
.dashboard-page .section-pending-slot {
    margin: -4px 0 16px;
}

.dashboard-page .pending-request-card {
    position: relative;
    overflow: hidden;
    padding: 14px;
    margin-bottom: 16px;
    border: 1px solid rgba(244, 162, 97, 0.24);
    border-radius: 16px;
    background: linear-gradient(180deg, #fffaf2, #ffffff);
    box-shadow: 0 12px 28px rgba(29, 53, 87, 0.07);
}

.dashboard-page .pending-request-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: #f4a261;
}

.dashboard-page .pending-request-head {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.dashboard-page .pending-request-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: #a05200;
    background: #fff0dc;
}

.dashboard-page .pending-request-copy {
    flex: 1;
    min-width: 0;
}

.dashboard-page .pending-request-title,
.dashboard-page .pending-request-subtitle {
    display: block;
}

.dashboard-page .pending-request-title {
    color: #7c3f00;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
}

.dashboard-page .pending-request-subtitle {
    margin-top: 3px;
    color: #7a6a55;
    font-size: 12px;
    line-height: 1.35;
}

.dashboard-page .pending-request-toggle,
.dashboard-page .pending-withdraw {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 12px;
    font-weight: 800;
    transition: var(--transition);
}

.dashboard-page .pending-request-toggle {
    min-height: 36px;
    padding: 0 12px;
    color: #7c3f00;
    background: rgba(244, 162, 97, 0.13);
    white-space: nowrap;
}

.dashboard-page .pending-request-toggle i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.dashboard-page .pending-request-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.dashboard-page .pending-request-detail {
    display: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(244, 162, 97, 0.18);
}

.dashboard-page .pending-request-detail.open {
    display: block;
}

.dashboard-page .pending-diff-list {
    display: grid;
    gap: 8px;
}

.dashboard-page .pending-diff-row {
    display: grid;
    grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(29, 53, 87, 0.06);
}

.dashboard-page .pending-diff-label {
    color: #8b96a3;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.45px;
    text-transform: uppercase;
}

.dashboard-page .pending-diff-values {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    color: var(--dark);
    font-size: 13px;
    font-weight: 700;
}

.dashboard-page .pending-old,
.dashboard-page .pending-new {
    min-width: 0;
    overflow-wrap: anywhere;
}

.dashboard-page .pending-old {
    color: #a0a9b3;
    text-decoration: line-through;
}

.dashboard-page .pending-new {
    color: #0f766e;
}

.dashboard-page .pending-request-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    color: #8b96a3;
    font-size: 11px;
    font-weight: 700;
}

.dashboard-page .pending-withdraw {
    min-height: 34px;
    padding: 0 12px;
    color: #c92a2a;
    background: #fff5f5;
    border: 1px solid #ffd6d6;
}

.dashboard-page .pending-withdraw:hover {
    color: #ffffff;
    background: #e63946;
    border-color: #e63946;
}

.dashboard-page .edit-panel .pending-request-card {
    margin: 0 0 18px;
}

@media (min-width: 769px) {
    .dashboard-page .edit-panel-header {
        padding: 20px 30px;
    }

    .dashboard-page .edit-panel-header h3 {
        font-size: 22px;
    }

    .dashboard-page .edit-panel .edit-form-grid {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .dashboard-page .edit-panel-overlay {
        align-items: stretch;
        justify-content: center;
        padding: 0;
        background: #f6f8fb;
        backdrop-filter: none;
    }

    .dashboard-page .edit-panel {
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        max-width: none;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        animation: editPageIn 0.18s ease;
    }

    @keyframes editPageIn {
        from {
            transform: translateX(18px);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .dashboard-page .edit-panel-header {
        min-height: 76px;
        padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px;
        background: #ffffff;
        position: sticky;
        top: 0;
        z-index: 2;
    }

    .dashboard-page .edit-panel-header h3 {
        font-size: 22px;
    }

    .dashboard-page .edit-panel-kicker {
        font-size: 10px;
    }

    .dashboard-page .edit-panel-back,
    .dashboard-page .edit-panel .modal-close {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        border-radius: 14px;
    }

    .dashboard-page #editFormContent {
        padding: 18px 16px 92px;
        background: #f6f8fb;
    }

    .dashboard-page .edit-panel .edit-form-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .dashboard-page .edit-panel .floating-input {
        min-height: auto;
        display: flex;
        flex-direction: column-reverse;
        gap: 6px;
    }

    .dashboard-page .edit-panel .floating-input input,
    .dashboard-page .edit-panel .floating-input select,
    .dashboard-page .edit-panel .floating-input textarea {
        min-height: 56px;
        width: 100%;
        max-width: 100%;
        padding: 13px 14px;
        border-radius: 14px;
        font-size: 16px !important;
        line-height: 1.25;
        color: var(--dark);
        -webkit-text-fill-color: var(--dark);
        background-color: #ffffff;
        appearance: auto;
        -webkit-appearance: none;
    }

    .dashboard-page .edit-panel .floating-input input[type="date"] {
        height: 56px;
        min-height: 56px;
        display: block;
        padding-right: 14px;
        text-align: left;
    }

    .dashboard-page .edit-panel .floating-input input[type="date"]::-webkit-date-and-time-value {
        text-align: left;
        min-height: 20px;
    }

    .dashboard-page .edit-panel .floating-input label {
        position: static;
        transform: none;
        max-width: 100%;
        padding: 0 2px;
        background: transparent;
        font-size: 12px;
        line-height: 1.2;
        color: #6f7b88;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        pointer-events: auto;
        z-index: auto;
    }

    .dashboard-page .edit-panel .floating-input input:focus~label,
    .dashboard-page .edit-panel .floating-input select:focus~label,
    .dashboard-page .edit-panel .floating-input textarea:focus~label {
        color: var(--primary);
    }

    .dashboard-page .edit-panel .form-actions {
        display: grid;
        grid-template-columns: 0.85fr 1.15fr;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 3;
        box-shadow: 0 -10px 28px rgba(29, 53, 87, 0.08);
    }

    .dashboard-page .edit-panel .form-actions button {
        min-width: 0;
        min-height: 50px;
        padding-left: 12px;
        padding-right: 12px;
        font-size: 15px;
    }

    .dashboard-page .section-pending-slot {
        margin: 0 0 12px;
    }

    .dashboard-page .pending-request-card {
        padding: 13px 13px 13px 15px;
        border-radius: 15px;
    }

    .dashboard-page .pending-request-head {
        gap: 10px;
    }

    .dashboard-page .pending-request-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        border-radius: 12px;
    }

    .dashboard-page .pending-request-toggle {
        min-height: 34px;
        padding: 0 10px;
        font-size: 12px;
    }

    .dashboard-page .pending-diff-row {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 5px;
        padding: 10px;
    }

    .dashboard-page .pending-diff-values {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .dashboard-page .pending-request-foot {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-page .pending-withdraw {
        width: 100%;
    }
}
