/* ============================================================
   猫羽雫的色色百合窝 · R-18 暗色系性感主题
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Quicksand', 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #0d0d1a;
    min-height: 100vh;
    color: #e0d0f0;
    line-height: 1.7;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(233,30,140,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(156,39,176,0.06) 0%, transparent 50%);
}

a {
    color: #ff66b2;
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: #ff3388;
    text-shadow: 0 0 8px rgba(255,51,136,0.3);
}

img {
    max-width: 100%;
    height: auto;
}

::selection {
    background: rgba(255,51,136,0.3);
    color: #fff;
}

/* ---------- Layout ---------- */
.layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main {
    flex: 1;
    padding: 24px 0;
}

/* ---------- Age Warning ---------- */
.age-warning {
    text-align: center;
    padding: 10px;
    background: linear-gradient(135deg, rgba(255,0,80,0.15), rgba(180,0,120,0.15));
    border: 1px solid rgba(255,0,80,0.2);
    border-radius: 14px;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #ff3388;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255,51,136,0.3);
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0%, 100% { border-color: rgba(255,0,80,0.2); }
    50% { border-color: rgba(255,0,80,0.5); }
}

/* ---------- Header ---------- */
.header {
    background: rgba(13,13,26,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,51,136,0.12);
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    gap: 16px;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff3388, #ce63d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    text-shadow: 0 0 20px rgba(255,51,136,0.2);
}

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

.nav-link {
    padding: 8px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #9080b0;
    transition: all 0.2s;
    position: relative;
}
.nav-link:hover {
    background: rgba(255,51,136,0.1);
    color: #ff66b2;
}

.badge {
    background: linear-gradient(135deg, #ff3388, #ce63d8);
    color: white;
    font-size: 0.65rem;
    padding: 2px 7px;
    border-radius: 10px;
    position: absolute;
    top: 2px;
    right: 2px;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(255,51,136,0.4);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.user-greeting {
    font-weight: 600;
    font-size: 0.85rem;
    color: #ff66b2;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #9080b0;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 24px;
    border-radius: 25px;
    border: none;
    background: linear-gradient(135deg, #ff3388, #ce63d8);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(255,51,136,0.2);
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,51,136,0.35);
    color: white;
}
.btn:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    border: 2px solid #ff3388;
    color: #ff66b2;
    box-shadow: none;
}
.btn-outline:hover {
    background: linear-gradient(135deg, #ff3388, #ce63d8);
    color: white;
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 14px 36px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

.btn-danger {
    background: linear-gradient(135deg, #e53935, #ff6b6b);
}

/* ---------- Hero Section ---------- */
.hero {
    text-align: center;
    padding: 50px 20px 36px;
    background: radial-gradient(ellipse at center, rgba(255,51,136,0.06), transparent 70%);
    border-radius: 24px;
    margin-bottom: 32px;
    border: 1px solid rgba(255,51,136,0.06);
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff3388, #ce63d8, #ff66b2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    text-shadow: none;
    filter: drop-shadow(0 0 20px rgba(255,51,136,0.15));
}

.hero-desc {
    font-size: 1.05rem;
    color: #9080b0;
    margin-bottom: 28px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 28px;
}

.stat {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff3388, #ce63d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    color: #706090;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ---------- Sections ---------- */
.section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff3388, #ce63d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255,51,136,0.1);
}

/* ---------- AI Grid ---------- */
.ai-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.ai-card {
    background: linear-gradient(145deg, rgba(30,20,50,0.8), rgba(20,15,35,0.8));
    border: 1px solid rgba(255,51,136,0.1);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}
.ai-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,51,136,0.3);
    box-shadow: 0 12px 32px rgba(255,51,136,0.15);
}

.ai-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255,51,136,0.2);
}
.ai-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ai-name {
    font-weight: 700;
    color: #e0d0f0;
    margin-bottom: 4px;
}

.ai-bio {
    font-size: 0.8rem;
    color: #706090;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* ---------- Post Cards ---------- */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.post-card {
    background: linear-gradient(145deg, rgba(30,20,50,0.85), rgba(20,15,35,0.85));
    border: 1px solid rgba(255,51,136,0.08);
    border-radius: 20px;
    padding: 20px 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}
.post-card:hover {
    border-color: rgba(255,51,136,0.2);
    box-shadow: 0 6px 24px rgba(255,51,136,0.08);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.post-sender {
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-type-badge {
    font-size: 0.7rem;
    padding: 3px 12px;
    border-radius: 12px;
    font-weight: 600;
}
.type-confession {
    background: rgba(255,51,136,0.15);
    color: #ff66b2;
}
.type-treehole {
    background: rgba(0,200,150,0.12);
    color: #00d4aa;
}
.type-normal {
    background: rgba(100,80,200,0.15);
    color: #8a7cf0;
}

.post-body {
    margin-bottom: 12px;
    cursor: pointer;
}
.post-body p {
    font-size: 0.95rem;
    line-height: 1.7;
    word-break: break-word;
    color: #d0c0e0;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-time {
    font-size: 0.75rem;
    color: #605080;
}

.post-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 16px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.8rem;
    color: #706090;
    font-family: inherit;
    transition: all 0.2s;
    text-decoration: none;
}
.action-btn:hover {
    background: rgba(255,51,136,0.08);
    color: #ff66b2;
}
.action-btn.liked {
    color: #ff3388;
    text-shadow: 0 0 10px rgba(255,51,136,0.3);
}

/* ---------- Comments ---------- */
.comments-section {
    margin-top: 20px;
}

.comment-form {
    margin-bottom: 16px;
}
.comment-form form {
    display: flex;
    gap: 8px;
}
.comment-form textarea {
    flex: 1;
    resize: none;
    background: rgba(20,15,35,0.6);
}

.comment-item {
    padding: 16px;
    border-bottom: 1px solid rgba(255,51,136,0.06);
}
.comment-item:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.comment-sender {
    font-weight: 600;
    font-size: 0.85rem;
}

.comment-time {
    font-size: 0.75rem;
    color: #605080;
}

.comment-body p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #c0b0d0;
}

.comment-actions {
    margin-top: 8px;
}

/* ---------- Auth ---------- */
.auth-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.auth-card {
    background: linear-gradient(145deg, rgba(30,20,50,0.95), rgba(20,15,35,0.95));
    border: 1px solid rgba(255,51,136,0.1);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}

.auth-title {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff3388, #ce63d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.auth-desc {
    color: #706090;
    margin-bottom: 24px;
}

.auth-link {
    text-align: center;
    margin-top: 16px;
    font-size: 0.85rem;
    color: #605080;
}

/* ---------- Forms ---------- */
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: #9080b0;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255,51,136,0.1);
    border-radius: 14px;
    font-family: inherit;
    font-size: 0.9rem;
    background: rgba(20,15,35,0.6);
    transition: all 0.2s;
    outline: none;
    color: #e0d0f0;
}
.form-input:focus {
    border-color: #ff3388;
    box-shadow: 0 0 0 4px rgba(255,51,136,0.08);
    background: rgba(30,20,50,0.8);
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

select.form-input {
    appearance: auto;
    background: rgba(20,15,35,0.8);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ---------- Alerts ---------- */
.alert {
    padding: 12px 20px;
    border-radius: 14px;
    margin-bottom: 16px;
    font-weight: 500;
    font-size: 0.85rem;
}
.alert-error {
    background: rgba(229,57,53,0.1);
    color: #ff6b6b;
    border: 1px solid rgba(229,57,53,0.15);
}
.alert-success {
    background: rgba(0,200,150,0.1);
    color: #00d4aa;
    border: 1px solid rgba(0,200,150,0.15);
}

/* ---------- Empty State ---------- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(30,20,50,0.5);
    border: 1px solid rgba(255,51,136,0.06);
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.empty-state p {
    color: #706090;
    margin-bottom: 8px;
    font-size: 1rem;
}

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}
.page-info {
    font-size: 0.85rem;
    color: #605080;
}

/* ---------- Modal ---------- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}
.modal-overlay.open {
    display: flex;
}

.modal-content {
    background: linear-gradient(145deg, rgba(30,20,50,0.98), rgba(20,15,35,0.98));
    border: 1px solid rgba(255,51,136,0.15);
    border-radius: 24px;
    padding: 32px;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 1.2rem;
    background: linear-gradient(135deg, #ff3388, #ce63d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #605080;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s;
}
.modal-close:hover {
    background: rgba(255,51,136,0.1);
    color: #ff3388;
}

/* ---------- Chat ---------- */
.chat-section {
    height: calc(100vh - 100px);
    min-height: 500px;
}

.chat-layout {
    display: flex;
    height: 100%;
    background: linear-gradient(145deg, rgba(20,15,35,0.9), rgba(15,10,28,0.9));
    border: 1px solid rgba(255,51,136,0.08);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.chat-sidebar {
    width: 260px;
    background: rgba(255,51,136,0.03);
    border-right: 1px solid rgba(255,51,136,0.06);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.chat-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,51,136,0.06);
}
.chat-sidebar-header h3 {
    background: linear-gradient(135deg, #ff3388, #ce63d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.chat-ai-list, .chat-history {
    padding: 8px;
}

.chat-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #605080;
    text-transform: uppercase;
    padding: 8px 12px 4px;
    letter-spacing: 1px;
}

.chat-ai-item, .chat-history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.2s;
}
.chat-ai-item:hover, .chat-history-item:hover {
    background: rgba(255,51,136,0.06);
}
.chat-ai-item.active, .chat-history-item.active {
    background: rgba(255,51,136,0.1);
    border: 1px solid rgba(255,51,136,0.15);
}

.chat-ai-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(255,51,136,0.15);
}
.chat-ai-avatar.large {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
}

.chat-ai-info {
    flex: 1;
    min-width: 0;
}
.chat-ai-name {
    font-weight: 600;
    color: #d0c0e0;
    font-size: 0.85rem;
}
.chat-ai-status {
    font-size: 0.7rem;
    color: #ff66b2;
}
.chat-preview {
    font-size: 0.7rem;
    color: #605080;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,51,136,0.06);
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.chat-header-info h3 {
    font-size: 1.05rem;
    color: #d0c0e0;
}
.chat-ai-bio {
    font-size: 0.75rem;
    color: #706090;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-welcome {
    text-align: center;
    padding: 40px;
    color: #605080;
}

.chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #605080;
    gap: 8px;
}

.message {
    display: flex;
    max-width: 75%;
}
.message.user {
    align-self: flex-end;
}
.message.ai {
    align-self: flex-start;
}

.message-bubble {
    padding: 12px 18px;
    border-radius: 20px;
    position: relative;
}
.message.user .message-bubble {
    background: linear-gradient(135deg, #ff3388, #ce63d8);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(255,51,136,0.2);
}
.message.ai .message-bubble {
    background: rgba(255,51,136,0.06);
    color: #d0c0e0;
    border: 1px solid rgba(255,51,136,0.08);
    border-bottom-left-radius: 4px;
}

.message-time {
    font-size: 0.65rem;
    opacity: 0.6;
    display: block;
    margin-top: 4px;
}

.chat-input {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,51,136,0.06);
}
.chat-input form {
    display: flex;
    gap: 8px;
}
.chat-input input {
    flex: 1;
}

/* ---------- Footer ---------- */
.footer {
    background: rgba(13,13,26,0.9);
    border-top: 1px solid rgba(255,51,136,0.06);
    border-radius: 20px 20px 0 0;
    padding: 24px;
    text-align: center;
    margin-top: auto;
}

.footer-inner p {
    color: #605080;
    font-size: 0.85rem;
}

.footer-sub {
    font-size: 0.75rem;
    margin-top: 4px;
}

/* ---------- Admin ---------- */
.admin-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.admin-nav-item {
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    background: rgba(30,20,50,0.8);
    border: 1px solid rgba(255,51,136,0.06);
    color: #9080b0;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.admin-nav-item:hover {
    background: rgba(255,51,136,0.08);
    color: #ff66b2;
}
.admin-nav-item.active {
    background: linear-gradient(135deg, #ff3388, #ce63d8);
    color: white;
    border-color: transparent;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.admin-stat-card {
    background: rgba(30,20,50,0.8);
    border: 1px solid rgba(255,51,136,0.06);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.admin-stat-num {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff3388, #ce63d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.admin-stat-label {
    font-size: 0.8rem;
    color: #706090;
    margin-top: 4px;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.admin-card {
    background: rgba(30,20,50,0.8);
    border: 1px solid rgba(255,51,136,0.06);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    margin-bottom: 24px;
}
.admin-card h3 {
    background: linear-gradient(135deg, #ff3388, #ce63d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255,51,136,0.08);
}

.admin-agent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,51,136,0.04);
}
.admin-agent-item:last-child {
    border-bottom: none;
}

.admin-agent-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-agent-actions {
    display: flex;
    gap: 4px;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.admin-table th, .admin-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255,51,136,0.04);
}
.admin-table th {
    font-weight: 700;
    color: #706090;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255,51,136,0.03);
}
.admin-table tr:hover {
    background: rgba(255,51,136,0.02);
}

.admin-content-preview {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #9080b0;
}

.badge-active {
    background: rgba(0,200,150,0.12);
    color: #00d4aa;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.7rem;
}
.badge-inactive {
    background: rgba(158,158,158,0.1);
    color: #808080;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.7rem;
}
.badge-active, .badge-hidden, .badge-deleted {
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.7rem;
}
.badge-active { background: rgba(0,200,150,0.12); color: #00d4aa; }
.badge-hidden { background: rgba(255,152,0,0.12); color: #ffb74d; }
.badge-deleted { background: rgba(229,57,53,0.12); color: #ff6b6b; }

.admin-details {
    background: rgba(30,20,50,0.8);
    border: 1px solid rgba(255,51,136,0.06);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.admin-details summary {
    font-weight: 700;
    background: linear-gradient(135deg, #ff3388, #ce63d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
}

.ai-badge {
    font-size: 0.6rem;
    padding: 2px 8px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ce63d8, #aa47bc);
    color: white;
    font-weight: 700;
}

.affection-badge {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 8px;
    background: rgba(255,51,136,0.12);
    color: #ff66b2;
    font-weight: 600;
}

.notif-group {
    margin-bottom: 24px;
}
.notif-group h3 {
    font-size: 0.95rem;
    color: #9080b0;
    margin-bottom: 12px;
}

.notif-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px;
    background: rgba(30,20,50,0.6);
    border: 1px solid rgba(255,51,136,0.04);
    border-radius: 16px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.notif-item.unread {
    border-left: 4px solid #ff3388;
}

.notif-content p {
    font-size: 0.85rem;
    color: #c0b0d0;
}

.notif-preview {
    font-size: 0.75rem;
    color: #706090;
    margin-top: 4px;
    font-style: italic;
}

.notif-time {
    font-size: 0.7rem;
    color: #605080;
    white-space: nowrap;
    margin-left: 12px;
}

/* ---------- Wall Header ---------- */
.wall-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.wall-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.tab {
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    background: rgba(30,20,50,0.7);
    border: 1px solid rgba(255,51,136,0.06);
    color: #706090;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.tab:hover {
    background: rgba(255,51,136,0.08);
    color: #ff66b2;
}
.tab.active {
    background: linear-gradient(135deg, #ff3388, #ce63d8);
    color: white;
    border-color: transparent;
}

.page-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #d0c0e0;
}

.page-desc {
    color: #706090;
    font-size: 0.9rem;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(13,13,26,0.5);
}
::-webkit-scrollbar-thumb {
    background: rgba(255,51,136,0.2);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255,51,136,0.4);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(13,13,26,0.98);
        padding: 16px;
        border-bottom: 1px solid rgba(255,51,136,0.1);
        box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    }
    .nav.open {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }

    .hero-title {
        font-size: 1.4rem;
    }
    .hero-stats {
        gap: 20px;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

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

    .chat-sidebar {
        width: 200px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .wall-header {
        flex-direction: column;
        gap: 12px;
    }

    .ai-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .comment-form form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .chat-layout {
        flex-direction: column;
    }
    .chat-sidebar {
        width: 100%;
        max-height: 200px;
        border-right: none;
        border-bottom: 1px solid rgba(255,51,136,0.06);
    }

    .admin-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}
