:root {
    --pink: #e91e63;
    --pink-dark: #c2185b;
    --purple: #7c4dff;
    --bg: #fff5f7;
    --card: #ffffff;
    --text: #2b2b2b;
    --muted: #777;
    --border: #f0d9df;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, var(--pink), var(--purple));
    padding: 14px 24px;
    color: #fff;
}

.brand {
    color: #fff;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 700;
}

.topnav a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    opacity: 0.9;
}

.topnav a:hover { opacity: 1; text-decoration: underline; }

.page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 28px 20px 60px;
}

.footer {
    text-align: center;
    color: var(--muted);
    padding: 20px;
    font-size: 0.85rem;
}

/* --- Auth cards (login/register/pending) --- */
.auth-card {
    background: var(--card);
    border-radius: 14px;
    padding: 32px;
    max-width: 440px;
    margin: 20px auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.auth-card-wide { max-width: 640px; }

.auth-card h1 { margin-top: 0; font-size: 1.5rem; }

.auth-card form label {
    display: block;
    margin: 14px 0 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.auth-card input,
.auth-card select,
.auth-card textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
}

.hint { font-weight: 400; color: var(--muted); font-size: 0.8rem; }

.auth-links { text-align: center; margin-top: 18px; font-size: 0.9rem; }
.auth-links a { color: var(--pink-dark); }

/* --- Buttons --- */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 24px;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: var(--pink);
    color: #fff;
    width: 100%;
    margin-top: 18px;
}

.btn-primary:disabled { opacity: 0.6; cursor: default; }

.btn-secondary {
    background: #fff;
    color: var(--pink-dark);
    border: 1.5px solid var(--pink);
}

/* --- Notices --- */
.notice {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin: 12px 0;
}
.notice-error { background: #fdecea; color: #b3261e; }
.notice-warning { background: #fff4e5; color: #8a5300; }
.notice-success { background: #e8f5e9; color: #1b5e20; }

/* --- Registration steps --- */
.step-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.step-tab {
    background: #f5eef1;
    border: none;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    color: var(--muted);
}
.step-tab.active { background: var(--pink); color: #fff; }

.step-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 10px;
}
.step-nav .btn-primary, .step-nav .btn-secondary { width: auto; margin-top: 0; flex: 1; }

/* --- Dashboard grid --- */
.section-title { color: var(--muted); font-weight: 600; margin-bottom: 16px; }

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.profile-card {
    background: var(--card);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.15s;
}
.profile-card:hover { transform: translateY(-3px); }

.profile-photo { aspect-ratio: 1/1; background: #f0e6ea; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-photo-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); font-size: 0.85rem;
}
.profile-photo-placeholder.large { aspect-ratio: 1/1; border-radius: 14px; background: #f0e6ea; }

.profile-card-body { padding: 12px 14px; }
.profile-card-body h3 { margin: 0 0 6px; font-size: 1.05rem; }
.profile-card-body p { margin: 2px 0; font-size: 0.82rem; color: var(--muted); }

/* --- Profile detail --- */
.profile-detail {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
}
.profile-photos img {
    width: 100%;
    border-radius: 14px;
    margin-bottom: 10px;
}
.profile-info h1 { margin-bottom: 4px; }
.profession { color: var(--pink-dark); font-weight: 600; margin-top: 0; }

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 20px 0;
}
.detail-grid div { display: flex; flex-direction: column; }
.detail-grid strong { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; }
.detail-grid span { font-size: 0.98rem; }

.profile-actions { display: flex; gap: 12px; margin-top: 20px; }
.profile-actions button { flex: 1; }

@media (max-width: 700px) {
    .profile-detail { grid-template-columns: 1fr; }
}
