/* Account pages — frontend member area */
.np-account-page { padding: 40px 0 60px; min-height: 50vh; background: linear-gradient(180deg, #f8fafc 0%, #fff 120px); }
.np-account-container { max-width: 480px; }
.np-account-container--wide { max-width: 820px; }
.np-account-flash { margin: 0 0 20px !important; border-radius: 12px; }

/* Cards */
.np-account-card {
    background: #fff; border: 1px solid rgba(15,23,42,0.08); border-radius: 18px;
    padding: 32px 28px; box-shadow: 0 16px 48px rgba(15,23,42,0.06);
}
.np-account-card--wide { padding: 32px; }
.np-account-head h1, .np-account-head h2 { margin: 0 0 8px; font-size: 1.65rem; font-family: var(--font-heading); }
.np-account-head p { margin: 0 0 20px; color: #64748b; font-size: 14px; line-height: 1.5; }

/* Form fields — account scope */
.np-account-form,
.np-account-panel--form { display: flex; flex-direction: column; gap: 4px; }
.np-account-form input[type="text"],
.np-account-form input[type="email"],
.np-account-form input[type="password"],
.np-account-form input[type="search"],
.np-account-form textarea,
.np-account-panel--form input[type="text"],
.np-account-panel--form input[type="email"],
.np-account-panel--form input[type="password"],
.np-account-panel--form textarea {
    width: 100%; padding: 12px 14px; border: 1px solid #e2e8f0; border-radius: 12px;
    font-family: inherit; font-size: 14px; color: #1e293b; background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.np-account-form input:focus,
.np-account-form textarea:focus,
.np-account-panel--form input:focus,
.np-account-panel--form textarea:focus {
    outline: none; border-color: var(--np-secondary, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.np-account-form textarea,
.np-account-panel--form textarea { resize: vertical; min-height: 100px; line-height: 1.55; }
.np-account-submit { width: 100%; justify-content: center; margin-top: 8px; }
.np-account-switch { margin: 16px 0 0; font-size: 14px; color: var(--np-text-muted, #64748b); text-align: center; }
.np-account-switch a { color: var(--np-secondary, #3b82f6) !important; font-weight: 600; text-decoration: none; }
.np-account-switch a:hover { text-decoration: underline; }
.np-field-hint, .np-panel-hint { display: block; margin: 0 0 12px; font-size: 13px; color: #94a3b8; }
.np-form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; align-items: center; }
.np-btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px;
    background: transparent; border: 1px solid #e2e8f0; border-radius: 10px;
    color: #475569; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.np-btn-ghost:hover { background: #f8fafc; border-color: #cbd5e1; color: #1e293b; }
.np-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #64748b; margin: 8px 0; cursor: pointer; }

/* Custom file upload */
.np-file-upload { position: relative; }
.np-file-input { position: absolute; width: 0.1px; height: 0.1px; opacity: 0; overflow: hidden; z-index: -1; }
.np-file-label {
    display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px;
    border: 2px dashed #cbd5e1; border-radius: 12px; background: #f8fafc;
    cursor: pointer; font-size: 14px; font-weight: 600; color: #475569;
    transition: border-color 0.2s, background 0.2s;
}
.np-file-label:hover { border-color: var(--np-secondary, #3b82f6); background: rgba(59,130,246,0.06); color: var(--np-secondary, #3b82f6); }
.np-file-label svg { opacity: 0.7; }

/* Auth split layout */
.np-account-auth { background: linear-gradient(180deg, #f1f5f9 0%, #fff 240px); }
.np-auth-layout { display: grid; grid-template-columns: 1fr 420px; gap: 32px; align-items: stretch; max-width: 960px; margin: 0 auto; }
@media (max-width: 900px) { .np-auth-layout { grid-template-columns: 1fr; } }
.np-auth-hero {
    border-radius: 20px; padding: 40px 36px; color: #fff;
    background: linear-gradient(145deg, #1e293b 0%, #334155 50%, var(--np-secondary, #3b82f6) 120%);
    display: flex; align-items: center; box-shadow: 0 20px 50px rgba(15,23,42,0.15);
}
.np-auth-hero--register { background: linear-gradient(145deg, #0f172a 0%, #1e3a5f 50%, #3b82f6 130%); }
.np-auth-hero h1 { margin: 12px 0 10px; font-size: 2rem; line-height: 1.15; font-family: var(--font-heading); color: #fff; }
.np-auth-hero p { margin: 0; font-size: 15px; line-height: 1.55; max-width: 360px; color: rgba(255,255,255,0.92) !important; opacity: 1; }
.se-styled-section .np-auth-hero p,
.se-styled-section.np-auth-hero p {
    color: rgba(255,255,255,0.92) !important;
}
.np-auth-badge {
    display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em; background: rgba(255,255,255,0.15);
}
.np-auth-features { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 14px; }
.np-auth-features li { display: flex; align-items: center; gap: 12px; font-size: 14px; opacity: 0.92; }
.np-auth-card { align-self: center; width: 100%; }
.np-auth-forgot { margin: -4px 0 8px; text-align: right; font-size: 13px; }
.np-auth-forgot a { color: var(--np-secondary, #3b82f6); font-weight: 600; text-decoration: none; }
.np-auth-forgot a:hover { text-decoration: underline; }

/* Dashboard */
.np-dash-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.np-dash-header h1 { margin: 0 0 6px; font-size: 1.85rem; font-family: var(--font-heading); }
.np-dash-header p { margin: 0; color: #64748b; font-size: 14px; }
.np-dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
@media (max-width: 768px) { .np-dash-stats { grid-template-columns: repeat(2, 1fr); } }
.np-dash-stat {
    padding: 18px; border-radius: 14px; border: 1px solid rgba(15,23,42,0.08);
    background: #fff; display: flex; flex-direction: column; gap: 4px;
    box-shadow: 0 4px 16px rgba(15,23,42,0.04); text-decoration: none; color: inherit;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.np-dash-stat--link:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,23,42,0.08); border-color: rgba(59,130,246,0.35); }
.np-dash-stat-icon { color: var(--np-secondary, #3b82f6); margin-bottom: 4px; }
.np-dash-stat strong { font-size: 22px; line-height: 1.1; }
.np-dash-stat span:last-child { font-size: 11px; color: #64748b; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.np-dash-banner {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-size: 14px;
}
.np-dash-banner--pending { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.np-dash-banner--approved { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.np-dash-banner--rejected { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.np-dash-banner a { font-weight: 700; color: inherit; }

.np-account-dash-grid { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .np-account-dash-grid { grid-template-columns: 1fr; } }
.np-account-profile-card {
    padding: 22px; border-radius: 16px; border: 1px solid rgba(15,23,42,0.08);
    background: linear-gradient(160deg, rgba(59,130,246,0.1), #fff 55%);
    text-align: center; box-shadow: 0 4px 16px rgba(15,23,42,0.04);
}
.np-account-profile-card h2 { margin: 0 0 4px; font-size: 16px; }
.np-account-profile-card p { margin: 0; font-size: 12px; color: #64748b; word-break: break-all; }
.np-account-avatar {
    width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 50%; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--np-secondary, #3b82f6), #3a9fd4);
    color: #fff; font-size: 26px; font-weight: 700;
    box-shadow: 0 4px 16px rgba(59,130,246,0.25);
}
.np-account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.np-account-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.np-account-nav a {
    display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px;
    text-decoration: none; color: #475569; font-weight: 600; font-size: 14px;
    transition: background 0.15s, color 0.15s;
}
.np-account-nav a svg { opacity: 0.65; flex-shrink: 0; }
.np-account-nav a:hover { background: rgba(59,130,246,0.08); color: var(--np-secondary, #3b82f6); }
.np-account-nav a.is-active { background: rgba(59,130,246,0.12); color: var(--np-secondary, #3b82f6); }
.np-account-nav a.is-active svg { opacity: 1; }
.np-nav-badge {
    margin-left: auto; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
    background: rgba(59,130,246,0.15); color: var(--np-secondary, #3b82f6);
}
.np-account-nav-logout { color: #94a3b8 !important; margin-top: 8px; border-top: 1px solid #f1f5f9; padding-top: 14px !important; }
.np-account-nav-logout:hover { color: #dc2626 !important; background: rgba(220,38,38,0.06) !important; }

.np-account-panel {
    padding: 24px; border-radius: 16px; border: 1px solid rgba(15,23,42,0.08);
    background: #fff; margin-bottom: 16px; box-shadow: 0 4px 20px rgba(15,23,42,0.04);
}
.np-account-panel--nested { background: #f8fafc; border-style: dashed; margin-top: 16px; padding: 20px; }
.np-panel-head { margin-bottom: 20px; }
.np-panel-head h3, .np-account-panel h3 { margin: 0 0 6px; font-size: 1.15rem; font-family: var(--font-heading); }
.np-panel-head p { margin: 0; font-size: 13px; color: #64748b; }
.np-account-panel h4 { margin: 0 0 8px; font-size: 15px; }

/* List pages — toolbar, saved grid, submissions */
.np-account-toolbar {
    display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
    margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #f1f5f9;
}
.np-account-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.np-filter-chip {
    appearance: none; border: 1px solid #e2e8f0; background: #fff; border-radius: 999px;
    padding: 7px 14px; font-size: 12px; font-weight: 700; color: #64748b; cursor: pointer;
    transition: all 0.15s;
}
.np-filter-chip:hover { border-color: var(--np-secondary, #3b82f6); color: var(--np-secondary, #3b82f6); }
.np-filter-chip.is-active { background: var(--np-secondary, #3b82f6); border-color: transparent; color: #fff; }
.np-account-search {
    display: flex; align-items: center; gap: 8px; flex: 1; min-width: 200px; max-width: 320px;
    padding: 0 14px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc;
}
.np-account-search svg { color: #94a3b8; flex-shrink: 0; }
.np-account-search input {
    flex: 1; border: none !important; background: transparent !important; box-shadow: none !important;
    padding: 10px 0 !important; font-size: 14px !important;
}
.np-account-list-body.is-loading { opacity: 0.55; pointer-events: none; }

.np-saved-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.np-saved-card {
    display: flex; flex-direction: column; border: 1px solid #e2e8f0; border-radius: 14px;
    overflow: hidden; background: #fff; transition: box-shadow 0.2s, transform 0.2s;
}
.np-saved-card:hover { box-shadow: 0 12px 32px rgba(15,23,42,0.08); transform: translateY(-2px); }
.np-saved-thumb { display: block; aspect-ratio: 16/10; overflow: hidden; background: #f1f5f9; }
.np-saved-thumb img, .np-saved-thumb .np-post-img { width: 100%; height: 100%; object-fit: cover; }
.np-saved-thumb-fallback { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 32px; opacity: 0.4; }
.np-saved-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.np-saved-body h4 { margin: 0; font-size: 15px; line-height: 1.35; }
.np-saved-body h4 a { color: inherit; text-decoration: none; }
.np-saved-body h4 a:hover { color: var(--np-secondary, #3b82f6); }
.np-saved-body p { margin: 0; font-size: 13px; color: #64748b; line-height: 1.45; }
.np-saved-meta { display: flex; gap: 10px; font-size: 11px; color: #94a3b8; font-weight: 600; margin-top: auto; padding-top: 8px; }

.np-submissions-list { display: flex; flex-direction: column; gap: 12px; }
.np-submission-item {
    padding: 18px 20px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fafbfc;
    transition: border-color 0.15s, background 0.15s;
}
.np-submission-item:hover { border-color: rgba(59,130,246,0.35); background: #fff; }
.np-submission-item-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.np-submission-item-head h4 { margin: 0; font-size: 16px; line-height: 1.35; }
.np-submission-excerpt { margin: 0 0 8px; font-size: 14px; color: #64748b; line-height: 1.5; }
.np-submission-meta { font-size: 12px; color: #94a3b8; }

.np-status { font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; flex-shrink: 0; }
.np-status--pending { background: #fef3c7; color: #92400e; }
.np-status--approved { background: #d1fae5; color: #065f46; }
.np-status--rejected { background: #fee2e2; color: #991b1b; }

.np-account-empty {
    text-align: center; padding: 48px 24px; border: 2px dashed #e2e8f0; border-radius: 16px;
    background: #f8fafc; color: #64748b;
}
.np-account-empty svg { margin: 0 auto 14px; color: #94a3b8; }
.np-account-empty h4 { margin: 0 0 8px; color: #334155; font-size: 16px; }
.np-account-empty p { margin: 0 0 16px; font-size: 14px; max-width: 360px; margin-left: auto; margin-right: auto; }

.np-account-pagination {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
    margin-top: 24px; padding-top: 16px; border-top: 1px solid #f1f5f9;
}
.np-account-pagination-info { font-size: 13px; color: #64748b; font-weight: 600; }
.np-account-pagination-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.np-page-btn {
    appearance: none; border: 1px solid #e2e8f0; background: #fff; border-radius: 10px;
    padding: 8px 12px; font-size: 13px; font-weight: 600; color: #475569; cursor: pointer;
    min-width: 40px; transition: all 0.15s;
}
.np-page-btn:hover:not(:disabled) { border-color: var(--np-secondary, #3b82f6); color: var(--np-secondary, #3b82f6); }
.np-page-btn.is-active { background: var(--np-secondary, #3b82f6); border-color: transparent; color: #fff; }
.np-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.np-muted { color: #64748b; font-size: 14px; }
