* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Georgia', serif;
            background: linear-gradient(135deg, #1a1a2e, #16213e, #0f0f23);
            color: #e6e6fa;
            min-height: 100vh;
            padding: 20px;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
        }

        .header {
            text-align: center;
            margin-bottom: 40px;
        }

        .header h1 {
            color: e0030379;
            font-size: 2.5em;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }

        .back-btn {
            position: absolute;
            top: 20px;
            left: 20px;
            background: rgba(159, 122, 234, 0.2);
            border: 2px solid e0030379;
            color: e0030379;
            padding: 10px 20px;
            border-radius: 8px;
            cursor: pointer;
            text-decoration: none;
            transition: all 0.3s ease;
            font-family: inherit;
        }

        .back-btn:hover {
            background: rgba(159, 122, 234, 0.3);
            transform: translateY(-2px);
        }

        .profile-grid {
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: 30px;
            margin-bottom: 40px;
        }

        .profile-card {
            background: rgba(0, 0, 0, 0.8);
            border: 2px solid #4a5568;
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(10px);
        }

        .profile-info h2 {
            color: e0030379;
            margin-bottom: 20px;
            font-size: 1.8em;
        }

        .info-item {
            margin-bottom: 15px;
            padding: 10px 0;
            border-bottom: 1px solid rgba(74, 85, 104, 0.3);
        }

        .info-label {
            color: #a0aec0;
            font-weight: bold;
            margin-bottom: 5px;
        }

        .info-value {
            color: #e2e8f0;
            font-size: 1.1em;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 15px;
            margin-top: 20px;
        }

        .stat-item {
            background: rgba(159, 122, 234, 0.1);
            border: 1px solid e0030379;
            border-radius: 10px;
            padding: 15px;
            text-align: center;
        }

        .stat-number {
            font-size: 2em;
            font-weight: bold;
            color: e0030379;
            display: block;
        }

        .stat-label {
            color: #a0aec0;
            font-size: 0.9em;
            margin-top: 5px;
        }

        .stories-section {
            background: rgba(0, 0, 0, 0.8);
            border: 2px solid #4a5568;
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(10px);
        }

        .stories-section h2 {
            color: rgba(238, 103, 103, 0.774);;
            text-shadow:
                0 0 8px #c90557,   /* pink glow */
                0 0 16px #c90557,  /* stronger pink glow */
                0 0 24px #c90557,  /* even more glow */
                2px 2px 4px rgba(0,0,0,0.5); /* subtle black shadow for depth */
            margin-bottom: 20px;
            font-size: 1.8em;
        }

        .story-filters {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .filter-btn {
            background: rgba(159, 122, 234, 0.2);
            border: 2px solid rgb(185, 8, 8, 0.774);
            color: rgba(255, 255, 255, 0.774);;
            padding: 8px 16px;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: inherit;
        }

        .filter-btn.active {
            background: rgb(185, 8, 8, 0.774);;
            color: rgb(241, 5, 5)!important;
        }

        .filter-btn:hover {
            background: rgba(159, 122, 234, 0.3);
        }

        .story-item {
            background: rgba(45, 55, 72, 0.6);
            border: 1px solid #4a5568;
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 15px;
            transition: all 0.3s ease;
        }

        .story-item:hover {
            border-color: rgb(185, 8, 8, 0.774);
            transform: translateY(-2px);
        }

        .story-header {
            display: flex;
            justify-content: between;
            align-items: flex-start;
            margin-bottom: 10px;
            flex-wrap: wrap;
            gap: 10px;
        }

        .story-title {
            color: #ee0814;
            font-size: 1.3em;
            font-weight: bold;
            flex: 1;
        }

        .story-status {
            padding: 4px 12px;
            border-radius: 15px;
            font-size: 0.8em;
            font-weight: bold;
            text-transform: uppercase;
        }

        .status-pending {
            background: rgba(255, 193, 7, 0.2);
            color: #ffc107;
            border: 1px solid #ffc107;
        }

        .status-approved {
            background: rgba(72, 187, 120, 0.2);
            color: #48bb78;
            border: 1px solid #48bb78;
        }

        .status-rejected {
            background: rgba(245, 101, 101, 0.2);
            color: #f56565;
            border: 1px solid #f56565;
        }

        .story-meta {
            color: #a0aec0;
            font-size: 0.9em;
            margin-bottom: 10px;
        }

        .story-preview {
            color: #cbd5e0;
            line-height: 1.6;
            max-height: 100px;
            overflow: hidden;
            position: relative;
        }

        .story-preview::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 20px;
            background: linear-gradient(transparent, rgba(45, 55, 72, 0.6));
        }

        .account-actions {
            margin-top: 30px;
        }

        .action-btn {
            background: linear-gradient(135deg, #f56565, #e53e3e);
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 8px;
            cursor: pointer;
            margin-right: 10px;
            margin-bottom: 10px;
            font-family: inherit;
            font-size: 16px;
            transition: all 0.3s ease;
        }

        .action-btn:hover {
            background: linear-gradient(135deg, #f56565, #e53e3e);
            transform: translateY(-2px);
        }

        .action-btn.danger {
            background: linear-gradient(135deg, #f56565, #e53e3e);
        }

        .action-btn.danger:hover {
            background: linear-gradient(135deg, #e53e3e, #c53030);
        }

        .no-stories {
            text-align: center;
            color: #a0aec0 !important;
            font-style: italic;
            padding: 40px;
        }

        .loading {
            text-align: center;
            color: e0030379;
            padding: 20px;
        }

        .error-message {
            background: rgba(245, 101, 101, 0.2);
            border: 1px solid #f56565;
            color: #feb2b2;
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 20px;
            text-align: center;
        }

        .modal {
            display: none;
            position: fixed;
            z-index: 9999;
            left: 0;
            top: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0,0,0,0.8);
            justify-content: center;
            align-items: center;
            overflow-y: auto;
        }

        .modal.show {
            display: flex;
        }

        .modal-content {
            background: #181818;
            color: #fff;
            padding: 2rem;
            border-radius: 10px;
            max-width: 800px;
            width: 90%;
            position: relative;
            box-shadow: 0 8px 32px rgba(0,0,0,0.7);
            max-height: 80vh;
            overflow-y: auto;
        }

        .close-btn {
            position: absolute;
            top: 10px;
            right: 20px;
            font-size: 2rem;
            color: #ff6b6b;
            cursor: pointer;
            z-index: 2;
        }

        /* All styles are scoped to #profile-section to avoid conflicts */
#profile-section {
    font-family: 'Georgia', serif;
    color: #e6e6fa;
    padding: 20px;
    background: none;
}

#profile-section .header {
    text-align: center;
    margin-bottom: 40px;
}

#profile-section .header h1 {
    color: #c90557;
    font-size: 2.5em;
    margin-bottom: 10px;
    /* Add a glowing pink outline and a subtle black shadow */
    text-shadow:
        0 0 8px #c90557,   /* pink glow */
        0 0 16px #c90557,  /* stronger pink glow */
        0 0 24px #c90557,  /* even more glow */
        2px 2px 4px rgba(0,0,0,0.5); /* subtle black shadow for depth */
}

#profile-section .profile-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 40px;
}

#profile-section .profile-card {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #4a5568;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

#profile-section .profile-info h2 {
    color: rgb(185, 8, 8, 0.774);
    margin-bottom: 20px;
    font-size: 1.8em;
}

#profile-section .info-item {
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(74, 85, 104, 0.3);
}

#profile-section .info-label {
    color: #a0aec0;
    font-weight: bold;
    margin-bottom: 5px;
}

#profile-section .info-value {
    color: #e2e8f0;
    font-size: 1.1em;
}

#profile-section .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

#profile-section .stat-item {
    background: rgba(159, 122, 234, 0.1);
    border: 1px solid rgba(185, 8, 8, 0.774);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

#profile-section .stat-number {
    font-size: 2em;
    font-weight: bold;
    color: e0030379;
    display: block;
}

#profile-section .stat-label {
    color: #a0aec0;
    font-size: 0.9em;
    margin-top: 5px;
}

#profile-section .stories-section {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #4a5568;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

#profile-section .stories-section h2 {
    color: e0030379;
    margin-bottom: 20px;
    font-size: 1.8em;
}

#profile-section .story-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

#profile-section .filter-btn {
    background: rgba(159, 122, 234, 0.2);
    border: 2px solid e0030379;
    color: e0030379;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

#profile-section .filter-btn.active {
    background: e0030379;
    color: white;
}

#profile-section .filter-btn:hover {
    background: rgba(159, 122, 234, 0.3);
}

#profile-section .story-item {
    background: rgba(45, 55, 72, 0.6);
    border: 1px solid #4a5568;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

#profile-section .story-item:hover {
    border-color: e0030379;
    transform: translateY(-2px);
}

#profile-section .story-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

#profile-section .story-title {
    color: #f50b32;
    font-size: 1.3em;
    font-weight: bold;
    flex: 1;
}

#profile-section .story-status {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
}

#profile-section .status-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid #ffc107;
}

#profile-section .status-approved {
    background: rgba(72, 187, 120, 0.2);
    color: #48bb78;
    border: 1px solid #48bb78;
}

#profile-section .status-rejected {
    background: rgba(245, 101, 101, 0.2);
    color: #f56565;
    border: 1px solid #f56565;
}

#profile-section .story-meta {
    color: #a0aec0;
    font-size: 0.9em;
    margin-bottom: 10px;
}

#profile-section .story-preview {
    color: #cbd5e0;
    line-height: 1.6;
    max-height: 100px;
    overflow: hidden;
    position: relative;
}

#profile-section .story-preview::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(transparent, rgba(45, 55, 72, 0.6));
}

#profile-section .account-actions {
    margin-top: 30px;
}

#profile-section .action-btn {
    background: linear-gradient(135deg,  #e0030379, #e0030379);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    margin-right: 10px;
    margin-bottom: 10px;
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s ease;
}

#profile-section .action-btn:hover {
    background: linear-gradient(135deg,  #e0030379, #e0030379);
    transform: translateY(-2px);
}

#profile-section .action-btn.danger {
    background: linear-gradient(135deg, #e0030379, #e0030379);
}

#profile-section .action-btn.danger:hover {
    background: linear-gradient(135deg, #e0030379, #e0030379);
}

#profile-section .no-stories {
    text-align: center;
    color: #e0030379;
    font-style: italic;
    padding: 40px;
}

#profile-section .loading {
    text-align: center;
    color: #e0030379;
    padding: 20px;
}

#profile-section .error-message {
    background: rgba(245, 101, 101, 0.2);
    border: 1px solid #f56565;
    color: #feb2b2;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.modal {
            
            position: fixed;
            z-index: 9999;
            left: 0;
            top: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0,0,0,0.8);
            justify-content: center;
            align-items: center;
            overflow-y: auto;
        }

        .modal.show {
            display: flex;
        }

        .modal-content {
            background: #181818;
            color: #fff;
            padding: 2rem;
            border-radius: 10px;
            max-width: 800px;
            width: 90%;
            position: relative;
            box-shadow: 0 8px 32px rgba(0,0,0,0.7);
            max-height: 80vh;
            overflow-y: auto;
        }

        .close-btn {
            position: absolute;
            top: 10px;
            right: 20px;
            font-size: 2rem;
            color: #ff6b6b;
            cursor: pointer;
            z-index: 2;
        }

        #edit-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}
#edit-modal.hidden {
    display: none;
}
#edit-modal.show {
    display: flex;
} 
#edit-modal .modal-content {
    background: #181818;
    color: #fff;
    padding: 2rem;
    border-radius: 10px;
    max-width: 800px;
    width: 90%;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.7);
    max-height: 80vh;
    overflow-y: auto;
}
#edit-modal .close-btn {
    position: absolute;
    top: 10px; right: 20px;
    font-size: 2rem;
    color: #ff6b6b;
    cursor: pointer;
    z-index: 2;
}