/* ===== FORM ERROR ===== */
.form-error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e8a09a;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    display: none;
}

.form-link {
    text-align: center;
    font-size: 13px;
    color: var(--gray);
    margin-top: 4px;
}

.form-link a {
    color: var(--green);
    font-weight: 600;
}

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

/* ===== RECOVERY CODE ===== */
.recovery-code-box {
    background: rgba(181, 198, 68, 0.06);
    border: 1px solid rgba(181, 198, 68, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
}

.recovery-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--green);
    margin-bottom: 8px;
}

.recovery-code-display {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--dark-4);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.recovery-code-display code {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--green);
    font-family: 'Courier New', monospace;
    flex: 1;
    user-select: all;
}

.recovery-warning {
    font-size: 12px;
    color: var(--red);
    font-weight: 600;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 6px;
}

/* ===== PAGE LAYOUT ===== */
.page-wrapper {
    padding-top: 80px;
    min-height: 100vh;
}

.page-header {
    padding: 40px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 800;
}

.page-header p {
    color: var(--gray);
    margin-top: 8px;
}

/* ===== DASHBOARD ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.dash-card {
    background: var(--dark-3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: var(--transition);
}

.dash-card:hover {
    border-color: rgba(181, 198, 68, 0.2);
}

.dash-card h3 {
    font-size: 14px;
    color: var(--gray);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dash-card .dash-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--green);
}

.dash-card .dash-label {
    font-size: 13px;
    color: var(--gray-light);
    margin-top: 4px;
}

/* ===== NAV LINKS (AUTH) ===== */
.dash-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.dash-nav a {
    padding: 8px 20px;
    background: var(--dark-3);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-light);
    transition: var(--transition);
}

.dash-nav a:hover,
.dash-nav a.active {
    border-color: var(--green);
    color: var(--green);
    background: rgba(181, 198, 68, 0.08);
}

/* ===== STORY CARDS ===== */
.stories-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.story-card {
    background: var(--dark-3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
}

.story-card:hover {
    border-color: rgba(181, 198, 68, 0.15);
}

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

.story-category {
    font-size: 12px;
    font-weight: 600;
    color: var(--green);
    background: rgba(181, 198, 68, 0.1);
    padding: 2px 10px;
    border-radius: 50px;
}

.story-date {
    font-size: 12px;
    color: var(--gray);
}

.story-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.story-content {
    font-size: 14px;
    color: var(--gray-light);
    line-height: 1.7;
}

.story-content.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.story-content.expanded {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.see-more-btn {
    background: none;
    border: none;
    color: var(--green);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    margin-top: 4px;
    display: inline-block;
    transition: var(--transition);
}

.see-more-btn:hover {
    opacity: 0.75;
}

.story-author {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    color: var(--gray);
    font-weight: 500;
}

.empty-text, .error-text {
    text-align: center;
    padding: 40px;
    color: var(--gray);
    font-size: 15px;
}

.error-text {
    color: var(--red);
}

/* ===== STORY ACTIONS ===== */
.story-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.story-status {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 50px;
    margin-right: 8px;
}

.story-status.approved {
    color: var(--green);
    background: rgba(181, 198, 68, 0.1);
}

.story-status.pending {
    color: #f39c12;
    background: rgba(243, 156, 18, 0.1);
}

.story-status.flagged {
    color: var(--red);
    background: rgba(231, 76, 60, 0.1);
}

.btn-danger-outline {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid rgba(231, 76, 60, 0.4);
    color: var(--red);
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    transition: var(--transition);
}

.btn-danger-outline:hover {
    background: rgba(231, 76, 60, 0.1);
    border-color: var(--red);
}

/* ===== BLACKLIST TABLE ===== */
.blacklist-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.blacklist-entry {
    background: var(--dark-3);
    border: 1px solid rgba(231, 76, 60, 0.1);
    border-radius: var(--radius);
    padding: 20px 24px;
}

.blacklist-entry .bl-name {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
}

.blacklist-entry .bl-desc {
    font-size: 14px;
    color: var(--gray-light);
    line-height: 1.6;
}

.blacklist-entry .bl-category {
    display: inline-block;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--red);
    background: rgba(231, 76, 60, 0.1);
    padding: 2px 10px;
    border-radius: 50px;
}

/* ===== PROFILE ===== */
.profile-card {
    background: var(--dark-3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    padding: 36px;
    max-width: 500px;
}

.profile-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.profile-row:last-child {
    border-bottom: none;
}

.profile-row .label {
    font-size: 13px;
    color: var(--gray);
    font-weight: 600;
}

.profile-row .value {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
}

/* ===== STORY FORM ===== */
.story-form {
    background: var(--dark-3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.story-form select {
    padding: 12px 16px;
    background: var(--dark-4);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: var(--white);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.story-form select:focus {
    border-color: var(--green);
}

.story-form textarea {
    padding: 12px 16px;
    background: var(--dark-4);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: var(--white);
    font-size: 14px;
    font-family: inherit;
    min-height: 150px;
    resize: vertical;
    outline: none;
    transition: var(--transition);
}

.story-form textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(181, 198, 68, 0.1);
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--dark-3);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 14px 18px;
    min-width: 280px;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    pointer-events: auto;
    border-left: 4px solid var(--gray);
}

.toast.toast-visible {
    transform: translateX(0);
}

.toast-success { border-left-color: var(--green); }
.toast-error { border-left-color: var(--red); }
.toast-info { border-left-color: #3498db; }
.toast-warning { border-left-color: #f39c12; }

.toast-message {
    flex: 1;
    font-size: 14px;
    color: var(--white);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.toast-close:hover {
    color: var(--white);
}

/* ===== ADMIN PANEL ===== */
.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.admin-tab {
    padding: 10px 24px;
    background: var(--dark-3);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-light);
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.admin-tab:hover,
.admin-tab.active {
    border-color: var(--green);
    color: var(--green);
    background: rgba(181, 198, 68, 0.08);
}

.admin-panel {
    margin-bottom: 40px;
}

.admin-card {
    background: var(--dark-3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 12px;
}

.admin-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

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

.admin-card-content {
    font-size: 14px;
    color: var(--gray-light);
    line-height: 1.7;
    margin-bottom: 12px;
}

.admin-card-meta {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 12px;
}

.admin-card-actions {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ===== POST APPROVAL ===== */
.post-type-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 50px;
}

.post-type-badge.type-story {
    color: #64b5f6;
    background: rgba(100, 181, 246, 0.1);
}

.post-type-badge.type-job {
    color: var(--green);
    background: rgba(181, 198, 68, 0.1);
}

.post-type-badge.type-blacklist {
    color: #ef5350;
    background: rgba(239, 83, 80, 0.1);
}

.post-content-preview {
    font-size: 13px;
    color: var(--gray-light);
    line-height: 1.6;
    margin: 10px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    max-height: 160px;
    overflow-y: auto;
    white-space: pre-line;
}

/* ===== USER MANAGEMENT ===== */
.user-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    align-items: center;
    background: var(--dark-3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 8px;
}

.user-info strong {
    display: block;
    font-size: 15px;
}

.user-username {
    font-size: 13px;
    color: var(--gray);
}

.user-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.user-status {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 50px;
}

.user-status.active {
    color: var(--green);
    background: rgba(181, 198, 68, 0.1);
}

.user-status.inactive {
    color: var(--red);
    background: rgba(231, 76, 60, 0.1);
}

.user-status.pending {
    color: #ffaa00;
    background: rgba(255, 170, 0, 0.1);
}

.user-status.nonactive {
    color: #ff8c00;
    background: rgba(255, 140, 0, 0.1);
}

.user-activity-date {
    font-size: 11px;
    color: var(--gray);
    margin-top: 2px;
}

.user-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

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

.role-select {
    padding: 6px 12px;
    background: var(--dark-4);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    color: var(--white);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    cursor: pointer;
}

.role-select:focus {
    border-color: var(--green);
}

/* ===== SECTION GRID (Dashboard) ===== */
.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.section-card {
    background: var(--dark-3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    display: block;
    text-decoration: none;
    color: inherit;
}

.section-card:hover {
    border-color: rgba(181, 198, 68, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.section-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(181, 198, 68, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--green);
}

.section-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--white);
}

.section-card p {
    font-size: 13px;
    color: var(--gray-light);
    line-height: 1.5;
}

/* ===== SUB TABS (Services) ===== */
.sub-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.sub-tab {
    padding: 10px 20px;
    background: var(--dark-3);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-light);
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.sub-tab:hover,
.sub-tab.active {
    border-color: var(--green);
    color: var(--green);
    background: rgba(181, 198, 68, 0.08);
}

/* ===== ANNOUNCEMENTS ===== */
.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.announcement-card {
    background: var(--dark-3);
    border: 1px solid rgba(181, 198, 68, 0.15);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
}

.announcement-card:hover {
    border-color: rgba(181, 198, 68, 0.3);
}

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

.announcement-badge {
    font-size: 12px;
    font-weight: 600;
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
    padding: 2px 10px;
    border-radius: 50px;
}

/* ===== JOBS ===== */
.job-card {
    background: var(--dark-3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    transition: var(--transition);
}

.job-card:hover {
    border-color: rgba(181, 198, 68, 0.15);
}

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

.job-type {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 50px;
}

.job-type-hiring {
    color: var(--green);
    background: rgba(181, 198, 68, 0.1);
}

.job-type-seeking {
    color: #e67e22;
    background: rgba(230, 126, 34, 0.1);
}

/* ===== JOB COMMENTS ===== */
.job-comments-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.job-comments-list {
    margin-bottom: 12px;
}

.comment-item {
    background: var(--dark-4);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
}

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

.comment-author {
    font-size: 13px;
    color: var(--green);
}

.comment-date {
    font-size: 11px;
    color: var(--gray);
}

.comment-text {
    font-size: 14px;
    color: var(--gray-light);
    line-height: 1.5;
}

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

.comment-input {
    flex: 1;
    padding: 10px 14px;
    background: var(--dark-4);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: var(--white);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.comment-input:focus {
    border-color: var(--green);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .page-wrapper {
        padding-top: 70px;
    }

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

    .profile-card {
        max-width: 100%;
    }

    .story-form {
        max-width: 100%;
    }

    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
        max-width: 100%;
    }

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

    .sub-tabs {
        gap: 6px;
    }

    .sub-tab {
        padding: 8px 14px;
        font-size: 13px;
    }

    .admin-tabs {
        flex-wrap: wrap;
    }

    .user-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .user-meta {
        flex-direction: row;
        align-items: center;
    }

    .user-actions {
        flex-wrap: wrap;
    }
}

/* ===== MOCKUP SUB-COMPONENTS ===== */

/* Header */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #0d0d0d;
    border-bottom: 1px solid #1c1c1c;
    z-index: 1000;
}

.app-logo-box {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.app-logo-box svg {
    width: 28px;
    height: 28px;
    color: var(--green);
}

.app-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-icon-btn {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

.search-icon-btn:hover {
    color: var(--green);
}

.role-badge {
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--green);
    font-size: 11px;
    font-weight: 700;
    color: var(--green);
    background: rgba(181, 198, 68, 0.05);
    text-transform: capitalize;
}

/* Search Bar Slider */
.search-container-slide {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #111;
    border-bottom: 1px solid #222;
}

.search-container-slide.active {
    max-height: 60px;
    padding: 10px 20px;
}

.search-input-field {
    width: 100%;
    padding: 8px 14px;
    background: var(--dark);
    border: 1px solid #333;
    border-radius: 8px;
    color: var(--white);
    font-size: 13px;
    outline: none;
}

.search-input-field:focus {
    border-color: var(--green);
}

/* Ad Carousel */
.ad-carousel {
    position: relative;
    height: 140px;
    margin: 16px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    background: #111;
}

.ad-slides-container {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.ad-slide {
    width: 33.333%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    box-sizing: border-box;
}

.ad-slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.ad-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 80%, transparent 100%);
    z-index: 1;
}

.ad-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    font-size: 16px;
    outline: none;
}

.ad-nav-btn:hover {
    background: var(--green);
    color: var(--dark);
    border-color: var(--green);
}

.ad-prev-btn {
    left: 8px;
}

.ad-next-btn {
    right: 8px;
}

.ad-slide-title {
    position: relative;
    z-index: 2;
    font-size: 15px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.ad-slide-subtitle {
    position: relative;
    z-index: 2;
    font-size: 11px;
    color: var(--green);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.ad-indicators {
    position: absolute;
    bottom: 12px;
    right: 16px;
    display: flex;
    gap: 6px;
    z-index: 3;
}

.ad-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transition: var(--transition);
}

.ad-indicator.active {
    background: var(--green);
    transform: scale(1.3);
}

.ad-slide {
    cursor: pointer;
}

/* Ad Photo Modal */
.ad-photo-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ad-photo-modal.active {
    display: flex;
}

.ad-photo-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.ad-photo-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ad-photo-modal-body {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ad-photo-modal-body img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.ad-photo-modal-info {
    text-align: center;
    margin-top: 16px;
}

.ad-photo-modal-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.ad-photo-modal-info p {
    font-size: 13px;
    color: var(--green);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Top Tab Navigator */
.top-tabs-nav {
    display: flex;
    background: #0d0d0d;
    border-bottom: 1px solid #1c1c1c;
    position: sticky;
    top: 0;
    z-index: 900;
}

.top-tab-item {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.top-tab-item:hover {
    color: var(--white);
}

.top-tab-item.active {
    color: var(--green);
    border-bottom-color: var(--green);
}

/* Sub filter container */
.sub-filters-container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 16px;
    background: #0d0d0d;
    border-bottom: 1px solid #141414;
    scrollbar-width: none; /* Firefox */
}

.sub-filters-container::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.filter-pill {
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid #222;
    background: #151515;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-pill:hover {
    border-color: #444;
}

.filter-pill.active {
    border-color: var(--green);
    color: var(--green);
    background: rgba(181, 198, 68, 0.08);
}

/* Content Frame & Feed */
.content-feed {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Locked Card Overlay */
.locked-card-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 32px 20px;
    background: rgba(22, 22, 22, 0.6);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    text-align: center;
    margin-top: 8px;
}

.locked-icon {
    font-size: 28px;
    color: #ffaa00;
}

.locked-card-overlay p {
    font-size: 13px;
    color: var(--gray);
    font-weight: 600;
}

/* Bottom Nav mockup */
.app-bottom-nav {
    display: flex;
    background: #0d0d0d;
    border-top: 1px solid #1c1c1c;
    padding: 8px 0;
    height: 56px;
    z-index: 1000;
}

.app-bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--gray);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.app-bottom-nav-item.active {
    color: var(--green);
}

.app-bottom-nav-item svg {
    width: 20px;
    height: 20px;
}

/* Profile Tab Content */
.profile-tab-content {
    padding: 24px 16px;
}

.profile-user-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 24px;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #2a2a2a;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.profile-avatar svg {
    width: 32px;
    height: 32px;
    color: var(--gray);
}

.profile-nickname {
    font-size: 18px;
    font-weight: 800;
    color: var(--white);
}

.profile-role {
    font-size: 12px;
    font-weight: 700;
    color: var(--green);
    margin-top: 4px;
}

.profile-menu-list {
    background: #151515;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.03);
    overflow: hidden;
    margin-bottom: 20px;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-light);
    cursor: pointer;
    transition: var(--transition);
}

.profile-menu-item:last-child {
    border-bottom: none;
}

.profile-menu-item:hover {
    background: rgba(255,255,255,0.02);
}

.profile-menu-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-menu-item-left svg {
    width: 18px;
    height: 18px;
    color: var(--gray);
}

.profile-menu-val {
    color: var(--green);
    font-weight: 700;
}

.profile-menu-arrow {
    color: #444;
    font-size: 16px;
}

.profile-action-btn {
    display: inline-block !important;
    width: auto !important;
    padding: 10px 28px !important;
    border-radius: 50px !important;
    background: var(--green) !important;
    color: var(--dark) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-align: center !important;
    margin-top: 18px !important;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(181, 198, 68, 0.2);
    text-decoration: none !important;
}

.profile-action-btn:hover {
    background: var(--green-light);
    transform: translateY(-1px);
}

/* Help / FAQ Tab */
.help-tab-content {
    padding: 16px;
}

.help-telegram-box {
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.15) 0%, rgba(0, 136, 204, 0.05) 100%);
    border: 1px solid rgba(0, 136, 204, 0.25);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.help-telegram-box h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #fff;
}

.help-telegram-box p {
    font-size: 12px;
    color: var(--gray-light);
    margin-bottom: 14px;
}

/* Subpage content sections scroll and forms */
.section-form-box {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.section-form-box h3 {
    font-size: 15px;
    margin-bottom: 12px;
    color: var(--green);
}

/* ===== ADMIN STYLING ALIGNMENT ===== */
.admin-card {
    background: #151515;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    margin-bottom: 16px;
    transition: var(--transition);
}

.admin-card:hover {
    border-color: rgba(181, 198, 68, 0.15);
}

.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.admin-tabs::-webkit-scrollbar {
    display: none;
}

.admin-tab {
    flex-shrink: 0;
    padding: 10px 20px;
    background: #151515;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    color: var(--gray-light);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.admin-tab.active,
.admin-tab:hover {
    border-color: var(--green);
    color: var(--green);
    background: rgba(181, 198, 68, 0.06);
}

.admin-panel {
    background: #111;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.03);
    padding: 24px;
    box-shadow: var(--shadow);
}

/* ===== DESKTOP NATIVE WEB APP RESPONSIVENESS ===== */
@media (min-width: 769px) {
    .app-header {
        max-width: 1200px;
        margin: 0 auto;
        width: 100%;
        padding: 20px 40px;
        background: transparent;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    
    .top-tabs-nav {
        max-width: 1200px;
        margin: 0 auto;
        width: 100%;
        padding: 0 40px;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    
    .top-tabs-nav .desktop-only {
        display: block !important;
    }
    
    .sub-filters-container {
        max-width: 1200px;
        margin: 0 auto;
        width: 100%;
        padding: 16px 40px;
        border-bottom: 1px solid rgba(255,255,255,0.04);
    }
    
    .ad-carousel {
        max-width: 1200px;
        margin: 24px auto 0;
        width: calc(100% - 80px);
        height: 200px;
    }
    
    .content-feed {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
        gap: 24px;
        max-width: 1200px;
        margin: 0 auto;
        padding: 24px 40px;
        width: 100%;
    }
    
    /* Ensure forms span full width under list or align nicely */
    .section-form-box {
        grid-column: 1 / -1;
        max-width: 600px;
        margin: 32px 0 0 0;
    }
    
    .profile-tab-content,
    .help-tab-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 32px 40px;
        width: 100%;
    }
    
    .profile-user-card {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 24px;
        background: #111;
        padding: 24px 32px;
        border-radius: var(--radius-lg);
        border: 1px solid rgba(255,255,255,0.04);
        max-width: 600px;
        margin: 0 auto 32px;
    }
    
    .profile-avatar {
        margin-bottom: 0;
    }
    
    .profile-menu-list {
        max-width: 600px;
        margin: 0 auto 20px;
    }
    
    #associateInstructions {
        max-width: 600px;
        margin: 0 auto 20px;
    }
    
    .help-telegram-box {
        max-width: 600px;
        margin: 0 auto 32px;
    }
    
    .faq-list {
        max-width: 800px;
        margin: 0 auto;
    }
}

/* Per-card body-text blur for Associate users */
.blurred-text {
    filter: blur(5px);
    user-select: none;
    cursor: pointer;
    transition: filter 0.2s ease, background 0.2s ease;
    border-radius: 4px;
}

.blurred-text:hover {
    filter: blur(3px);
    background: rgba(255, 170, 0, 0.04);
}



