* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #090909;
    color: #f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    line-height: 1.5;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

a {
    color: inherit;
    text-decoration: none;
}

::selection {
    background: #333;
    color: white;
}


/* ============================================================
   NAVBAR
============================================================ */

.navbar {
    height: 70px;

    border-bottom: 1px solid #222;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 7%;

    background: #0b0b0b;

    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -1px;

    display: flex;
    align-items: center;
    gap: 8px;
}

.logo img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    color: #aaa;
}

.nav-links a:hover {
    color: white;
}


/* ============================================================
   BUTTONS
============================================================ */

.button {
    display: inline-block;

    background: white;
    color: black;

    border: none;
    border-radius: 8px;

    padding: 11px 18px;

    font-weight: 700;
    cursor: pointer;

    transition: all 0.2s ease;
}

.button:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.button:active {
    transform: translateY(0);
}

.button.secondary {
    background: transparent;
    border: 1px solid #333;
    color: white;
}

.button.big {
    padding: 15px 25px;
}

.button.full {
    width: 100%;
}

.logout {
    background: #222;
    border: 1px solid #333;

    color: white;

    padding: 9px 14px;

    border-radius: 7px;

    cursor: pointer;
}


/* ============================================================
   LANDING
============================================================ */

.landing {
    min-height: calc(100vh - 120px);

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 40px 20px;
}

.hero {
    max-width: 800px;
}

.tag {
    color: #777;

    font-size: 12px;

    letter-spacing: 4px;

    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(50px, 9vw, 100px);

    line-height: 0.95;

    letter-spacing: -5px;
}

.hero h1 span {
    color: #777;
}

.description {
    color: #999;

    max-width: 600px;

    margin: 30px auto;

    line-height: 1.6;
}

.hero-buttons {
    display: flex;

    justify-content: center;

    gap: 12px;
}


/* ============================================================
   AUTH
============================================================ */

.auth-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
}

.auth-box {
    width: 100%;
    max-width: 420px;

    border: 1px solid #252525;

    background: #101010;

    padding: 35px;

    border-radius: 14px;

    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.auth-logo {
    display: block;

    font-size: 25px;

    font-weight: 800;

    margin-bottom: 35px;
}

.auth-box h1 {
    font-size: 30px;

    margin-bottom: 8px;
}

.auth-subtitle {
    color: #777;

    margin-bottom: 30px;
}

.auth-box label {
    display: block;

    margin-bottom: 8px;

    margin-top: 18px;

    color: #bbb;

    font-size: 14px;
}

.auth-box input {
    width: 100%;

    background: #080808;

    color: white;

    border: 1px solid #2b2b2b;

    border-radius: 8px;

    padding: 13px;

    outline: none;

    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-box input:focus {
    border-color: #555;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.auth-box button {
    margin-top: 25px;
}

.switch-auth {
    text-align: center;

    margin-top: 25px;

    color: #777;
}

.switch-auth a {
    color: white;
}


/* ============================================================
   MESSAGES
============================================================ */

.error {
    background: #2b1111;

    border: 1px solid #5a2222;

    color: #ff8b8b;

    padding: 12px;

    border-radius: 7px;

    margin-top: 15px;
}

.success {
    background: #112b19;

    border: 1px solid #245a32;

    color: #8bffab;

    padding: 12px;

    border-radius: 7px;

    margin-top: 15px;
}


/* ============================================================
   FEED
============================================================ */

.feed-container {
    width: 100%;

    max-width: 700px;

    margin: 40px auto;

    padding: 0 20px;
}

.feed-header {
    margin-bottom: 25px;
}

.feed-header h1 {
    font-size: 32px;
}

.feed-header p {
    color: #777;

    margin-top: 5px;
}


/* ============================================================
   CREATE POST
============================================================ */

.create-post {
    background: #101010;

    border: 1px solid #242424;

    border-radius: 12px;

    padding: 18px;

    margin-bottom: 25px;

    transition: border-color 0.2s ease;
}

.create-post:focus-within {
    border-color: #444;
}

.create-post textarea {
    width: 100%;

    min-height: 110px;

    resize: vertical;

    background: transparent;

    border: none;

    outline: none;

    color: white;

    font-family: inherit;

    font-size: 16px;
}

.post-controls {
    display: flex;

    align-items: center;

    justify-content: space-between;

    border-top: 1px solid #222;

    padding-top: 12px;
}

.post-controls-left {
    display: flex;

    align-items: center;

    gap: 10px;
}

.post-controls span {
    color: #666;

    font-size: 13px;
}

.media-button {
    background: transparent;

    border: none;

    color: #888;

    font-size: 18px;

    cursor: pointer;

    padding: 4px;

    border-radius: 6px;

    transition: 0.2s;
}

.media-button:hover {
    color: white;

    background: #1a1a1a;
}

.post-media-preview {
    position: relative;

    margin-top: 12px;

    border-radius: 10px;

    overflow: hidden;

    border: 1px solid #242424;
}

.post-media-preview img {
    width: 100%;

    max-height: 400px;

    object-fit: cover;

    display: block;
}

.post-media-preview video {
    width: 100%;

    max-height: 400px;

    object-fit: cover;

    display: block;
    background: #000;
}

.media-remove {
    position: absolute;

    top: 8px;

    right: 8px;

    width: 30px;
    height: 30px;

    border-radius: 50%;

    background: rgba(0, 0, 0, 0.7);

    border: none;

    color: white;

    font-size: 18px;

    cursor: pointer;

    display: flex;

    align-items: center;
    justify-content: center;

    transition: 0.2s;
}

.media-remove:hover {
    background: rgba(239, 68, 68, 0.8);
}


/* ============================================================
   POSTS
============================================================ */

.post {
    background: #101010;

    border: 1px solid #242424;

    border-radius: 12px;

    padding: 20px;

    margin-bottom: 15px;

    transition: border-color 0.2s ease;
}

.post:hover {
    border-color: #333;
}

.post-header {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 18px;
}

.avatar {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #222;

    display: flex;

    align-items: center;
    justify-content: center;

    font-weight: bold;

    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.avatar.small {
    width: 34px;
    height: 34px;

    font-size: 14px;
}

.post-user {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 7px;
}

.post-user small {
    width: 100%;

    color: #666;

    font-size: 11px;
}

.post-username {
    font-weight: bold;
}

.post-username:hover {
    text-decoration: underline;
}

.post-content {
    line-height: 1.6;

    white-space: pre-wrap;

    word-break: break-word;
}

.post-media {
    margin-top: 12px;

    border-radius: 10px;

    overflow: hidden;

    border: 1px solid #1a1a1a;
}

.post-media img {
    width: 100%;

    max-height: 500px;

    object-fit: cover;

    display: block;

    cursor: pointer;

    transition: opacity 0.2s;
}

.post-media img:hover {
    opacity: 0.9;
}

.post-media video {
    width: 100%;

    max-height: 500px;

    object-fit: cover;

    display: block;

    border-radius: 0;
    background: #000;
}


/* ============================================================
   BADGES
============================================================ */

.badges {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    flex-wrap: wrap;
}

.badge {
    width: 16px;
    height: 16px;

    object-fit: contain;

    display: inline-block;
}

.badge-pill {
    display: inline-flex;

    align-items: center;

    gap: 4px;

    padding: 3px 8px;

    border-radius: 20px;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 0.3px;

    white-space: nowrap;

    line-height: 1;
}

.badge-pill-icon {
    width: 14px;
    height: 14px;

    object-fit: contain;
}

.badge-pill-verified {
    background: rgba(59, 130, 246, 0.15);

    color: #60a5fa;

    border: 1px solid rgba(59, 130, 246, 0.25);
}

.badge-pill-early {
    background: rgba(234, 179, 8, 0.15);

    color: #facc15;

    border: 1px solid rgba(234, 179, 8, 0.25);
}

.badge-pill-staff {
    background: rgba(168, 85, 247, 0.15);

    color: #c084fc;

    border: 1px solid rgba(168, 85, 247, 0.25);
}

.badge-pill-owner {
    background: rgba(239, 68, 68, 0.15);

    color: #f87171;

    border: 1px solid rgba(239, 68, 68, 0.25);
}

.profile-badges {
    margin-left: 8px;
}

.profile-name {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 5px;

    margin-bottom: 8px;
}


/* ============================================================
   HASHTAGS
============================================================ */

.hashtag {
    color: #aaa;

    font-weight: 600;
}

.hashtag:hover {
    color: white;

    text-decoration: underline;
}


/* ============================================================
   POST ACTIONS
============================================================ */

.post-actions {
    border-top: 1px solid #222;

    margin-top: 18px;

    padding-top: 12px;
}

.post-actions button {
    background: transparent;

    border: none;

    color: #888;

    cursor: pointer;

    padding: 6px;
}

.post-actions button:hover {
    color: white;
}

.like-button.liked {
    color: white;
}


/* ============================================================
   STATES
============================================================ */

.loading,
.empty {
    text-align: center;

    padding: 50px 20px;

    color: #666;
}

.empty h2 {
    color: #aaa;

    margin-bottom: 8px;
}


/* ============================================================
   PROFILE
============================================================ */

.profile-container {
    max-width: 700px;

    margin: 50px auto;

    padding: 20px;
}

.profile-card {
    background: #101010;

    border: 1px solid #242424;

    border-radius: 14px;

    padding: 35px;

    text-align: center;

    overflow: hidden;

    position: relative;
}

.profile-banner {
    width: calc(100% + 70px);
    height: 200px;

    margin: -35px -35px 0;

    background: #1a1a1a;

    background-size: cover;
    background-position: center;

    border-bottom: 1px solid #242424;
}

.profile-avatar {
    width: 90px;
    height: 90px;

    border-radius: 50%;

    background: #222;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: -45px auto 20px;

    font-size: 35px;

    font-weight: bold;

    border: 4px solid #101010;

    position: relative;

    z-index: 1;

    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.profile-card p {
    color: #777;
}

.profile-display-name {
    font-size: 14px;

    color: #aaa !important;

    margin-bottom: 2px;
}

.follow-button {
    margin-top: 20px;
}

.profile-stats {
    display: flex;

    justify-content: center;

    gap: 60px;

    margin-top: 30px;
}

.profile-stats div {
    display: flex;

    flex-direction: column;

    gap: 5px;
}

.profile-stats span {
    color: #666;

    font-size: 13px;
}

.profile-posts {
    margin-top: 25px;
}


/* ============================================================
   SETTINGS
============================================================ */

.settings-container {
    max-width: 560px;

    margin: 50px auto;

    padding: 20px;
}

.settings-card {
    background: #101010;

    border: 1px solid #242424;

    border-radius: 14px;

    padding: 35px;
}

.settings-card h1 {
    font-size: 26px;

    margin-bottom: 25px;
}

.settings-banner {
    width: calc(100% + 70px);
    height: 180px;

    margin: -35px -35px 0;

    background: #1a1a1a;

    background-size: cover;
    background-position: center;

    border-bottom: 1px solid #242424;

    position: relative;

    cursor: pointer;
}

.banner-overlay {
    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, 0.5);

    display: flex;

    align-items: center;
    justify-content: center;

    color: white;

    font-weight: 600;

    font-size: 14px;

    opacity: 0;

    transition: opacity 0.2s;
}

.settings-banner:hover .banner-overlay {
    opacity: 1;
}

.settings-avatar-area {
    display: flex;

    flex-direction: column;

    align-items: center;

    margin: -45px 0 25px;

    position: relative;

    z-index: 1;
}

.settings-avatar {
    width: 90px;
    height: 90px;

    border-radius: 50%;

    background: #222;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 35px;

    font-weight: bold;

    border: 4px solid #101010;

    overflow: hidden;
}

.settings-avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.avatar-overlay {
    margin-top: 10px;

    color: #aaa;

    font-size: 13px;

    cursor: pointer;

    transition: color 0.2s;
}

.avatar-overlay:hover {
    color: white;
}

.settings-field {
    margin-bottom: 20px;
}

.settings-field label {
    display: block;

    margin-bottom: 8px;

    color: #bbb;

    font-size: 14px;
}

.settings-field input,
.settings-field textarea {
    width: 100%;

    background: #080808;

    color: white;

    border: 1px solid #2b2b2b;

    border-radius: 8px;

    padding: 13px;

    outline: none;

    font-family: inherit;

    font-size: 15px;

    resize: vertical;
}

.settings-field input:focus,
.settings-field textarea:focus {
    border-color: #666;
}

.field-count {
    display: block;

    text-align: right;

    color: #555;

    font-size: 12px;

    margin-top: 5px;
}

.settings-message {
    display: none;

    padding: 10px;

    border-radius: 7px;

    margin-bottom: 15px;

    font-size: 14px;
}

.settings-message.success {
    background: #112b19;

    border: 1px solid #245a32;

    color: #8bffab;
}

.settings-message.error {
    background: #2b1111;

    border: 1px solid #5a2222;

    color: #ff8b8b;
}

.settings-message.info {
    background: #11192b;

    border: 1px solid #22355a;

    color: #8bb4ff;
}


/* ============================================================
   NAV ACTIVE
============================================================ */

.nav-active {
    color: white !important;
}


/* ============================================================
   STAFF
============================================================ */

.staff-container {
    max-width: 800px;

    margin: 40px auto;

    padding: 0 20px;
}

.staff-header {
    margin-bottom: 25px;
}

.staff-header h1 {
    font-size: 32px;
}

.staff-stats {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 12px;

    margin-bottom: 30px;
}

.stat-card {
    background: #101010;

    border: 1px solid #242424;

    border-radius: 12px;

    padding: 20px;

    text-align: center;
}

.stat-card strong {
    display: block;

    font-size: 28px;

    margin-bottom: 4px;
}

.stat-card span {
    color: #666;

    font-size: 13px;
}

.staff-section {
    background: #101010;

    border: 1px solid #242424;

    border-radius: 12px;

    padding: 24px;

    margin-bottom: 20px;
}

.staff-section h2 {
    font-size: 20px;

    margin-bottom: 16px;
}

.staff-search input {
    width: 100%;

    background: #080808;

    color: white;

    border: 1px solid #2b2b2b;

    border-radius: 8px;

    padding: 13px;

    outline: none;

    font-size: 15px;
}

.staff-search input:focus {
    border-color: #666;
}

.staff-results {
    margin-top: 15px;
}

.staff-user-row {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 14px;

    border-bottom: 1px solid #1a1a1a;

    transition: background 0.15s;
}

.staff-user-row:last-child {
    border-bottom: none;
}

.staff-user-row:hover {
    background: #161616;
}

.staff-row-info {
    flex: 1;

    min-width: 0;
}

.staff-row-name {
    font-weight: 700;

    display: flex;

    align-items: center;

    gap: 6px;

    flex-wrap: wrap;
}

.staff-row-meta {
    color: #666;

    font-size: 13px;

    margin-top: 3px;
}

.staff-panel-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 20px;
}

.staff-panel-header h2 {
    margin-bottom: 0;
}

.staff-user-info {
    display: flex;

    gap: 20px;

    align-items: flex-start;

    margin-bottom: 20px;
}

.staff-avatar {
    width: 70px;
    height: 70px;

    border-radius: 50%;

    background: #222;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 28px;

    font-weight: bold;

    flex-shrink: 0;

    overflow: hidden;
}

.staff-avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.staff-user-details {
    flex: 1;

    min-width: 0;
}

.staff-user-name {
    font-size: 20px;

    font-weight: 700;
}

.staff-user-display {
    color: #aaa;

    font-size: 14px;
}

.staff-user-bio {
    color: #777;

    font-size: 14px;

    margin-top: 4px;
}

.staff-user-stats {
    display: flex;

    gap: 40px;

    padding: 15px 0;

    border-top: 1px solid #1a1a1a;

    border-bottom: 1px solid #1a1a1a;
}

.staff-user-stats div {
    display: flex;

    flex-direction: column;

    gap: 3px;
}

.staff-user-stats span {
    color: #666;

    font-size: 13px;
}

.staff-toggles {
    display: flex;

    flex-direction: column;

    gap: 10px;
}

.staff-toggle {
    display: flex;

    align-items: center;

    gap: 10px;

    cursor: pointer;

    padding: 10px 12px;

    border-radius: 8px;

    border: 1px solid #1a1a1a;

    transition: background 0.15s;
}

.staff-toggle:hover {
    background: #161616;
}

.staff-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;

    accent-color: #c084fc;
}

.toggle-label {
    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 14px;
}

.staff-role-buttons {
    display: flex;

    gap: 10px;
}

.staff-role-buttons .button {
    padding: 8px 16px;

    font-size: 13px;
}

.staff-role-buttons .button:disabled {
    opacity: 0.4;

    cursor: not-allowed;
}

.staff-posts-list {
    max-height: 400px;

    overflow-y: auto;
}

.staff-post-item {
    padding: 14px;

    border: 1px solid #1a1a1a;

    border-radius: 8px;

    margin-bottom: 10px;
}

.staff-post-content {
    line-height: 1.5;

    white-space: pre-wrap;

    word-break: break-word;

    font-size: 14px;
}

.staff-post-footer {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top: 10px;

    padding-top: 10px;

    border-top: 1px solid #1a1a1a;
}

.staff-post-footer small {
    color: #555;

    font-size: 12px;
}

.danger-small {
    background: transparent;

    border: 1px solid #5a2222;

    color: #ff8b8b;

    padding: 5px 10px;

    border-radius: 6px;

    font-size: 12px;

    cursor: pointer;

    transition: 0.2s;
}

.danger-small:hover {
    background: #2b1111;
}


/* ============================================================
   STAFF TABS
============================================================ */

.staff-tabs {
    display: flex;
    gap: 4px;
    margin: 20px 0;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 0;
}

.staff-tab {
    background: transparent;
    border: none;
    color: #888;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 18px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
    position: relative;
}

.staff-tab:hover {
    color: #ccc;
}

.staff-tab.active {
    color: var(--accent, #7c5cfc);
    border-bottom-color: var(--accent, #7c5cfc);
}

.staff-tab-badge {
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
}

.staff-tab-content {
    display: none;
}

.staff-tab-content.active {
    display: block;
}

.staff-filter-row {
    margin-bottom: 16px;
}

.staff-filter-row select {
    background: #111;
    color: #ccc;
    border: 1px solid #333;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}


/* ============================================================
   REPORTS
============================================================ */

.staff-reports-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.staff-report-item {
    background: #111;
    border: 1px solid #1a1a1a;
    border-radius: 10px;
    padding: 16px;
    transition: 0.2s;
}

.staff-report-item.staff-report-pending {
    border-left: 3px solid #e74c3c;
}

.staff-report-item.staff-report-reviewed {
    opacity: 0.6;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.report-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.report-type {
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    color: #aaa;
}

.report-status {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.report-status-pending {
    background: #3b1111;
    color: #ff8b8b;
}

.report-status-reviewed {
    background: #112b11;
    color: #8bffa0;
}

.report-time {
    color: #666;
    font-size: 12px;
}

.report-reporter {
    color: #888;
    font-size: 13px;
}

.report-reason {
    font-style: italic;
    color: #bbb;
    margin-bottom: 10px;
    font-size: 14px;
}

.report-context {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
}

.report-context strong {
    font-size: 12px;
    color: #888;
}

.report-preview {
    margin-top: 6px;
    color: #aaa;
    font-size: 13px;
    line-height: 1.4;
}

.report-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--accent, #7c5cfc);
    text-decoration: none;
}

.report-link:hover {
    text-decoration: underline;
}

.report-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.report-reviewed {
    color: #666;
    font-size: 12px;
    margin-top: 4px;
}


/* ============================================================
   INVITE CODES
============================================================ */

.staff-codes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.staff-code-item {
    background: #111;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    padding: 14px;
    transition: 0.2s;
}

.staff-code-item.code-inactive {
    opacity: 0.5;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.code-main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.code-text {
    font-family: monospace;
    font-size: 15px;
    letter-spacing: 1px;
    color: #fff;
}

.code-status {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.code-active {
    background: #112b11;
    color: #8bffa0;
}

.code-disabled {
    background: #2b2b11;
    color: #ffda8b;
}

.code-expired {
    background: #2b1111;
    color: #ff8b8b;
}

.code-badge-pill {
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 10px;
    font-weight: 600;
}

.code-actions {
    display: flex;
    gap: 6px;
}

.code-details {
    display: flex;
    gap: 20px;
    margin-top: 8px;
    color: #666;
    font-size: 12px;
}

.staff-create-form {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.staff-form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.staff-form-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.staff-form-field label {
    font-size: 11px;
    color: #888;
    font-weight: 600;
}

.staff-create-form input {
    background: #111;
    color: #ccc;
    border: 1px solid #333;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
}

.staff-create-form input:focus {
    outline: none;
    border-color: var(--accent, #7c5cfc);
}

.staff-form-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}


/* ============================================================
   CUSTOM BADGES + GRANT FORM
============================================================ */

.staff-custom-badges {
    margin-bottom: 12px;
}

.staff-grant-badge-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.staff-grant-badge-form input {
    background: #111;
    color: #ccc;
    border: 1px solid #333;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
}

.staff-grant-badge-form input:focus {
    outline: none;
    border-color: var(--accent, #7c5cfc);
}

.staff-grant-badge-form input[type="color"] {
    width: 38px;
    height: 36px;
    padding: 2px;
    cursor: pointer;
}

.staff-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent, #7c5cfc);
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    z-index: 9999;
    animation: toastIn 0.3s ease, toastOut 0.3s ease 1.7s;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes toastOut {
    from { opacity: 1; }
    to { opacity: 0; }
}


/* ============================================================
   REDEEM PAGE
============================================================ */

.redeem-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.redeem-card {
    background: #111;
    border: 1px solid #1a1a1a;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 420px;
    width: 100%;
}

.redeem-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.redeem-card h1 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #fff;
}

.redeem-code-label {
    font-size: 14px;
    color: #888;
    margin-bottom: 24px;
}

.redeem-code-label strong {
    font-family: monospace;
    font-size: 18px;
    color: var(--accent, #7c5cfc);
    letter-spacing: 2px;
}

.redeem-success {
    background: #112b11;
    color: #8bffa0;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-weight: 600;
}

.redeem-error {
    background: #2b1111;
    color: #ff8b8b;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
}

.redeem-back {
    display: inline-block;
    margin-top: 16px;
    color: #888;
    text-decoration: none;
    font-size: 13px;
}

.redeem-back:hover {
    color: var(--accent, #7c5cfc);
}


/* ============================================================
   FOOTER
============================================================ */

footer {
    text-align: center;

    padding: 25px;

    color: #444;

    font-size: 13px;

    border-top: 1px solid #1a1a1a;
}


/* ============================================================
   THEME TOGGLE
============================================================ */

.theme-toggle {
    background: transparent;
    border: 1px solid #333;
    color: #ccc;
    font-size: 16px;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.theme-toggle:hover {
    border-color: #555;
    color: #fff;
}

/* ============================================================
   LIGHT THEME
============================================================ */

body.light-theme {
    background: #fafafa;
    color: #1a1a1a;
}

body.light-theme .navbar {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

body.light-theme .navbar .logo {
    color: #111;
}

body.light-theme .nav-links a {
    color: #444;
}

body.light-theme .nav-links a:hover {
    color: #000;
}

body.light-theme .button {
    background: #111;
    color: #fff;
}

body.light-theme .button:hover {
    background: #333;
}

body.light-theme .button.secondary {
    background: #e5e5e5;
    color: #111;
}

body.light-theme .feed-container {
    background: #fafafa;
}

body.light-theme .post-card {
    background: #fff;
    border-color: #e5e5e5;
}

body.light-theme .post-card:hover {
    border-color: #ccc;
}

body.light-theme textarea,
body.light-theme input[type="text"],
body.light-theme input[type="email"],
body.light-theme input[type="password"],
body.light-theme input[type="search"] {
    background: #f0f0f0;
    color: #111;
    border-color: #ddd;
}

body.light-theme .feed-header h1,
body.light-theme .feed-header p {
    color: #111;
}

body.light-theme .badge-pill-owner { background: #fee2e2; color: #dc2626; }
body.light-theme .badge-pill-staff { background: #f3e8ff; color: #9333ea; }
body.light-theme .badge-pill-verified { background: #dbeafe; color: #2563eb; }
body.light-theme .badge-pill-early { background: #fef9c3; color: #ca8a04; }

body.light-theme .profile-card {
    background: #fff;
    border-color: #e5e5e5;
}

body.light-theme .profile-banner {
    border-color: #e5e5e5;
}

body.light-theme .empty {
    color: #666;
}

body.light-theme .empty h2 {
    color: #333;
}

body.light-theme .search-input,
body.light-theme .explore-section {
    background: #fff;
    border-color: #e5e5e5;
}

body.light-theme .notif-dropdown {
    background: #fff;
    border-color: #e5e5e5;
}

body.light-theme .notif-item {
    border-bottom-color: #e5e5e5;
    color: #111;
}

body.light-theme .notif-item:hover {
    background: #f5f5f5;
}

body.light-theme .theme-toggle {
    border-color: #ddd;
    color: #333;
}

body.light-theme .staff-report-item { background: #fff; border-color: #e5e5e5; }
body.light-theme .staff-report-pending { border-left-color: #e74c3c; }
body.light-theme .report-context { background: #f9f9f9; border-color: #e5e5e5; }
body.light-theme .staff-code-item { background: #fff; border-color: #e5e5e5; }
body.light-theme .staff-create-form { background: #f9f9f9; border-color: #e5e5e5; }
body.light-theme .staff-create-form input,
body.light-theme .staff-filter-row select { background: #fff; border-color: #ddd; color: #111; }
body.light-theme .staff-grant-badge-form input { background: #fff; border-color: #ddd; color: #111; }
body.light-theme .redeem-card { background: #fff; border-color: #e5e5e5; }
body.light-theme .redeem-card h1 { color: #111; }

/* ============================================================
   NOTIFICATIONS
============================================================ */

.notif-bell {
    position: relative;
    font-size: 18px;
    padding: 4px 8px;
}

.notif-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ef4444;
    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;
}

.notif-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 360px;
    max-height: 400px;
    overflow-y: auto;
    background: #111;
    border: 1px solid #222;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
}

.notif-dropdown.show {
    display: block;
}

.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #222;
    font-weight: 600;
}

.notif-item {
    display: flex;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid #1a1a1a;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 13px;
}

.notif-item:hover {
    background: #1a1a1a;
}

.notif-item.unread {
    background: rgba(59, 130, 246, 0.08);
}

.notif-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.notif-avatar-letter {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: #aaa;
    flex-shrink: 0;
}

.notif-text {
    flex: 1;
}

.notif-text strong {
    font-weight: 600;
}

.notif-time {
    color: #666;
    font-size: 12px;
}

.notif-empty {
    padding: 24px;
    text-align: center;
    color: #666;
}

/* ============================================================
   COMMENTS
============================================================ */

.comments-section {
    border-top: 1px solid #1a1a1a;
    padding: 12px 16px;
    display: none;
}

.comments-section.open {
    display: block;
}

.comment {
    display: flex;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #1a1a1a;
}

.comment:last-of-type {
    border-bottom: none;
}

.comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #aaa;
    flex-shrink: 0;
    overflow: hidden;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #888;
}

.comment-meta strong {
    color: #ddd;
    font-size: 13px;
}

.comment-content {
    font-size: 14px;
    line-height: 1.4;
    margin-top: 2px;
    word-wrap: break-word;
}

.comment-delete {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    padding: 0 4px;
    flex-shrink: 0;
}

.comment-delete:hover {
    color: #ef4444;
}

.comment-input-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.comment-input-row input {
    flex: 1;
    padding: 8px 12px;
    background: #1a1a1a;
    border: 1px solid #222;
    border-radius: 8px;
    color: #f5f5f5;
    font-size: 13px;
}

/* ============================================================
   REACTIONS
============================================================ */

.reaction-bar {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 4px 0;
}

.reaction-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 13px;
    background: #1a1a1a;
    border: 1px solid #222;
    cursor: pointer;
    transition: 0.15s;
}

.reaction-chip:hover {
    border-color: #444;
    background: #222;
}

.reaction-chip.active {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.12);
}

.reaction-chip span {
    font-size: 12px;
    color: #888;
}

.reaction-picker {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 6px 8px;
    display: flex;
    gap: 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    z-index: 100;
    display: none;
}

.reaction-picker.show {
    display: flex;
}

.reaction-picker button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: 0.15s;
}

.reaction-picker button:hover {
    background: #333;
    transform: scale(1.2);
}

.post-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0 0;
    flex-wrap: wrap;
}

.post-actions .action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #888;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: 0.15s;
}

.post-actions .action-btn:hover {
    background: #1a1a1a;
    color: #ccc;
}

.post-actions .action-btn.active {
    color: #3b82f6;
}

.post-actions .action-btn.active.repost-btn {
    color: #10b981;
}

.post-actions .action-btn.active.bookmark-btn {
    color: #f59e0b;
}

.post-actions .action-btn.active.heart-btn {
    color: #ef4444;
}

.post-actions .action-btn .count {
    font-size: 12px;
}

/* ============================================================
   REPOST HEADER
============================================================ */

.repost-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #10b981;
    padding: 0 16px 4px;
    font-weight: 500;
}

/* ============================================================
   POST EDITING
============================================================ */

.edit-textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #f5f5f5;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
}

.edit-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

/* ============================================================
   SEARCH PAGE
============================================================ */

.search-container {
    max-width: 640px;
    margin: 60px auto 0;
    padding: 0 20px;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    background: #111;
    border: 1px solid #222;
    border-radius: 10px;
    color: #f5f5f5;
    font-size: 15px;
    margin-bottom: 16px;
}

.search-input:focus {
    outline: none;
    border-color: #444;
}

.search-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #222;
    margin-bottom: 16px;
}

.search-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    background: none;
    border: none;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
}

.search-tab:hover {
    color: #aaa;
}

.search-tab.active {
    color: #fff;
    border-bottom-color: #fff;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ============================================================
   EXPLORE PAGE
============================================================ */

.explore-container {
    max-width: 900px;
    margin: 60px auto 0;
    padding: 0 20px;
}

.explore-section {
    margin-bottom: 32px;
}

.explore-section h2 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #f5f5f5;
}

.hashtag-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hashtag-pill {
    padding: 6px 14px;
    background: #111;
    border: 1px solid #222;
    border-radius: 20px;
    color: #3b82f6;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: 0.15s;
}

.hashtag-pill:hover {
    background: #1a1a1a;
    border-color: #3b82f6;
}

.suggested-users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.user-card-mini {
    background: #111;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: 0.2s;
}

.user-card-mini:hover {
    border-color: #333;
}

.user-card-mini .avatar {
    margin: 0 auto 8px;
}

.user-card-mini strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.user-card-mini small {
    color: #666;
    font-size: 12px;
}

/* ============================================================
   DELETE ACCOUNT
============================================================ */

.delete-container {
    max-width: 500px;
    margin: 60px auto 0;
    padding: 0 20px;
}

.delete-danger-box {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 24px;
}

.delete-danger-box h2 {
    color: #ef4444;
    font-size: 18px;
    margin-bottom: 12px;
}

.delete-danger-box ul {
    margin: 12px 0;
    padding-left: 20px;
    color: #ccc;
    font-size: 14px;
    line-height: 1.8;
}

.delete-confirm-input {
    width: 100%;
    padding: 12px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #f5f5f5;
    font-size: 14px;
    margin-top: 16px;
}

.delete-btn {
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.delete-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.delete-btn:not(:disabled):hover {
    background: #b91c1c;
}

/* ============================================================
   POST STATS ROW
============================================================ */

.post-stats {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #666;
    padding: 4px 0;
}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 600px) {

    .navbar {
        padding: 0 20px;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 13px;
    }

    .hero h1 {
        letter-spacing: -3px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .auth-box {
        padding: 25px;
    }

    .profile-stats {
        gap: 30px;
    }

    .staff-stats {
        grid-template-columns: repeat(2, 1fr);
    }

}