:root {
    --bg: #080d14;
    --panel: rgba(14, 24, 36, 0.86);
    --line: rgba(142, 180, 207, 0.22);
    --text: #e4eef7;
    --accent: #8dd5ff;
    --accent-2: #71ffcb;
    --danger: #ff8b8b;
    --ok: #8bffbf;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 20% 0%, #12304f, #05080e 60%);
    min-height: 100vh;
}

.bg-overlay {
    position: fixed;
    inset: 0;
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.04), transparent 40%),
        repeating-linear-gradient(90deg, transparent 0 89px, rgba(120, 190, 255, 0.07) 90px 91px);
    pointer-events: none;
}

.floating-orb {
    position: fixed;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(2px);
    z-index: 0;
    opacity: 0.3;
    animation: float 16s ease-in-out infinite;
}

.orb-a {
    width: 190px;
    height: 190px;
    background: radial-gradient(circle, rgba(113, 255, 203, 0.9), transparent 68%);
    top: 12vh;
    left: 8vw;
}

.orb-b {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(122, 162, 255, 0.86), transparent 70%);
    top: 52vh;
    right: 8vw;
    animation-delay: 3s;
}

.orb-c {
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(141, 213, 255, 0.9), transparent 68%);
    bottom: 7vh;
    left: 38vw;
    animation-delay: 7s;
}

.container {
    width: min(1120px, 94vw);
    margin: 0 auto;
    padding: 2rem 0 3rem;
    position: relative;
    z-index: 1;
}

.hero {
    text-align: center;
    margin-bottom: 1.8rem;
}

.badge {
    letter-spacing: 0.25rem;
    font-size: 0.75rem;
    color: var(--accent);
}

h1 {
    margin: 0.2rem 0 0.4rem;
    font-size: clamp(2rem, 4vw, 3rem);
}

.subtitle {
    color: #b2c9db;
}

.alert {
    border: 1px solid var(--line);
    border-radius: 14px;
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    backdrop-filter: blur(8px);
}

.alert-error {
    border-color: rgba(255, 143, 143, 0.5);
    background: rgba(85, 17, 17, 0.4);
}

.alert-success {
    border-color: rgba(139, 255, 191, 0.5);
    background: rgba(19, 64, 46, 0.4);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
}

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.2rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.card:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

.auth-shell {
    max-width: 760px;
    margin: 0 auto;
}

.tab-nav {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.tab-btn {
    border: 1px solid var(--line);
    background: rgba(7, 12, 20, 0.72);
    color: #cfe5f7;
    border-radius: 12px;
    padding: 0.65rem 0.9rem;
    cursor: pointer;
}

.tab-btn.is-active {
    background: linear-gradient(135deg, rgba(94, 198, 255, 0.2), rgba(92, 255, 176, 0.26));
    border-color: rgba(141, 213, 255, 0.55);
}

.tab-pane {
    display: none;
}

.tab-pane.is-active {
    display: block;
    animation: fade-in 0.22s ease;
}

.form {
    display: grid;
    gap: 0.75rem;
}

label,
legend {
    font-size: 0.9rem;
    color: #c5d9e8;
}

input {
    width: 100%;
    margin-top: 0.35rem;
    border-radius: 10px;
    border: 1px solid rgba(156, 206, 243, 0.24);
    padding: 0.6rem 0.7rem;
    background: rgba(8, 15, 23, 0.85);
    color: var(--text);
    outline: none;
    transition: all 0.2s ease;
}

input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(141, 213, 255, 0.2);
}

.date-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}

.service-switch {
    margin: 0.3rem 0;
    border: 1px dashed rgba(156, 206, 243, 0.32);
    border-radius: 10px;
    padding: 0.65rem;
}

.service-switch label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-right: 1rem;
}

.service-switch input {
    width: auto;
    margin: 0;
}

.btn {
    border: none;
    background: linear-gradient(135deg, #5ec6ff, #5cffb0);
    color: #001019;
    font-weight: 700;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(113, 255, 203, 0.25);
}

.btn-secondary {
    background: linear-gradient(135deg, #8dd5ff, #7aa2ff);
}

.btn-danger {
    background: linear-gradient(135deg, #ff7f9b, #ff5f7e);
    color: #fff;
}

.profile-card {
    margin-top: 1rem;
    border: 1px solid rgba(141, 213, 255, 0.3);
    border-radius: 12px;
    padding: 0.8rem;
    background: rgba(10, 19, 31, 0.7);
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.profile-actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.notification-btn {
    position: relative;
    border: 1px solid rgba(141, 213, 255, 0.4);
    background: rgba(7, 14, 24, 0.86);
    color: #d8ecfb;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
}

.notification-btn .icon {
    font-size: 1.05rem;
}

.notification-btn .dot {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ff3f58;
    color: #fff;
    font-size: 0.76rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 12px rgba(255, 63, 88, 0.4);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.quick-stats {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(90px, 1fr));
    gap: 0.6rem;
}

.stat {
    border: 1px solid rgba(141, 213, 255, 0.25);
    border-radius: 12px;
    padding: 0.65rem;
    background: rgba(7, 14, 24, 0.82);
}

.stat span {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-2);
}

.stat small {
    color: #9eb7ca;
}

.matches {
    margin-top: 1rem;
    display: grid;
    gap: 0.7rem;
}

.notification-panel {
    margin-bottom: 1rem;
    display: none;
}

.notification-panel.is-open {
    display: block;
}

.notification-card {
    margin-top: 0.7rem;
    border: 1px solid rgba(141, 213, 255, 0.25);
    border-radius: 12px;
    padding: 0.8rem;
    background: rgba(10, 17, 27, 0.78);
}

.notification-card.sent {
    border-color: rgba(113, 255, 203, 0.28);
}

.match-card {
    border: 1px solid rgba(141, 213, 255, 0.2);
    border-radius: 12px;
    padding: 0.75rem;
    background: rgba(6, 12, 20, 0.92);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    transform: translateZ(0);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding: 0.45rem;
    border: 1px solid rgba(141, 213, 255, 0.18);
    border-radius: 12px;
    background: rgba(6, 12, 20, 0.65);
}

.inline-form input[type="text"] {
    flex: 0 1 260px;
    margin-top: 0;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(141, 213, 255, 0.28);
    background: rgba(10, 17, 27, 0.9);
}

.request-contact .btn {
    height: 38px;
    padding: 0 0.95rem;
    border-radius: 10px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.request-button-form {
    margin-top: 0.6rem;
    display: flex;
    justify-content: flex-end;
}

.request-button-form .btn {
    height: 34px;
    padding: 0 0.9rem;
    border-radius: 10px;
    font-size: 0.85rem;
}

.match-card:hover {
    border-color: var(--accent-2);
    transform: translateY(-2px) scale(1.01);
}

.match-card h4 {
    margin: 0 0 0.2rem;
}

.match-card p {
    margin: 0.15rem 0;
    color: #a7c0d3;
    font-size: 0.88rem;
}

.score {
    text-align: right;
}

.score span {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-2);
}

.score small {
    color: #99b0c4;
}

.muted {
    color: #9ab0c2;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-18px);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .date-row {
        grid-template-columns: 1fr;
    }

    .profile-header {
        flex-direction: column;
    }

    .profile-actions {
        width: 100%;
    }

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

    .inline-form {
        align-items: stretch;
    }

    .inline-form input[type="text"] {
        flex-basis: 100%;
    }
}
