/* ============================================
   FONTS
   ============================================ */

@font-face {
    font-family: 'LemonMilk';
    src: url("../fonts/LEMONMILK-Medium.c9e81116e34e.woff2") format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url("../fonts/Poppins-Regular.0c299697ff6c.woff2") format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url("../fonts/Poppins-Medium.7589537d5de1.woff2") format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url("../fonts/Poppins-SemiBold.d5c635f42cd1.woff2") format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   APREIA — GLOBAL STYLES
   ============================================ */

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #f7f7f7;
    color: #222;
    overflow-x: hidden;
}

.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 10px;
}

/* ============================================
   LABELS / FORM FIELDS — Poppins
   ============================================ */
/* Labels de formulario */
.form-field label,
.form-section-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
}

.form-check span {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #444;
}

h1, h2, h3 {
    font-family: 'LemonMilk', sans-serif;
    font-weight: 500;
    font-size: 22px;
    margin-bottom: 20px;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
}

.btn-success  { background-color: #1f8f4e; color: white; }
.btn-danger   { background-color: #c0392b; color: white; }
.btn-secondary { background-color: #6c63ff; color: white; }

/* ============================================
   CARDS
   ============================================ */

.card {
    background: white;
    padding: 16px 18px;
    border-radius: 10px;
    margin-bottom: 18px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* ============================================
   FORM — shared between login & signup
   ============================================ */

.form-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 90px;
}

.form-card {
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    margin: 0 auto 60px auto;
}

/* Signup — tarjetas más anchas */
.form-card--wide {
    max-width: 680px;
}

/* Card header — dark band */
.form-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    padding: 24px 40px;
    text-align: center;
}

.form-header h1,
.form-header h2 {
    margin: 0;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 1.5px;
}

.form-header h1 { font-size: 26px; }
.form-header h2 { font-size: 20px; }

/* Card header — login variant (blue) */
.form-header--login {
    background: linear-gradient(135deg, #f5a623, #e08900);
}

/* Card header — signup variant (blue) */
.form-header--signup {
    background: linear-gradient(135deg, #5ba4cf, #2c7bb6);
}

/* Card header — danger variant (notice card) */
.form-header--danger {
    background: linear-gradient(135deg, #f07030, #d95520);
}

/* Card body */
.form-body {
    padding: 36px 40px 44px 40px;
    background: white;
}

/* Section title inside form body */
.form-section-title {
    margin: 20px 0 8px 0;
    font-weight: 600;
    font-size: 15px;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Fields */
.form-field {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
}

.form-field label {
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: border 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    background: white;
}

select.form-input {
    appearance: none;
    cursor: pointer;
    padding-right: 40px;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ffffff' d='M6 8L0 0h12z'/%3E%3C/svg%3E"),
        linear-gradient(to bottom, #555 0%, #555 100%);
    background-repeat: no-repeat, no-repeat;
    background-position: right 13px center, right 0 top 0;
    background-size: 12px 8px, 38px 100%;
    border-radius: 10px;
}

.form-input:focus {
    outline: none;
    border-color: black;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

.form-input::placeholder {
    color: #c0c0c0;
}

/* Nav auth buttons (not logged in) */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-auth-login {
    font-size: 13px;
    font-weight: 600;
    color: #555 !important;
    background: #e5e7eb;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 50px;
    letter-spacing: 0.03em;
    transition: background 0.2s;
}

.nav-auth-login:hover {
    background: #d1d5db;
    color: #333 !important;
}

.nav-auth-signup {
    font-size: 13px;
    font-weight: 600;
    color: #fff !important;
    background: #111;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 50px;
    letter-spacing: 0.03em;
    transition: background 0.2s;
}

.nav-auth-signup:hover {
    background: #333;
    color: #fff !important;
}

.nav-auth-register {
    font-size: 13px;
    font-weight: 600;
    color: #fff !important;
    background: #dc2626;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 50px;
    letter-spacing: 0.03em;
    transition: background 0.2s;
}

.nav-auth-register:hover {
    background: #b91c1c;
    color: #fff !important;
}

/* Unread messages badge in navbar */
.nav-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #e53e3e;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    pointer-events: none;
}

/* Message button on profiles */
.msg-btn {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 20px;
    border: 1.5px solid #6b7280;
    background: #fff;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.msg-btn:hover {
    background: #f3f4f6;
}

/* Field hint (e.g. max. 31 characters) */
.form-hint {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    color: #999;
    text-align: right;
}

/* Submit button */
.form-submit {
    width: 100%;
    padding: 14px;
    background: black;
    color: white;
    border: none;
    border-radius: 10px;
    margin-top: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: opacity 0.2s;
}

.form-submit:hover {
    opacity: 0.85;
}

/* Error box */
.form-errors {
    background: #ffe6e6;
    color: #990000;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #ffb3b3;
    font-size: 14px;
}

.form-errors p {
    margin: 4px 0;
}

/* Footer link area */
.form-footer {
    text-align: center;
    margin-top: 28px;
    font-size: 14px;
}

.form-divider {
    height: 1px;
    background: #eee;
    width: 80%;
    margin: 0 auto 20px auto;
}

.form-footer a {
    font-weight: 600;
    text-decoration: none;
    color: black;
}

.form-footer a:hover {
    text-decoration: underline;
}

.form-link {
    display: block;
    color: black;
    text-decoration: none;
    margin-bottom: 10px;
}

.form-link:hover {
    text-decoration: underline;
}

/* Feedback text (AJAX validation) */
.field-feedback {
    margin-top: 4px;
    font-size: 12px;
    padding-left: 14px;
}
.form-separator {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 28px 0;
    margin-top: 44px;
    font-size: 13px;
    min-height: 0;
}

/* Location section box */
.form-section-box {
    margin-top: 32px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #fafafa;
}

/* Notice box (important warning) */
.form-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-notice__icon {
    flex-shrink: 0;
    margin-top: 1px;
}

.form-notice__text p {
    margin: 0;
    line-height: 1.3;
    font-size: 14px;
}

.form-notice__text p.notice-danger {
    color: #cc0000;
    font-weight: 600;
}

.form-notice__text p.notice-neutral {
    color: #222;
    font-weight: 500;
}

/* Checkbox & radio rows */
.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.form-check input {
    margin-top: 2px;
    flex-shrink: 0;
}

/* ============================================
   STATUS BADGE
   ============================================ */

.status-badge {
    float: right;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    background: #6c63ff;
    color: white;
}

/* ============================================
   DASHBOARD — STEPS
   ============================================ */

.step-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
}

.step-number {
    min-width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #222;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.step-number.active { background: #7bbf2a; }

.step-content h3 { margin: 0 0 8px 0; font-size: 18px; }
.step-content p  { margin: 0; color: #555; }

.step-status {
    position: absolute;
    right: 18px;
    top: 18px;
    font-size: 11px;
    padding: 4px 0;
    border-radius: 20px;
    width: 110px;
    text-align: center;
    background: #6c63ff;
    color: white;
    font-weight: 500;
}

.step-status.completed { background: #7bbf2a; }
.step-status.pending   { background: #999; }

.dashboard-header {
    text-align: center;
    margin-bottom: 35px;
}

.dashboard-header h1 {
    margin: 8px 0 0 0;
    font-size: 34px;
    font-family: 'LemonMilk', sans-serif;
    font-weight: 500;
    line-height: 1.2;
}

.review-note {
    margin-top: 30px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.review-symbol {
    font-weight: 700;
    font-size: 18px;
    line-height: 1.4;
}

.review-note p {
    margin: 0;
    line-height: 1.6;
    text-align: justify;
    color: #444;
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    background: white;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    height: 90px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    width: 60%;
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-left .nav-item:first-of-type {
    margin-left: 20px;
}

.nav-left .nav-item:nth-child(2) {
    margin-left: 50px;
}

.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.nav-main-icons  { display: flex; gap: 18px; }
.nav-profile-group { display: flex; gap: 6px; margin-left: 22px; }

.navbar a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

.navbar a:hover { color: #000; }

/* Nav text links: editorial uppercase style (Explore, Castings only) */
.nav-left > a:not(.logo) {
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #555;
    position: relative;
    padding-bottom: 2px;
    top: 5px;
}

.nav-left > a:not(.logo)::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #111;
    transition: width 0.25s ease;
}

.nav-left > a:not(.logo):hover {
    color: #111 !important;
}

.nav-left > a:not(.logo):hover::after {
    width: 100%;
}

.logo {
    font-family: 'LemonMilk', sans-serif;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    display: inline-flex;
}

.logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.45) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-15deg);
    opacity: 0;
    pointer-events: none;
}

.logo:hover::after {
    animation: logo-shimmer 0.55s ease forwards;
}

@keyframes logo-shimmer {
    0%   { left: -80%; opacity: 1; }
    100% { left: 130%; opacity: 1; }
}

.logo img { height: 46px; width: auto; display: block; margin-top: 5px; }

.nav-item { position: relative; cursor: pointer; }
.nav-icon  { font-size: 26px; }

.icon { width: 20px; height: 20px; }

.avatar-circle {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #222; color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600;
}

.plus-circle {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: #2563eb;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: 0.2s ease;
}

.plus-circle:hover { background: #1d4ed8; }

.avatar-wrapper {
    width: 46px; height: 46px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 0 0 1px #111;
}

.avatar-img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================
   DROPDOWN
   ============================================ */

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: -15px;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    min-width: 190px;
    display: none;
    flex-direction: column;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    padding: 8px 0;
    z-index: 2000;
}

.nav-item.dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    height: 14px;
    width: 100%;
}

.dropdown-menu a {
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.dropdown-menu a:hover { background: #f5f5f5; }

/* ============================================
   LOGO DROPDOWN MENU
   ============================================ */
.logo-dropdown-menu {
    min-width: 280px;
    padding: 0;
    border-radius: 14px;
    overflow: visible;
    left: -10px;
    right: auto;
    background: #fff;
    border: 1px solid #e5e5e5;
    top: calc(100% + 1px);
    cursor: default;
}
.logo-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 34px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-left: 1px solid #e5e5e5;
    border-top: 1px solid #e5e5e5;
    transform: rotate(45deg);
    border-radius: 2px;
}
.logo-dropdown-menu > *:first-child {
    border-radius: 14px 14px 0 0;
    overflow: hidden;
}
.ldm-header {
    padding: 18px 18px 14px;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e5e5;
    cursor: default;
}
.ldm-title {
    display: block;
    font-family: 'LemonMilk', sans-serif;
    font-size: 22px;
    color: #111;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.ldm-motto {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #777;
    font-weight: 400;
    font-style: italic;
}
.ldm-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px 14px;
}
.ldm-action-btn {
    width: calc(50% - 3px);
    flex: none;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    border-radius: 10px;
    border: 1px solid #e5e5e5;
    background: transparent;
    text-decoration: none;
    color: #555;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    transition: background 0.15s;
    cursor: pointer;
}
.ldm-action-btn:hover {
    background: #f0f2f5;
}
.ldm-action-btn svg {
    stroke: #888;
}
.ldm-version-btn {
    cursor: default;
    opacity: 0.7;
}
.ldm-version-btn:hover {
    background: #f8f8fa;
}

/* ============================================
   NETWORK DROPDOWN MENU
   ============================================ */

.navbar .nav-network-link { color: #555; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 300; position: relative; padding-bottom: 2px; top: 4px; font-size: 16px; }
.nav-network-link:hover { color: #111; }

.nav-network-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #111;
    transition: width 0.25s ease;
}

.nav-network-link:hover::after { width: 100%; }

/* ============================================
   MEGA PROFILES MENU
   ============================================ */
.mega-profiles-menu {
    left: 0;
    right: auto;
    width: 720px;
    padding: 20px 24px 24px;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.mega-profiles-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 34px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-left: 1px solid #e5e5e5;
    border-top: 1px solid #e5e5e5;
    transform: rotate(45deg);
    border-radius: 2px;
}

.mega-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
    margin: 0 0 16px 0;
    padding: 0 0 14px 0;
    border-bottom: 1px solid #e5e5e5;
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.mega-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.15s;
}

.mega-item:hover {
    background: #f5f5f5 !important;
}

.mega-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mega-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mega-name {
    font-size: 13px;
    font-weight: 600;
    color: #111;
    line-height: 1.2;
}

.mega-desc {
    font-size: 11px;
    color: #888;
    line-height: 1.3;
}

.network-dropdown-menu {
    min-width: 280px;
    padding: 0;
    border-radius: 14px;
    overflow: visible;
    left: -10px;
    right: auto;
}

.network-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 14px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-left: 1px solid #e5e5e5;
    border-top: 1px solid #e5e5e5;
    transform: rotate(45deg);
    border-radius: 2px;
}

.ndm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 16px;
}

.ndm-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
    height: 90px;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid #f0f0f0;
    transition: filter 0.15s;
}

.ndm-item:hover { filter: brightness(0.95); color: inherit !important; }

.ndm-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ndm-label {
    font-size: 12px;
    font-weight: 600;
    color: #111;
    text-align: center;
}

/* ============================================
   PROFILE DROPDOWN MENU
   ============================================ */

.profile-dropdown-menu {
    min-width: 430px;
    padding: 0;
    border-radius: 14px;
    overflow: visible;
    right: -60px;
    cursor: default;
}

.profile-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 71px;
    width: 16px;
    height: 16px;
    background: #f8f8f8;
    border-left: 1px solid #e5e5e5;
    border-top: 1px solid #e5e5e5;
    transform: rotate(45deg);
    border-radius: 2px;
}

.profile-dropdown-menu > *:first-child {
    border-radius: 14px 14px 0 0;
    overflow: hidden;
}

/* Header */
.pdm-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px 14px;
    background: #f8f8f8;
    border-bottom: 1px solid #efefef;
    cursor: default;
}

.pdm-avatar {
    width: 46px; height: 46px;
    border-radius: 50%;
    overflow: hidden;
    background: #e5e5e5;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px #111;
}

.pdm-avatar-img { width: 100%; height: 100%; object-fit: cover; }

.pdm-user-info { display: flex; flex-direction: column; }
.pdm-username { font-family: 'LemonMilk', sans-serif; font-size: 17px; font-weight: normal; letter-spacing: 0.05em; color: #111; }
.pdm-role { font-size: 12px; color: #888; margin-top: 1px; }

/* Action buttons */
.pdm-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 12px 20px 8px;
}

.pdm-action-btn {
    width: calc(33.33% - 4px);
    flex: none;
    box-sizing: border-box;
    word-break: break-word;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 12px 6px;
    min-height: 72px;
    background: #f0f0f0;
    border-radius: 10px;
    text-decoration: none;
    color: #222;
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
    transition: background 0.15s;
}

.pdm-action-btn:hover { background: #e3e3e3; }

.pdm-action-btn svg { color: #444; flex-shrink: 0; }

/* Divider */
.pdm-divider {
    height: 1px;
    background: #efefef;
    margin: 0 12px;
}

/* Legal links */
.pdm-legal {
    display: flex;
    flex-direction: column;
    padding: 6px 12px;
}
.pdm-legal-link {
    display: block;
    padding: 6px 10px;
    font-size: 12px;
    color: #888;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.12s, color 0.12s;
}
.pdm-legal-link:hover { background: #f5f5f5; color: #333; }

/* Grid */
.pdm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 8px 12px;
}

.pdm-grid-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    transition: background 0.15s;
}

.pdm-grid-item:hover { background: #f5f5f5; }
.pdm-grid-item svg { color: #555; flex-shrink: 0; }
.pdm-grid-label { font-size: 12px; font-weight: 500; }

/* Footer */
.pdm-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px 12px;
}

.pdm-footer-link {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #888;
    text-decoration: none;
    padding: 4px 0;
}

.pdm-footer-link:hover { color: #333; background: none !important; }

.pdm-logout-btn {
    background: #fdecea;
    border: 1.5px solid #e53935;
    cursor: pointer;
    color: #e53935;
    display: flex;
    align-items: center;
    padding: 5px;
    border-radius: 6px;
    margin-right: 8px;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.pdm-logout-btn:hover { color: #b71c1c; background: #fca5a5; border-color: #b71c1c; }

/* ============================================
   HAMBURGER BUTTON (mobile only)
   ============================================ */
.mobile-login-btn { display: none; }
.mobile-register-btn { display: none; }

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
    flex-shrink: 0;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   MOBILE MENU OVERLAY
   ============================================ */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    top: 90px;
    background: rgba(0,0,0,0.4);
    z-index: 1050;
    opacity: 0;
    transition: opacity 0.3s;
}
.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}
.mobile-menu-content {
    background: #fff;
    width: 280px;
    height: 100%;
    overflow-y: auto;
    padding: 0 0 20px;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
}
body.mobile-menu-open { overflow: hidden; }

.mm-user-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid #eee;
}
.mm-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mm-username { font-weight: 600; font-size: 15px; color: #111; }
.mm-role { font-size: 12px; color: #888; }

.mm-section {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
}
.mm-section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
    margin-bottom: 8px;
}
.mm-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    text-decoration: none;
    color: #333;
    font-size: 15px;
    font-weight: 500;
}
.mm-link:active { color: #111; background: none; }
.mm-link-primary { color: #2563eb; font-weight: 600; }
.mm-badge {
    background: #e53e3e;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
    margin-left: auto;
}

.mm-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 0 20px;
}

.mm-footer {
    padding: 16px 20px;
}
.mm-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    width: 100%;
    justify-content: center;
    font-family: inherit;
}
.mm-logout:active { background: #fef2f2; color: #b71c1c; }

/* ============================================
   MOBILE RESPONSIVE — max 768px
   ============================================ */
@media (max-width: 768px) {

    /* Show hamburger */
    .hamburger { display: flex; }

    /* Mobile login button — centered between hamburger and logo */
    .mobile-login-btn {
        display: inline-block;
        position: absolute;
        left: calc(50% - 70px);
        transform: translateX(-50%);
        background: #e5e7eb;
        color: #555;
        font-size: 13px;
        font-weight: 600;
        padding: 7px 16px;
        border-radius: 8px;
        text-decoration: none;
        font-family: inherit;
        white-space: nowrap;
    }

    .mobile-register-btn {
        display: inline-block;
        position: absolute;
        left: calc(50% + 65px);
        transform: translateX(-50%);
        background: #dc2626;
        color: #fff;
        font-size: 13px;
        font-weight: 600;
        padding: 7px 16px;
        border-radius: 8px;
        text-decoration: none;
        font-family: inherit;
        white-space: nowrap;
    }

    /* Push content below fixed navbar */
    body { padding-top: 90px; }

    /* Navbar: black, fixed */
    .navbar {
        background: #111;
        border-bottom: none;
        position: fixed;
        width: 100%;
    }
    .hamburger span {
        background: #fff;
    }
    .nav-container {
        width: 100%;
        padding: 0 12px;
        position: relative;
    }

    /* Hide entire nav-right (icons, avatar, dropdowns) on mobile */
    .nav-right { display: none; }

    /* Hide all nav-left children except the logo */
    .nav-left > a:not(.logo),
    .nav-left > .nav-item.dropdown:not(:first-of-type) {
        display: none;
    }

    /* Nav-left: push logo to the right */
    .nav-left {
        flex: 1;
        justify-content: flex-end;
        margin-right: 30px;
        gap: 0;
    }
    .nav-left .nav-item:first-of-type { margin-left: 0; }

    /* Disable logo dropdown on mobile (tap goes to home) */
    .nav-left .nav-item.dropdown .dropdown-menu { display: none !important; }

    /* Logo image slightly smaller */
    .logo img { height: 44px; }

    /* Search panel full width on mobile */
    #search-panel {
        width: calc(100vw - 24px) !important;
        left: 12px !important;
        right: 12px !important;
    }
}