body { background: #f4fbff; color: #1f3344; }

.profile-photo,
.detail-photo {
    background: linear-gradient(135deg, #f7fcff, #e9f6ff);
    object-fit: contain;
    object-position: center top;
}
.profile-photo { height: 260px; }
.detail-photo { height: 240px; }

.form-section, .profile-card, .search-panel {
    background: #fff;
    border: 1px solid #d7edf9;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 10px 28px rgba(34, 113, 168, .08);
}
.required::after { content: " *"; color: #1677b8; }

.site-navbar {
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 255, 255, .34), transparent 28%),
        linear-gradient(135deg, #1c6fa6, #43a6dc 58%, #86d4f5);
    box-shadow: 0 14px 40px rgba(34, 113, 168, .24);
    border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.vivah-brand {
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0;
    padding: .1rem 0;
}
.vivah-brand:hover { color: #fff !important; }
.brand-logo {
    display: block;
    width: auto;
    height: 64px;
    max-width: 315px;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(8, 58, 91, .2));
}
.site-navbar .nav-link {
    color: rgba(255, 255, 255, .9);
    font-weight: 700;
    border-radius: 999px;
    padding: .45rem .75rem;
    margin: 0 .08rem;
}
.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus,
.site-navbar .nav-link.active,
.site-navbar .show > .nav-link {
    color: #fff;
    background: rgba(255, 255, 255, .16);
}
.nav-divider {
    width: 1px;
    height: 28px;
    margin: .35rem .45rem 0;
    background: rgba(255, 255, 255, .34);
}
.site-dropdown {
    border: 1px solid #d7edf9;
    border-radius: 8px;
    box-shadow: 0 18px 46px rgba(34, 113, 168, .2);
    padding: .45rem;
}
.site-dropdown .dropdown-item {
    border-radius: 7px;
    color: #1f3344;
    font-weight: 650;
    padding: .55rem .75rem;
}
.site-dropdown .dropdown-item:hover,
.site-dropdown .dropdown-item:focus,
.site-dropdown .dropdown-item.active {
    background: #eaf7ff;
    color: #12669a;
}
.site-dropdown .dropdown-divider {
    border-color: #d7edf9;
}
.site-toggler {
    border-color: rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .88);
}
.user-pill {
    color: #fff !important;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    padding: .32rem .7rem;
    font-weight: 700;
}
.nav-register {
    color: #0f5f94;
    border: 0;
    font-weight: 800;
}
.mobile-auth-actions {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-left: auto;
    margin-right: .55rem;
}
.mobile-auth-actions .btn {
    font-weight: 800;
    white-space: nowrap;
}
.mobile-user-actions {
    display: grid;
    gap: .65rem;
    margin-top: .75rem;
    padding-top: .85rem;
    border-top: 1px solid rgba(255, 255, 255, .22);
}
.mobile-user-actions .user-pill {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0 !important;
}

.btn-danger { background: #1f8ac5; border-color: #1f8ac5; }
.btn-danger:hover, .btn-danger:focus { background: #176fa0; border-color: #176fa0; }
.btn-outline-danger { color: #1f8ac5; border-color: #1f8ac5; }
.btn-outline-danger:hover { background: #1f8ac5; border-color: #1f8ac5; }
.text-danger { color: #1f8ac5 !important; }
.bg-danger { background-color: #1f8ac5 !important; }
.brand-chip {
    display: inline-flex;
    width: fit-content;
    padding: .35rem .7rem;
    border-radius: 999px;
    background: #eaf7ff;
    color: #176fa0;
    font-weight: 700;
    font-size: .82rem;
}

.home-hero {
    min-height: min(680px, calc(100vh - 116px));
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(10, 58, 90, .6), rgba(18, 102, 154, .24) 46%, rgba(255, 255, 255, .08)),
        url('../images/wedding-hero-blue.png') center/cover no-repeat;
    display: flex;
    justify-content: space-between;
    gap: clamp(1rem, 4vw, 3rem);
    align-items: center;
    padding: clamp(1.5rem, 5vw, 4rem);
    box-shadow: 0 24px 70px rgba(34, 113, 168, .18);
    overflow: hidden;
}
.home-hero-copy {
    max-width: 600px;
    color: #fff;
}
.home-hero-copy h1 {
    font-size: clamp(2rem, 3.3vw, 3.45rem);
    line-height: 1.08;
    font-weight: 750;
    max-width: 640px;
    margin: 1rem 0;
    text-shadow: 0 12px 34px rgba(6, 42, 68, .32);
}
.home-hero-copy p {
    color: rgba(255, 255, 255, .86);
    font-size: 1.04rem;
    max-width: 560px;
}
.home-hero .brand-chip {
    background: rgba(255, 255, 255, .88);
    color: #12669a;
}
.login-shell {
    min-height: calc(100vh - 145px);
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(330px, .72fr);
    gap: 1.5rem;
    align-items: stretch;
}
.login-story {
    border-radius: 8px;
    padding: clamp(2rem, 5vw, 4rem);
    color: #fff;
    background:
        linear-gradient(135deg, rgba(9, 54, 88, .86), rgba(31, 138, 197, .6)),
        url('../images/wedding-login-blue.png') center/cover;
    display: flex;
    flex-direction: column;
    justify-content: end;
    min-height: 560px;
}
.login-story h1 {
    max-width: 680px;
    font-weight: 800;
    font-size: clamp(2.3rem, 5vw, 4.8rem);
    line-height: .98;
    margin: 1rem 0;
}
.login-story p { max-width: 640px; font-size: 1.1rem; color: rgba(255,255,255,.88); }
.login-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem; margin-top: 2rem; }
.login-stats div { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.24); border-radius: 8px; padding: 1rem; backdrop-filter: blur(6px); }
.login-stats strong, .login-stats span { display: block; }
.login-stats span { color: rgba(255,255,255,.8); font-size: .9rem; }
.login-card {
    background: #fff;
    border: 1px solid #d7edf9;
    border-radius: 8px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    align-self: center;
    box-shadow: 0 24px 60px rgba(34, 113, 168, .14);
}

.dashboard-hero {
    border-radius: 8px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    background: linear-gradient(135deg, #fff, #eaf7ff);
    border: 1px solid #d7edf9;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    box-shadow: 0 18px 50px rgba(34, 113, 168, .09);
}
.dashboard-hero h1 { max-width: 720px; font-weight: 800; color: #143e5f; }
.dashboard-hero p { color: #496b80; max-width: 650px; }
.dashboard-hero-compact {
    padding: clamp(.8rem, 2vw, 1.15rem) clamp(1rem, 3vw, 1.6rem);
}
.dashboard-hero-compact .brand-chip {
    padding: .25rem .6rem;
    font-size: .76rem;
}
.dashboard-hero-compact h1 {
    margin-top: .45rem;
    margin-bottom: .25rem !important;
}
.dashboard-hero-compact p {
    font-size: .95rem;
    line-height: 1.35;
}
.dashboard-services {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
.dashboard-service {
    min-height: 132px;
    text-decoration: none;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(234, 247, 255, .82));
    border: 1px solid #cce8f7;
    border-radius: 8px;
    padding: 1rem;
    color: #243b4c;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    box-shadow: 0 12px 30px rgba(34, 113, 168, .08);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.dashboard-service:hover,
.dashboard-service:focus {
    color: #143e5f;
    border-color: #83c9ed;
    box-shadow: 0 18px 42px rgba(34, 113, 168, .16);
    transform: translateY(-2px);
}
.dashboard-service strong,
.dashboard-service small {
    display: block;
}
.dashboard-service strong {
    color: #143e5f;
    font-size: 1rem;
    line-height: 1.2;
}
.dashboard-service small {
    color: #5a7587;
    line-height: 1.35;
    margin-top: .25rem;
}
.service-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1f8ac5;
    color: #fff;
    box-shadow: 0 10px 22px rgba(31, 138, 197, .24);
}
.service-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}
.dashboard-status-grid .form-section {
    min-height: 104px;
}
.match-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.match-action {
    text-decoration: none;
    background: #fff;
    border: 1px solid #d7edf9;
    border-radius: 8px;
    padding: 1rem;
    color: #243b4c;
    box-shadow: 0 10px 28px rgba(34, 113, 168, .08);
}
.match-action span { display: block; color: #1f8ac5; font-weight: 700; font-size: .9rem; }
.match-action strong { display: block; margin-top: .35rem; }

.location-native-select {
    display: none !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.location-combobox {
    position: relative;
}
.location-combobox-input {
    background-color: #fff;
    padding-right: 2.2rem;
}
.location-combobox::after {
    content: "";
    position: absolute;
    top: 50%;
    right: .85rem;
    width: .58rem;
    height: .58rem;
    border-right: 2px solid #6d8798;
    border-bottom: 2px solid #6d8798;
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}
.location-combobox-list {
    display: none;
    position: absolute;
    z-index: 1060;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    max-height: 240px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #b9dff2;
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(31, 138, 197, .18);
}
.location-combobox.is-open .location-combobox-list {
    display: block;
}
.location-combobox-option,
.location-combobox-empty {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    padding: .55rem .75rem;
    text-align: left;
    color: #1f3344;
}
.location-combobox-option:hover,
.location-combobox-option:focus,
.location-combobox-option.is-selected {
    background: #eaf7ff;
    color: #12669a;
}
.location-combobox-empty {
    color: #6d8798;
}

@media (max-width: 991px) {
    .site-navbar .container {
        gap: .45rem;
    }
    .desktop-auth-actions {
        display: none !important;
    }
    .site-navbar .navbar-collapse {
        margin-top: .85rem;
        padding-top: .85rem;
        border-top: 1px solid rgba(255, 255, 255, .22);
    }
    .site-navbar .nav-link {
        border-radius: 8px;
        margin: .12rem 0;
        padding: .62rem .75rem;
    }
    .site-dropdown {
        background: rgba(255, 255, 255, .96);
        margin-bottom: .5rem;
    }
    .home-hero {
        min-height: 560px;
        background-position: center right;
        align-items: flex-start;
        flex-direction: column;
    }
    .login-shell {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .login-card {
        order: 1;
        align-self: stretch;
    }
    .login-story {
        order: 2;
        min-height: 260px;
        padding: 1.5rem;
    }
    .login-story h1 {
        font-size: 2rem;
        line-height: 1.05;
    }
    .login-story p {
        font-size: .98rem;
    }
    .login-stats {
        grid-template-columns: 1fr;
        gap: .5rem;
        margin-top: 1rem;
    }
    .login-stats div {
        padding: .75rem;
    }
    .dashboard-hero { align-items: flex-start; flex-direction: column; }
    .dashboard-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .match-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
    .brand-logo {
        height: 48px;
        max-width: 205px;
    }
    .mobile-auth-actions {
        gap: .3rem;
        margin-right: .35rem;
    }
    .mobile-auth-actions .btn {
        padding: .25rem .45rem;
        font-size: .76rem;
    }
    .site-toggler {
        padding: .25rem .45rem;
    }
    .login-card {
        padding: 1.15rem;
    }
    .login-card .mb-4 {
        margin-bottom: 1rem !important;
    }
    .login-story {
        min-height: 210px;
    }
    .login-story h1 {
        font-size: 1.65rem;
    }
    .login-stats {
        display: none;
    }
    .home-hero { min-height: 520px; }
    .home-hero-copy h1 { font-size: 2.25rem; }
    .login-stats, .match-actions, .dashboard-services { grid-template-columns: 1fr; }
    .dashboard-service {
        min-height: 0;
        flex-direction: row;
        align-items: flex-start;
    }
    .service-icon {
        flex: 0 0 42px;
    }
}
@media (max-width: 390px) {
    .brand-logo {
        height: 42px;
        max-width: 170px;
    }
    .mobile-auth-actions .nav-register {
        display: none;
    }
}
